![H3C S9500 Series Command Manual Download Page 224](http://html.mh-extra.com/html/h3c/s9500-series/s9500-series_command-manual_575036224.webp)
Command Manual – VPLS
H3C S9500 Series Routing Switches
Chapter 1 VPLS Configuration Commands
1-27
Examples
# Enter VPLS address family view.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] vpls-family
[Sysname-bgp-af-vpls]
1.1.23 vpn-target (VSI-BGP 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
VSI BGP view
Default Level
2: System level
Parameters
vpn-target
&<1-16>: Adds the VPN target extended community attribute to the import or
export VPN target extended community list. &<1-16> means that you can enter the
argument before it up to 16 times.
A VPN target can be either of the following formats:
z
16-bit AS number:32-bit user-defined number, such as 101:3.
z
32-bit IP address:16-bit user-defined number, such as 192.168.122.15:1.
both
: Specifies both the incoming and outgoing routing information from and to the
destination VPN extended community. The
both
keyword is the default setting.
export-extcommunity
: Specifies the outgoing routing information to the destination
VPN extended community.
import-extcommunity
: Specifies the incoming routing information from the destination
VPN extended community.
all
: Specifies all routing information from and to the destination VPN extended
community.
Description
Use the
vpn-target
command to associate a VPLS instance with one or more VPN
targets.