9d9c Two NAT routers on the same subnet? - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Server & Networking > Networking

Networking Network related discussions (including general TCP/IP stuff, routing, etc).

Reply
 
Thread Tools Display Modes
  #1  
Old February 18th, 2012, 01:20
mlager mlager is offline
Junior Member
 
Join Date: Jan 2011
Posts: 50
Thanks: 8
Thanked 0 Times in 0 Posts
Default Two NAT routers on the same subnet?

I have a network, 172.16.3.0/24, that has a NAT router (PF)

Ext: A.A.A.A
Internal: 172.16.3.1

Currently, clients use 172.16.3.1 as their default gateway for the Internet. I want to bring in a second Internet connection and have certain devices obtain the Internet through it. Is it possible to add a second NAT router, such as:

Ext: B.B.B.B
Internal: 172.16.3.2

And then have certain devices on the network use a default gateway of 172.16.3.1 to push trafic through A.A.A.A and other devices on the network use a default gateway of 172.16.3.2 to push traffic through B.B.B.B? Both internal interfaces would be on the same switch.

It seems logical and I can't figure out why that wouldn't work, but I thought I'd check with some experts first.

Thanks for any advice!

Last edited by DutchDaemon; February 18th, 2012 at 02:55.
Reply With Quote
  #2  
Old February 18th, 2012, 03:16
bbzz bbzz is offline
Member
 
Join Date: Nov 2010
Location: random
Posts: 832
Thanks: 77
Thanked 120 Times in 80 Posts
Default

Yes, that's possible, the fact that both gateways are one same LAN doesn't matter.

You could also have one gateway which load balances over two Internet connections.
If you have multiple exit points, look into CARP.
Reply With Quote
  #3  
Old February 18th, 2012, 04:06
mlager mlager is offline
Junior Member
 
Join Date: Jan 2011
Posts: 50
Thanks: 8
Thanked 0 Times in 0 Posts
Default

Great thanks for the response... Now I've run into something that is pretty annoying. I brought in a U-Verse connection from AT&T (B.B.B.B) and the useless modem / router they included has not ability to disable its DHCP functionality. And I don't want anything grabbing addresses from it because the only point of the AT&T connection is to power the VOIP system. But it hands out addresses and forces itself to be the default gateway.

I'm not on-site, but it seems my only option, at least with this hardware, is to install another network card in the VOIP system, and plug directly into that. The other network card would plug into the existing network. That way the existing network would never query the new AT&T router for addresses and would just get them from the FreeBSD system like they always did.

I guess I could go static IP addresses on clients in the meantime.
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Solved] Two NICs with same subnet elcopion Networking 5 August 2nd, 2011 21:00
Network Configuration of FreeBSD Software Routers MikeyWines Networking 5 September 10th, 2010 15:32
[Solved] multi subnet in NAT can't ping each other cheath Networking 9 September 5th, 2010 04:41
[Solved] Two routers in one network Nokobon Networking 5 May 17th, 2009 10:50
Any plans for port FreeBSD to Asus WL500GP routers like? ssh2 Embedded 5 January 13th, 2009 07:29


All times are GMT +1. The time now is 12:58.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0