address-family ipv4
Use address-family ipv4 to create and enter BGP IPv4 unicast address family view or BGP-VPN IPv4 unicast address family view.
Use undo address-family ipv4 to remove all configurations in BGP IPv4 unicast address family view or BGP-VPN IPv4 unicast address family view.
Syntax
address-family ipv4 [ unicast ]
undo address-family ipv4 [ unicast ]
Default
The BGP IPv4 unicast address family view or the BGP-VPN IPv4 unicast address family view is not created.
Views
BGP view, BGP-VPN instance view
Predefined user roles
network-admin
mdc-admin
Parameters
unicast: Specifies the IPv4 unicast address family view. The IPv4 unicast address family view is specified for the command 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 and enter BGP IPv4 unicast address family view.
<Sysname> system-view [Sysname] bgp 100 [Sysname-bgp] address-family ipv4 unicast [Sysname-bgp-ipv4]
# In BGP-VPN instance view, create and enter BGP-VPN IPv4 unicast address family view.
<Sysname> system-view [Sysname] bgp 100 [Sysname-bgp] ip vpn-instance vpn1 [Sysname-bgp-vpn1] address-family ipv4 unicast [Sysname-bgp-ipv4-vpn1]