Linux box should have
route add -net 192.168.2.0 netmask 255.255.255.0 dev eth1
route add -net 192.168.1.0 netmask 255.255.255.0 dev eth0
route add default gw 192.168.1.254
I think it's quite clear. First two networks are set up, then -- default gateway.
Now, it may work just this way. It may not. It depends on the broadband switch. It may handle only 192.168.1.x network, not 192.168.2.x. You may look into its manual and see if it has NAT on only 192.168.1.x subnet or you can also set it up to deal with 192.168.2.x. If you go for two-networks option, remember to set up routing table in the broadband router -- add 192.168.2.0 with netmask 255.255.255.0 and gateway 192.168.1.6
If your broadband router can only handle one network, you need to set up NAT on the Linux box. Write if you need it.
|