LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices


Reply
  Search this Thread
Old 11-02-2005, 07:19 PM   #1
thymes
LQ Newbie
 
Registered: Nov 2005
Posts: 10

Rep: Reputation: 0
eth0 not in routing table


Hi there,

I am trying to get connected onto a network with a DHCP setting, 3Com PCI card in FC 3. There has been no problem, but now that it is connected to a new DSL service, IP address can not be determined. I checked 'lsmod', 'lspci', whose output seems to be as expected.

'ifconfig' yields 'lo' and 'eth0'. 'eth0' section has an unexpected output, which includes what seems to be 'IPv6' (shows inet6 addr) without inet addreess. Under GUI setting I did not choose IPv6 for eth0.

'route' command yields:

169.254.0.0 * 255.255.0.0 U 0 0 0 lo

which misses 'eth0'. 'ifconfig' does show 127.0.0.1 for 'lo', and the above
result contradicts what is in ifconfig.

The first time when my laptop was moved to a new connection, it complained that the link in /etc/sysconfig/network-scripts/ifcfg-lo.rpmsave does not have a target, so I created one by copying from another location.
Since then when I try to activat 'eth0', IP address determination fails.

Ideas will be much appreciated !
 
Old 11-02-2005, 09:58 PM   #2
mijohnst
Member
 
Registered: Nov 2003
Location: Huntsville, AL
Distribution: RHEL, Solaris, OSX, SuSE
Posts: 419

Rep: Reputation: 31
Have you tried "route add -net default gw 192.168.1.1 dev eth0" to see if you could get it going?
 
Old 11-02-2005, 11:24 PM   #3
thymes
LQ Newbie
 
Registered: Nov 2005
Posts: 10

Original Poster
Rep: Reputation: 0
..

Last edited by thymes; 11-02-2005 at 11:34 PM.
 
Old 11-02-2005, 11:32 PM   #4
thymes
LQ Newbie
 
Registered: Nov 2005
Posts: 10

Original Poster
Rep: Reputation: 0
Hi,

Thanks for the suggestion.

The output of
# route add -net default gw 192.168.1.1 dev eth0
>> SIOCADDRT: NETWORK is unreachable

What would this mean ?

Another thing I noticed is that 'ifconfig -a' shows 'sit0'. I have not explicitly enabled ipv6 previously, and /var/log/messages says

'dhclient sit0: unkonwn hardware address type 776'.

Previously (maybe the last time before I moved to a new network) I used a netgear router with a wireless card - would it have somehow affected the setting ?

Last edited by thymes; 11-03-2005 at 12:19 AM.
 
Old 11-03-2005, 01:14 PM   #5
avirup dasgupta
Member
 
Registered: Aug 2003
Distribution: Redhat , Fedora Core4, DSL,Solaris
Posts: 49

Rep: Reputation: 15
"169.254.0.0"
==========

Addresses in the range 169.254.0.0 to 169.254.255.255 are used automatically by some PCs and Macs when they are configured to use IP, do not have a static IP Address assigned, and are unable to obtain an IP address using DHCP.
 
Old 11-04-2005, 03:09 AM   #6
thymes
LQ Newbie
 
Registered: Nov 2005
Posts: 10

Original Poster
Rep: Reputation: 0
Thanks. If I try

# route add -net default gw 169.254.0.0 dev eth0

it still does not allow me to add a route. So just to try out, I did

# ifconfig eth0 169.254.0.1 netmask 255.0.0.0
then did the above route command, 'eth0' does show up in a routing table.

My question now is how to figure 'eth0' to work with DHCP.
Any ideas ?
 
Old 11-04-2005, 01:07 PM   #7
mijohnst
Member
 
Registered: Nov 2003
Location: Huntsville, AL
Distribution: RHEL, Solaris, OSX, SuSE
Posts: 419

Rep: Reputation: 31
Edit:

/etc/sysconfig/network-scripts/ifcfg-eth0


Add:

BOOTPROTO=dhcp

Run:

/etc/rc.d/init.d/network restart

or

ifdown eth0
ifup eth0

# you'll need to be root for all this.
 
