H3C S5830V2 series Mce Command Reference

Type
Mce Command Reference

This manual is also suitable for

H3C S5830V2 & S5820V2 Switch Series
MCE Command Reference
Hangzhou H3C Technologies Co., Ltd.
http://www.h3c.com
Software version: Release2108
Document version: 6W101-20120531
Copyright © 2012, Hangzhou H3C Technologies Co., Ltd. and its licensors
All rights reserved
No part of this manual may be reproduced or transmitted in any form or by any means without prior
written consent of Hangzhou H3C Technologies Co., Ltd.
Trademarks
H3C, , Aolynk, , H
3
Care, , TOP G, , IRF, NetPilot, Neocean, NeoVTL,
SecPro, SecPoint, SecEngine, SecPath, Comware, Secware, Storware, NQA, VVG, V
2
G, V
n
G, PSPT,
XGbus, N-Bus, TiGem, InnoVision and HUASAN are trademarks of Hangzhou H3C Technologies Co.,
Ltd.
All other trademarks that may be mentioned in this manual are the property of their respective owners
Notice
The information in this document is subject to change without notice. Every effort has been made in the
preparation of this document to ensure accuracy of the contents, but all statements, information, and
recommendations in this document do not constitute the warranty of any kind, express or implied.
Preface
The H3C S5830V2 & S5820V2 documentation set includes 10 command references, which describe the
commands and command syntax options available for the H3C S5830V2 & S5820V2 Switch Series.
The MCE Command Reference describes the MCE configuration commands.
This preface includes:
Audience
Conventions
About the H3C S5830V2 & S5820V2 documentation set
Obtaining documentation
Technical support
Documentation feedback
Audience
This documentation is intended for:
Network planners
Field technical support and servicing engineers
Network administrators working with the S5830V2 & S5820V2 series
Conventions
This section describes the conventions used in this documentation set.
Command conventions
Convention Descri
p
tion
Boldface Bold text represents commands and keywords that you enter literally as shown.
Italic Italic text represents arguments that you replace with actual values.
[ ] Square brackets enclose syntax choices (keywords or arguments) that are optional.
{ x | y | ... }
Braces enclose a set of required syntax choices separated by vertical bars, from which
you select one.
[ x | y | ... ]
Square brackets enclose a set of optional syntax choices separated by vertical bars, from
which you select one or none.
{ x | y | ... } *
Asterisk marked braces enclose a set of required syntax choices separated by vertical
bars, from which you select at least one.
[ x | y | ... ] *
Asterisk marked square brackets enclose optional syntax choices separated by vertical
bars, from which you select one choice, multiple choices, or none.
&<1-n>
The argument or keyword and argument combination before the ampersand (&) sign can
be entered 1 to n times.
# A line that starts with a pound (#) sign is comments.
GUI conventions
Convention Descri
p
tion
< > Button names are inside angle brackets. For example, click <OK>.
[ ]
Window names, menu items, data table and field names are inside square brackets. For
example, pop up the [New User] window.
/ Multi-level menus are separated by forward slashes. For example, [File/Create/Folder].
Symbols
Convention Descri
p
tion
WARNING
An alert that calls attention to important information that if not understood or followed can
result in personal injury.
CAUTION
An alert that calls attention to important information that if not understood or followed can
result in data loss, data corruption, or damage to hardware or software.
IMPORTANT
An alert that calls attention to essential information.
NOTE
An alert that contains additional or supplementary information.
TIP
An alert that provides helpful information.
About the H3C S5830V2 & S5820V2
documentation set
The H3C S5830V2&S5820V2 documentation set includes:
Cate
g
or
y
Documents
Pur
p
oses
Hardware specifications
and installation
Compliance and safety
manual
Provides regulatory information and the safety
instructions that must be followed during installation.
Installation quick start Provides basic installation instructions.
Installation guide
Provides a complete guide to hardware installation
and hardware specifications.
Fan assemblies
installation manual
Describes the appearance, specifications, and
installation and removal of hot-swappable fan
assemblies.
Power modules user
manual
Describes the appearance, specifications, and
installation and removal of hot-swappable power
modules.
Software configuration
Configuration guides
Describe software features and configuration
procedures.
Command references
Provide a quick reference to all available
commands.
Obtaining documentation
You can access the most up-to-date H3C product documentation on the World Wide Web
at http://www.h3c.com
.
Click the links on the top navigation bar to obtain different categories of product documentation:
[Technical Support & Documents > Technical Documents]
– Provides hardware installation, software
upgrading, and software feature configuration and maintenance documentation.
[Products & Solutions]
Provides information about products and technologies.
[Technical Support & Documents > Software Download]
– Provides the documentation released with the
software version.
Technical support
http://www.h3c.com
Documentation feedback
You can e-mail your comments about product documentation to info@h3c.com.
We appreciate your comments.
i
Contents
MCE configuration commands ···································································································································· 1
description ································································································································································· 1
display bgp vpnv4 vpn-instance group ·················································································································· 1
display bgp vpnv4 vpn-instance peer ···················································································································· 3
display bgp vpnv4 vpn-instance routing-table ······································································································· 5
display ip vpn-instance ············································································································································ 6
domain-id ·································································································································································· 7
ip binding vpn-instance ············································································································································ 8
ip vpn-instance ·························································································································································· 9
ipv4-family ································································································································································· 9
refresh bgp vpn-instance ······································································································································· 10
reset bgp vpn-instance ·········································································································································· 10
route-distinguisher ·················································································································································· 11
routing-table limit ··················································································································································· 12
vpn-instance-capability simple ······························································································································ 13
vpn-target································································································································································ 13
Index ··········································································································································································· 16
1
MCE configuration commands
description
Use the description command to configure a description for a VPN instance.
Use the undo description command to delete the description.
Syntax
description text
undo description
Views
VPN instance view
Predefined user roles
network-admin
Parameters
text: Description for the VPN instance, a string of 1 to 79 case-sensitive characters.
Usage guidelines
If you perform this command multiple times, the last configuration takes effect.
Examples
# Configure a description for VPN instance vpn1 as This is vpn1.
<Sysname> system-view
[Sysname] ip vpn-instance vpn1
[Sysname-vpn-instance-vpn1] description This is vpn1
display bgp vpnv4 vpn-instance group
Use the display bgp vpnv4 vpn-instance group command to display BGP VPNv4 peer group
information.
Syntax
display bgp vpnv4 vpn-instance vpn-instance-name group [ group-name ]
Views
Any view
Predefined user roles
network-admin
network-operator
Views
Any view
2
Parameters
vpn-instance vpn-instance-name: Specifies the name of a VPN instance, a string of 1 to 31 case-sensitive
characters.
group-name: Specifies the name of a BGP peer group, a string of 1 to 47 case-sensitive characters. If no
peer group is specified, this command displays information about all peer groups.
Examples
# Display information about all BGP peer groups for VPN instance vpn1.
<Sysname> display bgp vpnv4 vpn-instance vpn1 group
BGP peer group: grp1
Remote AS number: Not specified
Type: external
Members:
10.1.1.1
BGP peer group: grp2
Remote AS: 100
Type: internal
Members:
1.1.1.1
# Display information about the BGP VPNv4 peer group grp1 for VPN instance vpn1.
<Sysname> display bgp vpnv4 vpn-instance vpn1 group grp1
BGP peer group: grp1
Remote AS number: Not specified
Type: external
Maximum allowed prefix number: 4294967295
Threshold: 75%
Configured hold timer value: 180 seconds
Keepalive timer value: 60 seconds
Minimum time between advertisements: 30 seconds
Peer preferred value: 0
Members:
Peer AS MsgRcvd MsgSent OutQ PrefRcv Up/Down State
10.1.1.1 10 0 0 0 0 00:01:02 Connect
Table 1 Output description
Field Descri
p
tion
BGP peer-group Name of the BGP VPNv4 peer group.
remote AS number Number of the remote AS.
Type Peer group type, external or internal.
Maximum allowed prefix number Maximum number of routes that the VPN instance supports.
Threshold
Threshold value.
If the threshold is reached, the device generates prompt information.
MsgRcvd Number of messages received.
3
Field Descri
p
tion
MsgSent Number of messages sent.
OutQ Number of messages waiting to be sent to the peer.
PrefRcv Number of prefixes received.
Up/Down Duration of the BGP session in the current state.
display bgp vpnv4 vpn-instance peer
Use the display bgp vpnv4 vpn-instance peer command to display information about BGP VPNv4 peers.
Syntax
display bgp vpnv4 vpn-instance vpn-instance-name peer [ group-name log-info | ip-address { log-info |
verbose } | verbose ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
vpn-instance vpn-instance-name: Specifies the name of a VPN instance, a string of 1 to 31 case-sensitive
characters.
ip-address: Specifies the IP address of a peer. If no peer is specified, this command displays all peers.
verbose: Displays detailed information.
group-name: Specifies the name of a peer group, a string of 1 to 47 case-sensitive characters.
log-info: Displays log information for the specified peer or peer group.
Usage guidelines
If no parameters are specified, this command displays brief information about all BGP peers in the
specified VPN.
Examples
# Display information about the BGP VPNv4 peers for the VPN instance vpn1.
<Sysname> display bgp vpnv4 vpn-instance vpn1 peer
BGP local router ID : 2.2.2.2
Local AS number : 100
Total number of peers : 1 Peers in established state : 1
Peer AS MsgRcvd MsgSent OutQ PrefRcv Up/Down State
10.1.1.1 200 24 29 0 1 00:18:47 Established
Table 2 Output description
Field Descri
p
tion
BGP Local router ID Router ID of the local BGP router
4
Field Descri
p
tion
local AS number Local AS number
Total number of peers Total number of peers
Peers in established state Number of peers in Established state
Peer IP address of the peer
AS AS number of the peer group
MsgRcvd Number of messages received
MsgSent Number of messages sent
OutQ Number of messages waiting to be sent to the peer
PrefRcv Number of received prefixes
Up/Down Duration of the BGP session in the current state
State Status of the peer
# Display detailed information about BGP VPNv4 peers for VPN instance vpn1.
<Sysname> display bgp vpnv4 vpn-instance vpn1 peer verbose
Peer: 10.1.1.1 Local: 10.1.1.2
Type: EBGP link
BGP version 4, remote router ID 0.0.0.0
BGP current state: Connect
BGP current event: CRTimerExpired
BGP last state: Connect
Received: Total 0 messages, Update messages 0
Sent: Total 0 messages, Update messages 0
Maximum allowed prefix number: 12345
Threshold: 23%
Minimum time between advertisements is 30 seconds
Optional capabilities:
Multi-protocol extended capability has been enabled
Route refresh capability has been enabled
Peer preferred value: 0
# D i s p l a y l o g i n f o r m a t i o n f o r B G P p e e r 10 .1.1.1 i n V P N i n s t a n c e vpn1.
<Sysname> display bgp vpnv4 vpn-instance vpn1 peer 10.1.1.1 log-info
Peer : 10.1.1.1
Date Time State Notification
Error/SubError
27-Mar-2011 15:36:12 Down Receive notification with error 6/4
Cease/Administrative Reset
27-Mar-2011 15:34:29 Up
5
display bgp vpnv4 vpn-instance routing-table
Use the display bgp vpnv4 vpn-instance routing-table command to display the BGP VPNv4 routing
information for a VPN instance.
Syntax
display bgp vpnv4 vpn-instance vpn-instance-name routing-table [ network-address [ mask |
mask-length ] [ advertise-info ] ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
vpn-instance vpn-instance-name: Specifies the name of a VPN instance, a string of 1 to 31 case-sensitive
characters.
network-address: Specifies the IP address of the destination network.
mask: Specifies the mask, in dotted decimal notation.
mask-length: Specifies the mask length, in the range of 0 to 32.
advertise-info: Displays route advertisement information. Without this keyword, this command displays
BGP routing information.
Usage guidelines
If no IP address is specified, this command displays brief information about all BGP routes.
If an IP address with a mask or mask length is specified, this command displays the BGP route exactly
matching the specified IP address and mask/mask length.
If an IP address without a mask or mask length is specified, this command displays the BGP routes
matching the network specified by the IP address and its natural mask.
Examples
# Display the BGP VPNv4 routing information for VPN instance vpn1.
[Sysname]display bgp vpnv4 vpn-instance vpn1 routing-table
Total number of routes: 1
BGP local router ID is 2.2.2.2
Status codes: * - valid, > - best, d - damped, h - history,
s - suppressed, S - Stale, i - internal, e - external
Origin: i - IGP, e - EGP, ? - incomplete
Network NextHop MED LocPrf PrefVal Path/Ogn
> 9.9.9.9/32 3.3.3.3 0 100 0 ?
6
Table 3 Output description
Field Descri
p
tion
Total number of routes Total number of routes
BGP local router ID Router ID of the local BGP router
Status codes Route status code
Origin Route origin code
Network Network address in the BGP routing table
NextHop Address of the next hop
MED MED
LocPrf Local preference
PrefVal Preferred value l
Path/Ogn AS_PATH/Origin attribute
display ip vpn-instance
Use the display ip vpn-instance command to display information about VPN instances.
Syntax
display ip vpn-instance [ instance-name vpn-instance-name ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
instance-name vpn-instance-name: Specifies the name of a VPN instance, a string of 1 to 31
case-sensitive characters. If no VPN is specified, the command displays brief information about all VPN
instances.
Examples
# Display information about all VPN instances.
<Sysname> display ip vpn-instance
Total VPN-Instances configured : 1
VPN-Instance Name RD Create time
abc 1:1 2011/05/18 10:48:17
Table 4 Output description
Field Descri
p
tion
VPN-Instance Name Name of the VPN instance
RD RD of the VPN instance
Create Time Time when the VPN instance was created
7
# Display detailed information about VPN instance vpn1.
<Sysname> display ip vpn-instance instance-name vpn1
VPN-Instance Name and ID : vpn1, 2
Route Distinguisher : 100:1
Description : vpn1
Interfaces : Vlan-interface100
Ipv4-family:
Export VPN Targets :
2:2
Import VPN Targets :
3:3
Maximum Routes Limit : 5000
domain-id
Use the domain-id command to configure an OSPF domain ID.
Use the undo domain-id command to restore the default.
Syntax
domain-id domain-id [ secondary ]
undo domain-id [ domain-id ]
Default
The OSPF domain ID is 0.
Views
OSPF view
Predefined user roles
network-admin
Parameters
domain-id: Specifies an OSPF domain ID in one of the following formats:
Integer, in the range of 0 to 4294967295. For example, 1.
Dotted decimal notation. For example, 0.0.0.1.
Dotted decimal notation:16-bit user-defined number in the range of 0 to 65535. For example,
0.0.0.1:512.
secondary: Specifies the domain ID as secondary. Without this keyword, the domain ID is primary.
Usage guidelines
When you redistribute OSPF routes into BGP on the MCE, BGP adds the configured OSPF domain ID to
the redistributed BGP VPN routes as a BGP extended community attribute and advertises the routes to the
BGP peer. When you redistribute the BGP VPN routes into OSPF on the BGP peer, OSPF uses the domain
ID to determine whether the routes belong to the same OSPF routing domain. If yes and the routes are
intra-area routes, OSPF advertises these routes in Type-3 LSAs; if yes but the routes are not intra-area
routes, OSPF advertises these routes in Type-5 or Type-7 LSAs. If not, OSPF advertises these routes in
Type-5 or Type-7 LSAs.
With no parameter specified, the undo domain-id command deletes all domain IDs.
8
Examples
# Configure the OSPF domain ID as 234 for VPN instance vpn1.
<Sysname> system-view
[Sysname] ospf 100 vpn-instance vpn1
[Sysname-ospf-100] domain-id 234
ip binding vpn-instance
Use the ip binding vpn-instance command to associate an interface with a VPN instance.
Use the undo ip binding vpn-instance command to remove the association.
Syntax
ip binding vpn-instance vpn-instance-name
undo ip binding vpn-instance
Default
No VPN instance is associated with an interface.
Views
Interface view
Predefined user roles
network-admin
Parameters
vpn-instance-name: Specifies the name of a VPN instance, a string of 1 to 31 case-sensitive characters.
Usage guidelines
Perform this configuration on interfaces connected to a VPN site or a PE.
Associating a VPN instance with on an interface or removing the association clears the settings on the
interface. You have to reconfigure the settings for the interface. To view the settings on an interface, use
the display this command.
The associated VPN instance must have been created by using the ip vpn-instance command in system
view.
To modify the VPN instance associated with an interface, you must use the undo ip binding vpn-instance
command to remove the association, and then use the ip binding vpn-instance command to associate the
new VPN instance.
Examples
# Associate VLAN-interface 2 with the VPN instance vpn1.
<Sysname> system-view
[Sysname] interface vlan-interface 2
[Sysname-Vlan-interface2] ip binding vpn-instance vpn1
Related commands
ip vpn-instance (system view)
9
ip vpn-instance
Use the ip vpn-instance command to create a VPN instance and enter VPN instance view.
Use the undo ip vpn-instance command to delete a VPN instance.
Syntax
ip vpn-instance vpn-instance-name
undo ip vpn-instance vpn-instance-name
Default
No VPN instance is created.
Views
System view
Predefined user roles
network-admin
Parameters
vpn-instance-name: Specifies the name of a VPN instance, a string of 1 to 31 case-sensitive characters.
Examples
# Create a VPN instance named vpn1.
<Sysname> system-view
[Sysname] ip vpn-instance vpn1
[Sysname-vpn-instance-vpn1]
Related command
route-distinguisher
ipv4-family
Use the ipv4-family command to enter IPv4 VPN view.
Use the undo ipv4-family command to remove all the configurations in IPv4 VPN view.
Syntax
ipv4-family
undo ipv4-family
Views
VPN instance view
Predefined user roles
network-admin
Usage guidelines
In IPv4 VPN view, you can configure parameters such as inbound and outbound routing policies for the
VPN.
Examples
# Enter IPv4 VPN view.
10
<Sysname> system-view
[Sysname] ip vpn-instance vpn1
[Sysname-vpn-instance-vpn1] ipv4-family
[Sysname-vpn-ipv4-vpn1]
refresh bgp vpn-instance
Use the refresh bgp vpn-instance command to soft reset BGP connections in a VPN instance.
Syntax
refresh bgp vpn-instance vpn-instance-name { ip-address | all | external | group group-name | internal }
{ export | import }
Views
User view
Predefined user roles
network-admin
Parameters
vpn-instance-name: Specifies the name of a VPN instance, a string of 1 to 31 case-sensitive characters.
ip-address: Specifies the IP address of a peer.
all: Soft resets all BGP connections for the VPN.
external: Soft resets EBGP sessions for the VPN.
group group-name: Soft resets the connections with the specified BGP peer group. The group-name
argument is a string of 1 to 47 characters.
internal: Soft resets IBGP sessions for the VPN.
export: Performs a soft reset in the outbound direction to apply the new configuration to outbound BGP
updates.
import: Performs a soft reset in the inbound direction to request the peer to send BGP updates and apply
the new configuration to inbound BGP updates.
Usage guidelines
Soft reset enables BGP to refresh route information based on new configuration without breaking down
neighbor relationships. To perform soft reset, all BGP routers on the network must support route refresh.
If a router does not support route refresh, use the peer keep-all-routes command to save all routes
received from that router. The saved routes will be used during soft reset.
Examples
# Soft reset all BGP connections in VPN instance vpn1 in the inbound direction to apply new
configuration.
<Sysname> refresh bgp vpn-instance vpn1 all import
Related commands
peer keep-all-routes
reset bgp vpn-instance
Use the reset bgp vpn-instance command to reset specific BGP connections.
11
Syntax
reset bgp vpn-instance vpn-instance-name { as-number | ip-address | all | external | group group-name
| internal }
Views
User view
Predefined user roles
network-admin
Parameters
vpn-instance-name: VPN instance name, a string of 1 to 31 case-sensitive characters.
as-number: AS number, in the range of 1 to 4294967295.
ip-address: IP address of a peer.
all: Resets all BGP connections for the VPN.
external: Resets EBGP connections for the VPN.
group group-name: Resets the connections with the specified BGP peer group. The group-name
argument is a string of 1 to 47 case-sensitive characters.
internal: Resets IBGP connections for the VPN.
Usage guidelines
This command resets the specified BGP connections to refresh BGP route information based on the new
configuration.
Examples
# Reset all BGP connections for VPN instance vpn1.
<Sysname> reset bgp vpn-instance vpn1 all
route-distinguisher
Use the route-distinguisher command to configure a route distinguisher (RD) for a VPN instance.
Use the undo route-distinguisher command to delete the RD for a VPN instance.
Syntax
route-distinguisher route-distinguisher
undo route-distinguisher
Default
No RD is specified for a VPN instance.
Views
VPN instance view
Predefined user roles
network-admin
Parameters
route-distinguisher: Specifies the RD for the VPN instance, a string of 3 to 21 characters in one of the
following formats:
12
16 - bi t AS n u mb e r: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 minimum value of the AS number is 65536.
For example, 65536:1.
Usage guidelines
RDs enable VPNs to use overlapping address space. By prefixing an RD to an IPv4 prefix for a VPN, you
make the VPN IPv4 prefix globally unique.
NOTE:
To change the RD for a VPN instance, you must first delete the RD with the undo route-distinguisher
command, and then configure a new RD for the VPN instance with the route-distinguisher command.
Examples
# Configure an RD for VPN instance vpn1.
<Sysname> system-view
[Sysname] ip vpn-instance vpn1
[Sysname-vpn-instance-vpn1] route-distinguisher 22:1
routing-table limit
Use the routing-table limit command to set the maximum number of routes in a VPN instance.
Use the undo routing-table limit command to restore the default.
Syntax
routing-table limit number { warn-threshold | simply-alert }
undo routing-table limit
Default
No limit is set to the route number for a VPN instance.
Views
VPN instance view, IPv4 VPN view
Predefined user roles
network-admin
Parameters
number: Specifies the maximum number of routes, in the range of 1 to 8192.
warn-threshold: Specifies a warning threshold, in the range of 1 to 100 in percentages. When the
percentage of the number of existing routes to the maximum number of routes exceeds the specified
threshold, the system gives an alarm message but still permits new routes. If the number of routes in the
VPN instance reaches the maximum, no more routes are added.
simply-alert: Specifies that when the maximum route number is reached, the system still accepts routes
but generates a syslog.
Description
This command prevents the MCE from learning excessive routes.
13
The setting configured in IPv4 VPN view takes precedence over that configured in VPN instance view. If
you configure a limit in both IPv4 VPN view and VPN instance view, the IPv4 VPN uses the limit
configured in IPv4 VPN view.
Examples
# Specify that VPN instance vpn1 can still learn new routes after the maximum number of 1000 routes
is reached but generates a syslog.
<Sysname> system-view
[Sysname] ip vpn-instance vpn1
[Sysname-vpn-instance-vpn1] route-distinguisher 100:1
[Sysname-vpn-instance-vpn1] routing-table limit 1000 simply-alert
# Specify that IPv4 VPN instance vpn1 can still learn new routes after the maximum number of 1000
routes is reached but generates a syslog.
<Sysname> system-view
[Sysname] ip vpn-instance vpn2
[Sysname-vpn-instance-vpn2] route-distinguisher 100:2
[Sysname-vpn-instance-vpn2] ipv4-family
[Sysname-vpn-ipv4-vpn2] routing-table limit 1000 simply-alert
vpn-instance-capability simple
Use the vpn-instance-capability simple command to disable routing loop detection for a VPN OSPF
process.
Use the undo vpn-instance-capability command to restore the default.
Syntax
vpn-instance-capability simple
undo vpn-instance-capability
Default
Routing loop detection is enabled for a VPN OSPF process.
Views
VPN OSPF process view
Predefined user roles
network-admin
Examples
# Disable routing loop detecton for the OSPF process 100 in the VPN vpna.
<Sysname> system-view
[Sysname] ospf 100 vpn-instance vpna
[Sysname-ospf-100] vpn-instance-capability simple
vpn-target
Use the vpn-target command to configure route targets for a VPN instance.
Use the undo vpn-target command to remove the specified or all route targets of a VPN instance.
14
Syntax
vpn-target vpn-target&<1-8> [ both | export-extcommunity | import-extcommunity ]
undo vpn-target { all | vpn-target&<1-8> [ both | export-extcommunity | import-extcommunity ] }
Default
No route targets are specified for a VPN instance.
Views
VPN instance view, IPv4 VPN view
Predefined user roles
network-admin
Parameters
vpn-target&<1-8>: Specifies route targets. &<1-8> means that you can specify up to eight route targets.
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, and import-extcommunity.
export-extcommunity: Uses the specified route targets as export targets.
import-extcommunity: Uses the specified route targets as import targets.
all: Removes 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.
Route targets configured in IPv4 VPN view takes precedence over that configured in VPN instance view.
If you configure route targets in both IPv4 VPN view and VPN instance view, those configured in IPv4
VPN view are applied to the IPv4 VPN.
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
  • Page 1 1
  • Page 2 2
  • Page 3 3
  • Page 4 4
  • Page 5 5
  • Page 6 6
  • Page 7 7
  • Page 8 8
  • Page 9 9
  • Page 10 10
  • Page 11 11
  • Page 12 12
  • Page 13 13
  • Page 14 14
  • Page 15 15
  • Page 16 16
  • Page 17 17
  • Page 18 18
  • Page 19 19
  • Page 20 20
  • Page 21 21
  • Page 22 22

H3C S5830V2 series Mce Command Reference

Type
Mce Command Reference
This manual is also suitable for

Ask a question and I''ll find the answer in the document

Finding information in a document is now easier with AI