262
BGP commands
address-family ipv4
Use
address-family ipv4
to create the BGP IPv4 unicast address family or BGP-VPN IPv4 unicast address
family and enter its view.
Use
undo address-family ipv4
to remove the BGP IPv4 unicast address family or BGP-VPN IPv4 unicast
address family and all configurations in address family view.
Syntax
address-family ipv4
[
unicast
]
undo address-family ipv4
[
unicast
]
Default
The BGP IPv4 unicast address family or the BGP-VPN IPv4 unicast address family is not created.
Views
BGP view, BGP-VPN instance view
Predefined user roles
network-admin
Parameters
unicast
: Specifies the IPv4 unicast address family. This command specifies the IPv4 unicast address
family regardless of whether the
unicast
keyword is specified.
Usage guidelines
Configurations made in BGP IPv4 unicast address family view apply to only the BGP IPv4 unicast routes
and peers of the public network.
Configurations made in BGP-VPN IPv4 unicast address family view apply to only the BGP IPv4 unicast
routes and peers of the specified VPN instance.
Examples
# In BGP view, create the BGP IPv4 unicast address family and enter its view.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] address-family ipv4 unicast
[Sysname-bgp-ipv4]
# In BGP-VPN instance view, create the BGP-VPN IPv4 unicast address family and enter its view.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ip vpn-instance vpn1
[Sysname-bgp-vpn1] address-family ipv4 unicast
[Sysname-bgp-ipv4-vpn1]