[olug] Routing between two networks
neal r
neallist at wispair.net
Sun Dec 1 16:06:19 UTC 2002
I'm going to assume the machine named 'Gateway' also NATs traffic bound for the internet, and I'm going to pull unix routing commands from memory :-)
I'll also assume Gateway has an external of 68.2.2.2/24 that faces a Cox cable modem.
The default gateway on 'Gateway' should be set to 68.2.2.1
On Gateway you should add a route to 192.168.2.0/24
route add -net 192.168.2.0/24 192.168.1.5
On Laptop you should just have a default route pointed at 192.168.1.1
On 'another computer' you should have a default route pointed at 192.168.2.1
Simple, isn't it?
Jonathan Warren wrote:
> I have a laptop with wireless card and ethernet card.
>
> Gateway 192.168.1.1
> |
> wireless
> |
> laptop 192.168.1.5 , 192.168.2.1
> |
> loopback cable
> |
> another computer 192.168.2.2
>
> What do I need to get the 2.x traffic to route through the laptop? Is it just a matter of static routes or is there more to it than that? Any help would be greatly appreciated.
>
> -Jon W
> _______________________________________________
> OLUG mailing list
> OLUG at olug.org
> http://lists.olug.org/mailman/listinfo/olug
More information about the OLUG
mailing list