LinuxQuestions.org
Help answer threads with 0 replies.
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-30-2011, 01:02 AM   #1
oasis16
LQ Newbie
 
Registered: Mar 2011
Posts: 1

Rep: Reputation: 0
How to bridge different ISP


Dear all,

i have two ISP, and i want to bridge each IP. Here my example;

ISP one : 10.10.10.1/29
ISP two : 172.16.100.1/28

my network design,

ISP one -- Bridge -- ISP two
##########|
########Switch
##########|
#######USER / Server
(with different IP for each server,
from different ISP)

the example bridge with single ISP;
Code:
brctl addbr br0
brctl addif br0 eth0
brctl addif br0 eth1
#adding ip for eth0 and eth1
ifconfig eth0 0.0.0.0
ifconfig eth1 0.0.0.0
ifconfig eth0 promisc up
ifconfig eth1 promisc up
brctl sethello br0 1
brctl setmaxage br0 4
brctl setfd br0 4
#adding ip to bridge interface (br0)
ifconfig br0 10.10.10.120 up
#adding internet gateway
route add default gw 10.10.xxx.xxx
can we setup for two ISP with different gateway ??
 
Old 04-18-2011, 11:40 AM   #2
xaminmo
LQ Newbie
 
Registered: Feb 2010
Location: TX
Distribution: Debian
Posts: 10

Rep: Reputation: 4
If you bridge, then your gateway doesn't matter. Each user needs two IPs and two gateways. Windows users won't really load balance between the routes.

With two ISPs it's better to use a router appliance that will manage to ISPs for you.

If you really want Linux to do this, then how you proceed depends on where your IPs came from.

If you have IPs from IANA, then you could use BGP and broadcast on your own ASN through both ISPs. This is how the bigger networks do it.

If you do NOT have IPs from IANA, then you must set up dual-homed NAT on the Linux box. Then, set up something to load balance your outbound traffic. This can be static routes; equal metric static routes for 0.0.0.0; or a routing protocol such as OSPF with areas defined.
 
  


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
One Box ISP Solution To Run An ISP swamprat Linux - Software 1 05-08-2008 06:25 PM
when use Bridge nima0102 Linux - Networking 2 10-28-2007 03:20 PM
Can ISP Static IP be used by another ISP depam Linux - Networking 1 07-23-2007 11:55 AM
ISP uses bridge mode - help required with new router kwacka Linux - Networking 3 01-06-2006 12:33 PM
Changing ISP, apt-get can not see new ISP proxy linx win Debian 0 01-05-2005 03:41 AM

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

All times are GMT -5. The time now is 11:22 AM.

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