Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Servers & Networking
FedoraForum Search

Forgot Password? Join Us!

Servers & Networking Discuss any Fedora server problems and Networking issues such as dhcp, IP numbers, wlan, modems, etc.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 18th February 2006, 07:05 AM
richp Offline
Registered User
 
Join Date: Feb 2006
Posts: 9
Can't connect to network

I'm working with FC4 on a single-boot machine.

I can't reach the network with DHCP (eth0 won't initialize)
I can't assign an IP and get on the network (Destination Host Unreachable)

It's an easy network to connect to from Windows machines. I work on friends and family computers and connecting can be done in my sleep. In the past month or two, I've had 8 or 9 different machines on it (4 are always on).

I've reinstalled FC4 6 or 7 times hoping a new install would work.

I've connected to 3 different routers and my cable modem. I figured surely a fresh install on the cable modem should give me DHCP but it doesn't. I've used a Realtek 8139 NIC card as well as a new gigabit card. The light on my routers light up and the NIC card lights green. I've also tried switching cables. However, my router also ok'ed the cable connections. I've had my router match the IP with the MAC address. And I've tried with and without the firewall.

I've tried everything related on this forum I could find but I cannot get any response from pings. And I cannot ping the FC4 box.

I've put about 30 hours into this and nothing. What am I doing wrong? Or could someone step me through what I should do?

Thanks,
Rich
Reply With Quote
  #2  
Old 18th February 2006, 02:29 PM
gavinw6662 Offline
Registered User
 
Join Date: Feb 2005
Age: 34
Posts: 1,281
please post the contents of you /etc/sysconfig/network-scripts/ifcfg-eth0 and /etc/resolv.conf files. Do you think that the card ins't being recognized by the kernel?? You can check my doing a dmesg | grep eth0. If there is output, then the card should be initialized and active. That leaves the only problem to settings or cables.
__________________
I read your e-mail
Reply With Quote
  #3  
Old 18th February 2006, 03:43 PM
richp Offline
Registered User
 
Join Date: Feb 2006
Posts: 9
Here are the results:

[root@localhost ~]# dmesg | grep eth0
eth0: Identified chip type is 'RTL8169s/8110s'.
eth0: RTL8169 at 0xe0832000, xx:xx:xx:xx:xx:xx, IRQ 10
r8169: eth0: link up
eth0: no IPv6 routers present

/etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=none
HWADDR=xx:xx:xx:xx:xx:xx
ONBOOT=yes
TYPE=Ethernet
NETMASK=255.255.255.0
IPADDR=192.168.0.10
USERCTL=no
PEERDNS=yes
GATEWAY=192.168.0.1
IPV6INIT=no

/etc/resolv.conf
# suggestion from fedoraforum.org
nameserver 192.168.0.1

Appreciate you taking the time to look at this.
Reply With Quote
  #4  
Old 18th February 2006, 03:56 PM
gavinw6662 Offline
Registered User
 
Join Date: Feb 2005
Age: 34
Posts: 1,281
i assume that (in your /etc/resolv.conf) 192.168.0.1 is your router?? You have to get your DNS servers from your router or your ISP and put it in that file. Not your router. Your router stores DNS server settings, but it isn't the DNS server. If you have a windows box using the same connections - it should already have the DNS server info. Copy that over to the LInux box

etc/resolv.conf
nameserver xxx.xxx.xxx.xxx
nameserver xxx.xxx.xxx.xxx

replace the x's with the IP's of both your DNS servers. Restart network services (as root) service network restart and you should be able to ping out after that.
__________________
I read your e-mail
Reply With Quote
  #5  
Old 18th February 2006, 04:27 PM
richp Offline
Registered User
 
Join Date: Feb 2006
Posts: 9
Can't find anything on my Win2k machine. On the router device settings, the WAN side has all my ISP settings. My router list DNS as:

xx.xx.85.98 xx.xx.69.146

I guess that's two IPs with a space between them.

Would I use those in the etc/resolv.conf file? Doesn't seem right because my ISP won't know the IPs for the other computers on my network.

There is also another screen on my router that shows WAN settings. It's set to get a dynamic IP from my ISP. Below that, it shows a Dynamic IP section for my router with the hostname DI-624, the MAC address of the router, and primary and secondary DNS of 0.0.0.0

Would I use that in the etc/resolv.conf file?
Reply With Quote
  #6  
