Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Interface aliases messing up routing
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
SamBuca
n00b
n00b


Joined: 18 Mar 2003
Posts: 27

PostPosted: Sat Nov 08, 2003 9:33 pm    Post subject: Interface aliases messing up routing Reply with quote

My /etc/conf.d/net:

Code:

iface_eth0="64.xx.xxx.xxx broadcast 64.xx.xxx.255 netmask 255.255.255.224"
gateway="eth0/64.xx.xxx.xxx"


I wanted to add another IP, so I added an alias directive to the file:

Code:

alias_eth0="64.xx.xxx.yyy"


For some reason, this caused the routing tables to go haywire. *Any* IP that started with 64 would give a "no route to host" error. The routing table showed a new net was created with destination "64.0.0.0"...and when I did 'route' with no args it showed the net as "64.0.0.0.ptr.us". When I remove the alias reference and it would redo the routing tables, that would remove the problem and I can reach 64.0.0.0 addresses again.

I have multicasting enabled in the kernel and didn't specify any additional options in the file. Any ideas?

Bonus points:

I realize that it's a convenience to have an init.d script shutdown dependencies when it shuts itself down, but is there a way for it to bring back the other init.d scripts that were started? If I restart net.eth0 to redo my routing tables, it kills off EVERYTHING related to the net and doesn't bring it back when it starts up again.
Back to top
View user's profile Send private message
tam1138
Tux's lil' helper
Tux's lil' helper


Joined: 28 Oct 2003
Posts: 103

PostPosted: Sat Nov 08, 2003 10:50 pm    Post subject: Reply with quote

I would be interested in seeing the outputs of "/sbin/ifconfig -a" and "/sbin/route -n".
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