neighbor 10.125.0.2 remote-as 65500
address-family ipv4 unicast
no neighbor 10.125.0.2 activate
+ label vpn export 100
+ rd vpn export 192.0.2.1:0
+ rt vpn import 192.0.2.2:400
+ import vpn
exit-address-family
address-family ipv4 vpn
neighbor 10.125.0.2 activate
]
}
]
+ },
+ "192.0.2.2:4":{
+ "10.204.0.0/24":[
+ {
+ "valid":true,
+ "bestpath":true,
+ "selectionReason":"First path received",
+ "pathFrom":"internal",
+ "prefix":"10.204.0.0",
+ "prefixLen":24,
+ "network":"10.204.0.0\/24",
+ "metric":0,
+ "locPrf":100,
+ "weight":0,
+ "peerId":"10.125.0.2",
+ "path":"",
+ "origin":"incomplete",
+ "nexthops":[
+ {
+ "ip":"10.125.0.2",
+ "hostname":"r2",
+ "afi":"ipv4",
+ "used":true
+ }
+ ]
+ }
+ ]
}
}
}
]
}
]
+ },
+ "192.0.2.2:4":{
+ "10.204.0.0/24":[
+ {
+ "valid":true,
+ "bestpath":true,
+ "selectionReason":"First path received",
+ "pathFrom":"internal",
+ "prefix":"10.204.0.0",
+ "prefixLen":24,
+ "network":"10.204.0.0\/24",
+ "metric":0,
+ "locPrf":100,
+ "weight":0,
+ "peerId":"10.125.0.2",
+ "path":"",
+ "origin":"incomplete",
+ "nexthops":[
+ {
+ "ip":"10.125.0.2",
+ "hostname":"r2",
+ "afi":"ipv4",
+ "used":true
+ }
+ ]
+ }
+ ]
}
}
}
]
}
]
+ },
+ "192.0.2.2:4":{
+ "10.204.0.0/24":[
+ {
+ "valid":true,
+ "bestpath":true,
+ "selectionReason":"First path received",
+ "pathFrom":"internal",
+ "prefix":"10.204.0.0",
+ "prefixLen":24,
+ "network":"10.204.0.0\/24",
+ "metric":0,
+ "locPrf":100,
+ "weight":0,
+ "peerId":"10.125.0.2",
+ "path":"",
+ "origin":"incomplete",
+ "nexthops":[
+ {
+ "ip":"10.125.0.2",
+ "hostname":"r2",
+ "afi":"ipv4",
+ "used":true
+ }
+ ]
+ }
+ ]
}
}
}
]
}
]
+ },
+ "192.0.2.2:4":{
+ "10.204.0.0/24":[
+ {
+ "valid":true,
+ "bestpath":true,
+ "selectionReason":"First path received",
+ "pathFrom":"internal",
+ "prefix":"10.204.0.0",
+ "prefixLen":24,
+ "network":"10.204.0.0\/24",
+ "metric":0,
+ "locPrf":100,
+ "weight":0,
+ "peerId":"10.125.0.2",
+ "path":"",
+ "origin":"incomplete",
+ "nexthops":[
+ {
+ "ip":"10.125.0.2",
+ "hostname":"r2",
+ "afi":"ipv4",
+ "used":true
+ }
+ ]
+ }
+ ]
}
}
}
export vpn
exit-address-family
!
+router bgp 65500 vrf vrf4
+ bgp router-id 192.0.2.2
+ address-family ipv4 unicast
+ redistribute connected
+ label vpn export 204
+ rd vpn export 192.0.2.2:4
+ rt vpn export 192.0.2.2:400
+ export vpn
+ exit-address-family
+!
]
}
]
+ },
+ "192.0.2.2:4": {
+ "10.204.0.0/24": [
+ {
+ "valid": true,
+ "bestpath": true,
+ "selectionReason": "First path received",
+ "pathFrom": "external",
+ "prefix": "10.204.0.0",
+ "prefixLen": 24,
+ "network": "10.204.0.0/24",
+ "metric": 0,
+ "weight": 32768,
+ "peerId": "(unspec)",
+ "path": "",
+ "origin": "incomplete",
+ "announceNexthopSelf": true,
+ "nhVrfName": "vrf4",
+ "nexthops": [
+ {
+ "ip": "0.0.0.0",
+ "hostname": "r2",
+ "afi": "ipv4",
+ "used": true
+ }
+ ]
+ }
+ ]
}
}
}
interface r2-eth3 vrf vrf3
ip address 10.203.0.1/24
!
+interface r2-eth4 vrf vrf4
+ ip address 10.204.0.1/24
+!