BGP VRF Redistribution Question
dppagc
Member Posts: 293
Refer to the config below:
R2(config)#router bgp 100
(config-router)#address-family ipv4 vrf A
(config-router-af)#redistribute static
(config-router-af)#network 10.1.2.0 mask 255.255.255.0
R2# sh bgp vpnv4 unicast all
How come the static route and 10.1.2.0/24 are inside the vpnv4 address family?
I thought I only redistribute it into BGP?
How does BGP know that it has to place it in the VPNv4 address family?
I mean, there are so many protocols running in BGP. How does BGP know what to do with it?
R2(config)#router bgp 100
(config-router)#address-family ipv4 vrf A
(config-router-af)#redistribute static
(config-router-af)#network 10.1.2.0 mask 255.255.255.0
R2# sh bgp vpnv4 unicast all
How come the static route and 10.1.2.0/24 are inside the vpnv4 address family?
I thought I only redistribute it into BGP?
How does BGP know that it has to place it in the VPNv4 address family?
I mean, there are so many protocols running in BGP. How does BGP know what to do with it?
Comments
-
networker050184 Mod Posts: 11,962 ModWhen you create the "address-family ipv4 vrf A" you're telling BGP this is an instance within the VRF. VRF routes are carried using VPNv4.An expert is a man who has made all the mistakes which can be made.