Download Print this page

HP 6125XLG Command Reference Manual Page 19

R2306-hp 6125xlg blade switch mce command reference.
Hide thumbs

Advertisement

A route target is a string of 3 to 21 characters in one 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.
32-bit AS number:16-bit user-defined number, where the AS number must not be less than 65536.
For example, 65536:1.
both: Uses the specified route targets as both import targets and export targets. The both keyword is also
used when you do not specify any of both, export-extcommunity, or import-extcommunity.
export-extcommunity: Uses the specified route targets as export targets.
import-extcommunity: Uses the specified route targets as import targets.
all: Specifies all route targets.
Description
Route targets are used to control VPN route learning. The MCE adds the specified export targets into
VPN routes advertised a peer. The peer compares the export targets in the received VPN routes against
the local import targets. If a match is found, the peer adds the received routes to the VPN routing table.
You can configure multiple route targets for a VPN instance by executing this command multiple times.
The route targets configured in VPN instance view apply to both the IPv4 VPN and IPv6 VPN. The route
targets configured in IPv4 VPN view apply only to the IPv4 VPN. The route targets configured in IPv6
VPN view apply only to the IPv6 VPN.
Route targets configured in IPv4 VPN view or IPv6 VPN view takes precedence over that configured in
VPN instance view. If you configure route targets in both IPv4 VPN view (or IPv6 VPN view) and VPN
instance view, the IPv4 VPN (IPv6 VPN) uses the route targets configured in IPv4 VPN view (IPv6 VPN
view).
Examples
# Configure route targets for VPN instance vpn1.
<Sysname> system-view
[Sysname] ip vpn-instance vpn1
[Sysname-vpn-instance-vpn1] vpn-target 3:3 export-extcommunity
[Sysname-vpn-instance-vpn1] vpn-target 4:4 import-extcommunity
[Sysname-vpn-instance-vpn1] vpn-target 5:5 both
# Configure route targets for IPv4 VPN instance vpn2.
<Sysname> system-view
[Sysname] ip vpn-instance vpn2
[Sysname-vpn-instance-vpn2] ipv4-family
[Sysname-vpn-ipv4-vpn2] vpn-target 3:3 export-extcommunity
[Sysname-vpn-ipv4-vpn2] vpn-target 4:4 import-extcommunity
[Sysname-vpn-ipv4-vpn2] vpn-target 5:5 both
16

Advertisement

   Related Manuals for HP 6125XLG

Comments to this Manuals

Symbols: 0
Latest comments: