forked from vincentbernat/network-lab
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
nat-gw1: tentative to use VRRP MAC address on public as well
This doesn't really work as there is a default route to answer any request. We must either use some kind of L3VRF to ensure proxy ARP is using only the route we provide to decide if it has to answer or we must use a userland proxy ARP.
- Loading branch information
1 parent
c0880a8
commit 6ea5c9a
Showing
2 changed files
with
50 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,77 @@ | ||
vrrp_instance NAT1 { | ||
vrrp_instance NAT-PRIVATE-1 { | ||
state BACKUP | ||
interface eth0 | ||
track_interface { | ||
eth1 | ||
} | ||
virtual_router_id 11 | ||
priority {{ priority1 }} | ||
advert_int 1 | ||
virtual_ipaddress { | ||
172.22.34.1/32 | ||
} | ||
|
||
use_vmac | ||
vmac_xmit_base | ||
notify_master "{{ pwd }}/vrrp-master vrrp.11" | ||
} | ||
vrrp_instance NAT-PUBLIC-1 { | ||
state BACKUP | ||
interface eth1 | ||
virtual_router_id 21 | ||
priority {{ priority1 }} | ||
advert_int 1 | ||
virtual_routes { | ||
203.0.113.128/26 dev lo | ||
} | ||
|
||
use_vmac | ||
notify_master "{{ pwd }}/vrrp-master vrrp.11" | ||
vmac_xmit_base | ||
notify_master "{{ pwd }}/vrrp-master vrrp.21" | ||
} | ||
|
||
vrrp_instance NAT2 { | ||
state BACKUP | ||
interface eth0 | ||
vrrp_sync_group NAT-1 { | ||
group { | ||
NAT-PRIVATE-1 | ||
NAT-PUBLIC-1 | ||
} | ||
track_interface { | ||
eth0 | ||
eth1 | ||
} | ||
} | ||
|
||
vrrp_instance NAT-PRIVATE-2 { | ||
state BACKUP | ||
interface eth0 | ||
virtual_router_id 12 | ||
priority {{ priority2 }} | ||
advert_int 1 | ||
virtual_ipaddress { | ||
172.22.34.2/32 | ||
} | ||
|
||
use_vmac | ||
vmac_xmit_base | ||
notify_master "{{ pwd }}/vrrp-master vrrp.12" | ||
} | ||
vrrp_instance NAT-PUBLIC-2 { | ||
state BACKUP | ||
interface eth1 | ||
virtual_router_id 22 | ||
priority {{ priority2 }} | ||
advert_int 1 | ||
virtual_routes { | ||
203.0.113.192/26 dev lo | ||
} | ||
|
||
use_vmac | ||
notify_master "{{ pwd }}/vrrp-master vrrp.12" | ||
vmac_xmit_base | ||
notify_master "{{ pwd }}/vrrp-master vrrp.22" | ||
} | ||
vrrp_sync_group NAT-2 { | ||
group { | ||
NAT-PRIVATE-2 | ||
NAT-PUBLIC-2 | ||
} | ||
track_interface { | ||
eth0 | ||
eth1 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters