Skip to content

Commit

Permalink
nat-gw1: declare all IP addresses
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentbernat committed Mar 20, 2019
1 parent afdd6d8 commit 725f561
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions lab-nat-gw1/keepalived.NATx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,9 @@ vrrp_instance NAT1 {
172.22.34.1/32
}
virtual_ipaddress_excluded {
203.0.113.128/32 dev eth1
203.0.113.129/32 dev eth1
203.0.113.130/32 dev eth1
203.0.113.131/32 dev eth1
203.0.113.132/32 dev eth1
{%- for nib in range(128, 192) %}
203.0.113.{{ nib }}/32 dev eth1
{%- endfor %}
}

use_vmac
Expand All @@ -35,11 +33,9 @@ vrrp_instance NAT2 {
172.22.34.2/32
}
virtual_ipaddress_excluded {
203.0.113.192/32 dev eth1
203.0.113.193/32 dev eth1
203.0.113.194/32 dev eth1
203.0.113.195/32 dev eth1
203.0.113.196/32 dev eth1
{%- for nib in range(192, 255) %}
203.0.113.{{ nib }}/32 dev eth1
{%- endfor %}
}

use_vmac
Expand Down

0 comments on commit 725f561

Please sign in to comment.