Concept Guide
Conguring a BGP VRF address family
To perform BGP conguration between two neighbors that must exchange IPv6 or IPv4 VRF information, use the following commands.
Following are the steps to congure BGP VRF address-family between two peers.
• Congure a VRF routing table.
CONFIG mode
ip vrf vrf-name
For more information on VRF conguration, see Virtual Routing and Forwarding (VRF).
• Enter the router conguration mode and the AS number.
CONFIG mode
router bgp as-number
• Specify the IPv4 address family conguration.
CONFIG-ROUTER-BGP mode
address-family {ipv4 [multicast] | ipv6 unicast} vrf vrf-name
vrf vrf-name — Species the name of VRF instance associated with the IPv4 or IPv6 address-family conguration.
• Add the IP address of the neighbor in the specied AS to the IPv4 MBGP neighbor table.
CONFIG-ROUTER-BGP-AF mode
neighbor {ip-address | ipv6–address | peer-group-name} remote-as as-number
• Enable the neighbor.
CONFIG-ROUTER-BGP mode
neighbor ip-address no shutdown
• Specify the number of prexes that can be received from a neighbor.
CONFIG-ROUTER-BGP-AF mode
neighbor {ip-address | ipv6–address | peer-group-name} maximum—prefix maximum [threshold]
[warning-only]as-number
Example of conguring both IPv4 and IPv6 VRF address families
The following are the sample steps performed to congure a VRF, and VRF address families for IPv4 (unicast and multicast) and IPv6.
DellEMC(conf)# ip vrf vrf1
DellEMC(conf-vrf)# exit
DellEMC(conf)# router bgp 100
DellEMC(conf-router_bgp)# address-family ipv4 vrf vrf1
DellEMC(conf-router_bgp_af)# neighbor 50.0.0.2 remote-as 200
DellEMC(conf-router_bgp_af)# neighbor 50.0.0.2 maximum-prefix 10000 warning-only
DellEMC(conf-router_bgp_af)# neighbor 50.0.0.2 no shutdown
DellEMC(conf-router_bgp_af)# exit
DellEMC(conf-router_bgp)# address-family ipv6 unicast vrf vrf1
DellEMC(conf-router_bgpv6_af)# neighbor 50.0.0.2 activate
DellEMC(conf-router_bgpv6_af)# exit
DellEMC(conf-router_bgp)# address-family ipv4 multicast vrf vrf1
DellEMC(conf-router_bgpv6_af)# neighbor 50.0.0.2 activate
DellEMC(conf-router_bgp)# exit
Following is the output of show ip bgp vrf vrf1 summary command for the above conguration.
DellEMC#show ip bgp vrf vrf1 summary
BGP router identifier 1.1.1.1, local AS number 100
BGP local RIB : Routes to be Added 0, Replaced 0, Withdrawn 0
240
Border Gateway Protocol (BGP)