Command Reference Guide

3Com Router 3000 Ethernet Family
Command Reference Guide
Chapter 2 BGP/MPLS VPN Configuration
Commands
3Com Corporation
2-26
Description
Use the vpn-target command to create vpn-target extended community for
vpn-instance.
Use the undo vpn-target command to remove the vpn-target extended community
attributes.
By default, the default value is both.
With the vpn-target command, you can create ingress and egress route target
extended community list for a specified vpn-instance. Execute this command once for
each target community. Import the received route 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. 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.
Extended community has the following formats:
16-bit ASN: a 32-bit number defined by user, for example, 100:1.
32-bit IP address: a 16-bit number defined by user, for example, 172.1.1.1:1.
Example
# Create vpn-target extended community for the vpn-instance.
[3Com ] ip vpn-instance vpn_red
[3Com -vpn-vpn_red] vpn-target 1000:1 both
[3Com -vpn-vpn_red] vpn-target 1000:2 export-extcommunity
[3Com -vpn-vpn_red] vpn-target 173.27.0.130:2 import-extcommunity