The ipv4-family command enables a BGP IPv4 address family and displays the address family view.
The undo ipv4-family command removes all configurations in the related address family view.
By default, the BGP IPv4 unicast address family is enabled.
ipv4-family { unicast | multicast | | vpnv4 [ unicast ] | vpn-target | vpn-instance vpn-instance-name }
undo ipv4-family { multicast | vpnv4 [ unicast ] | vpn-target | vpn-instance vpn-instance-name }
| Parameter | Description | Value |
|---|---|---|
| unicast | Indicates the unicast address family view. | - |
| multicast | Indicates the multicast address family view. Only the AntiDDoS1600 support this parameter. |
- |
| vpnv4 | Indicates the BGP-VPNv4 address family view. | - |
| vpn-target | Indicates the VPN-Target address family view. VPN-Target address family view is used to configure VPN outbound route filtering (ORF). | - |
| vpn-instance vpn-instance-name | Associates the specified VPN instance with the IPv4 address family. You can enter the BGP-VPN instance IPv4 address family view by using the parameter. | The value is a string of 1 to 31 case-sensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string. |
Usage Scenario
Before performing BGP configurations in an IPv4 address family, you need to run the ipv4-family command in the BGP view to enable the IPv4 address family, and then enter the address family view. By default, BGP uses the IPv4 unicast address family.
To disable the IPv4 unicast address family from being the default BGP route, run the undo default ipv4-unicast command.
Precautions
The undo ipv4-family command cannot be used to delete BGP IPv4 unicast address view.