LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-05-2004, 10:09 PM   #1
NiM
Member
 
Registered: Aug 2001
Location: UK
Distribution: Mandrake 8.0
Posts: 33

Rep: Reputation: 15
ADSL - Routing Static IPs


Hi,

In a few months I will be setting up a network in my student house.

Our internet connection will be ADSL from the UK provider Zen(.co.uk). We will be granted 8 static, internet-accessible IPs (I am aware that I can only use 5).

My problem is this - I will be using a RedHat Linux box (running the latest stable release, for now lets assume 9) - I have my adsl ethernet modem connected to eth0 and I have eth1 connected to a switch, connected to my 4 client PCs.

I need to know how to route the static IPs from the outside world to the clients (and back again). If possible, I'd like to set all the clients up with their static external IPs, that is, I don't want my clients to hold 192.* addresses.

I'd also like the linux box to have it's own IP.

I am aware that I could buy a hardware router or bridge and save myself a lot of time, but, later, I will need to try and implement some traffic shaping to ensure bandwidth is shared and HTTP always has priority over P2P downloads.

Many thanks for your help,
- Nick
 
Old 03-06-2004, 06:57 AM   #2
linuxxed
Member
 
Registered: Feb 2004
Posts: 273

Rep: Reputation: 30
I see that you don't want to use NAT. OK here it is.

Say your ISP has given you 8 static IPs. One will go to the modem/router (Say Dlink) which authenticates your ADSL connection.

ISP --IP1--[ROUTER/MODEM]--IP1--

You'd want to assign same IP both internally and externally to the Modem/Router. Now get Two NICS for each machine. Assign the static IP to one NIC on each machine. Connect the machines to the router. On the other NIC connect the machines to act as the internal LAN. You can of course choose not to buy the other NIC for each computer but 5 Quid /machine certainly does not hurt much. The purpose of the second NIC is say you want to do LDAP replication or SQL replicaion etc etc .. you can do it via other NIC for security.

Note that you are not firewalled now. Your router/modem will pass all the other IPs (IP2-8) through and your linux boxes need some firewall like Iptables. Two NICS give you the benefit of distinguishing the INTERNET and INTRANET easily and control with IPtables script

Many people prefer Hardware firewalls over software ones. Added security is achieved by placing another piece of hardware in between MODEM/Router and your linux boxes - say another linux box which acts like a firewall/gateway/router. You can assign multiple IPs to this box and prepare a nice iptables script and route packets accordingly. On the other linux boxes you can set your gateway to your linux firewall box. Note that this firewall will eat up another Static IP in this case.

But it all depends upon balancing the security and cost.

Hope this helps.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Routing for eth0 and wlan0 with static IPs on the same network. kelvinlo Linux - Wireless Networking 3 10-15-2007 04:54 PM
ADSL and multiple external static IPs adasko Linux - Networking 3 09-15-2005 07:01 PM
Using static ips with a router jclu Linux - Hardware 2 07-31-2005 05:35 PM
routing problem with 2 static (external) IPs gjmwalsh Linux - Networking 3 05-23-2004 09:17 PM
ifconfig/netconfig in Redhat 9 (static IPs) GomiCowboy Linux - Networking 6 09-07-2003 01:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:38 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration