To do...
Create a VPN instance and
enter VPN instance view
Configure an RD for the VPN
instance
Associate the current VPN
instance with one or more VPN
targets
Return to system view
Enter interface view
Associate the current interface
with the VPN instance
Configuring Route Advertisement between PE and CE
Route advertisement between PE and CE can depend on static routes, RIP, OSPF, IS-IS, or EBGP. You
may choose one as needed.
Configuring static routes between PEs and CEs
Follow these steps to configure static routes between PEs and CEs:
To do...
Enter system view
Configure static routes for a
specified VPN instance
Use the command...
ip vpn-instance
vpn-instance-name
route-distinguisher
route-distinguisher
vpn-target vpn-target&<1-8>
[ both | export-extcommunity
| import-extcommunity ]
quit
interface interface-type
interface-number
ip binding vpn-instance
vpn-instance-name
Use the command...
system-view
ip route-static dest-address
{ mask | mask-length }
{ gateway-address |
interface-type interface-number
[ gateway-address ] |
vpn-instance
d-vpn-instance-name
gateway-address }
[ preference preference-value ]
[ tag tag-value ] [ description
description-text ]
ip route-static vpn-instance
s-vpn-instance-name&<1-5>
dest-address { mask |
mask-length }
{ gateway-address [ public ] |
interface-type interface-number
[ gateway-address ] |
vpn-instance
d-vpn-instance-name
gateway-address }
[ preference preference-value ]
[ tag tag-value ] [ description
description-text ]
1-27
Remarks
Required
No VPN instance exists by
default.
Required
Required
—
—
Required
By default, an interface is
associated with no VPN
instance.
Remarks
—
Required