address-family ipv4
Use address-family ipv4 to create the BGP IPv4 unicast address family, BGP-VPN IPv4 unicast address family, or BGP IPv4 multicast address family, and enter its view, or enter the view of the existing address family.
Use undo address-family ipv4 to remove the BGP IPv4 unicast address family, BGP-VPN IPv4 unicast address family, or BGP IPv4 multicast address family, and all its configurations.
Syntax
In BGP instance view:
address-family ipv4 [ multicast | unicast ]
undo address-family ipv4 [ multicast | unicast ]
In BGP-VPN instance view:
address-family ipv4 [ unicast ]
undo address-family ipv4 [ unicast ]
Default
No BGP IPv4 unicast address family, BGP-VPN IPv4 unicast address family, or BGP IPv4 multicast address family exists.
Views
BGP instance view
BGP-VPN instance view
Predefined user roles
network-admin
Parameters
unicast: Specifies the IPv4 unicast address family. If this command is executed with the unicast keyword in BGP instance view, it places you into BGP IPv4 unicast address family view. If this command is executed with the unicast keyword in BGP-VPN instance view, it places you into BGP-VPN IPv4 unicast address family view.
multicast: Specifies the IPv4 multicast address family.
Usage guidelines
Configurations made in BGP IPv4 unicast address family view apply only to the BGP IPv4 unicast routes and peers of the public network.
Configurations made in BGP-VPN IPv4 unicast address family view apply only to the BGP IPv4 unicast routes and peers of the specified VPN instance.
Configurations made in BGP IPv4 multicast address family view apply only to the BGP IPv4 multicast routes and peers.
By default, the unicast keyword is used if you do not specify the multicast or unicast keyword.
Examples
# In BGP instance view, create the BGP IPv4 unicast address family and enter its view.
<Sysname> system-view [Sysname] bgp 100 [Sysname-bgp-default] address-family ipv4 unicast [Sysname-bgp-default-ipv4]