Old 19th February 2006, 01:31 AM
DRE.ORGY.NET's Avatar
DRE.ORGY.NET Offline
Registered User
 
Join Date: Nov 2004
Location: Sydney, Australia
Posts: 210
You said you connected it to 3 different routers. Can you give us a quick diagram of how your network is setup?

The router the FC4 box is connected to do other pc's connected to it get to the internet? Can you try and ping an external address.

Also try a traceroute to see how far along your network your getting.

The other thing you might want to try that I just thought of, try disabling IPV6
Reply With Quote
  #7  
Old 19th February 2006, 06:40 AM
richp Offline
Registered User
 
Join Date: Feb 2006
Posts: 9
A cable modem connects to cable. From the cable modem is a wireless router (D-Link 624). Several computers link through the wireless network. Several others connect either directly to the D-Link or a switch coming off that router.

I tried clean installs by connecting directly to the cable modem, directly to the D-Link, and directly to a third D-Link router not normally in the network. I've also tried various attempts through the switch.

Regardless of what I've done, I cannot ping an external address. I've also tried disabling IPV6 as well as the firewall.

root@localhost /]# traceroute 192.168.0.1
traceroute to 192.168.0.1 (192.168.0.1), 30 hops max, 38 byte packets
1 localhost (192.168.0.10) 3000.114 ms !H 3000.457 ms !H 3000.336 ms !H
Reply With Quote
  #8  
Old 19th February 2006, 11:42 AM
DRE.ORGY.NET's Avatar
DRE.ORGY.NET Offline
Registered User
 
Join Date: Nov 2004
Location: Sydney, Australia
Posts: 210
the only other thing I can think of is your NIC's driver isnt working as it should be. I had a few problems installing FC4 on my laptop but after updating the kernel everything worked.

I am running 2.6.15-1 at the moment see if you can download that from another computer and install it and see how you go.
Reply With Quote
  #9  
Old 19th February 2006, 09:35 PM
gavinw6662 Offline
Registered User
 
Join Date: Feb 2005
Age: 34
Posts: 1,281
as I said before, your /etc/resolv.conf isn't set properly. You have your gatewar set as your DNS server, that isn't going to work. You have to put your DNS server in your /etc/resolv.conf file - and not your gateway. So once again, I ask, what is you DNS servers? Do you run internal servers? Or do you use your ISP servers? My linksys router shows me the DNS servers it gets from my ISP. If you cable modem is connected to a d-link (i think you said) then find out what the DNS server that this router gets. If you can't get that information from any of your computers/routers, then contact your ISP and ask for the DNS server. Better yet, the ones that I use, are assigned by my ISP, but you should be able to query them. So why not try that....


nameserver 68.87.66.196
nameserver 68.87.76.178

See if that works for you. If not,t hen you need to find your ISP's DNS servers.

And BTW - don't use IPV6. Most networks (in the US that is) aren't 100% compliant yet. And 9 times out of 10, using or activating IPV6 will slow your system down.
__________________
I read your e-mail
Reply With Quote
  #10  
Old 20th February 2006, 05:16 AM
richp Offline
Registered User
 
Join Date: Feb 2006
Posts: 9
I have IPV6 turned off. I changed resolv.conf and used my ISP nameservers. I get "Destination Host Unreachable" if I ping inside my network and "unknown host" if I ping outside my network.
Reply With Quote
  #11  
Old 20th February 2006, 05:53 AM
b_martinez Offline
Registered User
 
Join Date: Apr 2005
Location: Pueblo,Colorado
Posts: 724
Try adding
1270.0.0.1 localhost localhost.localdomain
to your /etc/resolv.conf
Also try going thru "System>Administration>Network" (in Gnome) [Start>System Tools>Network in KDE] to check if your Realtek card is recognized and configured.This is the easiest way to check if your card module is installed into the kernel. note: you will have to provide the / password. I did an install that did not do the loopback setup in resolv.conf and could NOT get into/onto the net.Since your post didn't show a listing for 127.0.0.1, it may be your problem.
If you can ping your cable router (192.168.0.1 I assume) after this, enter the router address into your browser and look for an entry for the "status" of your router. Status is what my Actiontec DSL router actually reads. If you can find this (or similar) page, it should show the DNS nameserver addresses and the search domain.
gedit /etc/resolv.conf should be edited to something similar to

