Re: Subnetting/Routing

From: Rainer Krienke (krienke_at_uni-koblenz.de)
Date: 05/10/05


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



Relevant Pages

  • Re: [SLE] Can XP ICS support SuSe DHCP?
    ... XP ICS can use two NICs or one NIC and a dialup modem or one NIC ... > A router is a cheap box, that doesn't draw much electricity and is quite ... Unfortunately, this is a working, existing network where Linux is ...
    (SuSE)
  • Re: Network Connectivity Brick Wall
    ... After trying MANY permutations of hardware and Linux versions, ... I am a Linux "newbie" and not really a network ... able to ping the card itself, but can never ping beyond the NIC. ... But having tried various NICs with at ...
    (alt.os.linux.suse)
  • Re: Is my system secure? What else should I do?
    ... > network functionality for my computing activities (browsing, ... My network shows No presence to the outside world, ... browsing and open for secure browsing. ... Linux is no longer protecting the other computers/devices on your local ...
    (comp.os.linux.security)
  • Network Connectivity Brick Wall
    ... I have been trying to set up a Linux system in my home for about 2 ... I am a Linux "newbie" and not really a network ... able to ping the card itself, but can never ping beyond the NIC. ... But having tried various NICs with at ...
    (alt.os.linux.suse)
  • Re: LONWorks vs. Ethernet
    ... >Linux PC, which also sends signals back to open and close the relays. ... >and how much the chips, transceivers, and external components cost ... >it's far too sensitive to wiring imperfections, and the network ... The AVR is a far superior device to the Neuron chip as far performance ...
    (comp.arch.embedded)