寄稿しました。
Router1
- LAN1:192.168.100.1
- バーチャルIP:192.168.100.254
- WAN:LAN2
ip route default gateway dhcp lan2 ip lan1 address 192.168.100.1/24 ip lan1 vrrp 1 192.168.100.254 priority=200 ip lan1 vrrp shutdown trigger 1 lan2 ip lan2 address dhcp ip lan2 nat descriptor 1 nat descriptor type 1 masquerade nat descriptor address outer 1 primary
Router2
- LAN1:192.168.100.2
- バーチャルIP:192.168.100.254
- WAN:LAN2
ip route default gateway dhcp lan2 ip lan1 address 192.168.100.2/24 ip lan1 vrrp 1 192.168.100.254 priority=100 ip lan1 vrrp shutdown trigger 1 lan2 ip lan2 address dhcp ip lan2 nat descriptor 1 nat descriptor type 1 masquerade nat descriptor address outer 1 primary
クライアントPC
- IP:192.168.100.51
- ネットマスク:255.255.255.0
- デフォルトゲートウェイ:192.168.100.254
- DNS1:192.168.11.254
- DNS2:8.8.8.8
デフォルトゲートウェイにバーチャルIPを設定してあげるのがポイントです。
もくじ
複数VIPの場合
- Router1
LAN1:192.168.110.1
VIP:192.168.110.241, 192.168.110.242
LAN2:172.16.0.1
VIP:172.16.0.241, 172.16.0.242 - Router2
LAN1:192.168.110.2
VIP:192.168.110.243, 192.168.110.244
LAN2:172.16.0.2
VIP:172.16.0.243, 172.16.0.244 - Router3
LAN1192.168.110.3
VIP:192.168.110.245, 172.16.0.246
LAN2:172.16.0.3
VIP:172.16.0.245, 172.16.0.246
Router1
ip route default gateway dhcp lan3 ip lan1 address 192.168.110.1/24 ip lan1 vrrp 1 192.168.110.241 priority=100 ip lan1 vrrp 2 192.168.110.242 priority=100 ip lan1 vrrp 3 192.168.110.243 priority=200 ip lan1 vrrp 4 192.168.110.244 priority=200 ip lan1 vrrp 5 192.168.110.245 priority=100 ip lan1 vrrp 6 192.168.110.246 priority=100 ip lan2 address 172.16.0.1/24 ip lan2 vrrp 21 172.16.0.241 priority=200 ip lan2 vrrp 22 172.16.0.242 priority=200 ip lan2 vrrp 23 172.16.0.243 priority=100 ip lan2 vrrp 24 172.16.0.244 priority=100 ip lan2 vrrp 25 172.16.0.245 priority=100 ip lan2 vrrp 26 172.16.0.246 priority=100 ip lan1 vrrp shutdown trigger 1 lan3 ip lan1 vrrp shutdown trigger 2 lan3 ip lan1 vrrp shutdown trigger 3 lan3 ip lan1 vrrp shutdown trigger 4 lan3 ip lan1 vrrp shutdown trigger 5 lan3 ip lan1 vrrp shutdown trigger 6 lan3 ip lan2 vrrp shutdown trigger 21 lan3 ip lan2 vrrp shutdown trigger 22 lan3 ip lan2 vrrp shutdown trigger 23 lan3 ip lan2 vrrp shutdown trigger 24 lan3 ip lan2 vrrp shutdown trigger 25 lan3 ip lan2 vrrp shutdown trigger 26 lan3 ip lan3 address dhcp ip lan3 nat descriptor 1 nat descriptor type 1 masquerade nat descriptor address outer 1 primary
Router2
ip route default gateway dhcp lan3 ip lan1 address 192.168.110.2/24 ip lan1 vrrp 1 192.168.110.241 priority=100 ip lan1 vrrp 2 192.168.110.242 priority=100 ip lan1 vrrp 3 192.168.110.243 priority=200 ip lan1 vrrp 4 192.168.110.244 priority=200 ip lan1 vrrp 5 192.168.110.245 priority=100 ip lan1 vrrp 6 192.168.110.246 priority=100 ip lan2 address 172.16.0.2/24 ip lan2 vrrp 21 172.16.0.241 priority=100 ip lan2 vrrp 22 172.16.0.242 priority=100 ip lan2 vrrp 23 172.16.0.243 priority=200 ip lan2 vrrp 24 172.16.0.244 priority=200 ip lan2 vrrp 25 172.16.0.245 priority=100 ip lan2 vrrp 26 172.16.0.246 priority=100 ip lan1 vrrp shutdown trigger 1 lan3 ip lan1 vrrp shutdown trigger 2 lan3 ip lan1 vrrp shutdown trigger 3 lan3 ip lan1 vrrp shutdown trigger 4 lan3 ip lan1 vrrp shutdown trigger 5 lan3 ip lan1 vrrp shutdown trigger 6 lan3 ip lan2 vrrp shutdown trigger 21 lan3 ip lan2 vrrp shutdown trigger 22 lan3 ip lan2 vrrp shutdown trigger 23 lan3 ip lan2 vrrp shutdown trigger 24 lan3 ip lan2 vrrp shutdown trigger 25 lan3 ip lan2 vrrp shutdown trigger 26 lan3 ip lan3 address dhcp ip lan3 nat descriptor 1 nat descriptor type 1 masquerade nat descriptor address outer 1 primary
Router3
ip route default gateway dhcp lan3 ip lan1 address 192.168.110.3/24 ip lan1 vrrp 1 192.168.110.241 priority=100 ip lan1 vrrp 2 192.168.110.242 priority=100 ip lan1 vrrp 3 192.168.110.243 priority=100 ip lan1 vrrp 4 192.168.110.244 priority=100 ip lan1 vrrp 5 192.168.110.245 priority=200 ip lan1 vrrp 6 192.168.110.246 priority=200 ip lan2 address 172.16.0.3/24 ip lan2 vrrp 21 172.16.0.241 priority=100 ip lan2 vrrp 22 172.16.0.242 priority=100 ip lan2 vrrp 23 172.16.0.243 priority=100 ip lan2 vrrp 24 172.16.0.244 priority=100 ip lan2 vrrp 25 172.16.0.245 priority=200 ip lan2 vrrp 26 172.16.0.246 priority=200 ip lan1 vrrp shutdown trigger 1 lan3 ip lan1 vrrp shutdown trigger 2 lan3 ip lan1 vrrp shutdown trigger 3 lan3 ip lan1 vrrp shutdown trigger 4 lan3 ip lan1 vrrp shutdown trigger 5 lan3 ip lan1 vrrp shutdown trigger 6 lan3 ip lan2 vrrp shutdown trigger 21 lan3 ip lan2 vrrp shutdown trigger 22 lan3 ip lan2 vrrp shutdown trigger 23 lan3 ip lan2 vrrp shutdown trigger 24 lan3 ip lan2 vrrp shutdown trigger 25 lan3 ip lan2 vrrp shutdown trigger 26 lan3 ip lan3 address dhcp ip lan3 nat descriptor 1 nat descriptor type 1 masquerade nat descriptor address outer 1 primary
このように備えあれば憂いなしなWAN回線の冗長化が出来ちゃいます。実際に利用する場合はフィルター設定をお忘れなく!