Archaic wrote: > Currently the networking scripts allow only for one default gateway. > However, each interface should have it's own.
Sorry to be late, but I've been out of town. There can only be one default gateway. The way the routing table works is to compare the network of the destination address and the routing table entry. If the entries match, that interface is used. Example using net tools: Kernel IP routing table Destination Gateway Genmask Flags Metric Iface 172.24.0.0 0.0.0.0 255.255.0.0 U 0 eth0 172.24.0.0 0.0.0.0 255.255.0.0 U 0 eth1 0.0.0.0 172.24.0.2 0.0.0.0 UG 1 eth0 Use the destination IP in the packet and the Genmask for each line to determine the network. Compare to that line entry Destination, if it matches, that entry is a candidate. With multiple matches in a routing situtation, the Metric comes into play. For the default gateway, the network/mask is 0.0.0.0/0.0.0.0 and always matches -- hence it is the default. In this example, there are indeed two nics attached to the same network. It is probably not necessary to have two nics here, but one is a backup in case of failure. -- Bruce P.S. UNIX II, Q3, Mid-term Exam: Q. When is a packet sent to the default gateway? A. When the destination address does not match a specfic entry in the routing table. -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
