Hi,
I want to make a GRE Tunnel to another site to establish a BGP session with an another ASN, on Cisco Nexus 9396PX.
I have create a tunnel interface in my default VRF (EBGP are running on), but the traffic going on to my first default route.
Actually my configuration :
feature pbr
ip route 0.0.0.0/0 100.23.1.90
ip route 0.0.0.0/0 10.10.20.10 2
ip prefix-list PFX-AS1234-CUST-V4 seq 10 permit 1.2.3.0/24
ip prefix-list PFX-AS1234-CUST-V4 seq 11 permit 4.5.6.0/24
ip prefix-list PFX-AS1234-CUST-V4 seq 95 deny 0.0.0.0/0 ge 32
ip prefix-list PFX-AS1234-CUST-V4 seq 100 deny 0.0.0.0/0 le 32
route-map RPL-AS1234-CUST-IN-V4 permit 100
route-map RPL-AS1234-CUST-OUT-V4 permit 100
match ip address prefix-list PFX-AS1234-CUST-V4
interface Tunnel100
ip address 100.30.2.1/30
tunnel source 37.XXX.XXX.XXX
tunnel destination 193.XXX.XXX.XXX
no shutdown
router bgp MY_ASN_NUMBER
template peer TP-AS1234-CUST-V4
remote-as 1234
remove-private-as
address-family ipv4 unicast
send-community
route-map RPL-AS1234-CUST-IN-V4 in
route-map RPL-AS1234-CUST-OUT-V4 out
maximum-prefix 5
default-originate
soft-reconfiguration inbound
neighbor 100.30.2.2
inherit peer TP-AS1234-CUST-V4
no shutdown
I've tried this configuration using VRF but it seems that not worked, the BGP session broke.
vrf context test-sym
ip route 0.0.0.0/0 10.10.20.10 vrf default
ip route 193.XXX.XXX.XXX/32 100.23.1.90 vrf default
interface Tunnel100
vrf member test-sym
ip address 100.30.2.1/30
tunnel source 37.XXX.XXX.XXX
tunnel destination 193.XXX.XXX.XXX
no shutdown
How can i set the next hop to 10.10.20.10 for the traffic coming only from this tunnel?
ip policy route-map doesn't exist on interface type tunnel on my side (feature PBR is enabled)
Thanks,