LinuxQuestions.org
Review your favorite Linux distribution.
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 12-06-2008, 01:08 AM   #1
daveginorge
Member
 
Registered: Oct 2006
Location: Porsgrunn, Norway
Distribution: CentOS 5 / 6 / 7
Posts: 107

Rep: Reputation: 16
Multiple Public IP addresses


Hi all

My gateway box has a public IP address

On my gateway box I use my IP tables to redirect different public IP addresses to different machines on my lan with local addresses.

What if I wanted to have a second gateway box using another public IP address can I just connect the 2 gateway boxes to the bridging modem using a switch?
Code:
          |--|    |--|
--wan-->--|  |->--|  |---->---------------------|--|
          |--|    |  |-->---|--|                |  |
          Bridge  |--|      |  |->-10.0.0.0     |  |->- 192.168.1.0
          modem   Switch    |  |                |--|
                            |--|                Gateway
                            Gateway             Box 2
                            Box 1               IP 88.88.88.81
                            IP 88.88.88.80
Is this the correct approach.

Thanks in advance for your responses.

Dave
 
Old 12-06-2008, 05:17 AM   #2
IBall
Senior Member
 
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088

Rep: Reputation: 62
It could work, but which gateway is doing the authenticating? You may have problems as only one gateway will have a PPPoE session.

Perhaps a better way would be to configure the 2 public IP addresses on the one gateway?

--Ian
 
Old 12-06-2008, 05:29 AM   #3
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
What is the reason for a second gateway. Are the two networks physically separated? You could add a second interface to the one gateway you have to route traffic between the two LANs and the Internet. Are you using one-to-one IP mapping or one-to-many? If one-to-many you aren't required to get a second IP address because you have to LAN network addresses, however for security or performance reasons it might make sense. E.G. an air-gap beyond the Internet switch. If for example, you have one IP for your business and are serving the other to clients in other suites, this may be desirable.

The ip_forwarding function of the firewall functions is a router, so having a second IP address doesn't necessitate having another gateway machine. If you have a range of IPs on the same subnet, then you don't need a switch or second WAN side nic card either. Think of your gateway machine as a router, which is what it is, and configure it as such. Configure routes between the three networks and masquerading rules for NATing the IP addresses for sharing the Internet connection. If you allow the two lan network addresses to communicate, use forwarding.

As an aside note: Technically a gateway device operates at a lower level (MAC addresses) to join network segments on the same subnet. The term gateway used here is fine however as far as I'm concerned. I just don't want you to read about a real (classic) gateway and become confused. A classic gateway was used when switches were too expensive to fragment the traffic load between network segments. A switch is actually a gateway device and may switches can have full gateway functionality. Also a router will have a switch output on LAN side so it is a combination of a gateway and router.

Last edited by jschiwal; 12-06-2008 at 05:48 AM.
 
Old 12-07-2008, 06:18 AM   #4
daveginorge
Member
 
Registered: Oct 2006
Location: Porsgrunn, Norway
Distribution: CentOS 5 / 6 / 7
Posts: 107

Original Poster
Rep: Reputation: 16
Thanks for the responses.

Just for the record.
There is no authentication with my isp. It's a high speed fibre link

You are correct with the business client scenario jschiwal. I want to keep the local business and the public served services totally independent of each other.

I will soon be having 13 allocated public addresses (part of a package) we have 3 different domains. I want the business domain to be separate from the 2 public services domains.
 
  


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
Dynamic DNS and public IP addresses bubblenet Linux - Networking 2 10-21-2008 03:57 AM
Public IP Addresses daveginorge Linux - Server 2 06-30-2008 01:02 AM
Howto Assign Multiple Static Public IP Addresses under SBC's PPPoE Static Ip system o trekgraham Linux - Networking 8 04-17-2007 10:51 AM
Suse 9 oracle 10g installation DHCP-assigned public IP addresses problem adurmus Linux - Server 1 11-18-2006 10:48 PM
Multiple 'public' ip addresses mcleodnine Linux - Networking 3 05-09-2003 02:04 AM

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

All times are GMT -5. The time now is 08:08 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