259
[Sysname] route-policy imprt permit node 0
[Sysname-route-policy-imprt-0] if-match ip address prefix-list imprt
[Sysname-route-policy-imprt-0] quit
[Sysname] bgp 100
[Sysname-bgp] ip vpn-instance vpn1
[Sysname-bgp-vpn1] ipv4-family unicast
[Sysname-bgp-ipv4-vpn1] import-route rip 1 route-policy imprt
# In BGP IPv6 unicast instance view, redistribute routes from RIP process 1.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv6-family unicast
[Sysname-bgp-ipv6] import-route ripng
# In BGP-VPN IPv6 unicast instance view, redistribute routes from RIP process 1.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ip vpn-instance vpn1
[Sysname-bgp-vpn1] ipv6-family unicast
[Sysname-bgp-ipv6-vpn1] import-route ripng
Related commands
•
display ip routing-table protocol
•
display ipv6 routing-table
protocol
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
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 usually executed on provider edge (PE)
or Multi-VPN-Instance CE (MCE) devices to add routes learned from different sites into different VPN
instances.