; generated by /sbin/dhclient-script
search domain.actdsltmp
nameserver 192.168.0.1
nameserver 205.171.3.65
nameserver 205.171.2.65

This doesn't show the lopback interface [I'm in FC5t2] but it is my FC4 /etc/resolv.conf file.
Hope this helps
Bill

Last edited by b_martinez; 20th February 2006 at 06:06 AM. Reason: Additional things
Reply With Quote
  #12  
Old 20th February 2006, 06:11 AM
richp Offline
Registered User
 
Join Date: Feb 2006
Posts: 9
Appreciate your suggestion, Bill.

However, it did not work. I can also see my card listed. It won't initialize under DHCP (can't get anything from the network) but seems to work fine if I assign the computer an IP. I also see a green light on the NIC card and a light on the router. The router also verifies a cable connection.
Reply With Quote
  #13  
Old 20th February 2006, 05:26 PM
gavinw6662 Offline
Registered User
 
Join Date: Feb 2005
Age: 34
Posts: 1,281
one last question, it sounds like your network has several devices attached to it. A modem attached to a wireless hub (what is the IP of this hub??) and then you mentioned that you have your system hooked up to another router (what is the IP of this router?) that was piggy backed off of the wireless hub. You might have a gateway problem. The fundamental principal behind the gateway is that it is the address of the next networking device upstream from your system. So if your wireless router is 192.168.1.1 and your other router is 192.168.1.2 and your computer is connected to that. Then your gateway (theoretically) should be the IP of that second router.

So I would say if you system is still hooked up to that second device, get the IP from that, make it your Gateway, then keep your ISP's DNS servers in the resolv.conf. Test that and see what happens. Also, by chance, do you have firewalls set up?? Try service iptables stop or iptables -L (to list firewall rules) and the iptables --flush to temporarily clear out the rules. It is a possibility you didn't select eth0 as a trusted device, and therefore no packets are leaving your computer.
__________________
I read your e-mail
Reply With Quote
  #14  
Old 21st February 2006, 02:30 AM
richp Offline
Registered User
 
Join Date: Feb 2006
Posts: 9
The IP of the wireless router is 198.168.0.1 Yes, there is a hub connected to that and I have no idea what the IP is. It is assigned by DHCP and only acts to pass traffic between the computers on it and the router. There is no gateway problem with that because those computers have no problem accessing the router which acts as the gateway to the Internet. No computer on the network is aware of the ISP nameservers, either.

Also, my Linux box is attached directly to the wireless router so the other hub would have no influence over its connection.

The Linux box has its firewall turned off. The router's firewall only interacts with traffic from the Internet, not within the network.

eth0 has been listed as a trusted device.

I suspect the problem is that the Linux box is not listening to the network. A driver was installed for the NIC and it shows up in the hardware. Ping says it is broadcasting. But it doesn't receive anything.
Reply With Quote
  #15  
Old 21st February 2006, 04:57 AM
carstenson Offline
Registered User
 
Join Date: Feb 2006
Location: Austin, Texas
Age: 51
Posts: 32
I would not be concerned with DNS or resolv.conf, yet. Just use ip addresses, not names. Worry about the names after the network is working.

First, see if the network card is initializing. Run "ifconfig eth0". It should show, among a lot of other good things, that it is "UP".

Then, check your routing table with "route". You should see an entry something like this:

192.168.0.0 * 255.255.255.0 U 0 0 0 eth0

This means that if you ping your router's address, 192.168.0.1, it will get routed out the eth0 port. You should also see a default route that will send all traffic outside of your subnet to the router.

Once you can ping your router, you can then test a ping to an outside address. Lastly, ping an outside name to test your DNS. The DNS addresses should be very easy to come by (e.g. your isp, your router, your other boxes on the network).

HTH.
Reply With Quote
Reply

Tags
connect, network

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't Connect to a wireless network with Network Manager cirne Servers & Networking 23 2nd August 2008 10:43 AM
How to tell it which network to connect to? SpectrumDT Using Fedora 3 5th February 2008 11:38 PM
Can't connect to my network SpaceLinux Servers & Networking 3 13th August 2007 09:43 AM
Using Network Manager to connect FC6 to wireless network. DalekClock Servers & Networking 8 24th March 2007 11:56 PM
Can't connect to my network using WEP renegade Servers & Networking 1 3rd August 2006 04:26 AM


Current GMT-time: 13:15 (Tuesday, 21-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat