RE: IP forwarding

Glynn Clements (glynn@sensei.co.uk)
Thu, 1 Oct 1998 01:17:31 +0100 (BST)


Neil Moore-Smith wrote:

> The routing and interface config is as follows:-
>
> Destination Gateway Genmask Flags Metric Ref Use Iface
> localnet * 255.255.255.224 U 28007 0 5 eth0
> 192.168.0.0 * 255.255.255.0 U 31543 0 4 eth1
> loopback * 255.0.0.0 U 0 0 4 lo
> default 194.200.135.1 0.0.0.0 UG 1 0 0 eth0

Presumably `localnet' is 194.200.135.0? If so, then the above is
correct.

However, do all of the other systems know about this router?

The systems on the eth0 (194.200.135.0) network will need

route add -net 192.168.0.0 gw 194.200.135.12

and those on the eth1 (192.168.0.0) network will need

route add -net 194.200.135.0 netmask 255.255.255.224 gw 192.168.0.1

or even just:

route add default gw 192.168.0.1

-- 
Glynn Clements <glynn@sensei.co.uk>
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.rutgers.edu