Command Manual – MPLS
Quidway S8500 Series Routing Switches
Chapter 2 BGP/MPLS VPN Configuration Commands
Huawei Technologies Proprietary
2-60
By default, the default value is
both
.
Use the
vpn-target
command you can create ingress and egress route target extended
community lists for a specified VPN-instance. Execute this command once for each
target community. Import the received routing information bearing the specific
VPN-target extended community to all VPN-instances, for which an extended
community is configured as ingress VPN-target. VPN-target specifies a target VPN
extended community. The same as RD, an extended community is either composed of
an ASN and an arbitrary number, or composed of an IP address and an arbitrary
number.
RD is in either of the following formats:
16-bit ASN (can be 0 here): A custom 32-bit number, for example, 101:3.
32-bit IP address (can be 0.0.0.0 here): A custom 16-bit number, for example,
192.168.122.15:1.
Example
# Create a VPN-target extended community for the VPN-instance.
[Quidway] ip vpn-instance vpn-instance_blue
[Quidway-vpn-vpn-instance_blue] vpn-target 1000:1 both
[Quidway-vpn-vpn-instance_blue] vpn-target 1000:2 export-extcommunity
[Quidway-vpn-vpn-instance_blue] vpn-target 173.27.0.130:2
import-extcommunity