Re: ifconfig changing a routing table?

From: Ross Vandegrift
Date: Sat Sep 01 2007 - 12:50:05 EST


On Fri, Aug 31, 2007 at 03:55:53AM +0000, Dan Stromberg wrote:
> Is anyone on the list familiar with ifconfig up and/or ip link up
> changing a routing table? How does the kernel decide what route to add
> in such a circumstance?

By the parameteres you supplied for the interface configuration.

So, if you're getting a connected route for 10.3.0.0/16 out of dev
eth0, it's because you assigned some IP in that subnet to that device,
with a netmask of 255.255.0.0

Check that your netmask is correct.


--
Ross Vandegrift
ross@xxxxxxxxxxx

"The good Christian should beware of mathematicians, and all those who
make empty prophecies. The danger already exists that the mathematicians
have made a covenant with the devil to darken the spirit and to confine
man in the bonds of Hell."
--St. Augustine, De Genesi ad Litteram, Book II, xviii, 37
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/