260
Before you execute this command, use the
ip vpn-instance
command to create the VPN instance in
system view, and use the
route-distinguisher
command to configure a route distinguisher (RD) for the
VPN instance.
Examples
# Enter BGP-VPN instance view of VPN instance
vpn1
.
<Sysname> system-view
[Sysname] ip vpn-instance vpn1
[Sysname-vpn-instance-vpn1] route-distinguisher 100:1
[Sysname-vpn-instance-vpn1] quit
[Sysname] bgp 100
[Sysname-bgp] ip vpn-instance vpn1
[Sysname-bgp-vpn1]
Related commands
•
ip vpn-instance
(system-view) (
MCE Command reference
)
•
route-distinguisher
(
MCE Command reference
)
ipv4-family
Use
ipv4-family
to create and enter BGP IPv4 unicast instance view or BGP-VPN IPv4 unicast instance
view.
Use
undo ipv4-family
to remove all configurations in BGP IPv4 unicast instance view or BGP-VPN IPv4
unicast instance view.
Syntax
ipv4-family
[
unicast
]
undo ipv4-family
[
unicast
]
Default
The BGP IPv4 unicast instance view or the BGP-VPN IPv4 unicast instance view is not created.
Views
BGP view, BGP-VPN instance view
Predefined user roles
network-admin
Parameters
unicast
: Specifies the IPv4 unicast instance view. The IPv4 unicast instance view is specified for the
command regardless of whether the
unicast
keyword is specified.
Usage guidelines
Configurations made in BGP IPv4 unicast instance view apply to only the BGP IPv4 unicast routes of the
public network.
Configurations made in BGP-VPN IPv4 unicast instance view apply to only the BGP IPv4 unicast routes of
the specified VPN instance.
Examples
# In BGP view, create and enter BGP IPv4 unicast instance view.