[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: linux routing



Kevin wrote:
> 
> Well apparently my art career wasnt as promsing as I thought.  I'll try
> again:
> 
> internet ->eth0 -> 38.185.233.175 -> eth1 -> box1 (38.185.233.176) and box2
> (38.185.233.177)

Just to get clear: do you have three boxes (router, box1, box2) with ips
38.185.233.175 to 38.185.233.177 and router having a second ip for the
internet connection on eth0 or do you have two boxes (box1, box2) with
ips 38.185.233.176 to 38.185.233.177 for internal traffic and box1 is
the router with the ip 38.185.233.175 for the internet connection?

In the first case you need the second ip to create a rouleset for your
routing table.

In the second case all subnet masks for every ip should be one of these:
255.255.255.240, 255.255.255.248, 255.255.255.252 or 255.255.255.254

So you only have to configure box2's gateway as 38.185.233.176 and add
the default route for mask 0.0.0.0 to 38.185.233.175. And don't forget
to configure your kernel for ip forwarding.

See NET3-4-HOWTO.


Juergen


Reply to: