Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Seems like mine is a unique problem as I could not find any helpful threads. My problem goes as below -
I am newbie to Linux world. Installed Debian(Sarge) 3.1.r0a successfully on a Compaq desktop which has built-in Intel(R) PRO 100 Ethernet card into the motherboard configured as 'eth0'. I am trying to setup linux with Linksys wired router (series something like BEFS...) which is confifured to login to DSL to access Internet. My problem is I am not able to access / ping my local network.
Output of route command gives me nothing.
Output of 'lspci' gives the list of all PCI devices including Ethernet controller.
Output of 'ifconfig' command gives output of 'local loopback'
Get reply when I ping localhost or 127.0.0.1
But I cannot ping external host that is windows XP box or ping linksys router whose IP address is 192.168.0.1
Does anybody has solution to my problem?
Thank you for responding to my post. However, it still did not help. Below is the logs on running command dhcpclient -
/home/rgouda# dhclient
Listening on LPF/lo/<null>
Sending on LPF/lo/<null>
Listening on LPF/eth0/00:02:a5:aa:8e:9c
Sending on LPF/eth0/00:02:a5:aa:8e:9c
Sending on Socket/fallback/fallback-net
DHCPDISCOVER on lo to 255.255.222.255 port 67 interval 6
DHCPDISCOVER on eth0 to 255.255.222.255 port 67 interval 3
DHCPDISCOVER on eth0 to 255.255.222.255 port 67 interval 4
DHCPDISCOVER on lo to 255.255.222.255 port 67 interval 12
DHCPDISCOVER on eth0 to 255.255.222.255 port 67 interval 14
DHCPDISCOVER on lo to 255.255.222.255 port 67 interval 17
DHCPDISCOVER on eth0 to 255.255.222.255 port 67 interval 7
DHCPDISCOVER on eth0 to 255.255.222.255 port 67 interval 20
DHCPDISCOVER on eth0 to 255.255.222.255 port 67 interval 12
DHCPDISCOVER on eth0 to 255.255.222.255 port 67 interval 11
DHCPDISCOVER on eth0 to 255.255.222.255 port 67 interval 6
No DHCPOFFERS received.
No working leases in persistent database.
well, do you have a dhcp server running on your router? iow, does your router automatically give out ip addresses to you? if not then dhclient will not work.
in any case, did you try the other commands i put in my last post? if dhclient doesn't work, the next step is to attempt to configure your ethernet card manually.
(each line is a different command)
Code:
su
ifconfig eth0 192.168.0.2 up
route add default gw 192.168.0.1
echo nameserver 192.168.0.1 > /etc/resolv.conf
if it still doesn't work then you have a problem; in that case i would check the cable and make sure that it works.
Output of someother commands if this gives anyone clue to lead me any direction -
# netstat -nr
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
...... (empty)
# ethtool eth0
Settings for eth0:
Supported ports: [TP MII]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Supports auto-negotiation; Yes
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Advertised auto-negotiation: Yes
Speed: Unknown! (65535)
Duplex: Unknow! (255)
Port: Twisted Pair
PHYAD: 1
Transceiver: internal
Auto-negotiation: on
Supports wake-on: puag
Wake-on: g
Link detected: no
Hi HTH,
Thanks for pointing me to my incorrect subnet address. I corrected that but still it was not working, recycled my linksys router now I can ping and hooked on to my network and internet. Thank you for your help, you are very helpful.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.