![H3C S9500 Series Command Manual Download Page 261](http://html.mh-extra.com/html/h3c/s9500-series/s9500-series_command-manual_575036261.webp)
Command Manual – MPLS L2VPN
H3C S9500 Series Routing Switches
Chapter 1 MPLS L2VPN Configuration Commands
1-34
all
: Specifies both the import and export VPN extended communities.
Description
Use the
vpn-target
command to associate a particular VPN with one or more VPN
targets.
Use the
undo vpn-target
command to delete the VPN target(s) associated with a
particular VPN.
There is no default value for a VPN target. You must configure it when creating the
VPN.
Examples
# Associate VPN vpn1 with VPN-targets.
<Sysname> system-view
[Sysname] mpls l2vpn vpn1 encapsulation vlan
[Sysname-mpls-l2vpn-vpn1] route-distinguisher 300:1
[Sysname-mpls-l2vpn-vpn1] vpn-target 1:1 2:2 export-extcommunity
[Sysname-mpls-l2vpn-vpn1] vpn-target 1.2.3.4:11 import-extcommunity