setting loopback source IP on all bgp routes for IPv6 as well - did this on ipv4 but may need patching as I wanted to use only the public IP for public routes on IPv4. may still break if for whatever reason it prefers the mgmtgw/ipmigw IP like it just happened on ipv6

This commit is contained in:
toby 2019-02-04 18:09:28 -08:00
parent d8245c2223
commit 48abb08b5a
2 changed files with 9 additions and 3 deletions

View File

@ -354,6 +354,7 @@ case "$1" in
-e "s/BASTION-PUBLIC-IP/$BASTIONPUBLICIP/" \
-e "s/FRR_GRE_ASN/${FRR_GRE_ASN:=$NODEASN}/" \
-e "s/FRRROUTERID/${LOOPBACKv4}/" \
-e "s/LOOPBACK-IPV6/${LOOPBACKv6}/" \
-e "s/NODEASN/${NODEASN}/" \
$FRRCONFIG
[ -z $FRR_EDGE_NEIGH ] || sed -i -e 's/!!! //' $FRRCONFIG

View File

@ -270,15 +270,20 @@ route-map LOCALNETSv6 permit 5
!!! !
!!BASTION route-map BASTION permit 5
!!BASTION route-map BASTIONv4 permit 5
!!BASTION match ip address prefix-len 0
!!BASTION set src BASTION-PUBLIC-IP
!!BASTION route-map BASTION permit 10
!!BASTION route-map BASTIONv4 permit 10
!!BASTION match ip address prefix-list ALL
!!BASTION ip protocol bgp route-map BASTION
!!BASTION ip protocol bgp route-map BASTIONv4
!!BASTION route-map BASTIONv6 permit 5
!!BASTION match ipv6 address prefix-list ALL
!!BASTION set src LOOPBACK-IPV6
!!BASTION ipv6 protocol bgp route-map BASTIONv6
!
line vty