Estimados, les hago una consulta rapido!
Cuando tengo una interfaz, con varias IP aliases, que tengo que poner en
GATEWAY en el archivo providers??? Yo lo tengo asi y no me funciona cuando
hago shorewall restart me tira error que no puede remplazar el gateway para
la segunda IP alias.
#NAME NUMBER MARK DUPLICATE INTERFACE GATEWAY
OPTIONS COPY
TELEF01 1 1 main
eth0:201.41.93.210 201.41.93.209 track,balance=1 eth3
TELEF02 2 2 main
eth0:201.41.93.211 201.41.93.209 track,balance=0 eth3
TELEF03 3 3 main
eth0:201.41.93.212 201.41.93.209 track,balance=0 eth3
TELEF04 4 4 main
eth0:201.41.93.213 201.41.93.209 track,balance=0 eth3
IPLAN01 5 5 main eth1
200.41.183.22 track,balance=2 eth3
El archivo /etc/network/interfaces lo tengo asi:
auto eth0
iface eth0 inet static
address 201.41.93.210
netmask 255.255.255.248
post-up ip route add 201.41.93.210/32 dev eth0 src 201.41.93.210 table
TELEF01
post-up ip route add default via 201.41.93.209 table TELEF01
post-up ip rule add from 201.41.93.210 table TELEF01
post-down ip rule del from 201.41.93.210 table TELEF01
auto eth0:1
iface eth0:1 inet static
address 201.41.93.211
netmask 255.255.255.248
post-up ip route add 201.41.93.211/32 dev eth0:1 src 201.41.93.211 table
TELEF02
post-up ip route add default via 201.41.93.209 table TELEF02
post-up ip rule add from 201.41.93.211 table TELEF02
post-down ip rule del from 201.41.93.211 table TELEF02
auto eth0:2
iface eth0:2 inet static
address 201.41.93.212
netmask 255.255.255.248
post-up ip route add 201.41.93.212/32 dev eth0:2 src 201.41.93.212 table
TELEF03
post-up ip route add default via 201.41.93.209 table TELEF03
post-up ip rule add from 201.41.93.212 table TELEF03
post-down ip rule del from 201.41.93.212 table TELEF03
auto eth0:3
iface eth0:3 inet static
address 201.41.93.213
netmask 255.255.255.248
post-up ip route add 201.41.93.213/32 dev eth0:3 src 201.41.93.213 table
TELEF04
post-up ip route add default via 201.41.93.209 table TELEF04
post-up ip rule add from 201.41.93.213 table TELEF04
post-down ip rule del from 201.41.93.213 table TELEF04
auto eth1
iface eth1 inet static
address 200.41.183.21
netmask 255.255.255.252
post-up ip route add 200.41.183.21 dev eth1 src 200.41.183.21 table IPLAN01
post-up ip route add default via 200.41.183.22 table IPLAN01
post-up ip rule add from 200.41.183.21 table IPLAN01
post-down ip rule del from 200.41.183.21 table IPLAN01
allow-hotplug eth2
iface eth2 inet static
address 172.16.0.183
netmask 255.255.255.0
network 172.16.0.0
broadcast 172.16.0.255
Saludos y gracias!