IPv6 route import between VPN instances enables users in different VPNs to communicate.
Context
Perform the following steps for target VPN instances.
If you do not want a VPN instance to change the next hops of imported routes when advertising these routes to its IBGP peers, run the import-rib route next-hop-invariable command for the VPN instance.
Procedure
- Configure a device to import IPv6 direct routes, static routes, or IGP routes from one VPN instance to another VPN instance.
- Run system-view
The system view is displayed.
- Run ip vpn-instance vpn-instance-name
The VPN instance view is displayed.
- Run ipv6-family
The VPN instance IPv6 address family view is displayed.
- Run import-rib vpn-instance vpn-instance-name protocol { direct | vlink-direct-route | { static } [ valid-route ] } [ route-policy route-policy-name | route-filter route-filter-name ]
The device is enabled to import IPv6 direct routes, Vlink direct routes, static routes from the specified VPN instance to the current VPN instance's corresponding routing table.
- Run commit
The configuration is committed.
- Configure a device to import IPv6 direct routes, static routes, or IGP routes from one VPN instance to another VPN instance.
- Run system-view
The system view is displayed.
- Run bgp as-number
The BGP view is displayed.
- Run ipv6-family vpn-instance vpn-instance-name
The BGP-VPN instance IPv6 address family view is displayed.
- Run import-rib { public | vpn-instance vpn-instance-name } [ include-label-route ] [ valid-route ] [ route-policy route-policy-name ]
The device is enabled to import BGP4+ routes from the specified VPN instance to the current VPN instance's BGP4+ routing table.
- Run commit
The configuration is committed.