address-family ipv6

Use address-family ipv6 to create the BGP IPv6 unicast address family, BGP-VPN IPv6 unicast address family, or BGP IPv6 multicast address family, and enter its view, or enter the view of the existing address family.

Use undo address-family ipv6 to remove the BGP IPv6 unicast address family, BGP-VPN IPv6 unicast address family, or BGP IPv6 multicast address family, and all its configurations.

Syntax

In BGP instance view:

address-family ipv6 [ multicast | unicast ]

undo address-family ipv6 [ multicast | unicast ]

In BGP-VPN instance view:

address-family ipv6 [ unicast ]

undo address-family ipv6 [ unicast ]

Default

No BGP IPv6 unicast address family, BGP-VPN IPv6 unicast address family, or BGP IPv6 multicast address family exists.

Views

BGP instance view

BGP-VPN instance view

Predefined user roles

network-admin

Parameters

unicast: Specifies the IPv6 unicast address family. If this command is executed with the unicast keyword in BGP instance view, it places you into BGP IPv6 unicast address family view. If this command is executed with the unicast keyword in BGP-VPN instance view, it places you into BGP-VPN IPv6 unicast address family view.

multicast: Specifies the IPv6 multicast address family.

Usage guidelines

Configurations made in BGP IPv6 unicast address family view apply only to the BGP IPv6 unicast routes and peers of the public network.

Configurations made in BGP-VPN IPv6 unicast address family view apply only to the BGP IPv6 unicast routes and peers of the specified VPN instance.

Configurations made in BGP IPv6 multicast address family view apply only to the BGP IPv6 multicast routes and peers.

By default, the unicast keyword is used if neither the multicast keyword nor the unicast keyword is specified.

Examples

# In BGP instance view, create the BGP IPv6 unicast address family and enter its view.

<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp-default] address-family ipv6 unicast
[Sysname-bgp-default-ipv6]