ip vpn-instance (BGP instance view)
Use ip vpn-instance to create a BGP-VPN instance and enter its view, or enter the view of an existing BGP-VPN instance.
Use undo ip vpn-instance to remove a BGP-VPN instance and all its configurations.
Syntax
ip vpn-instance vpn-instance-name
undo ip vpn-instance vpn-instance-name
Default
No BGP-VPN instances exist.
Views
BGP instance view
Predefined user roles
network-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. The commands add routes learned from different sites into different VPN instances.
Before you execute this command, you must perform the following tasks:
Use the ip vpn-instance command to create the VPN instance in system view.
Use the route-distinguisher command to configure a route distinguisher (RD) for the VPN instance.
Examples
# Create a BGP-VPN instance and enter its view.
<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-default] ip vpn-instance vpn1 [Sysname-bgp-default-vpn1]
Related commands
ip vpn-instance (system view) (MCE Command Reference)
route-distinguisher (MCE Command Reference)