SamBuca n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 18 Mar 2003 Posts: 27
|
Posted: Sat Nov 08, 2003 9:33 pm Post subject: Interface aliases messing up routing |
|
|
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. |
|