Messages in this thread | | | Date | Fri, 24 Apr 1998 12:59:25 +1200 | From | Chris Wedgwood <> | Subject | Re: Possible routing bug [2.1.97] |
| |
On Thu, Apr 23, 1998 at 05:18:11PM -0400, Roy P. Turner wrote:
> Why is the local ethernet route listed twice? I also see this on > my 2.1.97 box. > > 206.104.221.243 0.0.0.0 255.255.255.255 UH 0 0 0 eth0 > 206.104.221.242 0.0.0.0 255.255.255.255 UH 0 0 0 eth0 > 206.104.221.241 0.0.0.0 255.255.255.255 UH 0 0 0 eth0 > 206.104.221.240 0.0.0.0 255.255.255.255 UH 0 0 0 eth0 > 206.104.221.244 0.0.0.0 255.255.255.255 UH 0 0 0 eth0
These are host routes - eth0 has more than one IP address bound.
> 206.104.221.224 0.0.0.0 255.255.255.224 U 0 0 0 eth0 > 206.104.221.224 0.0.0.0 255.255.255.224 U 0 0 0 eth0
I'm guessing you added a `localnet' route (as you would have to do in 2.0.x, this is not necessary in 2.1.x as the kernel does it for you. So we end up with two routes the same.
For example:
[root:10] caffeine:~# route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface localnet * 255.255.224.0 U 0 0 0 eth0 localnet * 255.255.224.0 U 0 0 0 eth0 [...]
[root:10] caffeine:~# ifconfig eth0:9 192.168.0.0 netmask 255.255.224.0 [root:10] caffeine:~# route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.0.0 * 255.255.224.0 U 0 0 0 eth0 localnet * 255.255.224.0 U 0 0 0 eth0 localnet * 255.255.224.0 U 0 0 0 eth0 [...]
-Chris
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu
| |