Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Routing problem on 1.4rc2
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Vxster
n00b
n00b


Joined: 16 Jan 2003
Posts: 66
Location: London, UK

PostPosted: Fri Jan 17, 2003 11:56 am    Post subject: Routing problem on 1.4rc2 Reply with quote

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
View user's profile Send private message
TaboZ
n00b
n00b


Joined: 30 May 2002
Posts: 49

PostPosted: Fri Jan 17, 2003 12:16 pm    Post subject: netstat -nr Reply with quote

what does netstat -nr give you?
Back to top
View user's profile Send private message
Vxster
n00b
n00b


Joined: 16 Jan 2003
Posts: 66
Location: London, UK

PostPosted: Fri Jan 17, 2003 12:17 pm    Post subject: Reply with quote

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
View user's profile Send private message
TaboZ
n00b
n00b


Joined: 30 May 2002
Posts: 49

PostPosted: Fri Jan 17, 2003 12:19 pm    Post subject: ping? Reply with quote

Can you ping your default gateway?
Back to top
View user's profile Send private message
Vxster
n00b
n00b


Joined: 16 Jan 2003
Posts: 66
Location: London, UK

PostPosted: Fri Jan 17, 2003 12:21 pm    Post subject: ping Reply with quote

default gateway gives me 100% packet loss.
localhost is fine..replies
Back to top
View user's profile Send private message
TaboZ
n00b
n00b


Joined: 30 May 2002
Posts: 49

PostPosted: Fri Jan 17, 2003 12:24 pm    Post subject: well Reply with quote

Check your cables, check the firewall on the default gateway..
Back to top
View user's profile Send private message
Vxster
n00b
n00b


Joined: 16 Jan 2003
Posts: 66
Location: London, UK

PostPosted: Fri Jan 17, 2003 12:26 pm    Post subject: Reply with quote

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
View user's profile Send private message
TaboZ
n00b
n00b


Joined: 30 May 2002
Posts: 49

PostPosted: Fri Jan 17, 2003 12:31 pm    Post subject: netmask Reply with quote

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
View user's profile Send private message
Vxster
n00b
n00b


Joined: 16 Jan 2003
Posts: 66
Location: London, UK

PostPosted: Fri Jan 17, 2003 12:45 pm    Post subject: Reply with quote

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
View user's profile Send private message
TaboZ
n00b
n00b


Joined: 30 May 2002
Posts: 49

PostPosted: Fri Jan 17, 2003 12:49 pm    Post subject: sorry Reply with quote

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
View user's profile Send private message
TaboZ
n00b
n00b


Joined: 30 May 2002
Posts: 49

PostPosted: Fri Jan 17, 2003 12:51 pm    Post subject: one last shot Reply with quote

you said you can ping localhost. Can you ping 10.49.42.95 ?
Back to top
View user's profile Send private message
Vxster
n00b
n00b


Joined: 16 Jan 2003
Posts: 66
Location: London, UK

PostPosted: Fri Jan 17, 2003 1:37 pm    Post subject: Reply with quote

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
View user's profile Send private message
TaboZ
n00b
n00b


Joined: 30 May 2002
Posts: 49

PostPosted: Fri Jan 17, 2003 1:41 pm    Post subject: Another shot Reply with quote

try route add default gw eth0

See what happens

Regards
Back to top
View user's profile Send private message
Vxster
n00b
n00b


Joined: 16 Jan 2003
Posts: 66
Location: London, UK

PostPosted: Fri Jan 17, 2003 2:56 pm    Post subject: Hmmm Reply with quote

Doesn't do much...don't get my prompt back
Back to top
View user's profile Send private message
Vxster
n00b
n00b


Joined: 16 Jan 2003
Posts: 66
Location: London, UK

PostPosted: Fri Jan 17, 2003 3:02 pm    Post subject: Reply with quote

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
View user's profile Send private message
Vxster
n00b
n00b


Joined: 16 Jan 2003
Posts: 66
Location: London, UK

PostPosted: Fri Jan 17, 2003 3:46 pm    Post subject: Reply with quote

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
View user's profile Send private message
Vxster
n00b
n00b


Joined: 16 Jan 2003
Posts: 66
Location: London, UK

PostPosted: Fri Jan 17, 2003 4:49 pm    Post subject: I feel so stupid... Reply with quote

The machine I was using...I didn't notice had on-board ethernet.....

:oops:

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 :D ..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
View user's profile Send private message
TaboZ
n00b
n00b


Joined: 30 May 2002
Posts: 49

PostPosted: Fri Jan 17, 2003 6:25 pm    Post subject: happy end Reply with quote

I like happy ends :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum