Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )



Advanced DNS Management
New ZoneEdit. New Managment.

FREE DNS Is Back

Sign Up Now
 
Reply to this topicStart new topic
> Help--setting Up Linux Router Redhat 9.0, Help--Setting up Linux Router Redhat 9.0
crader
post Sep 25 2003, 10:30 PM
Post #1


Whats this Lie-nix Thing?
*

Group: Members
Posts: 2
Joined: 25-September 03
Member No.: 1,528



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.
Go to the top of the page
 
+Quote Post
hughesjr
post Sep 26 2003, 12:00 PM
Post #2


Its GNU/Linuxhelp.net
*******

Group: Admin
Posts: 3,433
Joined: 25-July 03
From: Corpus Chrsiti, TX, USA
Member No.: 1,151



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.


--------------------
Johnny Hughes
hughesjr@linuxhelp.net
Enterprise Alternatives: CentOS, WhiteBoxEL
Favorite Workstation Distros (in order): CentOS, Gentoo, Debian Sarge, Ubuntu, Mandrake, FedoraCore, Slackware, SUSE
Favorite Server Distros (in order): CentOS, WhiteBoxEL, Debian Sarge, Slackware, Mandrake, FedoraCore, Gentoo, SUSE
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 17th December 2017 - 06:27 PM