I have two subnets using the same NIC. One is the main subnet (A) and the
other is a subsidiary subnet (B). Routing is enabled.
For subnet (A) the interface IP is x.y.z.73 and the subnet mask is
255.255.255.248
For subnet (B) the interface IP is x.y.z.81 and the subnet mask is
255.255.255.240
When an address on subnet (B) tries to reach an address on subnet (A) it
is set up to use the subnet (B) NIC IP (x.y.z.81) as the gateway, looking
to have the router route the packet back out through the same NIC.
What the router is doing is sending icmp redirect packets telling the
address on Subnet (B) to go direct to the address on subnet (A).
The relevant parts of the route table are:
Destination Gateway Genmask Flags Metric Ref Use Iface
x.y.z.73 0.0.0.0 255.255.255.255 UH 0 0 0 eth1
x.y.z.72 0.0.0.0 255.255.255.248 U 0 0 0 eth1
x.y.z.80 0.0.0.0 255.255.255.240 U 0 0 0 eth1
and from ifconfig:
eth1 Link encap:Ethernet HWaddr 00:00:1B:34:66:1A
inet addr:x.y.z.73 Bcast:x.y.z.79 Mask:255.255.255.248
eth1:0 Link encap:Ethernet HWaddr 00:00:1B:34:66:1A
inet addr:x.y.z.81 Bcast:x.y.z.95 Mask:255.255.255.240
The question is "How do I stop the redirect messages?"
--
Howard.
______________________________________________________
LANNet Computing Associates <http://www.lannet.com.au>
--
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug