I've got 2 internet connection, one is direct connected to my server and the second i use by default gateway. How can I create 2 default gateway? I want to add default gateway my second internet. How can I solve problem which gateway is used?
Mario
Mario wrote on Mon, 29 Dec 2008 19:55:29 +0100:
I've got 2 internet connection, one is direct connected to my server and the second i use by default gateway. How can I create 2 default gateway?
you can't, that's why it is called "default". You can add gateways to each of your interfaces by adding GATEWAY= to the respective ifcfg file in sysconfig/network-scripts.
Kai
I've got 2 internet connection, one is direct connected to my server and the >
second i use by default gateway. How can I create 2 default gateway?
http://www.policyrouting.org/PolicyRoutingBook/ONLINE/CH05.web.html#5.2
Look for the word "equalize"
On Mon, 29 Dec 2008 21:58:09 +0100 Kai Schaetzl wrote:
Mario wrote on Mon, 29 Dec 2008 19:55:29 +0100:
I've got 2 internet connection, one is direct connected to my server and the second i use by default gateway. How can I create 2 default gateway?
you can't, that's why it is called "default". You can add gateways to each of your interfaces by adding GATEWAY= to the respective ifcfg file in sysconfig/network-scripts.
I have wondered how a load balancing router like the Dlink DI-LB604 works. This router has two WAN hookups so you can attach two modems to it and it does some magic to route your outbound connections between the two Internet connections.
I, too, have two Internet services (one cable and one DSL) and I actually purchased that Dlink router with the objective of being able to use both of my connections at the same time, painlessly. It almost worked, too -- you can read my experience here:
http://www.linux-archive.org/fedora-user/76381-di-lb604-load-balancing-route...
I still have that router gathering dust in my basement as it appears the ssh issue is an insoluble problem.
Since that plan didn't work out, at the moment Isimply have two separate routers on my network, one for each of my Internet services, and set different default gateways on the different computers to share the load somewhat that way.
It would be nice to get everything to work more like that Dlink router was supposed to work, though.
I've got 2 internet connection, one is direct connected to my server and the second i use by default gateway. How can I create 2 default gateway?
you can't, that's why it is called "default". You can add gateways to each of your interfaces by adding GATEWAY= to the respective ifcfg file in sysconfig/network-scripts.
ok, but for example when i connect to one of that interface on port 22, my server doesn't try to use the second gateway? does it use the interface(gateway) on which a connection is started?
Mario
_______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
On Monday 29 December 2008 04:30:30 pm Mario wrote:
I've got 2 internet connection, one is direct connected to my server and the second i use by default gateway. How can I create 2 default gateway?
you can't, that's why it is called "default". You can add gateways to each of your interfaces by adding GATEWAY= to the respective ifcfg file in sysconfig/network-scripts.
ok, but for example when i connect to one of that interface on port 22, my server doesn't try to use the second gateway? does it use the interface(gateway) on which a connection is started?
Have a look at this description of the issues related to multiple network connections.
http://lartc.org/howto/lartc.rpdb.multiple-links.html
For incoming connections, the replies have to go out on the same interface. For traffic originating on your lan, you probably don't care and you can "load balance". This article show you how to do that.
Cheers;
Alex ===
Mario
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Am 29.12.2008 um 19:55 schrieb Mario:
I've got 2 internet connection, one is direct connected to my server and the second i use by default gateway. How can I create 2 default gateway? I want to add default gateway my second internet. How can I solve problem which gateway is used?
pfsense can do this, sort of: http://www.pfsense.org/index.php?option=com_content&task=view&id=40&...
Look for "Outbound Load Balancing"
E.g.: you can use a slow but symmetric line for mail and the other line with the large downstream for surfing. If one line fails, the other takes over completely.
Rainer
Am 29.12.2008 um 19:55 schrieb Mario:
I've got 2 internet connection, one is direct connected to my server and the second i use by default gateway. How can I create 2 default gateway? I want to add default gateway my second internet. How can I solve problem which gateway is used?
pfsense can do this, sort of: http://www.pfsense.org/index.php?option=com_content&task=view&id=40&...
Look for "Outbound Load Balancing"
E.g.: you can use a slow but symmetric line for mail and the other line with the large downstream for surfing. If one line fails, the other takes over completely.
I'd like to do it on CentOS, i think about iptables or something like that
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos