Re: Subnetting/Routing
From: Rainer Krienke (krienke_at_uni-koblenz.de)
Date: 05/10/05
- Next message: nouknouk: "[NEED HELP] forwarding multicast pakets"
- Previous message: sadoc: "Re: routing frustrations"
- In reply to: Chris Rennert: "Subnetting/Routing"
- Next in thread: Chris Rennert: "Re: Subnetting/Routing"
- Reply: Chris Rennert: "Re: Subnetting/Routing"
- Reply: Raqueeb Hassan: "Re: Subnetting/Routing"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 10 May 2005 16:06:56 +0200
Chris Rennert wrote:
> Hey all,
>
> I have an office situation where I am just about using up all my
> 192.168.1.0/24 addresses. I would like to start another network using
> 192.168.2.0/24 addresses, but also give those addresses the ability to
> access computers on the 192.168.1.0/24 network. I believe a router is
> teh way I want to go, and I have a linux box set up with 2 nics and I am
> try to get it set up to allow that traffic through, but really I am at
> a loss. Could somebody point me in the right direction of what how-tos
> I should read. Or examples I could follow? Any help would be greatly
> appreciated!
Simply configure the two nics in your linux box and then tell it to forward
packets from one interface to the other if needed (so both networks are
connected). This is done by advising linux to do ip forwarding. By doing
this your linux box acts as a router.
To enable ip forwarding say:
echo 1 > /proc/sys/net/ipv4/ip_forward
This has to set each time you boot the machine, so put it in some
init-script or something like this.
Info about this can be found in several Networking howtows and
in /usr/src/linux/Documentation/networking/*
Have a nice day
Rainer
- Next message: nouknouk: "[NEED HELP] forwarding multicast pakets"
- Previous message: sadoc: "Re: routing frustrations"
- In reply to: Chris Rennert: "Subnetting/Routing"
- Next in thread: Chris Rennert: "Re: Subnetting/Routing"
- Reply: Chris Rennert: "Re: Subnetting/Routing"
- Reply: Raqueeb Hassan: "Re: Subnetting/Routing"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|