Old 11-04-2005, 09:40 PM   #8
thymes
LQ Newbie
 
Registered: Nov 2005
Posts: 10

Original Poster
Rep: Reputation: 0
Thanks. The script for eth0 already has the line to have DHCP, and still it does not work.

Just thinking about it, my previous connection had a router and a modem, but the current one only has a modem. Will it be a possibility that my laptop is looking for a modem ?
If so, how to detect this and how to fix this problem ?
 
Old 11-05-2005, 12:14 PM   #9
fur
Member
 
Registered: Dec 2003
Distribution: Debian, FreeBSD
Posts: 310

Rep: Reputation: 35
With your current connection do you have a static IP, or is it dynamic? If you dont know call your ISP, and ask. Seeing how you are posting I'm guessing you have another computer that you are hooking up to this modem?

If so make sure you reboot the modem when you switch from one computer to another. Also did you ever give the ISP the MAC address of your other computers ethernet card?
 
Old 11-05-2005, 03:06 PM   #10
crispyleif
Member
 
Registered: Mar 2005
Location: Norway, by the coast
Distribution: Debian and the likes
Posts: 190

Rep: Reputation: 31
Hi

This is a long shot, just so that's said


I once had the same dilemma with a wireless connection and ndiswrapper

If you type "arp" I guess you get no output or HWADRESS (Incomplete) ?

If so, find the module that belongs to your NIC , rmmod that module, modprobe it, restart network services (don't reboot) and type "arp" again (or route). It might just show up probably.

If an expert reads this : I know, I know.... but it worked once for me

Good luck
 
Old 11-06-2005, 06:28 AM   #11
thymes
LQ Newbie
 
Registered: Nov 2005
Posts: 10

Original Poster
Rep: Reputation: 0
Thanks all. Yes, I have tried your suggesetions, but the same problem persists ...
Help !
 
Old 11-06-2005, 10:59 AM   #12
nistelrooy
Member
 
Registered: Oct 2003
Location: Singapore
Distribution: debian
Posts: 162

Rep: Reputation: 30
It's weird, my 3com 3c-905tx card also faces the same issue in debian 3.1. But i switched to a Intel card already.

Try setting a static IP address and see whether it is able to ping the router
 
Old 11-06-2005, 05:07 PM   #13
crispyleif
Member
 
Registered: Mar 2005
Location: Norway, by the coast
Distribution: Debian and the likes
Posts: 190

Rep: Reputation: 31
3com card did that to me to in Debian, MAC address kept disappearing .... not experiencing any of that are you ? Just a thought
 
Old 11-06-2005, 08:00 PM   #14
charon79m
Member
 
Registered: Oct 2003
Distribution: Just about anything... so long as it is Debain based.
Posts: 297

Rep: Reputation: 30
I believe the issue is that the network device, eth0, is looking for a DHCP address and it is not receiving one. That being said, this device is not getting one, so the interface is not coming up. Since the device is not up it will not show in the route table.

Mike K.
 
Old 11-06-2005, 08:53 PM   #15
thymes
LQ Newbie
 
Registered: Nov 2005
Posts: 10

Original Poster
Rep: Reputation: 0
Thanks for replies.

As I said earlier, I do not have a router for this new connection. I think that might cause a problem since when I had a router/modem combination I had no problem, and not it suddenly pops up. In fact before the router/modem combination I did not have a problem connecting to this very network.

Obviously eth0 is not getting IP address, and if I assign IP address etc., eth0 does get active, but obviously my network is set up for DHCP.

So the problem does still exist !

Last edited by thymes; 11-06-2005 at 09:21 PM.
 
  


Reply



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
routing table arvind kumar Linux - Networking 2 06-08-2005 11:59 PM
Help with a Routing Table maginotjr Linux - Networking 4 06-06-2005 09:49 AM
Routing table and OBSD blood_omen *BSD 3 04-13-2005 04:53 PM
Linux Routing Table Zepiroth Linux - Networking 11 01-28-2004 01:29 AM
routing table upr8830 Linux - Networking 6 06-18-2003 03:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking

All times are GMT -5. The time now is 08:19 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
Open Source Consulting | Domain Registration