Help - Search - Members - Calendar
Full Version: Help--setting Up Linux Router Redhat 9.0
Linuxhelp > Support > Technical Support
crader
I am wanting to set up a linux router for 3 different networks...NetA, NetB, and internet.
The internet will be a PPPoE and be on DSL.
NetA will be a internal subnet with address of 192.168.1.1-126 subnet will be 255.255.255.128
NetB will be a internal subnet with address of 192.168.1.129-254 subnet will be 255.255.255.128
The linux computer(router) will have three network cards in it. eth0 (internet-?), eth1 (netA-192.168.1.1), and eth2 (netB-192.168.1.129). Eth0 will go to the dsl modem, eth1 will go to a hub for netA, and eth2 will go to a hub for netB.
The Routers purpose is to route the internet to both subnets and block traffic between the two subnets (netA and netB).

How do I go about setting this up? Will the router I proposed do the trick or am I way off base here?
What IP addy should I assign the eth0 for the internet? (I was wanting to assign 192.168.1.1).

Thank you for your help.
hughesjr
Yes, that will work...

Are you going to connect eth0 to the DSL modem directly? If so, it will be getting it's IP address from the ISP via DHCP.

I would use full Class C's for each network (192.168.1.0 and 192.168.2.0 with 255.255.255.0 subnet masks) for ease eth1 would be IP 192.168.1.1 and eth2 would be 192.168.2.1.

You will then need to setup IP Masqurading and iptables on the Linux Machine.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2017 Invision Power Services, Inc.