View previous topic :: View next topic |
Author |
Message |
Vxster n00b
Joined: 16 Jan 2003 Posts: 66 Location: London, UK
|
Posted: Fri Jan 17, 2003 11:56 am Post subject: Routing problem on 1.4rc2 |
|
|
I am having a problem routing on my gentoo. Specifically, at boot..everything seems to come up fine...default gateway is set, eth0 comes up and I login, go for ifconfig and all looks fine.
However, if i type 'route'...it takes forever and a day to report back.
Code: | Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.49.0.0 * 255.255.0.0 U 0 0 0 eth0
default 10.49.23.1 0.0.0.0 UG 1 0 0 eth0
|
Am I missing something? I have checked a few times in the install guide and I don't think i missed anything out. Basically, i thought everything looked okay until I try something like ssh and i get 'no route to host'
If anyone has an idea..I would much appreciate it |
|
Back to top |
|
|
TaboZ n00b
Joined: 30 May 2002 Posts: 49
|
Posted: Fri Jan 17, 2003 12:16 pm Post subject: netstat -nr |
|
|
what does netstat -nr give you? |
|
Back to top |
|
|
Vxster n00b
Joined: 16 Jan 2003 Posts: 66 Location: London, UK
|
Posted: Fri Jan 17, 2003 12:17 pm Post subject: |
|
|
Pretty much the same:
10.49.0.0 to 0.0.0.0
0.0.0.0 to 10.49.23.1 |
|
Back to top |
|
|
TaboZ n00b
Joined: 30 May 2002 Posts: 49
|
Posted: Fri Jan 17, 2003 12:19 pm Post subject: ping? |
|
|
Can you ping your default gateway? |
|
Back to top |
|
|
Vxster n00b
Joined: 16 Jan 2003 Posts: 66 Location: London, UK
|
Posted: Fri Jan 17, 2003 12:21 pm Post subject: ping |
|
|
default gateway gives me 100% packet loss.
localhost is fine..replies |
|
Back to top |
|
|
TaboZ n00b
Joined: 30 May 2002 Posts: 49
|
Posted: Fri Jan 17, 2003 12:24 pm Post subject: well |
|
|
Check your cables, check the firewall on the default gateway.. |
|
Back to top |
|
|
Vxster n00b
Joined: 16 Jan 2003 Posts: 66 Location: London, UK
|
Posted: Fri Jan 17, 2003 12:26 pm Post subject: |
|
|
Nah...firewall and cables are fine...I know this to be true and if I boot from gentooLive CD and manually add ifconfig and route..its works perfectly with same details...its how I emerged!
I am puzzled |
|
Back to top |
|
|
TaboZ n00b
Joined: 30 May 2002 Posts: 49
|
Posted: Fri Jan 17, 2003 12:31 pm Post subject: netmask |
|
|
Yeah confusing.
one more thing i am wondering about.
Quote: |
10.49.0.0 to 0.0.0.0
0.0.0.0 to 10.49.23.1
|
please specify excactly your ifconfig command/settings. because i think it should read:
Code: |
10.49.23.0 to 0.0.0.0
|
in the 1st line. |
|
Back to top |
|
|
Vxster n00b
Joined: 16 Jan 2003 Posts: 66 Location: London, UK
|
Posted: Fri Jan 17, 2003 12:45 pm Post subject: |
|
|
No, I want 10.49.0.0 as my network cos thats how it is setup here at work so my sub mask is 255.255.0.0.
Its configuration someplace cos when I booted manually from the CD,
Code: |
ifconfig eth0 10.49.42.95 broadcast 10.49.255.255 netmask 255.255.0.0
|
and
Code: |
route add -net default gw 10.49.23.1 netmask 0.0.0.0 metric 1
|
This works fine so it isn't firewall or cables or anything like that. I have messed up in /etc/conf.d I guess? |
|
Back to top |
|
|
TaboZ n00b
Joined: 30 May 2002 Posts: 49
|
Posted: Fri Jan 17, 2003 12:49 pm Post subject: sorry |
|
|
Dont know how to help you anymore. You could take a look at /etc/conf.d/net indeed.
Good luck and please post solution when you fixed it |
|
Back to top |
|
|
TaboZ n00b
Joined: 30 May 2002 Posts: 49
|
Posted: Fri Jan 17, 2003 12:51 pm Post subject: one last shot |
|
|
you said you can ping localhost. Can you ping 10.49.42.95 ? |
|
Back to top |
|
|
Vxster n00b
Joined: 16 Jan 2003 Posts: 66 Location: London, UK
|
Posted: Fri Jan 17, 2003 1:37 pm Post subject: |
|
|
Yup yup...can ping localhost (as in my hosts file must be okay), 127.0.0.1 and 10.49.42.95.
Can't ping anything else at all.
Interestingly, 'route' takes about a minute to come up...netstat -nr is instantaneous. |
|
Back to top |
|
|
TaboZ n00b
Joined: 30 May 2002 Posts: 49
|
Posted: Fri Jan 17, 2003 1:41 pm Post subject: Another shot |
|
|
try route add default gw eth0
See what happens
Regards |
|
Back to top |
|
|
Vxster n00b
Joined: 16 Jan 2003 Posts: 66 Location: London, UK
|
Posted: Fri Jan 17, 2003 2:56 pm Post subject: Hmmm |
|
|
Doesn't do much...don't get my prompt back |
|
Back to top |
|
|
Vxster n00b
Joined: 16 Jan 2003 Posts: 66 Location: London, UK
|
Posted: Fri Jan 17, 2003 3:02 pm Post subject: |
|
|
Also...eventually it comes back with eth0: unknown host.
I guess its because the default gw wants an IP as an arg not an interface. |
|
Back to top |
|
|
Vxster n00b
Joined: 16 Jan 2003 Posts: 66 Location: London, UK
|
Posted: Fri Jan 17, 2003 3:46 pm Post subject: |
|
|
Well...oookay...its definitely just something odd with routing.
Everything else works fine...can ping localhost and my own IP and 127.0.0.1 and just started up sshd and can connect back to myself.
Just can't see anything else |
|
Back to top |
|
|
Vxster n00b
Joined: 16 Jan 2003 Posts: 66 Location: London, UK
|
Posted: Fri Jan 17, 2003 4:49 pm Post subject: I feel so stupid... |
|
|
The machine I was using...I didn't notice had on-board ethernet.....
When i booted from the gentooLive CD, it recognised the PCI card and used that (thats what my cable was plugged into)....when I compiled my kernel...I obviously compiled the drivers in for the on-board.
Anyways, thanks for the help...no wonder it was difficult to work out....all the config was perfectly correct!
Sorry for being so dumb ..but if I see this sort of thing again...ie 'route' taking forever to come up...I'll know what to ask |
|
Back to top |
|
|
TaboZ n00b
Joined: 30 May 2002 Posts: 49
|
Posted: Fri Jan 17, 2003 6:25 pm Post subject: happy end |
|
|
I like happy ends |
|
Back to top |
|
|
|