Thanks Pascal,
On 5 May, 15:32, Pascal Hambourg <boite-a-s...@plouf.fr.eu.org> wrote:
> > I've a linux box with say, eth0, eth1. This is using PPPoE to connect
> > to the internet, hence I have a ppp0 interface tied to eth0. Now, my
> > ISP gives me a 8 address subnet, say, a.b.c.0-7. The linux box is the
> > router, and is .6, and I'd like to be able IPs .1-.5 for my own hosts,
> > connected via a switch to eth1.
>
> > What is the correct way to achieve this?
>
> Routing. Simple good old plain static routing.
> Enable IP forwarding on the box and give eth1 the address a.b.c.6/29.
> Give each host an address within a.b.c.1-5/29 and default gateway a.b.c.6.
ppp0 is currently a.b.c.6, is making eth1 the same likely to cause any
problems? Is it then simply a matter of running,
route add a.b.c.0 netmask 255.255.255.242 dev eth1?
Regards,
Chris
|