LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 08-02-2005, 10:35 PM   #1
rgouda
LQ Newbie
 
Registered: Jul 2005
Location: New York
Posts: 6

Rep: Reputation: 0
Post Not able to bring Linux on network.


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 in advance.
Raj

Last edited by rgouda; 08-02-2005 at 10:44 PM.
 
Old 08-02-2005, 11:03 PM   #2
fenderman11111
Member
 
Registered: Jun 2004
Location: Denton
Distribution: debian, freebsd
Posts: 121

Rep: Reputation: 15
if you use dhcp, just run the comand 'dhclient'.

otherwise, do this:

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
see if one of those gets it working.
 
Old 08-03-2005, 09:34 PM   #3
rgouda
LQ Newbie
 
Registered: Jul 2005
Location: New York
Posts: 6

Original Poster
Rep: Reputation: 0
Thumbs down

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.

Sleeping.

Can somebody give me more insights please.

Thank you in advance.
 
Old 08-03-2005, 10:08 PM   #4
rgouda
LQ Newbie
 
Registered: Jul 2005
Location: New York
Posts: 6

Original Poster
Rep: Reputation: 0
May this give someone clue.

# ifconfig
eth0 Link encap: Ethernet HWaddr 00:02:A5:AA:8E:9C
UP BROADCAST MULTICAST MTU:1500 Metric: 1
RX Packets: 0 errors;0 dropped:0 overruns:0 frame:0
TX Packets: 6 errors;0 dropped:0 overruns:0 carrier:0
collisions:0
RX bytes: 0 (0.0 b) TX bytes: 2052 (2.0 KiB)

lo Link encap: Local Loopback
inet addr: 127.0.0.1 Mast: 255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric: 1
RX Packets:13717 errors:0 dropped:0 overruns:0 frame:0
TX packets: 13717 errors:0 dropped:0 overrunds:0 carrier:0
collisions: 0
RX bytes: 1146567 (1.0 MiB) TX bytes: 1146567 (1.0 MiB)

Another command dmesg output is:
# dmesg | grep eth0
e100: eth0: Intel(R) PRO/100 Network Connection.

Please let me know if anybody has suggestions, willing to try any other alternatives.

Thanks,
 
Old 08-03-2005, 11:04 PM   #5
fenderman11111
Member
 
Registered: Jun 2004
Location: Denton
Distribution: debian, freebsd
Posts: 121

Rep: Reputation: 15
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.
 
Old 08-04-2005, 05:57 AM   #6
rgouda
LQ Newbie
 
Registered: Jul 2005
Location: New York
Posts: 6

Original Poster
Rep: Reputation: 0
Yes I did tried to run other list of commands. Command route add default gw failed.

# ifconfig eth0 192.168.0.2 up
# route add default gw 192.168.1.1
SIOCADDRT: Network is unreachable

I forgot to mention this in my reply. Do you know what exactly is going on? I do have network cable connected to router.

Looking forward to any help.
 
Old 08-04-2005, 01:55 PM   #7
RHrulz
Member
 
Registered: Jul 2002
Location: Troy, KS
Distribution: Mandrake 10.1
Posts: 57

Rep: Reputation: 15
You still haven't answered if you are running DHCP on your router. Also,

Code:
# ifconfig eth0 192.168.0.2 up
# route add default gw 192.168.1.1
will not work correctly because you are typing 2 different subnets. Not sure if it was a typo.

make sure the 'route add default gw' is the IP address of your router and the 'ifconfig eth0' address is an unused address on the same network.

HTH
 
Old 08-04-2005, 09:16 PM   #8
rgouda
LQ Newbie
 
Registered: Jul 2005
Location: New York
Posts: 6

Original Poster
Rep: Reputation: 0
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

# dmesg | grep eth
e100: eth0: Intel(R) PRO/100 Network connection


Thanks,
Gouda
 
Old 08-04-2005, 09:36 PM   #9
rgouda
LQ Newbie
 
Registered: Jul 2005
Location: New York
Posts: 6

Original Poster
Rep: Reputation: 0
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Time allowed to bring up network? gjhicks Linux - Networking 2 03-09-2005 05:03 AM
how do i bring the linux window into a lindows Os ErichKnoop Red Hat 1 02-27-2004 11:19 AM
Bring order to Linux How-tos oudent Linux - General 7 01-25-2004 07:49 PM
Bring down network & restart raypen Slackware 1 12-03-2002 04:43 AM
time to bring up network mathfeel Linux - General 3 08-18-2002 02:20 AM


All times are GMT -5. The time now is 04:36 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration