12-07-2021 07:57 AM
Hi - Is there a way to leak aggregated 10/8 from GRT to VRF? I have all different 10.x subnets in GRT but I want to advertise them as single 10/8 to a specific VRF. Is there a way to do that on C9500 platform specifically? If I create a static null0 for 10/8 and leak that into VRF, it also take next-hop null0 and ends up blackholing 10.x traffic in the VRF.
12-07-2021 02:22 PM
Not sure how your setup below example guide you :
12-08-2021 08:30 AM
Hi,
attached an example of vrf leaking with aggregation
Topology
R6 Config:
vrf definition CUST-AS-200
rd 6:6
!
address-family ipv4
import ipv4 unicast map AGG-TO-CUST
export ipv4 unicast map VRF-CUST-TO-DEFAULT
route-target export 100:6
route-target import 100:6
exit-address-family
!
router bgp 100
bgp log-neighbor-changes
aggregate-address 10.0.0.0 255.0.0.0
neighbor 6.10.6.10 remote-as 8
!
address-family ipv4 vrf CUST-AS-200
neighbor 6.8.6.8 remote-as 200
neighbor 6.8.6.8 activate
exit-address-family
!
ip route vrf CUST-AS-200 10.0.0.0 255.0.0.0 GigabitEthernet0/2 6.10.6.10 global
!
route-map VRF-CUST-TO-DEFAULT permit 10
match ip address prefix-list VRF-CUST-TO-DEFAULT
!
ip prefix-list VRF-CUST-TO-DEFAULT seq 5 permit 8.8.8.8/32
!
route-map AGG-TO-CUST permit 10
match ip address prefix-list AGG-TO-CUST
!
ip prefix-list AGG-TO-CUST seq 20 permit 10.0.0.0/8
R8#show ip route
6.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 6.8.6.0/24 is directly connected, GigabitEthernet0/0
L 6.8.6.8/32 is directly connected, GigabitEthernet0/0
8.0.0.0/32 is subnetted, 1 subnets
C 8.8.8.8 is directly connected, Loopback0
B 10.0.0.0/8 [20/0] via 6.8.6.6, 00:06:02
R8#ping 10.10.10.1 so loop0
Packet sent with a source address of 8.8.8.8
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 5/5/6 ms
R8#ping 10.20.20.1 so loop0
Packet sent with a source address of 8.8.8.8
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 5/6/9 ms
R6#show ip route
6.0.0.0/8 is variably subnetted, 3 subnets, 2 masks
C 6.6.6.6/32 is directly connected, Loopback0
C 6.10.6.0/24 is directly connected, GigabitEthernet0/2
L 6.10.6.6/32 is directly connected, GigabitEthernet0/2
8.0.0.0/32 is subnetted, 1 subnets
B 8.8.8.8 [20/0] via 6.8.6.8 (CUST-AS-200), 00:30:33
10.0.0.0/8 is variably subnetted, 3 subnets, 2 masks
B 10.0.0.0/8 [200/0], 00:07:33, Null0
B 10.10.10.0/24 [20/0] via 6.10.6.10, 00:09:39
B 10.20.20.0/24 [20/0] via 6.10.6.10, 00:09:39
!
R6# show ip route vrf CUST-AS-200
Routing Table: CUST-AS-200
6.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 6.8.6.0/24 is directly connected, GigabitEthernet0/1
L 6.8.6.6/32 is directly connected, GigabitEthernet0/1
8.0.0.0/32 is subnetted, 1 subnets
B 8.8.8.8 [20/0] via 6.8.6.8, 00:32:59
S 10.0.0.0/8 [1/0] via 6.10.6.10, GigabitEthernet0/2
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide