ip vpn-instance (BGP view)
Use ip vpn-instance to enter BGP-VPN instance view.
Use undo ip vpn-instance to remove all configurations in BGP-VPN instance view.
Syntax
ip vpn-instance vpn-instance-name
undo ip vpn-instance vpn-instance-name
Views
BGP view
Predefined user roles
network-admin
mdc-admin
Parameters
vpn-instance-name: Specifies a VPN instance by its name, a case-sensitive string of 1 to 31 characters.
Usage guidelines
After you create a BGP peer in BGP-VPN instance view, the BGP routes learned from the peer are added into the routing table of the specified VPN instance.
This command and all commands in BGP-VPN instance view are typically executed on provider edge (PE) or Multi-VPN-Instance CE (MCE) devices to add routes learned from different sites into different VPN instances.
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) (MPLS Command reference)
route-distinguisher (MPLS Command reference)