Vpn-Target (Mpls L2Vpn View) - H3C MSR 20-20 Command Reference Manual

Msr 20/30/50 series routers
Hide thumbs Also See for MSR 20-20:
Table of Contents

Advertisement

vpn-target (MPLS L2VPN view)

Syntax
View
Parameter
Description
Example
vpn-target vpn-target&<1-16> [ both | export-extcommunity |
import-extcommunity ]
undo vpn-target { all | { vpn-target&<1-16> [ both | export-extcommunity |
import-extcommunity ] }
MPLS L2VPN view
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. It can be a string of 3 to 21 characters. &<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:
16-bit AS number:32-bit user-defined number. For example, 101:3.
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.
all: Specifies both the import and export VPN extended communities.
Use the
command to associate a particular VPN with one or more
vpn-target
VPN targets.
Use the
undo vpn-target
a particular VPN.
There is no default value for a VPN target. You must configure it when creating the
VPN.
# Associate VPN vpn1 with VPN targets.
<Sysname> system-view
[Sysname] mpls l2vpn vpn1 encapsulation ppp
[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
command to delete the VPN target(s) associated with
1669

Advertisement

Table of Contents
loading

This manual is also suitable for:

Msr 20-21Msr 30-16Msr 30-20Msr 30-40Msr 30-60Msr 50 ... Show all

Table of Contents