<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Giuliano Natali escribió:
<blockquote
cite="mid:128d1f3b9ef386f765ac1179bf27fc61.squirrel@www.openit.it"
type="cite">
<pre wrap="">Jose Maria Ramirez wrote:
</pre>
<blockquote type="cite">
<pre wrap="">auto vmbr1
iface vmbr1 inet static
address xxx.xxx.xxx.60
netmask 255.255.255.0
gateway xxx.xxx.xxx.9
up route add -net xxx.xxx.xx.0 netmask 255.255.255.0 gw xxx.xxx.xxx.254
down route del -net xxx.xxx.xxx.0 netmask 255.255.255.0 gw xxx.xxx.xxx.254
bridge_ports eth1
bridge_stp off
bridge_fd 0
And i can see ok, in the proxmox interface.
</pre>
</blockquote>
<pre wrap="">
probably is ok in the proxmox interface but not in the routing...
You add two default gateways in the main routing table and?
This is not correct.
If you want to use multiple gateways you should create multiple tables
in /etc/iproute2/rt_tables and so on.
Writing like you did is possible but does not work
Simple example with multiple gateway
auto eth0
iface eth0 inet static
address 1.1.1.2
netmask 255.255.255.0
broadcast 1.1.1.255
#gateway 1.1.1.1 REMOVED
network 1.1.1.0
auto eth1
iface eth1 inet static
address 2.2.2.2
netmask 255.255.255.0
broadcast 2.2.2.255
#gateway 2.2.2.1 REMOVED
network 2.2.2.0
/etc/iproute2/rt_tables 2 routing tables:
200 hdsl
201 wifi
Populating routing tables
Routes for our networks:
ip route add 1.1.1.0/24 dev eth0 src 1.1.1.2 table hdsl
ip route add default via 1.1.1.1 table hdsl
ip route add 2.2.2.0/24 dev eth1 src 2.2.2.2 table wifi
ip route add default via 2.2.2.1 table wifi
Using rules:
ip rule add from 1.1.1.2 table hdsl
ip rule add from 2.2.2.2 table wifi
Add loopback:
ip route add 127.0.0.0/8 dev lo table hdsl
ip route add 127.0.0.0/8 dev lo table wifi
Now we can set the default routing table:
ip route add default scope global nexthop via 1.1.1.1 dev eth0 weight
1 nexthop via 2.2.2.1 dev eth1 weight 1
With the weight set to 1 we have a balancing system
Sorry, Diaolin
</pre>
</blockquote>
Hi,<br>
<br>
Thanks for the tips. I'll change this options. I'm a little newbe in
the networking.<br>
<br>
Regards<br>
<br>
<div class="moz-signature">-- <br>
<img src="cid:part1.08010106.01000202@cosmantenimiento.com"
border="0"></div>
</body>
</html>