![H3C S9500 Series Скачать руководство пользователя страница 260](http://html.mh-extra.com/html/h3c/s9500-series/s9500-series_command-manual_575036260.webp)
Command Manual – MPLS L2VPN
H3C S9500 Series Routing Switches
Chapter 1 MPLS L2VPN Configuration Commands
1-33
Note:
z
You cannot change an RD directly; you can only delete the VPN and then re-create
the VPN using the new RD.
z
No RD is configured by default; you must configure an RD for each VPN. A VPN
takes effect only when it is configured with an RD. Once you configure an RD for a
VPN, you cannot remove the association between the RD and the VPN.
Examples
# Configure the RD of a VPN.
<Sysname> system-view
[Sysname] mpls l2vpn vpn1 encapsulation vlan
[Sysname-mpls-l2vpn-vpn1] route-distinguisher 300:1
1.1.22 vpn-target (MPLS L2VPN view)
Syntax
vpn-target vpn-target
&<1-16> [
both
|
export-extcommunity
|
import-extcommunity
]
undo vpn-target
{
all
| {
vpn-target
&<1-16> [
both
|
export-extcommunity
|
import-extcommunity
] }
View
MPLS L2VPN view
Default Level
2: System level
Parameters
vpn-target
: VPN target extended community attributes to be added to the import or
export VPN target extended community list, in the format of nn:nn or IP-address:nn.
&<1-16> means that you can specify this argument for up to 16 times.
A VPN target can be in either of the following formats:
z
16-bit AS number:32-bit user-defined number. For example, 101:3.
z
32-bit IP address:16-bit user-defined number. For example, 192.168.122.15:1.
both
: Specifies both the export and import VPN extended communities. This is the
default.
export-extcommunity
: Specifies the export VPN extended community.
import-extcommunity
: Specifies the import VPN extended community.