Hi All,
Have an issue where as soon as i bring up bgp at one site the remote site drops all its ipsec connections. It appears the public IPs from each side are being advertised and then the preferred route to that IPSec tunnel remote is via the vtiX
interface thus breaking the ipsec tunnel. I followed the example docs to exclude these prefixes in the prefix list then added to route-map on the bgp export.
Im pretty sure I have misconfigured something somewhere…
BGP off
show ip route ipsec_remote_ip
Routing entry for 0.0.0.0/0
Known via "static", distance 5, metric 0
Last update 2d22h56m ago
secondaryISP, via bond0.4001, weight 1
Routing entry for 0.0.0.0/0
Known via "static", distance 1, metric 0, best
Last update 2d22h56m ago
* primaryISP, via bond0.4000, weight 1
Routing entry for 0.0.0.0/0
Known via "static", distance 200, metric 0
Last update 02w2d23h ago
10.42.2.253, via bond0.1002, weight 1
BGP ON
show ip route ipsec_remote_ip
Routing entry for ipsec_remote_ip
Known via "bgp", distance 20, metric 0, best
Last update 00:00:05 ago
* 10.100.2.2, via vti2, weight 1
Remote A
BGP / Policy config
[protocols]
bgp {
address-family {
ipv4-unicast {
redistribute {
connected
}
}
}
neighbor 10.42.2.253 {
address-family {
ipv4-unicast
}
interface {
source-interface "bond0.1002"
}
remote-as "65101"
}
neighbor vti2 {
address-family {
ipv4-unicast {
route-map {
export "AS65101-staging-colo"
}
}
}
interface {
remote-as "65102"
}
}
parameters {
router-id "1.0.0.9"
}
system-as "65101"
}
Policy prefix-list AS65101-staging-colo
rule 10 {
action deny
prefix PrimaryISP/29
}
rule 20 {
action deny
prefix secondaryISP/29
}
rule 40 {
action deny
prefix 10.100.2.0/30
}
Policy route-map AS65101-staging-colo
rule 10 {
action deny
match {
ip {
address {
prefix-list AS65101-staging-colo
}
}
}
}
rule 20 {
action permit
}
Remote B
BGP/Policy config
[protocols]
bgp {
address-family {
ipv4-unicast {
redistribute {
connected
}
}
}
neighbor 10.75.2.253 {
address-family {
ipv4-unicast
}
interface {
source-interface "bond0.2"
}
remote-as "65102"
}
neighbor vti2 {
address-family {
ipv4-unicast {
route-map {
export "AS65102-colo-dale-staging"
}
}
}
interface {
remote-as "65101"
}
}
parameters {
router-id "1.0.0.10"
}
system-as "65102"
}
]
policy {
prefix-list AS65102-colo-staging {
rule 10 {
action "deny"
prefix "PrimaryISP/29"
}
rule 20 {
action "deny"
prefix "SecondaryISP/27"
}
rule 40 {
action "deny
prefix "10.100.2.0/30"
}
}
route-map AS65102-colo-staging {
rule 10 {
action "deny"
match {
ip {
address {
prefix-list "AS65102-colo-staging"
}
}
}
}
rule 20 {
action "permit"
}
}
}