10-04-2021 03:44 AM
I have network 172.18.0.0/16 in the nexus 7K when I annonced in router BGP
My need is that this network at border level I just wanted to see at vrf level VN_corperate note in the vrf globale.
I made prefix and route map at nexus 7K level I announced this network with specific prefix and route map in "vrf context VN_Corperate" on condition I see it at border c9500 level in the Vrf VN_Corperate.
At the Border level I see this subnet in the global routing table at the specific routing table of vrf VN_Corperate
how this subnet I see it just at vrf level VN_Corperate ???
it is below configuration at the level Nexux 7K and Border nodes C9500:
the first configuration in Nexus 7004
ip prefix-list Global_TO_VN_Corporate seq 5 permit 172.18.0.0/16
route-map Global_TO_VN_Corporate permit 10
match ip address Global_TO_VN_Corporate
!
ip prefix-list Global_TO_Shared_Services seq 5 permit 172.16.0.0/16
ip prefix-list Global_TO_Shared_Services seq 10 permit 10.100.7.0/25
route-map Global_TO_Shared_Services permit 10
match ip address Global_TO_Shared_Services
!
vrf context Shared_Services
description vrf_Shared_Services
address-family ipv4 unicast
route-target import 1:4201
route-target export 1:4201
import vrf default map Global_TO_Shared_Services
export vrf default map VN_Shared_Services_TO_Global
vrf context VN_Corperate
description vrf_VN_Corporate
address-family ipv4 unicast
route-target import 1:4200
route-target export 1:4200
import vrf default map Global_TO_VN_Corporate
export vrf default map VN_Corporate_TO_Global
!
router bgp 65003
address-family ipv4 unicast
network 172.16.0.0/16
network 172.18.0.0/16
vrf Shared_Services
address-family ipv4 unicast
neighbor 10.102.100.41
remote-as 65001
log-neighbor-changes
description ***EBGP_TO_B1_T15***
update-source Vlan3210
disable-connected-check
ebgp-multihop 2
address-family ipv4 unicast
weight 65535
default-originate
vrf VN_Corperate
address-family ipv4 unicast
neighbor 10.102.100.9
!
*********Second Configuation in the Border Node Catalyast C9500
router bgp 65001
bgp router-id interface Loopback0
bgp log-neighbor-changes
bgp graceful-restart
neighbor 10.102.100.42 remote-as 65003
neighbor 10.102.100.42 update-source Vlan3210
neighbor 10.102.100.43 remote-as 65003
neighbor 10.102.100.43 update-source Vlan3210
!
address-family ipv4
bgp aggregate-timer 0
network 10.102.253.254 mask 255.255.255.255
network 10.102.254.0 mask 255.255.255.192
redistribute isis level-1
redistribute lisp metric 10
neighbor 10.102.100.42 activate
neighbor 10.102.100.42 weight 65535
neighbor 10.102.100.42 advertisement-interval 0
neighbor 10.102.100.42 route-map Shared_Services_To_Global in
neighbor 10.102.100.43 activate
neighbor 10.102.100.43 weight 65535
neighbor 10.102.100.43 advertisement-interval 0
neighbor 10.102.100.43 route-map Shared_Services_To_Global in
exit-address-family
!
address-family ipv4 vrf VN_Corperate
bgp aggregate-timer 0
network 10.100.238.126 mask 255.255.255.255
network 10.102.100.48 mask 255.255.255.248
aggregate-address 10.100.238.0 255.255.255.128 summary-only
redistribute lisp metric 10
neighbor 10.102.100.50 remote-as 65003
neighbor 10.102.100.50 update-source Vlan3211
neighbor 10.102.100.50 activate
neighbor 10.102.100.50 weight 65535
neighbor 10.102.100.51 remote-as 65003
neighbor 10.102.100.51 update-source Vlan3211
neighbor 10.102.100.51 activate
neighbor 10.102.100.51 weight 65535
exit-address-family
!
Border_1#show ip route
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, m - OMP
n - NAT, Ni - NAT inside, No - NAT outside, Nd - NAT DIA
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
H - NHRP, G - NHRP registered, g - NHRP registration summary
o - ODR, P - periodic downloaded static route, l - LISP
a - application route
+ - replicated route, % - next hop override, p - overrides from PfR
& - replicated local route overrides by connected
Gateway of last resort is 10.102.100.43 to network 0.0.0.0
B* 0.0.0.0/0 [20/0] via 10.102.100.43, 00:19:37
10.0.0.0/8 is variably subnetted, 26 subnets, 4 masks
B 10.100.7.0/25 [20/0] via 10.102.100.43, 00:16:48
C 10.102.100.40/29 is directly connected, Vlan3210
L 10.102.100.41/32 is directly connected, Vlan3210
i L1 10.102.253.253/32
[115/30] via 10.102.254.87, 2d02h, TenGigabitEthernet1/0/5
[115/30] via 10.102.254.77, 2d02h, TenGigabitEthernet1/0/3
[115/30] via 10.102.254.73, 2d02h, TenGigabitEthernet1/0/1
[115/30] via 10.102.254.67, 2d02h, TenGigabitEthernet1/0/2
C 10.102.253.254/32 is directly connected, Loopback0
i L1 10.102.254.65/32
[115/30] via 10.102.254.87, 2d02h, TenGigabitEthernet1/0/5
[115/30] via 10.102.254.77, 2d02h, TenGigabitEthernet1/0/3
[115/30] via 10.102.254.73, 2d02h, TenGigabitEthernet1/0/1
[115/30] via 10.102.254.67, 2d02h, TenGigabitEthernet1/0/2
C 10.102.254.66/31 is directly connected, TenGigabitEthernet1/0/2
L 10.102.254.66/32 is directly connected, TenGigabitEthernet1/0/2
i L1 10.102.254.68/32
[115/20] via 10.102.254.67, 4d00h, TenGigabitEthernet1/0/2
i L1 10.102.254.69/32
[115/20] via 10.102.254.73, 3d23h, TenGigabitEthernet1/0/1
i L1 10.102.254.70/31
[115/20] via 10.102.254.67, 4d00h, TenGigabitEthernet1/0/2
C 10.102.254.72/31 is directly connected, TenGigabitEthernet1/0/1
L 10.102.254.72/32 is directly connected, TenGigabitEthernet1/0/1
i L1 10.102.254.74/31
[115/20] via 10.102.254.73, 3d23h, TenGigabitEthernet1/0/1
C 10.102.254.76/31 is directly connected, TenGigabitEthernet1/0/3
L 10.102.254.76/32 is directly connected, TenGigabitEthernet1/0/3
i L1 10.102.254.78/32
[115/20] via 10.102.254.77, 3d20h, TenGigabitEthernet1/0/3
i L1 10.102.254.79/32
[115/20] via 10.102.254.83, 2d02h, TenGigabitEthernet1/0/4
i L1 10.102.254.80/31
[115/20] via 10.102.254.77, 3d20h, TenGigabitEthernet1/0/3
C 10.102.254.82/31 is directly connected, TenGigabitEthernet1/0/4
L 10.102.254.82/32 is directly connected, TenGigabitEthernet1/0/4
i L1 10.102.254.84/31
[115/20] via 10.102.254.83, 2d02h, TenGigabitEthernet1/0/4
C 10.102.254.86/31 is directly connected, TenGigabitEthernet1/0/5
L 10.102.254.86/32 is directly connected, TenGigabitEthernet1/0/5
i L1 10.102.254.88/32
[115/20] via 10.102.254.87, 3d22h, TenGigabitEthernet1/0/5
i L1 10.102.254.90/31
[115/20] via 10.102.254.87, 3d22h, TenGigabitEthernet1/0/5
B 172.16.0.0/16 [20/0] via 10.102.100.43, 00:16:48
B 172.18.0.0/16 [20/0] via 10.102.100.43, 00:16:48
Border_1#sho
Border_1#show vrf
Border_1#show vrf
Name Default RD Protocols Interfaces
Mgmt-vrf <not set> ipv4,ipv6 Gi0/0
VN_Corperate 1:4099 ipv4 Lo1021
Vl3211
LI0.4099
VN_Guest 1:4100 ipv4 Vl3212
LI0.4100
VN_IOT 1:4101 ipv4 Vl3213
LI0.4101
Border_1#sho
Border_1#show ip rout
Border_1#show ip route vrf VN_Corperate
Routing Table: VN_Corperate
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, m - OMP
n - NAT, Ni - NAT inside, No - NAT outside, Nd - NAT DIA
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
H - NHRP, G - NHRP registered, g - NHRP registration summary
o - ODR, P - periodic downloaded static route, l - LISP
a - application route
+ - replicated route, % - next hop override, p - overrides from PfR
& - replicated local route overrides by connected
Gateway of last resort is 10.102.100.50 to network 0.0.0.0
B* 0.0.0.0/0 [20/0] via 10.102.100.50, 00:20:10
10.0.0.0/8 is variably subnetted, 5 subnets, 3 masks
B 10.100.7.0/25 [20/0] via 10.102.100.51, 00:17:19
B 10.100.238.0/25 [200/0], 01:02:32, Null0
C 10.100.238.126/32 is directly connected, Loopback1021
C 10.102.100.48/29 is directly connected, Vlan3211
L 10.102.100.49/32 is directly connected, Vlan3211
B 172.16.0.0/16 [20/0] via 10.102.100.51, 00:17:19
B 172.18.0.0/16 [20/0] via 10.102.100.51, 00:17:19
!
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