Professional Documents
Culture Documents
99-Comware v3 Command Manual PDF
99-Comware v3 Command Manual PDF
99-Comware v3 Command Manual PDF
Command Manual
No part of this manual may be reproduced or transmitted in any form or by any means
without prior written consent of Hangzhou Huawei-3Com Technology Co., Ltd.
Trademarks
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.
http://www.huawei-3com.com
Technical Support
customer_service@huawei-3com.com
http://www.huawei-3com.com
About This Manual
Related Documentation
In addition to this manual, each related documentation set includes the following:
Manual Description
The manual is a guide for the user to
perform the operations correctly. It is
organized into the parts of getting
started, system management, interface,
Comware V3 Operation Manual link layer protocol, network protocol,
routing protocol, multicast protocol,
security, VPN, reliability, QoS, MPLS,
dial-up and Non-IP Architecture, as well
as acronyms used in the manual.
The manual gives the user a guide and
Low-End and Mid-Range Series Routers
related commands to operate terminal
Terminal Access User Manual
access.
Organization
Part Contents
introduces Comware V3 user interface
1 Getting Started
configuration commands.
introduces the configuration commands
of system maintenance management,
2 System Management file management, user interface
configuration, NTP configuration, SNMP
configuration and terminal services.
introduces the configuration commands
of LAN interface,
synchronous/asynchronous serial
3. Interface
interface, CE1 interface, subinterface,
virtual interface template and virtual
Ethernet interface.
introduces the configuration commands
of PPP, MP, PPPoE, SLIP, ISDN, VLAN,
4. Link Layer Protocol
HDLC, Frame Relay, ATM, LAPB and
X.25.
Part Contents
introduces the configuration commands
IP address, static address resolution,
5. Network Protocol domain name resolution, IP
performance, IP unicast policy routing,
IP multicast policy routing and DLSw.
introduces the configuration commands
of static routing, RIP, OSPF, IS-IS, BGP,
6. Routing Protocol
MBGP, IP routing policy and IP route
capacity.
introduces the configuration commands
of common multicast, IGMP, PIM DM,
7. Multicast Protocol
PIM SM, MSDP, MBGP and multicast
static routing.
introduces MPLS configuration
8. MPLS
commands.
introduces the configuration commands
9. Security of AAA, RADIUS, firewall, NAT, IPSec
and IKE.
introduces the configuration commands
10. VPN of L2TP, GRE, BGP/MPLS VPN and
MPLS L2VPN.
introduces the configuration commands
of traffic classification, traffic policing,
11. QoS
traffic shaping, congestion management
and congestion avoidance.
introduces the configuration commands
12. Reliability
of standby center and VRRP.
introduces the configuration commands
13. Dial-up
of DCC and modem.
introduces the configuration commands
for implementing voice and fax services
14. Voice on IP networks, such as VoIP, E1/T1,
fax, voice RADIUS, GK client, and SIP
client.
introduces the configuration commands
15. Non-IP Architecture
of OSI, IPX and DLSw.
lists all the commands that appear in the
16. Command Index
manuals.
Conventions
Convention Description
Boldface The keywords of a command line are in Boldface.
Convention Description
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].
III. Symbols
Convention Description
Means reader be extremely careful. Improper operation
Warning may cause bodily injury.
Table of Contents
i
Command Manual – Getting Started
Comware V3 Chapter 1 Basic Configuration Commands
Syntax
View
Parameter
Description
Example
Syntax
View
User view
Parameter
time: Current time in the format of HH:MM:SS, where HH is hours in the range 0 to 23,
MM is minutes in the range 0 to 59, and SS is seconds in the range 0 to 59.
1-1
Command Manual – Getting Started
Comware V3 Chapter 1 Basic Configuration Commands
Description
Use the clock datetime command to set the current time and date of the router.
The current time and date of the router must be set in an environment that requires the
acquisition of absolute time.
You may choose not to provide seconds when inputting the time parameters.
Related command: display clock.
Example
Syntax
View
System view
Parameter
1-2
Command Manual – Getting Started
Comware V3 Chapter 1 Basic Configuration Commands
start-month: It can be January, February, March, April, May, June, July, August,
September, October, November, or December.
sequence: It can be first, second, third, fourth, fifth, or last.
start-day: It can be Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, or
Saturday.
end-year: Ranges from 2000 to 2099, and must be greater than the value of start year.
end-month: It can be January, February, March, April, May, June, July, August,
September, October, November, or December.
end-day: It can be Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, or
Saturday.
add-time: The daylight saving time, in the format of HH:MM:SS
(hours/minutes/seconds).
Description
Use the clock summer-time command to set the name, starting and ending time of the
daylight saving time.
Use the undo clock summer-time command to cancel the configuration of the
daylight saving time.
After the configuration takes effect, you can use the display clock command to view it.
Besides, the time of the log or debug information is the local time of which the time zone
and daylight saving time has been adjusted.
Related command: clock timezone.
Example
# For daylight saving time in z2 between 06:00:00 on 06/08 and 06:00:00 on 09/01
every year since 2002, set the system clock ahead one hour.
[H3C] clock summer-time z2 repeating 06:00:00 06/08/2002 06:00:00 09/01/2002
01:00:00
# Set the system clock ahead one hour for daylight saving time starting at one o’clock
on Sunday of the last week of March in 2006 and ended at one o’clock on Sunday of the
last week of October in 2006.
[H3C] clock summer-time z2 repeating 01:00:00 2006 March last Sunday 07:00:00
2006 October last Sunday 01:00:00
1-3
Command Manual – Getting Started
Comware V3 Chapter 1 Basic Configuration Commands
Syntax
View
System view
Parameter
Description
Use the clock timezone command to set the local time zone.
Use the undo clock timezone command to restore the local time zone to the default
UTC time zone.
After the configuration takes effect, you can view it by executing the display clock
command. The time applied to the log and debug information is the local time with time
zone and daylight saving time adjustment.
Related command: clock summer-time.
Example
# Set the name of the local time zone to Z5, five hours ahead of UTC time.
[H3C] clock timezone z5 add 05:00:00
1.1.5 command-privilege
Syntax
View
System view
Parameter
1-4
Command Manual – Getting Started
Comware V3 Chapter 1 Basic Configuration Commands
Description
Example
Syntax
View
System view
Parameter
1-5
Command Manual – Getting Started
Comware V3 Chapter 1 Basic Configuration Commands
Description
Use the cpu-usage cycle command to set the CPU usage statistic interval.
Depending on the specified interval, the statistical period displayed by executing the
display cpu-usage history command is different.
The default CPU usage statistic interval is 60 seconds.
Example
Syntax
display clipboard
View
Any view
Parameter
None
Description
Use the display clipboard command to view the contents of the clipboard.
Example
1-6
Command Manual – Getting Started
Comware V3 Chapter 1 Basic Configuration Commands
Syntax
display clock
View
Any view
Parameter
None
Description
Use the display clock command to view the current system time and date.
If the displayed system time and date are incorrect, use the clock datetime command
to adjust them.
Example
Syntax
View
Any view
Parameter
configuration: Displays the configuration about CPU usage statistics, such as whether
CPU usage statistics is enabled, statistic interval, and CPU usage alarm thresholds.
number: Number of CPU usage statistics queries.
offset: Offset of the starting entry to be displayed to the last statistic entry.
verbose: Displays the detailed information.
from-device: Displays information stored on an external storage device such as a
Flash memory or hard disk. (Not available yet.)
Description
Use the display cpu-usage command to view statistics about CPU usage.
1-7
Command Manual – Getting Started
Comware V3 Chapter 1 Basic Configuration Commands
Example
Syntax
1-8
Command Manual – Getting Started
Comware V3 Chapter 1 Basic Configuration Commands
View
Any view
Parameter
Description
Use the display cpu-usage history command to view in graphics the CPU usage
statistic history of the entire system, the specified task, or the interface board in the
specified slot.
Example
1-9
Command Manual – Getting Started
Comware V3 Chapter 1 Basic Configuration Commands
Syntax
display history-command
View
Any view
Parameter
None
Description
1-10
Command Manual – Getting Started
Comware V3 Chapter 1 Basic Configuration Commands
Example
Syntax
View
User view
Parameter
None
Description
Use the display log startup command to display the state of the configuration
restoration log switch.
Example
Syntax
display memory
View
Any view
Parameter
None
1-11
Command Manual – Getting Started
Comware V3 Chapter 1 Basic Configuration Commands
Description
Use the display memory command to view information on system memory load.
Example
Syntax
display version
View
Any view
Parameter
None
Description
Example
1-12
Command Manual – Getting Started
Comware V3 Chapter 1 Basic Configuration Commands
Syntax
View
System view
Parameter
None
Description
Use the free unused porttag command to release the port tag resources used by
removed interfaces for creating new interfaces.
The port tag resources currently available only support up to 65,535 interfaces. If all
port tag resources are depleted, no interface can be created any longer. To do that, use
the free unused porttag command to release the port tag resources assigned to the
removed interfaces first.
Example
1-13
Command Manual – Getting Started
Comware V3 Chapter 1 Basic Configuration Commands
1.1.16 header
Syntax
View
System view
Parameter
Description
1-14
Command Manual – Getting Started
Comware V3 Chapter 1 Basic Configuration Commands
z To have the start delimiter excluded from the banner message, input a carriage
return immediately after it or make sure that the start and ending delimiters are in
the same line.
z To have the start delimiter being part of the banner message, make sure that the
start and ending delimiters are in different lines and the start delimiter is not
immediately followed by a carriage return.
Example
*********************************************************
* All rights reserved (2004-2006) *
* Without the owner's prior written consent, *
*no decompiling or reverse-engineering shall be allowed.*
*********************************************************
motd text
login text
Login authentication
Username:admin
Password:
shell text
<H3C>
1.1.17 hotkey
Syntax
1-15
Command Manual – Getting Started
Comware V3 Chapter 1 Basic Configuration Commands
View
System view
Parameter
Description
Example
# Assign the hot key < CTRL_T> to the display tcp status command.
[H3C] hotkey ctrl_t display tcp status
[H3C] display hotkey
----------------- HOTKEY -----------------
=Defined hotkeys=
Hotkeys Command
CTRL_G display current-configuration
CTRL_L display ip routing-table
CTRL_O undo debug all
CTRL_T display tcp status
=Undefined hotkeys=
Hotkeys Command
CTRL_U NULL
=System hotkeys=
Hotkeys Function
CTRL_A Move the cursor to the beginning of the current line.
CTRL_B Move the cursor one character left.
CTRL_C Stop current command function.
CTRL_D Erase current character.
1-16
Command Manual – Getting Started
Comware V3 Chapter 1 Basic Configuration Commands
1.1.18 language-mode
Syntax
View
User view
Parameter
None
Description
Use the language-mode command to toggle the display language of the command line
interface (CLI) between English and Chinese.
The default language is English.
Example
1-17
Command Manual – Getting Started
Comware V3 Chapter 1 Basic Configuration Commands
1.1.19 lock
Syntax
lock
View
User view
Parameter
None
Description
Use the lock command to lock the illegitimate users out of the active user interface,
which can be console, AUX, or VTY.
After entering the lock command, you are prompted to enter and confirm the
screensaver's password. If you en
ter the same password twice, the interface is locked. To unlock and access the system
after that, you must press <Enter> first and enter the password you just set.
Example
# Log in through the console port and lock the active user interface.
<H3C> lock
Password:
Again:
Syntax
log startup
undo log startup
View
User view
Parameter
None
Description
Use the log startup command to turn on the configuration restoration log switch.
Use the undo log startup command to turn off the configuration restoration log switch.
1-18
Command Manual – Getting Started
Comware V3 Chapter 1 Basic Configuration Commands
Example
1.1.21 quit
Syntax
quit
View
Any view
Parameter
None
Description
Use the quit command to quit to a lower-level view (if the current view is user view, you
exit the system).
The views fall into three levels, in ascending order:
z User view (for user level 0)
z System view (for user level 3)
z Configuration view (such as routing protocol view, interface view, and L2TP group
view)
Related command: return.
Example
# Switch from Ethernet1/0/0 interface view to system view, and then to user view.
[H3C-Ethernet1/0/0] quit
[H3C] quit
<H3C>
1-19
Command Manual – Getting Started
Comware V3 Chapter 1 Basic Configuration Commands
1.1.22 return
Syntax
return
View
Parameter
None
Description
Use the return command to return to user view from any other view, as you would with
the hot key <Ctrl+Z>.
Related command: quit.
Example
1.1.23 super
Syntax
super [ level ]
View
User view
Parameter
Description
Use the super command to switch from current user level to a specified user level, or
the command level that the user can access.
If no level parameter is configured, switch to the third level user by default.
There are four levels of commands:
z Visit: involves commands for network diagnosis (such as ping and tracert),
commands for accessing an external device (such as Telnet client, SSH client,
RLOGIN). Saving the configuration file is not allowed at this level.
1-20
Command Manual – Getting Started
Comware V3 Chapter 1 Basic Configuration Commands
z Monitor: includes the display and debugging commands for system maintenance,
service fault diagnosis. Saving the configuration file is not allowed at this level.
z System: provides service configuration commands, including routing and
commands at each level of the network for providing services.
z Manage: influences the basic operation of the system and the system support
modules for service support. Commands at this level involve file system, FTP,
TFTP, Xmodem download and configuration file switch, power control, standby
board control, user management, level setting, as well as parameter setting within
a system (the last case involves those non-protocol or non RFC provisioned
commands).
Login users are also classified into four levels that correspond to the four command
levels. After users at different levels log in, they can only use commands at their own, or
lower, levels.
To fence off intrusion of illegitimate users, users are required to provide the correct
super password, if one has been configured using the super password command,
when they switch from a lower level to a higher level. For privacy sake, the entered
password is not displayed on the screen. Users have three chances to provide the
correct password. Only after the correct password is entered can they switch to the
higher level. Otherwise, the original user level remains unchanged.
Related command: super password.
Example
<H3C> super 3
Password:
User privilege changes to 3 level, just equal or less this level's
commands can be used.
Privilege note: 0-VISIT, 1-MONITOR, 2-SYSTEM, 3-MANAGE
Syntax
View
System view
Parameter
1-21
Command Manual – Getting Started
Comware V3 Chapter 1 Basic Configuration Commands
Description
Use the super password command to set the password needed to switch from a lower
user level to a higher one.
Use the undo super password command to cancel the current setting.
If no user-level parameter is configured, the password of the third level user is adopted
by default.
Example
# Set the password to zbr for switching the user level to three.
[H3C] super password level 3 simple zbr
Syntax
View
Parameter
Description
Example
1-22
Command Manual – Getting Started
Comware V3 Chapter 1 Basic Configuration Commands
<H3C> system-view
[H3C] user-interface console 0
[H3C-ui-con0] super authentication-mode scheme
1.1.26 sysname
Syntax
sysname sysname
View
System view
Parameter
Description
Example
1.1.27 system-view
Syntax
system-view
View
User view
Parameter
None
Description
Use the system-view command to enter system view from current user view.
Related command: quit, return.
1-23
Command Manual – Getting Started
Comware V3 Chapter 1 Basic Configuration Commands
Example
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C]
1.1.28 vrbd
Syntax
vrbd
View
Any view
Parameter
None
Description
Use the vrbd command to view software version details, including product software
version and the matched platform software version.
Example
Syntax
command-alias enable
undo command-alias enable
View
System view
Parameter
None
1-24
Command Manual – Getting Started
Comware V3 Chapter 1 Basic Configuration Commands
Description
Use the command-alias enable command to enable the command alias function.
Use the undo command-alias enable command to disable the command alias
function.
By default, the command alias function is disabled.
Example
Syntax
View
System view
Parameter
cmdkey: The first keyword to be substituted in current commands by the alias. You
must provide the complete keyword name.
alias: Alias assigned by the user. It must not conflict with the first keyword in any current
command.
Description
Example
1-25
Command Manual – Getting Started
Comware V3 Chapter 1 Basic Configuration Commands
Syntax
display command-alias
View
Any view
Parameter
None
Description
Use the display command-alias command to view the current command alias
settings.
Example
1-26
System Management
Command Manual – System Management
Comware V3 Table of Contents
Table of Contents
i
Command Manual – System Management
Comware V3 Table of Contents
ii
Command Manual – System Management
Comware V3 Table of Contents
iii
Command Manual – System Management
Comware V3 Table of Contents
iv
Command Manual – System Management
Comware V3 Table of Contents
v
Command Manual – System Management
Comware V3 Table of Contents
vi
Command Manual – System Management
Comware V3 Table of Contents
vii
Command Manual – System Management
Comware V3 Table of Contents
viii
Command Manual – System Management
Comware V3 Table of Contents
ix
Command Manual – System Management
Comware V3 Table of Contents
x
Command Manual – System Management Chapter 1 System Maintenance and Management
Comware V3 Commands
Syntax
auto-config
View
System view
Parameter
None
Description
Caution:
The auto-config command is usually used at initial boot to execute commands in batch.
As this changes the current configurations and no undo form is available, you must
take caution when using it on a network where configuration is completed.
Although the auto-config function is available with config.def, the default configuration
file, you cannot save the configuration of the auto-config command.
1-1
Command Manual – System Management Chapter 1 System Maintenance and Management
Comware V3 Commands
modem call-in
authentication-mode scheme
2) Configuring the default user name and password, enabling Telnet, FTP, and
terminal services for the default user
local-user admin password cipher admin
level 3
service-type ftp
service-type terminal telnet
By default, the user name and password are both “admin”.
3) Detecting all the controller interfaces, including E1/T1/E3/T3 interfaces, setting
their operating status to non-channelized, generating the corresponding serial
interfaces. On the T1 interface, use the channel-set command to bundle all the
timeslots into one serial interface.
using e1
using e3
using t3
channel-set 0 timeslot-list 1-24
4) Detecting all the serial interfaces (including the logical interfaces generated by the
controller interface), encapsulating the interfaces with PPP, using PPP negotiation
to get IP addresses, and setting the interface state to UP.
link-protocol ppp
ip address ppp-negotiate
undo shutdown
5) Detecting all the Ethernet interfaces, enabling the dhcp client function, and setting
the interface state to UP.
ip address dhcp-alloc
undo shutdown
6) Detecting all the AM interfaces, setting the operating mode to flow, configuring
modem coding format (setting CountryCode to UK if there is an E1/E3 module and
if otherwise to US), and setting the interface state to UP.
async mode flow
country-code { united-kingdom | united-states }
undo shutdown
Related command: auto-config enable.
1-2
Command Manual – System Management Chapter 1 System Maintenance and Management
Comware V3 Commands
Example
Syntax
auto-config enable
undo auto-config
View
System view
Parameter
None
Description
Example
# Enable auto-config.
[H3C] auto-config enable
# Disable auto-config.
[H3C] undo auto-config
Syntax
display auto-config
View
Any view
Parameter
None
1-3
Command Manual – System Management Chapter 1 System Maintenance and Management
Comware V3 Commands
Description
Example
Syntax
View
User view
Parameter
Description
1-4
Command Manual – System Management Chapter 1 System Maintenance and Management
Comware V3 Commands
Example
Syntax
View
Any view
Parameter
Description
Use the display debugging command to view the enabled debugging switches.
By default, no parameters are defined and all the enabled debugging switches are
displayed.
Related command: debugging.
Example
Syntax
display diagnostic-information
View
Any view
Parameter
None
1-5
Command Manual – System Management Chapter 1 System Maintenance and Management
Comware V3 Commands
Description
Example
===================================================
===============display version====
===================================================
… …
==========================
===============vrbd===============
========================================
… …
==================================================
===============display device===============
==================================================
… …
=================================================================
===============display current-configuration===============
=================================================================
… …
===============================================================
===============display saved-configuration=====
===============================================================
… …
1-6
Command Manual – System Management Chapter 1 System Maintenance and Management
Comware V3 Commands
=====================================================
===============display interface===============
=====================================================
… …
======================================================
===============display controller===============
======================================================
========================================================
===============display ip interface===============
========================================================
… …
=========================================================
===============display ip statistics===============
=========================================================
… …
========================================================
===============display exception 20===============
========================================================
… …
===============================================================
===============display exception 3 verbose===============
===============================================================
=====================================================
===============display logbuffer===============
=====================================================
… …
========================================================
===============_display history all===============
========================================================
… …
1-7
Command Manual – System Management Chapter 1 System Maintenance and Management
Comware V3 Commands
Syntax
View
System view
Parameter
None
Description
Use the icmp unreach send command to configure the router to send ICMP
unreachable messages.
Use the undo unreach send command to configure the router not to send ICMP
unreachable messages (except for protocol unreachable, port unreachable, and
fragmentation needed and DF-set)
By default, ICMP unreachable messages are sent.
After the configuration of the undo icmp unreach send command, the router does not
send the ICMP unreachable messages resulted from failing in checking routing (except
for protocol unreachable, port unreachable, and fragmentation needed and DF-set).
Example
Syntax
ip df-check enable
undo ip df-check enable
View
System view
Parameter
None
1-8
Command Manual – System Management Chapter 1 System Maintenance and Management
Comware V3 Commands
Description
Use the ip df-check enable command to enable don’t fragment bit (DF-bit) check for IP
packets.
Use the undo ip df-check enable command to disable DF-bit check for IP packets.
By default, DF-bit check is enabled for IP packets.
With DF-bit check enabled, the router checks the DF bit in the IP header. If an arriving
packet with the DF bit set to 1 is greater than the MTU of the outgoing interface, the
router does not fragment the packet; instead, it drops the packet and sends back an
ICMP message carrying the code of fragmentation needed and DF set.
Before disabling DF-bit check for IP packets, you must ensure that it is disabled on all
the devices along the link.
Example
Syntax
ip option source-routing
undo ip option source-routing
View
System view
Parameter
None
Description
Use the ip option source-routing command to enable IP source routing, allowing the
router to handle the packets with the IP source-route option.
Use the undo ip option source-routing command to disable IP source routing.
By default, IP source routing is disabled to decrease the risk of attacks. You may enable
and use it in conjunction with the ping or tracert command executed on other devices
when troubleshooting network path faults or transmitting some special service.
Example
1-9
Command Manual – System Management Chapter 1 System Maintenance and Management
Comware V3 Commands
1.2.7 ip source-address-check
Syntax
ip source-address-check
undo ip source-address-check
View
System view
Parameter
None
Description
Example
1.2.8 ping
Syntax
View
Any view
1-10
Command Manual – System Management Chapter 1 System Maintenance and Management
Comware V3 Commands
Parameter
Description
Use the ping command to test connectivity of an IP network and reachability of a host.
The following are the default settings apply when none of the parameters is specified:
An ECHO-REQUEST packet is sent five times at most.
Socket is non-debug mode.
1-11
Command Manual – System Management Chapter 1 System Maintenance and Management
Comware V3 Commands
Example
1-12
Command Manual – System Management Chapter 1 System Maintenance and Management
Comware V3 Commands
1.2.9 reboot
Syntax
reboot
View
User view
Parameter
None
Description
Example
1.2.10 tracert
Syntax
View
Any view
Parameter
-a X.X.X.X: Specifies the source IP address in this trace. It is in the format of X.X.X.X
and must be the address of a local interface.
-f first_TTL: Tests the correctness of the –f switch. first_TTL specifies an initial TTL in
the range 0 to maximum TTL.
-m max_TTL: Tests the correctness of the –m switch. max_TTL specifies a maximum
TTL, which can be any TTL larger than the initial TTL.
1-13
Command Manual – System Management Chapter 1 System Maintenance and Management
Comware V3 Commands
-p port: Tests the correctness of the –p switch. port is an integer specifying a port on the
destination host. Normally, you need not to change this option.
-q nqueries: Tests the correctness of the –q switch with nqueries specifying the number
of the query packets sent each time. It can be any integer greater than zero.
vpn-instance vpn-instance-name: Sets the vpn-instance name of MPLS VPN,
specifying the VPN attribute configured in this tracert command, that is, name of the
associated vpn-instance created locally.
-w timeout: Tests the correctness of the -w switch. timeout specifies the timeout time of
IP packets. It is in seconds and can be any integer larger than zero.
host: IP address of the destination host.
Description
Use the tracert command to trace the gateways by which a packet passes from source
to destination for network connectivity test and fault location.
The following are the default settings that apply when none of the parameters is
specified:
The parameters -a and vpn-instance are not specified.
first_TTL is 1.
max_TTL is 30.
port is 33434.
nqueries is 3.
timeout is 5 seconds.
The following is how a tracert operates:
1) Tracert sends a packet with TTL value of 1.
2) The fist hop sends back an ICMP TTL Expired message.
3) Tracert resends the packet with TTL value of 2.
4) The second hop sends back an ICMP TTL Expired message when the packet
arrives.
This process continues until the packet reaches its destination. By doing this, the
source station obtains the source address in every returned ICMP TTL Expired
message to draw the path for the IP packet to reach its destination.
After detecting a fault with the ping command, you can use the tracert command to
locate the problem.
The output of the command tracert includes IP addresses of all the gateways along the
path to the destination. If a gateway times out, asterisks (***) are output.
If the destination is unreachable or too many hops, you can use CTRL_C to terminate
the test.
1-14
Command Manual – System Management Chapter 1 System Maintenance and Management
Comware V3 Commands
Example
Syntax
View
Any view
Parameter
1-15
Command Manual – System Management Chapter 1 System Maintenance and Management
Comware V3 Commands
Description
Use the display channel command to view the contents in an information channel.
When executed without any parameter specified, this command displays the settings of
all channels.
Example
Field Description
channel number:0 Channel number
channel name:console Channel name
MODU_ID Module ID
NAME Module name
ENABLE LOG_LEVEL State of log-level log is enable
ENABLE TRAP_LEVEL State of trap-level log is enable
ENABLE DEBUG_LEVEL State of debug-level log is enable
1-16
Command Manual – System Management Chapter 1 System Maintenance and Management
Comware V3 Commands
Syntax
display info-center
View
Any view
Parameter
None
Description
Use the display info-center command to view all the information recorded in the
info-center.
Related command: info-center enable, info-center loghost, info-center logbuffer,
info-center trapbuffer, info-center console channel, info-center monitor channel.
Example
1-17
Command Manual – System Management Chapter 1 System Maintenance and Management
Comware V3 Commands
Field Description
Information Center: enabled Information center is enabled
Information about the log host direction.
If configured, the following information
will be displayed:
Log host: IP address of log host, name and
number of information channel,
language, and level of output
information
Console: Information about the console port
channel number : 0, channel name : direction, including name and number of
console its information channel
Trap buffer:
enabled,max buffer size 1024, Information about the trap buffer,
current buffer size : 256, including its state, maximum size,
current messages 0, channel number:3, current size, current messages, channel
channel name:trapbuffer number, channel name, dropped
messages, and overwritten messages
dropped messages 0, overwrote
messages 0
Log buffer:
enabled,max buffer size 1024, current Information about the log buffer
buffer size 256, direction, including state of the log buffer
(enabled or disabled), its maximum size,
current messages 89, channel number : current size, information channel name
4, channel name : logbuffer and number, dropped messages, and
dropped messages 0, overwrote overwritten messages
messages 0
logfile: Information about the log file direction,
channel number:9, channel including information channel number
name:channel9, language:English and name, and language
Timestamp format:
Information timestamp setting:
Date for both log-level and trap-level
log - date, trap - date, debug - boot
logs and boot for debug-level log
1-18
Command Manual – System Management Chapter 1 System Maintenance and Management
Comware V3 Commands
Syntax
View
Any view
Parameter
Description
Use the display logbuffer command to view the information recorded in the log buffer.
By default, the display logbuffer command is executed without any parameter
specified to display all information in the log buffer.
If the number of information entries in the current log buffer is smaller than the specified
size-value, all the entries are displayed.
Related command: info-center enable, info-center logbuffer, display info-center.
Example
1-19
Command Manual – System Management Chapter 1 System Maintenance and Management
Comware V3 Commands
%8/28/2101 5:34:48-IC-7-SYS_RESTART:
System restarted --
H3C Platform Software
%Dec 3 09:04:38:723 2005 r2 RM/5/RTLOG:
rtbit_set_vrf:127.0.0.0/8(n_bitsset=0) public vpn-instance(1) -> KRT
%Dec 3 09:04:38:772 2005 r2 SHELL/5/CMD:task:CFM ip:** user:**
command:interfac
e Aux0
%Dec 3 09:04:38:825 2005 r2 SHELL/5/CMD:task:CFM ip:** user:**
command:interfac
e Ethernet0/0
%Dec 3 09:04:38:837 2005 r2 SHELL/5/CMD:task:CFM ip:** user:**
command:interfac
e Serial0/0
%Dec 3 09:04:38:861 2005 r2 SHELL/5/CMD:task:CFM ip:** user:**
command:interfac
e Serial1/0
%Dec 3 09:04:38:887 2005 r2 SHELL/5/CMD:task:CFM ip:** user:**
command:interfac
e Serial1/1
Field Description
Logging buffer configuration and
Log buffer is enabled
contents:enabled
Maximum size of the log buffer is 1024
Allowed max buffer size : 1024
entries
Actual size of the log buffer is 256
Actual buffer size : 256
entries
Channel number : 4 , Channel name : Number and name of the information
logbuffer channel for the log buffer
Dropped messages : 0 Number of dropped messages
Overwritten messages : 0 Number of overwritten messages
Current messages : 96 Number of current messages
Syntax
1-20
Command Manual – System Management Chapter 1 System Maintenance and Management
Comware V3 Commands
View
Any view
Parameter
Description
Use the display logbuffer summary command to display a summary about the log
buffer on the router.
Example
The command output shows the number of log entries for each information level in the
log buffer.
Syntax
View
Any view
Parameter
1-21
Command Manual – System Management Chapter 1 System Maintenance and Management
Comware V3 Commands
Description
Use the display trapbuffer command to view the information entries in the trap buffer.
By default, the command is executed without any parameter specified to display all
information in the trap buffer.
If the number of entries in the current trap buffer is smaller than the specified sizeval, all
entries are displayed.
Related command: info-center enable, info-center trapbuffer, display info-center.
Example
Field Description
Trapping Buffer Configuration and
Trap buffer is enabled
contents: enabled
Maximum size of the trap buffer is 1024
Allowed max buffer size : 1024
entries
Actual size of the trap buffer is 256
Actual buffer size : 256
entries
1-22
Command Manual – System Management Chapter 1 System Maintenance and Management
Comware V3 Commands
Field Description
channel number : 3 , channel name : Number and name of the information
trapbuf channel for the trap buffer
Dropped messages : 0 Number of dropped messages
Overwritten messages : 0 Number of overwritten messages
Current messages : 0 Number of current messages
Syntax
View
System view
Parameter
Description
Use the info-center channel command to assign a name to the information channel
specified by channel-number.
Note that the assigned name must be unique.
Example
Syntax
View
System view
1-23
Command Manual – System Management Chapter 1 System Maintenance and Management
Comware V3 Commands
Parameter
Description
Use the info-center console channel command to have the info-center output
information to the console over the specified channel.
Use the undo info-center console channel command to disable the current settings.
By default, no system information is output to the console.
This command becomes valid only when the syslog function is enabled.
Related command: info-center enable and display info-center.
Example
Syntax
info-center enable
undo info-center enable
View
System view
Parameter
None
Description
Example
1-24
Command Manual – System Management Chapter 1 System Maintenance and Management
Comware V3 Commands
Syntax
View
System view
Parameter
channel: Sets the channel for outputting information to the log buffer.
channel-number: Channel number in the range 0 to 9. The system has 10 channels.
channel-name: Channel name.
size: Sets log buffer size.
buffersize: Size of the log buffer (the message entries that can be accommodated).
Description
Use the info-center logbuffer command to enable the log buffer and specify the
channel for system information output as well as the size of the log buffer.
Use the undo info-center logbuffer command to cancel the current settings.
By default, information output to the log buffer is allowed and log buffer size is 512.
Only when the info-center is enabled can this command become effective.
By setting channel number after enabling log buffer, you can specify information output
direction.
Related command: info-center enable, display info-center.
Example
# Enable the info-center to send information to the log buffer and set the log buffer size
to 50.
[H3C] info-center logbuffer size 50
Syntax
1-25
Command Manual – System Management Chapter 1 System Maintenance and Management
Comware V3 Commands
View
System view
Parameter
Description
Use the info-center logfile channel command to have the info-center output system
information to the log file.
Use the undo info-center logfile channel command to cancel the current setting.
Only when the information center is enabled can this command become effective.
Related command: info-center enable, display info-center.
Example
Syntax
View
System view
Parameter
1-26
Command Manual – System Management Chapter 1 System Maintenance and Management
Comware V3 Commands
Description
Use the info-center loghost command to have the info-center output information to
the log host.
Use the undo info-center loghost command to cancel the current setting.
By default, no information is output to the log host.
If not specified, the information channel for the log host defaults to channel 2 which is
named log host, the log host recording tool local-number to local 7, and the language to
english.
Only when the information center is enabled can this command become effective.
By setting the IP address of the log host, you can specify the information output
direction. You can set up to four log hosts.
Related command: info-center enable, display info-center.
Example
Syntax
View
System view
Parameter
Description
Use the info-center loghost source command to specify the source address in the
packets destined to the log host.
Use the undo info-center loghost source command to cancel the current
configuration.
When a log message is sent out a router, its source address defaults to the IP address
of the interface where it is sent. You can change this address however using this
command. By assigning different source addresses to the packets sent by different
routers, you can discriminate them for retrieval convenience.
1-27
Command Manual – System Management Chapter 1 System Maintenance and Management
Comware V3 Commands
Example
# Set the IP address of loopback 0 as the source address of the log messages.
[H3C] interface loopback 0
[H3C-LoopBack0] ip address 1.1.1.1 255.255.255.0
[H3C-LoopBack0] quit
[H3C] info-center loghost source loopback 0
Syntax
View
System view
Parameter
Description
Use the info-center monitor channel command to have the info-center output
information over the specified channel to the user terminal.
Use the undo info-center monitor channel command to cancel the current setting.
By default, no information is output to the user terminal.
Only when the info-center is enabled can this command become effective.
Related command: info-center enable, display info-center.
Example
# Enable the info-center to output information to the user terminal and set the output
channel.
[H3C] info-center monitor channel monitor
Syntax
1-28
Command Manual – System Management Chapter 1 System Maintenance and Management
Comware V3 Commands
View
System view
Parameter
Description
Use the info-center snmp channel command to set the information channel for
SNMP.
Use the undo info-center snmp channel command to cancel the current setting.
By default, channel 5 is used.
Related command: display snmp-agent statistics.
Example
Syntax
View
System view
Parameter
1-29
Command Manual – System Management Chapter 1 System Maintenance and Management
Comware V3 Commands
*: Indicates to select from multiple options, at least one and at most all.
Description
1-30
Command Manual – System Management Chapter 1 System Maintenance and Management
Comware V3 Commands
In addition, each information channel has a default record, where the module name and
number are default and 0xffff0000. But for different channels, the record may have
different default settings for log, trap, and debugging information. If a module has no
explicit configuration record in the channel, the default configuration record is used.
When adding a new or duplicate record, you need to specify its log, trap, and debug
information levels if the default levels are not desired.
Example
# Output IP module’s log information at emergencies and lower levels through the
SNMP channel.
[H3C] info-center source ip channel snmpagent log level emergencies
Syntax
info-center synchronous
undo info-center synchronous
View
System view
Parameter
None
Description
1-31
Command Manual – System Management Chapter 1 System Maintenance and Management
Comware V3 Commands
Example
Syntax
View
System view
Parameter
Description
Use the info-center timestamp command to set a time stamp format for the system
information output to the information channels except for the log host.
Use the undo info-center timestamp command to cancel the current configuration.
By default, the boot time stamp is used for debugging information while the date time
stamp is used for other types of information.
Example
1-32
Command Manual – System Management Chapter 1 System Maintenance and Management
Comware V3 Commands
Syntax
View
System view
Parameter
date: Specifies to use the time stamp format containing the year. With this keyword
specified, the log information will contain information about the year, for example, “May
27 10:29:38 2005 H3C %%10SHELL/5/CMD(l): task:co0 ip:** user:** command:dis
this”.
no-year-date: Specifies to use the time stamp format without the year. With this
keyword specified, the log information will not contain information about the year, for
example, “May 27 10:29:54 H3C %%10SHELL/5/CMD(l): task:co0 ip:** user:**
command:dis this”.
none: Specifies not to use time stamps. With this keyword specified, the log information
will not contain time information, for example, “H3C %%10SHELL/5/CMD(l): task:co0
ip:** user:** command:dis this”.
Description
Use the info-center timestamp loghost command to set a time stamp format for the
system information output to the log host.
Use the undo info-center timestamp loghost command to restore the default.
By default, the date keyword applies.
Example
# Set the time stamp format to date for the system information output to the log host.
[H3C] info-center timestamp loghost date
Syntax
1-33
Command Manual – System Management Chapter 1 System Maintenance and Management
Comware V3 Commands
View
System view
Parameter
Description
Use the info-center trapbuffer command to enable the trap buffer, set its size and the
channel that outputs information to it.
Use the undo info-center trapbuffer command to cancel the current settings.
By default, information output to trap buffer is allowed and the trap buffer size is 256.
Only when the info-center is enabled can this command become effective.
By setting size of the trap buffer, you can allow the info-center output information to the
trap buffer.
Related command: info-center enable, display info-center.
Example
# Enable the info-center to send information to the trap buffer whose size is 30.
[H3C] info-center trapbuffer size 30
Syntax
reset logbuffer
View
User view
Parameter
None
Description
Use the reset logbuffer command to clear information in the log buffer.
1-34
Command Manual – System Management Chapter 1 System Maintenance and Management
Comware V3 Commands
Example
Syntax
reset trapbuffer
View
User view
Parameter
None
Description
Use the reset trapbuffer command to clear information in the trap buffer.
Example
Syntax
terminal debugging
undo terminal debugging
View
User view
Parameter
None
Description
Use the terminal debugging command to have the debugging information displayed
on the user terminal.
Use the undo terminal debugging command to disable the function.
By default, terminal display is disabled.
Related command: debugging.
1-35
Command Manual – System Management Chapter 1 System Maintenance and Management
Comware V3 Commands
Example
Syntax
terminal logging
undo terminal logging
View
User view
Parameter
None
Description
Use the terminal logging command to have the log information displayed on the
terminal.
Use the undo terminal logging command to disable displaying log information on the
terminal.
By default, log information can be displayed on the terminal.
Example
Syntax
terminal monitor
undo terminal monitor
View
User view
Parameter
None
1-36
Command Manual – System Management Chapter 1 System Maintenance and Management
Comware V3 Commands
Description
Use the terminal monitor command to have the terminal display debugging /log/trap
information sent from the info-center.
Use the undo terminal monitor command to disable the terminal to display
debugging/log/trap information.
By default, terminal display is turned on for console users, allowing all prompt
messages to output to the console terminal.
For other types of terminal user, AUX, VTY, and TTY, terminal display is turned off by
default. To have the prompt messages for them output to the console terminal, you
need to configure the terminal monitor command.
The undo terminal monitor command prohibits all debugging, log, and trap
information from outputting to the current terminal, just as the undo terminal
debugging, undo terminal logging, and undo terminal trapping commands would
do.
When the terminal monitor command is configured, you can use the terminal
debugging/undo terminal debugging, terminal logging/undo terminal logging,
and terminal trapping/undo terminal trapping commands to enable/disable
debugging/log/trap information output.
Example
Syntax
terminal trapping
undo terminal trapping
View
User view
Parameter
None
Description
Use the terminal trapping command to have the terminal display trap information.
Use the undo terminal trapping command to disable the terminal to display trap
information.
1-37
Command Manual – System Management Chapter 1 System Maintenance and Management
Comware V3 Commands
Example
Syntax
View
Any view
Parameter
Description
Use the display alarm urgent command to view the stored alarms in a specified way.
Executing the command without any parameter displays all alarms.
Example
Table 1-9 Description on the fields of the display alarm urgent command
Field Description
Identification of the alarm, which is dictated by the software. You can
Alarm ID
look it up in the manual for the corresponding alarm reason.
Slot Slot originating the alarm
1-38
Command Manual – System Management Chapter 1 System Maintenance and Management
Comware V3 Commands
Field Description
Time Time of the alarm
You can look up the alarm ID in the manual for the corresponding
Para1
alarm reason.
Para2 You can look it up in the manual for the corresponding alarm reason.
Syntax
display environment
View
Any view
Parameter
None
Description
Use the display environment command to view the current values and the thresholds
of the hardware system environment.
Example
environment information:
Temperature information:
local CurrentTemperature LowLimit HighLimit
(deg c ) (deg c) (deg c )
RPU 34 0 80
VENT 31 0 80
Field Description
local Name of a hardware unit such as RPU/ERPU
CurrentTemperature Current temperature of the hardware unit
LowLimit Lower limit of the temperature
1-39
Command Manual – System Management Chapter 1 System Maintenance and Management
Comware V3 Commands
Field Description
HighLimit Upper limit of the temperature
Syntax
View
Any view
Parameter
Description
Use the display device command to view information on the hardware configurations
of the system, including in-position state of the RPU, NPU, interface cards, power
module, and fan module, the operating state of the interface cards, power module, and
fan module, as well as the offline state of RPU and NPU.
If no slot is specified, the basic information about all the facilities in position is displayed.
If a slot is specified, only details about the slot are displayed, including records of the
reset times and causes.
Example
Field Description
Slot # Slog number
Type Name of the hardware unit
Indicates whether the hardware unit is present. A value of
Online
Present indicates that the unit has been installed correctly.
Status Status of the hardware unit
1-40
Command Manual – System Management Chapter 1 System Maintenance and Management
Comware V3 Commands
Syntax
View
Any view
Parameter
None
Description
Use the display schedule reboot command to view settings related to the H3C’s
schedule reboot terminal service.
Related command: reboot, schedule reboot at, schedule reboot delay, undo
schedule reboot.
Example
# Display the current settings related to the schedule reboot terminal service.
<H3C> display schedule reboot
Reboot system at 16:00:00 2006/1/1 (in 2 hours and 5 minutes).
Syntax
View
User view
Parameter
Description
Use the remove slot command to have the system do some pre-processing work
before removing an interface card.
Use the undo remove slot command to cancel the inadvertent operation on the
remove slot command.
1-41
Command Manual – System Management Chapter 1 System Maintenance and Management
Comware V3 Commands
You do not need to execute the undo remove slot command when you replace a
removed card, but you must execute the remove slot command before removing a
card.
Example
Syntax
View
User view
Parameter
None
Description
Use the reset alarm urgent command to clear all the stored alarms.
Example
Syntax
View
User view
Parameter
time: Reboot time of the H3C, in the format of hh:mm (hours:minutes). hh is in the
range 0 to 23, and mm is in the range 0 to 59.
date: Reboot date of the H3C, in the format of mm/dd/yyyy or yyyy/mm/dd where mm is
the month of the year in the range 1 to 12, dd is the day of the month, the range of which
depends on month, and yyyy is the year in the range 2000 to 2099.
1-42
Command Manual – System Management Chapter 1 System Maintenance and Management
Comware V3 Commands
Description
Use the schedule reboot at command to enable the scheduled reboot function of the
H3C and schedule the reboot time and date.
By default, scheduled reboot is disabled.
If a future date is specified, the H3C will reboot as scheduled with about one minute’s
tolerance.
If no date is specified, two cases are involved:
z If the time is set behind the current time, the H3C will reboot at the time of that day;
z If the configured time is ahead of the current time, the H3C will reboot at that time
the next day.
The configured date must not be 30 days ahead of the current date. In addition, to have
the schedule take effect, you must confirm it by entering “y” or “Y” when asked by the
system. This overwrites the original setting, if there is any.
Note:
z After you configure the schedule reboot at command, tuning system time with the
clock command or through NTP will void the scheduled reboot setting you made.
z After the configuration of the schedule reboot at command, a timer starts. This
timer is cyclic and measured in minutes. For example, if you set at 12:05:26 to have
the H3C reboot at 12:06:00, the H3C will reboot at 12:06:26 instead of 12:06:00.
Related command: reboot, schedule reboot delay, undo schedule reboot, display
schedule reboot.
Example
# Set the H3C to reboot at 22:00 that night (the current time is 15:50).
<H3C> schedule reboot at 22:00
Reboot scheduled for 22:00:00 UTC 1/18/2006 (in 6 hours and 10 minutes)
Proceed with reboot? [Y/N]:y
Syntax
View
User view
1-43
Command Manual – System Management Chapter 1 System Maintenance and Management
Comware V3 Commands
Parameter
time: Time waiting for reboot, in the format of hhh:mm (hours:minutes), where hhh
ranges from 0 to 720, and mm ranges from 0 to 59.
minutes: Time waiting for reboot, absolute minute value in the range 0 to 43200.
Description
Use the schedule reboot delay command to enable scheduled H3C reboot and set
the waiting time.
By default, the scheduled H3C reboot function is disabled.
In setting the time waiting for reboot, two formats are available: hours: minutes
(hhh:mm) and "absolute minutes". But the total time length must be less than or equal
to 30×24×60 minutes, or 30 days.
After you complete this configuration, the system asks you to confirm and validate the
setting by entering a "Y" or "y". If a future date is specified, the H3C will reboot as
scheduled with about one minute’s tolerance. The validated new setting overwrites the
original setting, if there is any.
Note:
After you configure the schedule reboot delay command, tuning system time with the
clock command or through NTP will void the scheduled reboot setting you made.
Related command: reboot, schedule reboot at, undo schedule reboot, display
schedule reboot.
Example
# Configure the H3C to reboot 88 minutes later (the current time is 21:32).
<H3C> schedule reboot delay 88
Reboot scheduled for 23:00:00 UTC 11/1/2005 (in 1 hours and 28 minutes)
Proceed with reboot? [Y/N]:y
1.4.9 upgrade
Syntax
View
System view
1-44
Command Manual – System Management Chapter 1 System Maintenance and Management
Comware V3 Commands
Parameter
Description
Use the upgrade command to upgrade the Boot ROM program, pico-code or the logic.
Example
Syntax
View
User view
Parameter
None
Description
Use the undo schedule reboot command to cancel the configuration of the schedule
reboot terminal service.
Related command: reboot, schedule reboot at, schedule reboot delay, display
schedule reboot.
Example
Syntax
1-45
Command Manual – System Management Chapter 1 System Maintenance and Management
Comware V3 Commands
View
System view
Parameter
filename: BootRom file name in Flash Memory, which must have an extension name.
Description
Example
1-46
Command Manual – System Management
Comware V3 Chapter 2 Auto Detect Configuration Commands
Syntax
View
User view
Parameter
Description
Example
2.1.2 detect-group
Syntax
detect-group group-number
undo detect-group group-number
View
System view
2-1
Command Manual – System Management
Comware V3 Chapter 2 Auto Detect Configuration Commands
Parameter
group-number: Number for the detect group. The number range differs with devices.
Refer to the system prompt.
Description
Use the detect-group command to create a detect group and enter its view.
Use the undo detect-group command to remove a specified detect group.
Example
2.1.3 detect-list
Syntax
View
Parameter
list-number: Sequence number for an address to be probed in the detect group. The
number range differs with devices. Refer to the system prompt.
ip-address: IP address to be probed.
nexthop ip-address: Specifies a next hop IP address for reaching the IP address to be
probed, that is, the address where auto detect starts.
Description
Use the detect-list command to add an IP address to the detect group and assign the
address a detecting sequence number.
Use the undo detect-list command to remove an IP address from the detect group.
You can specify the relationship between different IP addresses by using the option
command. The H3C probes these IP addresses in the ascending order of their
assigned sequence numbers.
Related command: option.
2-2
Command Manual – System Management
Comware V3 Chapter 2 Auto Detect Configuration Commands
Example
# Add IP address 202.13.1.55 with sequence number 1 to detect group 10, taking IP
address 1.1.1.1 as the next hop address.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] detect-group 10
[H3C-detect-group-10] detect-list 1 ip address 202.13.1.55 nexthop 1.1.1.1
Syntax
View
Any view
Parameter
Description
Example
Field Description
The following configuration information is about
detect-group 1
detect group 1
2-3
Command Manual – System Management
Comware V3 Chapter 2 Auto Detect Configuration Commands
Field Description
detect loop time(s): 15 The auto detect interval is 15 seconds
The timeout period of a probing attempt is 2
ping wait time(s): 2
seconds
detect retry times: 2 The number of probing retries is 2
The logical relationship between the addresses
detect ip option: and
in the detect group is and
Current state of the detect group is that no
group state: not detecting
probing is going on
Count of times the detect group has been
register module num: 0
referenced
detect ip number: 1 Number of IP addresses in the detect group
Sequence number of an IP address in the
detect-list
detect group
ip address IP address to be probed
Next hop IP address for reaching the IP
next-hop
address to be probed
2.1.5 option
Syntax
option { and | or }
undo option [ and | or ]
View
Parameter
and: Specifies that the relationship between the addresses to be probed is logical AND.
or: Specifies that the relationship between the addresses to be probed is logical OR.
Description
Use the option command to specify the logical relationship between the addresses to
be probed in the detect group.
Use the undo option command to restore the default logical relationship.
The H3C probes the IP addresses in a detect group in the ascending order of their
assigned sequence numbers and determines whether the detect group is reachable as
follows:
2-4
Command Manual – System Management
Comware V3 Chapter 2 Auto Detect Configuration Commands
z When the relationship between the IP addresses is logical AND, the detect group
is regarded reachable only if all IP addresses can be pinged. If the H3C fails to
ping an IP address, it stops probing and considers that the detect group is
unreachable.
z When the relationship between the IP addresses is logical OR, the detect group is
regarded reachable if one of the IP addresses can be pinged. When an IP address
is pinged, the H3C stops probing and considers that the detect group is reachable.
By default, the relationship between the addresses in a detect group is logical AND.
Example
2.1.6 retry
Syntax
retry retry-times
undo retry
View
Parameter
Description
Use the retry command to set the maximum number of probing retries during an auto
detect interval.
Use the undo retry command to restore the default maximum number of probing
retries during an auto detect interval.
Example
# Specify the maximum number of probing retries during an auto detect interval to 3 for
detect group 10.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] detect-group 10
2-5
Command Manual – System Management
Comware V3 Chapter 2 Auto Detect Configuration Commands
[H3C-detect-group-10] retry 3
Syntax
View
Parameter
seconds: Auto detect interval. It ranges from 1 to 86,400 seconds and defaults to 15
seconds.
Description
Use the timer loop command to set the auto detect interval, that is, the frequency for
auto detect.
Use the undo timer loop command to restore the default auto detect interval.
Example
Syntax
View
Parameter
seconds: Timeout time for a probing attempt. It ranges from 1 to 30 seconds and
defaults to 2 seconds.
2-6
Command Manual – System Management
Comware V3 Chapter 2 Auto Detect Configuration Commands
Description
Use the timer wait command to set a timeout period for a probing attempt.
Use the undo timer wait command to restore the default timeout period for a probing
attempt.
Example
# Set the probing attempt timeout period to three seconds for detect group 3.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] detect-group 10
[H3C-detect-group-10] timer wait 3
Note:
z For a detailed description of static routing, refer to the “Routing Protocol” part of this
manual.
z For a detailed description of VRRP, refer to the “Reliability” part of this manual.
Syntax
View
System view
Parameter
ip-address: Destination IP address of the static route, in the dotted decimal format.
mask: Subnet mask of the destination IP address.
mask-length: Length of the subnet mask, that is, the number of the consecutive 1s in
the subnet mask.
interface-type: Type of the outbound interface.
interface-number: Number of the outbound interface.
nexthop: IP address of the next hop, in the dotted decimal format.
2-7
Command Manual – System Management
Comware V3 Chapter 2 Auto Detect Configuration Commands
Description
Example
# Configure a static route to 192.168.0.5/24 with 192.168.0.2 as the next hop and
reference detect group 10. This static route is valid only when detect group 10 is
reachable.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] ip route-static 192.168.0.5 24 192.168.0.2 detect-group 10
Syntax
View
Interface view
Parameter
Description
Use the standby detect-group command to implement interface backup using the
auto detect function.
Use the undo standby detect-group command to disable interface backup using the
auto detect function.
Using the result of auto detect, you can control whether to enable the backup interface.
When a detect group is referenced for interface backup, the H3C does one of the
following:
2-8
Command Manual – System Management
Comware V3 Chapter 2 Auto Detect Configuration Commands
Example
Syntax
View
Parameter
Description
Use the vrrp vrid command to implement VRRP using the auto detect function.
Use the undo vrrp vrid command to remove the auto detect function from VRRP.
When a detect group is referenced for implementing VRRP, the H3C does one of the
following:
z When the detect group is unreachable, decrease the preference value of the
standby group.
z When the detect group is reachable, restore the preference value of the standby
group.
Example
# Create a detect group numbered 10 and add IP address 202.13.1.55 to the group.
2-9
Command Manual – System Management
Comware V3 Chapter 2 Auto Detect Configuration Commands
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] detect-group 10
[H3C-detect-group-10] detect-list 1 ip address 202.13.1.55
2-10
Command Manual – System Management
Comware V3 Chapter 3 HWPing Commands
Syntax
adv-factor adv-number
undo adv-factor
View
Parameter
adv-number: Advantage factor, used to count Mos and ICPIF value in a jitter voice test.
It is in the range 0 to 20 and defaults to 0.
Description
Use the adv-factor command to configure the advantage factor which is used to count
Mos and ICPIF value in a jitter voice test.
Use the undo adv-factor command to restore the default.
Note:
This command applies only to jitter voice test.
Example
3.1.2 count
Syntax
count times
undo count
3-1
Command Manual – System Management
Comware V3 Chapter 3 HWPing Commands
View
Parameter
times: Number of the probes for a test. It is in the range 1 to 15 and defaults to 1.
Description
Use the count command to configure the number of probes for each test.
Use the undo count command to restore the default.
A test timer starts when the system probes for the first time. In the event that the times
argument is set greater than one, the system continues to probe for the second time
upon receipt of the reply to the first one. If receiving no reply upon expiry of the timer,
the system probes for the second time and continue all the remaining probes likewise.
Related command: frequency.
Example
3.1.3 datafill
Syntax
datafill string
undo datafill
View
Parameter
string: Data for padding test packets. It is a string of less than 230 characters. By
default, test packets are padded with characters in the range 0 to 255 cyclically.
Description
Use the datafill command to configure the data for padding test packets.
Use the undo datafill command to restore the default.
You can pad HWPing test packets with any character string. If the size of a test packet
is smaller than that of the configured padding string, only a portion of the data is used. If
the size of the packet is larger, the string is used cyclically for padding. Suppose a
padding string, “abcd” is configured. If the test packet size is 3, only “abc” is used; if it is
6, the string “abcdab" is used.
3-2
Command Manual – System Management
Comware V3 Chapter 3 HWPing Commands
The configuration of a padding character string is only supported by ICMP, UDP and
jitter tests. The configuration voids other test types.
Example
3.1.4 datasize
Syntax
datasize size
undo datasize
View
Parameter
size: Test packet size in bytes, the range of which depends on test type.
The configuration of packet size is only supported by ICMP, UDP and jitter tests. The
configuration voids other test types.
Description
Example
3-3
Command Manual – System Management
Comware V3 Chapter 3 HWPing Commands
Syntax
View
User view
Parameter
Description
Example
3.1.6 description
Syntax
description string
undo description
View
Parameter
Description
3-4
Command Manual – System Management
Comware V3 Chapter 3 HWPing Commands
Example
3.1.7 destination-ip
Syntax
destination-ip ip-address
undo destination-ip
View
Parameter
Description
Use the destination-ip command to configure the destination IP address in the test.
Use the undo destination-ip command to delete the configured destination IP
address.
By default, no destination IP address is configured for any test.
Related command: destination-port.
Example
3.1.8 destination-port
Syntax
destination-port port-number
undo destination-port
View
Parameter
port-number: Destination port number in a test. It is in the range 1 to 50000 for a TCP
test and 1 to 49999 for a UDP test.
3-5
Command Manual – System Management
Comware V3 Chapter 3 HWPing Commands
Description
Use the destination-port command to configure the destination port in the test.
Use the undo destination-port command to delete the configured destination port.
By default, no destination port is configured for any test.
Note:
This command is configured only for jitter, TCP-private, or UDP-private test.
Example
Syntax
View
Any view
Parameter
Description
Use the display hwping command, you can view test result(s).
If a test group is specified using the arguments of administrator-name and
operation-tag, the system displays only the test result of the group; if not, it displays the
test results of all the test groups.
Related command: test-enable.
3-6
Command Manual – System Management
Comware V3 Chapter 3 HWPing Commands
Example
Table 3-2 Fields in the output of the display hwping results command
Field Description
Destination ip address Destination IP address.
3-7
Command Manual – System Management
Comware V3 Chapter 3 HWPing Commands
Table 3-3 Fields in the output of the display hwping history command
Field Description
Roundtrip test time in milliseconds, or timeout time. It is 0
Response
for an incomplete test.
Status Test result value
Syntax
View
Any view
Parameter
Description
3-8
Command Manual – System Management
Comware V3 Chapter 3 HWPing Commands
After a test begins, if all the probes in the first test have not been finished, when you use
the command to view statistics, all statistics results will be 0.
Example
# Display the statistics information for admin jitter test group, the test type of which is
jitter.
[H3C] display hwping statistics admin jitter
Table 3-4 Description on fields in the output of the display hwping statistic command
Field Description
Start time The time when a test starts
Lifetime The time that a test lasts
3-9
Command Manual – System Management
Comware V3 Chapter 3 HWPing Commands
Field Description
Send operation times The number of the sent test packets.
Receive response times The number of successful test attempts
Roundtrip time in its minimum,
Min/Max/Average Round Trip Time
maximum, and average
Square-Sum of Round Trip Time The square sum of roundtrip time
Packet lost in test The number of lost packets in a test
The number of forcible disconnections
Disconnect operation number
performed by the opposite end
Operation timeout number The number of timeout in a test
The number of test failures due to busy
System busy operation number
system
The number of connection failures to the
Connection fail number
opposite end
The number of received disordered
Operation sequence errors
packets
The number of failures in allocating
Drop operation number
system resource
Other operation errors The number of other operation errors
The jitter value from source to
Min Positive SD (DS) destination (destination to source) is the
minimum of positive value
The jitter value from source to
Max Positive SD (DS) destination (destination to source) is the
maximum of positive value
3-10
Command Manual – System Management
Comware V3 Chapter 3 HWPing Commands
Field Description
The number of the lost packets for
Unknown result lost packet number
unknown reason
3.1.11 filename
Syntax
filename file-name
undo filename
View
Parameter
file-name: Name of the file to be gotten from or put onto an FTP server.
Description
Use the filename command to configure the name of the file to be gotten from or put
onto an FTP server.
Use the undo filename command to cancel the configuration of the file name.
By default, no file name is configured.
Note:
This command applies only to FTP test.
Example
# Specify the file to be gotten from or put onto an FTP server by specifying its name
“config.txt".
[H3C-hwping-administrator-ftp] filename config.txt
3.1.12 frequency
Syntax
frequency interval
undo frequency
3-11
Command Manual – System Management
Comware V3 Chapter 3 HWPing Commands
View
Parameter
Description
Example
3.1.13 ftp-operation
Syntax
View
Parameter
Description
Use the ftp-operation command to configure the FTP operation done by the system.
To FTP a file from a server, use the ftp-operation get command. To FTP a file to a
server, use the ftp-operation put command.
The default FTP operation type is get.
3-12
Command Manual – System Management
Comware V3 Chapter 3 HWPing Commands
Note:
This command applies only to FTP test.
Example
Syntax
View
Parameter
keep-time: Retaining time of the history record for a test group, which is in the range 1
to 1440 in minutes and defaults to 120 minutes.
Description
Use the history keep-time command to configure the retaining time of the history
record for a test group.
Use the undo history keep-time command to remove the original configuration and
restore the default.
Example
Syntax
history-record enable
undo history-record enable
3-13
Command Manual – System Management
Comware V3 Chapter 3 HWPing Commands
View
Parameter
None
Description
Example
3.1.16 history-records
Syntax
history-records number
undo history-records
View
3-14
Command Manual – System Management
Comware V3 Chapter 3 HWPing Commands
Parameter
Description
Use the history-records command to configure the number of test results that the
system can retain.
Use the undo history-records command to restore the default.
Example
# Set the number of retained history records concerning the current test group to 10.
[H3C—hwping-administrator-icmp] history-records 10
3.1.17 http-operation
Syntax
View
Parameter
Description
Note:
This command applies only to HTTP test.
Example
3-15
Command Manual – System Management
Comware V3 Chapter 3 HWPing Commands
3.1.18 hwping
Syntax
View
System view
Parameter
Description
Example
# Create an HWPing test group, where the administrator name is administrator and the
test operation tag is icmp.
[H3C] hwping administrator icmp
[H3C-hwping-administrator-icmp]
Syntax
hwping-agent enable
undo hwping-agent enable
View
System view
Parameter
None
Description
Use the hwping-agent enable command to enable the HWPing client function.
Use the undo hwping-agent enable command to disable the HWPing client function.
3-16
Command Manual – System Management
Comware V3 Chapter 3 HWPing Commands
Before you can perform a test, you must enable the HWPing client function.
Related command: hwping-server enable.
Example
Syntax
View
System view
Parameter
Description
Use the hwping-agent max-requests command to set the allowed maximum number
of concurrent tests.
Use the undo hwping-agent max-requests command to restore the default maximum
number of concurrent tests.
Example
3.1.21 jitter-interval
Syntax
jitter-interval interval
undo jitter-interval
View
3-17
Command Manual – System Management
Comware V3 Chapter 3 HWPing Commands
Parameter
interval: Packet sending interval in milliseconds in a jitter test. Its range depends on
different test types. For a Jitter test, it ranges from 10 to 1000 milliseconds and defaults
to 50 milliseconds; for a voice test, it ranges from 10 to 60000 milliseconds and defaults
to 20 milliseconds.
Description
Use the jitter-interval command to set a packet sending interval for a jitter test.
Use the undo jitter-interval command to restore the default.
Note:
This command applies only to jitter test.
Example
3.1.22 jitter-packetnum
Syntax
jitter-packetnum number
undo jitter-packetnum
View
Parameter
number: Number of packets to be sent in a jitter test. The value range depends on
whether a voice test is configured. For a jitter test, it is in the range 10 to 1000 and
defaults to 10. If voice codec is configured, it is in the range 10 to 60000, and defaults to
1000.
Description
3-18
Command Manual – System Management
Comware V3 Chapter 3 HWPing Commands
Note:
This command applies only to jitter test.
Example
3.1.23 password
Syntax
password password
undo password
View
Parameter
Description
Use the password command to configure the password required for logging onto the
FTP server.
Use the undo password command to cancel the configured password.
By default, no password is configured for logging onto the FTP server.
Note:
This command applies only to FTP test.
Example
# Set the password for logging onto the FTP server to “hwping”.
3-19
Command Manual – System Management
Comware V3 Chapter 3 HWPing Commands
3.1.24 probe-failtimes
Syntax
probe-failtimes times
undo probe-failtimes
View
Parameter
Description
Note:
A test may include multiple probes.
Example
# Send a trap to the NMS after three consecutive probe failures for an HWPing test.
[H3C-administrator-icmp] probe-failtimes 3
3.1.25 send-trap
Syntax
View
Parameter
3-20
Command Manual – System Management
Comware V3 Chapter 3 HWPing Commands
Description
Use the send-trap command to configure the type of events that trigger trap sending.
Use the undo send-trap command to cancel the configuration of the event type.
By default, no traps are sent.
Example
Syntax
sendpacket passroute
undo sendpacket passroute
View
Parameter
None
Description
Example
3-21
Command Manual – System Management
Comware V3 Chapter 3 HWPing Commands
3.1.27 source-interface
Syntax
View
Parameter
Description
Example
3.1.28 source-ip
Syntax
source-ip ip-address
undo source-ip
View
Parameter
Description
Use the source-ip command to configure a source IP address for this test.
Use the undo source-ip command to cancel the configuration.
The source IP address in this test defaults to the IP address of the interface where test
packets are to be sent.
3-22
Command Manual – System Management
Comware V3 Chapter 3 HWPing Commands
Example
3.1.29 source-port
Syntax
source-port port-number
undo source-port
View
Parameter
port-number: Source port number used in the test. It is in the range 1 to 50000 for a
TCP test and 1 to 49999 for a UDP test.
Description
Use the source-port command to configure a source port number for this test.
Use the undo source-port command to cancel the configuration.
Example
3.1.30 statistics
Syntax
View
Parameter
interval: Statistics interval, in the range 1 to 1440 in minutes and defaults to 60 seconds.
number: Number of groups of statistics information, in the range 1 to 100 and defaults
to 2.
3-23
Command Manual – System Management
Comware V3 Chapter 3 HWPing Commands
Description
Use the statistics command to configure the statistics interval and the maximum
number of the groups of the retained statistics information according to the
configuration.
Use the undo statistics command to remove your configuration and restore the
default.
By default, the statistics interval for a test is once every 60 minutes and up to two
groups of statistics information can be retained.
Delete all statistics information when internet parameter changes.
Example
# Set the statistics interval to 120 minutes and the maximum number of statistics
groups to three.
<H3C> system-view
[H3C] hwping 1 1
[H3C-hwping-1-1] statistic interval 120
[H3C-hwping-1-1] statistic max-group 3
Syntax
View
Parameter
keep-time: Retaining time of the test statistics, which is in the range 1 to 1440 in
minutes and defaults to 120 minutes.
Description
Use the statistics keep-time command to configure the retaining time of the test
statistics.
Use the undo statistics keep-time command to remove your configuration and
restore the default.
Example
3-24
Command Manual – System Management
Comware V3 Chapter 3 HWPing Commands
[H3C] hwping 1 1
[H3C-hwping-1-1] statistics keep-time 180
Syntax
View
Parameter
Description
Use the test-time begin command to configure the start time and the lasting time of a
test.
Use the undo test-time command to stop the test and remove the configuration.
z When the test is not performed, the configuration information you input is saved,
including test start time and lasting time.
z If you set a start time earlier than the current system time or the test lasting time
you configured is 0, the test will not be performed.
z When a test is being performed, you cannot perform any configuration; otherwise
the system prompts error.
z After you configure this command, if the test-related parameters are not complete,
the system prompts configuration error.
z The test starts until you execute the test-time begin command.
z If you set a start time earlier than the current system time, when you modify the
current system time, the test will not be performed.
z If lifetime of the test group expires, the test will stop and when you modify the
current system time, the test will not be performed.
Example
# Set the test to start from 14:03 and last 3600 seconds.
<H3C> system-view
[H3C] hwping 1 1
3-25
Command Manual – System Management
Comware V3 Chapter 3 HWPing Commands
3.1.33 test-type
Syntax
View
Parameter
Description
Example
3-26
Command Manual – System Management
Comware V3 Chapter 3 HWPing Commands
3.1.34 test-enable
Syntax
test-enable
undo test-enable
View
Parameter
None
Description
Note:
After you execute the test-enable command, the system does not display the test
result. You may view the test result information by executing the display hwping
command.
Example
3.1.35 test-failtimes
Syntax
test-failtimes times
undo test-failtimes
View
Parameter
3-27
Command Manual – System Management
Comware V3 Chapter 3 HWPing Commands
Description
Use the test-failtimes command to configure the number of consecutive test failures
allowed before a trap is sent to the NMS.
Use the undo test-failtimes command to restore the default.
Note:
A test may include multiple probes.
Example
3.1.36 timeout
Syntax
timeout time
undo timeout
View
Parameter
time: Timeout time in the range 1 to 60 seconds. It defaults to three seconds. For a
Jitter test, it defaults to five seconds.
Description
Example
3.1.37 tos
Syntax
tos value
3-28
Command Manual – System Management
Comware V3 Chapter 3 HWPing Commands
undo tos
View
Parameter
value: ToS field in the header of HWPing test packets. It is in the range 0 to 255. By
default, ToS field is not set.
Description
Use the tos command to assign a value to the ToS field in the header of HWPing test
packets.
Use the undo tos command to cancel the ToS value configuration.
In a ping command, service type is set using the argument “-o”.
Example
3.1.38 ttl
Syntax
ttl number
undo ttl
View
Parameter
number: Time to live (TTL) value or lifetime of HWPing ICMP test packets. It is in the
range 1 to 255 and defaults to 20.
Description
3-29
Command Manual – System Management
Comware V3 Chapter 3 HWPing Commands
Note:
This command applies to all types of tests except for DHCP test.
The sendpacket passroute command voids the ttl command.
Example
3.1.39 username
Syntax
username name
undo username
View
Parameter
name: User name used for logging onto the FTP server.
Description
Use the username command to configure a name used for logging onto the FTP
server.
Use the undo username command to cancel the username configuration.
By default, no username is configured for logging onto the FTP server.
Note:
This command applies to FTP test only.
Example
# Use administrator as the username for logging onto the FTP server.
[H3C-hwping-administrator-ftp] username administrator
3-30
Command Manual – System Management
Comware V3 Chapter 3 HWPing Commands
3.1.40 vpninstance
Syntax
vpninstance name
undo vpninstance
View
Parameter
Description
Example
Syntax
hwping-server enable
undo hwping-server enable
View
System view
Parameter
None
Description
3-31
Command Manual – System Management
Comware V3 Chapter 3 HWPing Commands
You may use HWPing to test jitter, or UDP or TCP connection of a specified port. Note
that if an H3C router is used as the server in an HWPing test, you must enable HWPing
on the server.
Related command: hwping-agent enable, hwping-server tcpconnect,
hwping-server udpecho.
Example
Syntax
View
System view
Parameter
ip-address: IP address where HWPing Server provides the TCP listening service.
port-number: Port where HWPing Server provides the TCP listening service. This port
number cannot be greater than 50,000 or be one reserved for special purpose such as
1701.
Description
Example
# Create a TCP listening service, setting IP address to 169.254.10.2 and port number
to 9000.
[H3C] hwping-server tcpconnect 169.254.10.2 9000
3-32
Command Manual – System Management
Comware V3 Chapter 3 HWPing Commands
Syntax
View
System view
Parameter
ip-address: IP address where HWPing server provides the UDP listening service.
port-number: Port where HWPing Server provides the UDP listening service. This port
number must be smaller than 49,999 and could not be that of a port that is well-known
or has a special purpose, such as port 1701.
Description
Example
# Create a UDP listening service, setting IP address to 169.254.10.2 and port number
to 9000.
[H3C] hwping-server udpecho 169.254.10.2 9000
3-33
Command Manual – System Management
Comware V3 Chapter 4 File Management Commands
Syntax
bootfile dir
View
System view
Parameter
None
Description
Use the bootfile dir command to view information about all the boot files in the Flash,
including file type, date, time, file size, and file name.
This command is available only when your router is available with the dual image
function. In addition, boot files must be put on the Flash:/ directory, or if a CF card is
available, on the Cflash:/ directory.
Related command: dir, bootfile main, bootfile backup.
Example
# Display the information about all the boot files in the Flash.
[H3C] bootfile dir
Available boot file(s):
'M' = MAIN, 'B' = BACKUP, 'S' = SECURE
---------------------------------------------------------------------
[No.] [Type] [Date] [Time] [Size] [Name] [SrcName]
---------------------------------------------------------------------
1 M Mar/15/2004 18:09:00 5556068 Main.bin N/A
1 B Mar/15/2004 18:09:00 5556068 Backup.bin N/A
1 S Mar/15/2004 18:09:00 5556068 Secure.bin N/A
1 N/A Mar/15/2004 18:09:00 5556068 Router.bin N/A
----------------------------------------------------------------------
4-1
Command Manual – System Management
Comware V3 Chapter 4 File Management Commands
Field Description
File type: M for the main boot file, B for the backup boot file,
Type
S for the secure boot file, and N/A for any other boot file.
Date, Time Date and time when the file was loaded
Size File size
File name. Main.bin is the default name for the main boot
Name file, Backup.bin is the default name for the backup boot file,
and Secure.bin is the name for the secure boot file.
SrcName Name of the main/backup/secure boot file at the last boot
Syntax
View
System view
Parameter
main-bootfile-name: Main boot file for the router. If the specified file is not located on the
current directory, you must specify the path to it also.
Description
Use the bootfile main command to specify the main boot file.
4-2
Command Manual – System Management
Comware V3 Chapter 4 File Management Commands
On a router supporting the dual image function (a Flash larger than 8 MB must be
available), three boot files are defined in the system by default: main boot file, backup
boot file, and secure boot file. The system uses them in the following order:
z Main boot file, with the default name being main.bin and file type being M, is the
default file for system boot;
z Backup boot file, with the default name being backup.bin and file type being B, is
the boot file used in case of the boot failure using the main boot file;
z Secure boot file, with the default name being secure.bin and file type being S, is
the boot file used in case of the boot failure using the backup boot file. If the boot
attempts using all these files fail, the system prompts the boot failure.
This command is only available with the routers that support the dual image function.
Related command: dir, bootfile dir, bootfile backup.
Example
# View information on the boot files in the Flash to verify that the main boot file has been
successfully specified.
[H3C]bootfile dir
Available boot file(s):
'M' = MAIN, 'B' = BACKUP, 'S' = SECURE
-------------------------------------------------------------
[No.] [Type] [Date] [Time] [Size] [Name]
-------------------------------------------------------------
1 N/A Mar/15/2004 18:09:00 5556068 Main.bin
1 B Mar/15/2004 18:09:00 5556068 Backup.bin
1 S Mar/15/2004 18:09:00 5556068 Secure.bin
1 M Mar/15/2004 18:09:00 5556068 Router.bin
-------------------------------------------------------------
4-3
Command Manual – System Management
Comware V3 Chapter 4 File Management Commands
--------------------------------------------------------------------------
1 N/A Oct/18/2005 13:35:39 10093604 flash:/8061.bin N/A
2 N/A Oct/20/2005 10:35:13 12252636 flash:/tt N/A
3 M+B Oct/18/2005 16:59:28 11987956 cflash:/d020 N/A
--------------------------------------------------------------------------
Syntax
View
System view
Parameter
backup-bootfile-name: Backup boot file for the router. If the specified file is not located
on the current directory, you must specify the path to it also.
Description
Use the bootfile backup command to specify the backup boot file.
For more information about boot files and the order in which they are used, see the
section “bootfile main”.
This command is only available with the routers that support the dual image function.
Related command: dir, bootfile dir, bootfile main.
Example
# View information on the boot files in the Flash to verify that the backup boot file has
been successfully specified.
[H3C] bootfile dir
Available boot file(s):
'M' = MAIN, 'B' = BACKUP, 'S' = SECURE
-------------------------------------------------------------
[No.] [Type] [Date] [Time] [Size] [Name]
-------------------------------------------------------------
1 N/A Mar/15/2004 18:09:00 5556068 Main.bin
1 N/A Mar/15/2004 18:09:00 5556068 Backup.bin
1 S Mar/15/2004 18:09:00 5556068 Secure.bin
1 M+B Mar/15/2004 18:09:00 5556068 H3C.bin
4-4
Command Manual – System Management
Comware V3 Chapter 4 File Management Commands
-------------------------------------------------------------
4.1.4 cd
Syntax
cd directory
View
User view
Parameter
Description
Use the cd command to change the current working directory of the user to the
specified directory.
The default path for working directory is flash:.
Example
4-5
Command Manual – System Management
Comware V3 Chapter 4 File Management Commands
<H3C> pwd
flash:
<H3C> cd clash:
<H3C> pwd
cflash:
4.1.5 copy
Syntax
View
User view
Parameter
Description
Example
<H3C> pwd
flash:
<H3C> dir
Directory of flash:/
# Copy the file vrpcfg.cfg from Flash memory to the backup directory that has been
created.
<H3C> copy vrpcfg.cfg backup
Copy flash:/vrpcfg.txt to flash:/backup/vrpcfg.cfg ?[Y/N]:y
4-6
Command Manual – System Management
Comware V3 Chapter 4 File Management Commands
4.1.6 delete
Syntax
View
User view
Parameter
/unreserved: Deletes the specified file unreservedly, and the deleted file can never be
restored.
filename: Name of the file to be deleted including the path.
flash: Deletes all files under the flash directory.
Description
Use the delete command to move the specified file from the storage device to the
recycle bin, where you can completely delete the file with the undelete command or
restore it with the reset recycle-bin filename command.
If the files to be copied are hidden, the system displays “% Access failure” to show lack
of access priority.
Note that if you delete two files in different directories but with the same filename, only
the last one is stored in the recycle bin.
Use the delete /unreserved command to delete the specified file completely, meaning
the file cannot be restored.
The asterisks (*) are acceptable when specifying the filename argument.
The dir command does not display the deleted files. To view all the files including those
in the recycle bin, use the dir /all command.
4-7
Command Manual – System Management
Comware V3 Chapter 4 File Management Commands
Caution:
If there is only one application file (system file) in the system, you are not allowed to
delete the file.
Example
4.1.7 dir
Syntax
View
User view
Parameter
/all: Displays all files (including the files in the recycle bin).
filename: Name of the file or directory to be displayed including the path.
Description
Use the dir command, you can view information about the specified file or directory in
the router storage device.
By default, this command displays the file information under the current directory.
This command accepts asterisks (*) as wildcards.
The dir /all command can display information about all the files, including those in the
recycle bin. The names of these deleted files are enclosed by "[]", for example,
[temp.cfg]. Such deleted files can be restored using the undelete command. To
remove the files from the recycle bin completely, use the reset recycle-bin command.
The dir /h command displays information about the private files under the current path.
The attribute of the private files is represented by “---h”.
4-8
Command Manual – System Management
Comware V3 Chapter 4 File Management Commands
Example
4.1.8 execute
Syntax
View
System view
Parameter
filename: Name of a batch file (including the path) with a .bat extension.
flash: Specifies flash as the memory device. If you want to execute the batch file with a
bat extension under the flash directory, enter flash:/abc.bat.
Description
4-9
Command Manual – System Management
Comware V3 Chapter 4 File Management Commands
Example
Syntax
View
System view
Parameter
alert: Enables interactive acknowledgement when a user operation, deleting a file for
example, may result in data loss or corruption.
quiet: No prompt is displayed even when a user operation, deleting a file for example,
may result in data loss or corruption.
4-10
Command Manual – System Management
Comware V3 Chapter 4 File Management Commands
Description
Use the file prompt command to enable or disable the router to warn when an
operation may result in data loss or corruption.
By default, the prompt mode is alert.
When the prompt mode is set to quiet, the system does not warn even when an
operation may result in data loss or corruption.
Example
4.1.10 fixdisk
Syntax
fixdisk device-name
View
User view
Parameter
Description
Use the fixdisk command to restore the space of a storage device when it becomes
unavailable because of some abnormal operation.
Example
4.1.11 format
Syntax
format device-name
4-11
Command Manual – System Management
Comware V3 Chapter 4 File Management Commands
View
User view
Parameter
Description
Example
4.1.12 mkdir
Syntax
mkdir directory
View
User view
Parameter
Description
Use the mkdir command to create a directory under the specified directory on the
specified storage device.
The name of the directory to be created must be unique under the specified directory.
This command does not allow you to create multiple directory levels at one time.
Example
4-12
Command Manual – System Management
Comware V3 Chapter 4 File Management Commands
<H3C> mkdir dd
%Created dir flash:/dd.
4.1.13 more
Syntax
more filename
View
User view
Parameter
Description
Use the more command, you can view the contents of the specified file.
If the files to be copied are hidden, the system displays “% Access failure” to show lack
of access priority.
By default, the file system displays files in the form of text, that is, the file contents.
Example
4.1.14 move
Syntax
View
User view
Parameter
4-13
Command Manual – System Management
Comware V3 Chapter 4 File Management Commands
Description
Example
<H3C> dir
Directory of flash:/
1 -rw- 2145123 Jul 12 2001 12:28:08 AR46.bin
2 -rw- 595 Jul 12 2001 10:47:50 vrpcfg.cfg
3 drw- 0 Jul 12 2001 19:41:20 test
6477 KBytes total (2144 KBytes free)
<H3C> dir flash:/test/
Directory of flash:/test/
1 drw- - Jul 12 2001 20:23:37 subdir
2 -rw- 595 Jul 12 2001 20:13:19 vrpcfg.cfg
3 -rw- 50 Jul 12 2001 20:08:32 sample.txt
6477 KBytes total (2144 KBytes free)
4-14
Command Manual – System Management
Comware V3 Chapter 4 File Management Commands
4.1.15 pwd
Syntax
pwd
View
User view
Parameter
None
Description
Use the pwd command, you can view the current path.
If the current path is not set, the operation will fail.
Example
4.1.16 rename
Syntax
View
User view
Parameter
Description
4-15
Command Manual – System Management
Comware V3 Chapter 4 File Management Commands
Caution:
Example
<H3C> dir
Directory of flash:/
1 -rw- 2145123 Jul 12 2001 12:28:08 system.bin
2 -rw- 595 Jul 12 2001 10:47:50 vrpcfg.cfg
3 drw- - Jul 12 2001 19:41:20 test
4 -rw- 50 Jul 12 2001 20:26:48 sample.txt
6477 KBytes total (2144 KBytes free)
Syntax
View
User view
Parameter
filename: Name of the file to be deleted. (You need to specify the path.)
flash:/: Deletes all files from the flash directory.
4-16
Command Manual – System Management
Comware V3 Chapter 4 File Management Commands
/force: Empties files in the recycle bin under the specified directory. If no directory is
specified, delete the files in the recycle bin under the current directory.
Description
Use the reset recycle-bin command to delete one or files from the recycle bin
completely.
This command accepts the asterisks (*) as wildcards. The delete command only
moves files to the recycle bin. To delete a file finally, use the reset recycle-bin
command.
Example
4.1.18 rmdir
Syntax
rmdir directory
View
User view
Parameter
Description
Example
<H3C>dir
4-17
Command Manual – System Management
Comware V3 Chapter 4 File Management Commands
Directory of flash:/
1 drw- - Jul 12 2001 20:23:37 subdir
2 -rw- 595 Jul 12 2001 20:13:19 vrpcfg.cfg
6477 KBytes total (5944 KBytes free)
4.1.19 undelete
Syntax
View
User view
Parameter
Description
Use the undelete command to restore a file from the recycle bin.
You cannot restore a file if its name is the same as that of the existing directory name. If
the name of the file is the same as that of an exiting file, the system asks you whether to
overwrite the existing file.
Example
4-18
Command Manual – System Management
Comware V3 Chapter 4 File Management Commands
Syntax
display ftp-server
View
Any view
Parameter
None
Description
Use the display ftp-server command to view the parameters of the current FTP server.
After you configure FTP parameters, you can verify them with this command.
Example
The information indicates that the FTP server is running with support to only one login
user; now one login user is present; timeout of the user is 30 minutes, and file transfer
mode is fast.
Syntax
display ftp-user
4-19
Command Manual – System Management
Comware V3 Chapter 4 File Management Commands
View
Any view
Parameter
None
Description
Use the display ftp-user command to view the parameters of the current FTP users.
Example
The information indicates that a connection is present between FTP user h3c and the
FTP server. The IP address of the remote host is 10.110.3.5 and the remote port
number is 1074. The authorized path is flash:/h3c and the user has not sent any service
request to the FTP server for two minutes.
Note:
When the length of the authorized directory exceeds 20 characters, the in-between
characters except for the first and the last characters are displayed as tildes (~), such
as flash:/1/2/3/4/5/6~5.
Syntax
View
Any view
Parameter
None
Description
Use the display ftp-server source-ip command to display the source IP address
configured for the FTP server.
4-20
Command Manual – System Management
Comware V3 Chapter 4 File Management Commands
If a source interface has been specified for the FTP server, the IP address of the
interface is displayed. If neither source interface nor source IP address has been
specified for the FTP server, 0.0.0.0 is displayed.
Example
Syntax
View
System view
Parameter
None
Description
Use the ftp server enable command to enable the FTP server to allow login of FTP
users.
Use the undo ftp server command to disable the FTP server as well as login of FTP
users.
By default, the FTP server is disabled.
Example
Syntax
View
System view
4-21
Command Manual – System Management
Comware V3 Chapter 4 File Management Commands
Parameter
Description
Note:
You may specify a source IP address for the packets sent by the FTP server with the
ftp-server source-interface command or with the ftp-server source-ip command. If
both commands are configured, the one configured later overrides.
Example
Syntax
View
System view
Parameter
Description
Use the ftp-server source-ip command to specify a source IP address for the packets
sent by the FTP server. This IP address must be a local IP address.
4-22
Command Manual – System Management
Comware V3 Chapter 4 File Management Commands
Use the undo ftp-server source-ip command to delete the source IP address
specified for the FTP server. After that, the source IP address of a packet sent by the
FTP server is the IP address of the interface where the packet is sent out.
By default, the source IP address in each packet sent by the FTP server is the IP
address of the interface where the packet is sent out.
Note:
You may specify a source IP address for the packets sent by the FTP server with the
ftp-server source-interface command or with the ftp-server source-ip command. If
both commands are configured, the one configured later overrides.
Example
# Use 192.168.0.1 as the source IP address in the packets sent by the FTP server.
[H3C] ftp-server source-ip 192.168.0.1
Syntax
View
System view
Parameter
Description
4-23
Command Manual – System Management
Comware V3 Chapter 4 File Management Commands
Example
Syntax
View
System view
Parameter
Description
Use the ftp update command to set the file update mode that the FTP server uses
while receiving data.
Use the undo ftp update command to restore the default, or fast mode.
The FTP server can update files you FTP to it in either of the following modes:
z In fast mode, the FTP server judges whether there is enough space for storing files
in the Flash and then starts writing data to the Flash memory after file transfer
completes; if there is not enough space, the FTP server sends error prompt
message and releases memory. This protects the existing files on the router from
being ruined in the event that anomalies, power failure for example, occur during a
file transfer.
z In normal mode, the FTP server writes data to the Flash memory during file
transfer. This means that any anomaly, power failure for example, during file
transfer might result in corruption of the files on the router. This mode, however
consumes less memory than the fast mode.
Example
4-24
Command Manual – System Management
Comware V3 Chapter 4 File Management Commands
Note:
When an FTP client on a security gateway logs onto an FTP server, the results and the
prompt information on the FTP client may differ with the versions of FTP servers.
4.3.1 ascii
Syntax
ascii
View
Parameter
None
Description
Use the ascii command to set the type of the transmitted data to ASCII.
Data type defaults to ASCII.
Example
4.3.2 binary
Syntax
binary
View
Parameter
None
4-25
Command Manual – System Management
Comware V3 Chapter 4 File Management Commands
Description
Use the binary command to set data type to binary for file transfer.
Example
4.3.3 bye
Syntax
bye
View
Parameter
None
Description
Use the bye command to disconnect from the remote FTP server and exit to user view.
Example
# Terminate the connection with the remote FTP server and exit to user view.
[ftp] bye
<H3C>
4.3.4 cd
Syntax
cd pathname
View
Parameter
Description
Use the cd command to change the current working directory path on the remote FTP
server.
4-26
Command Manual – System Management
Comware V3 Chapter 4 File Management Commands
You can use this command for accessing another directory on the FTP server.
Example
4.3.5 cdup
Syntax
cdup
View
Parameter
None
Description
Use the cdup command to return from the current working directory path to the upper
directory.
Example
4.3.6 close
Syntax
close
View
Parameter
None
Description
Use the close command to terminate the connection to the remote FTP server, but
remain in FTP client view.
This command terminates both control connection and data connection to the remote
FTP server.
4-27
Command Manual – System Management
Comware V3 Chapter 4 File Management Commands
Example
# Terminate the connection to the remote FTP server but remain in FTP client view.
[ftp] close
[ftp]
4.3.7 debugging
Syntax
debugging
undo debugging
View
Parameter
None
Description
Example
# Enable debugging.
[ftp] debugging
4.3.8 delete
Syntax
delete remotefile
View
Parameter
Description
4-28
Command Manual – System Management
Comware V3 Chapter 4 File Management Commands
Example
4.3.9 dir
Syntax
View
Parameter
remotefile: Name of the queried directory or file on the remote FTP server. If no
remotefile is specified, the system displays the current directory on the remote FTP
server.
localfile: Localfile name. If no localfile is specified, the output will be displayed on the
screen.
Description
Use the dir command to query for a specified file or all files under the directory.
This command displays one or all the files under the directory.
Example
4.3.10 disconnect
Syntax
disconnect
View
Parameter
None
Description
Use the disconnect command to disconnect from the remote FTP server but remain in
FTP client view.
4-29
Command Manual – System Management
Comware V3 Chapter 4 File Management Commands
This command terminates both control connection and data connection to the remote
FTP server.
Example
# Disconnect from the remote FTP server but remain in FTP client view.
[ftp] disconnect
Syntax
View
Any view
Parameter
None
Description
Use the display ftp source-ip command to display the source IP address configured
for the FTP client.
If a source interface has been specified for the FTP client, the IP address of the
interface is displayed. If neither source interface nor source IP address has been
specified for the FTP client, 0.0.0.0 is displayed.
Example
4.3.12 ftp
Syntax
View
User view
Parameter
4-30
Command Manual – System Management
Comware V3 Chapter 4 File Management Commands
Description
Use the ftp command to set up control connection to the remote FTP server and enter
FTP client view.
Note:
Both of the FTP username and password supported by the system are 1 to 512
characters.
Example
Syntax
View
User view
Parameter
Description
Use the ftp host source-interface command to specify the source interface that the
FTP client uses when accessing the specified FTP server. This interface must be an
exiting local interface.
By default, the FTP client uses the IP address of the outbound interface to access the
specified FTP server.
Example
# Set the source IP address that the FTP client uses when accessing a specified FTP
server to ethernet0/0/0.
4-31
Command Manual – System Management
Comware V3 Chapter 4 File Management Commands
Syntax
View
User view
Parameter
Description
Use the ftp host source-ip command to specify the source IP address that the FTP
client uses when accessing the specified FTP server. This source IP address must be a
local address.
By default, the FTP client uses the IP address of the outbound interface to access the
specified FTP server.
Example
# Use 192.168.0.1 as the source IP address that the FTP client uses when accessing
the FTP server at 192.168.0.2.
<H3C> ftp 192.168.0.2 source-ip 192.168.0.1
Syntax
View
System view
Parameter
4-32
Command Manual – System Management
Comware V3 Chapter 4 File Management Commands
Description
Use the ftp source-interface command to specify a source interface, which must be
an existing local interface, for the FTP client. After that, the IP address of the specified
interface is used as the source IP address in each packet sent by the FTP client.
Use the undo ftp source-interface command to delete the source interface specified
for the FTP client. After that, the source IP address in each packet sent by the FTP
client is that of the outgoing interface where the packet is sent out.
By default, the source IP address in each packet sent by the FTP client is the IP
address of the interface where the packet is sent out.
Note:
You may specify a source IP address for the packets sent by the FTP client with the ftp
source-interface command or with the ftp source-ip command. If both commands are
configured, the one configured later overrides.
Example
Syntax
View
System view
Parameter
Description
Use the ftp source-ip command to specify a source IP address for the packets sent by
the FTP client. This IP address must be a local IP address.
Use the undo ftp source-ip command to delete the source IP address specified for the
FTP client. After that, the source IP address of each packet sent by the FTP client is the
IP address of the interface where the packet is sent out.
4-33
Command Manual – System Management
Comware V3 Chapter 4 File Management Commands
By default, the source IP address in each packet sent by the FTP client is the IP
address of the interface where the packet is sent out.
Note:
You may specify a source IP address for the packets sent by the FTP client with the ftp
source-interface command or with the ftp source-ip command. If both commands are
configured, the one configured later overrides.
Example
# Use 192.168.0.1 as the source IP address in the packets sent by the FTP client.
[H3C] ftp source-ip 192.168.0.1
4.3.17 get
Syntax
View
Parameter
Description
Use the get command to FTP a file from a remote server and save it.
By default, if no name is specified, the local file uses the name of the source file on the
FTP server.
Example
4.3.18 lcd
Syntax
lcd
4-34
Command Manual – System Management
Comware V3 Chapter 4 File Management Commands
View
Parameter
None
Description
Use the lcd command to get the local working directory path of the FTP client.
Example
4.3.19 ls
Syntax
ls [ remotefile ] [ localfile ]
View
Parameter
Description
Example
4.3.20 mkdir
Syntax
mkdir pathname
View
4-35
Command Manual – System Management
Comware V3 Chapter 4 File Management Commands
Parameter
Description
Use the mkdir command to create a directory on the remote FTP server.
Example
4.3.21 open
Syntax
View
Parameter
Description
Use the open command to set up control connection to the remote FTP server.
Example
4.3.22 passive
Syntax
passive
undo passive
View
4-36
Command Manual – System Management
Comware V3 Chapter 4 File Management Commands
Parameter
None
Description
Example
4.3.23 put
Syntax
View
Parameter
Description
Use the put command to FTP a local file to the remote FTP server.
If no name is assigned to the file to be saved on the FTP server, the name of the local
file is used.
Example
# Upload the local file temp.c to the remote FTP server and save it as temp1.c.
[ftp] put temp.c temp1.c
4.3.24 pwd
Syntax
pwd
View
4-37
Command Manual – System Management
Comware V3 Chapter 4 File Management Commands
Parameter
None
Description
Use the pwd command to view the working directory on the remote FTP server.
Example
4.3.25 quit
Syntax
quit
View
Parameter
None
Description
Use the quit command to disconnect from the remote FTP server and exit to user view.
Example
# Disconnect from the remote FTP server and exit to user view.
[ftp] quit
221 Server closing.
<H3C>
4.3.26 remotehelp
Syntax
remotehelp [ protocol-command ]
View
Parameter
4-38
Command Manual – System Management
Comware V3 Chapter 4 File Management Commands
Description
Use the remotehelp command to view the help for the FTP commands.
Example
4.3.27 rename
Syntax
View
Parameter
Description
Use the rename command to rename a file on the FTP server from the FTP client.
The use of this command is not restricted to the FTP server of a particular vendor.
On FTP servers some functions such as rename and delete are optional or by default
disabled. To use the rename function on the FTP client, make sure that the rename
option is selected on the FTP server.
Example
4.3.28 rmdir
Syntax
rmdir pathname
View
4-39
Command Manual – System Management
Comware V3 Chapter 4 File Management Commands
Parameter
Description
Use the rmdir command to delete a specified directory from the FTP server.
Example
4.3.29 user
Syntax
View
Parameter
Description
Example
# Log onto the FTP server with the username tom and the password bjhw.
[ftp] user tom bjhw
4.3.30 verbose
Syntax
verbose
undo verbose
View
Parameter
None
4-40
Command Manual – System Management
Comware V3 Chapter 4 File Management Commands
Description
Use the verbose command to enable the verbose function to view information from the
FTP server.
Use the undo verbose command to disable the verbose function.
By default, the verbose function is disabled.
Example
Syntax
View
Any view
Parameter
None
Description
Use the display tftp source-ip command to display the source IP address configured
for the TFTP client.
If a source interface has been specified for the TFTP client, the IP address of the
interface is displayed. If neither source interface nor source IP address has been
specified for the TFTP client, 0.0.0.0 is displayed.
Example
4.4.2 tftp
Syntax
4-41
Command Manual – System Management
Comware V3 Chapter 4 File Management Commands
View
User view
Parameter
Description
Example
# Download file config.cfg from the root directory of the TFTP server at 1.1.254.2 and
save it as config.bak.
<H3C> tftp 1.1.254.2 get config.cfg flash:/config.bak
# Upload file vrpcfg.cfg stored under the root directory of the Flash memory onto the
default directory on the TFTP server at 1.1.254.2 and save it as config.bak.
<H3C> tftp 1.1.254.2 put flash:config.cfg config.bak
Syntax
View
User view
Parameter
4-42
Command Manual – System Management
Comware V3 Chapter 4 File Management Commands
Description
Use the tftp host source-interface command to specify the source interface that the
TFTP client uses when accessing the specified TFTP server. This interface must be an
exiting local interface.
By default, the TFTP client uses the IP address of the outbound interface to access the
specified TFTP server.
Example
# Set the source IP address that the TFTP client uses when accessing the TFTP server
at 192.168.0.2 to ethernet0/0/0.
<H3C> tftp 192.168.0.2 source-interface ethernet0/0/0
Syntax
View
User view
Parameter
Description
Use the tftp host source-ip command to specify the source IP address that the TFTP
client uses when accessing the specified TFTP server. This source IP address must be
a local address.
By default, the TFTP client uses the IP address of the outbound interface to access the
specified TFTP server.
Example
# Use 192.168.0.1 as the source IP address that the TFTP client uses when accessing
the TFTP server at 192.168.0.2.
<H3C> tftp 192.168.0.2 source-ip 192.168.0.1
4-43
Command Manual – System Management
Comware V3 Chapter 4 File Management Commands
Syntax
View
System view
Parameter
Description
Use the tftp-server acl command to reference an ACL to control access to the TFTP
server.
Related command: tftp.
Example
Syntax
View
System view
Parameter
Description
Use the ftp source-interface command to specify a source interface, which must be
an existing local interface, for the TFTP client. After that, the IP address of the specified
interface is used as the source IP address in each packet sent by the TFTP client.
Use the undo ftp source-interface command to delete the source interface specified
for the TFTP client. After that, the source IP address in each packet sent by the TFTP
client is that of the outgoing interface where the packet is sent out.
4-44
Command Manual – System Management
Comware V3 Chapter 4 File Management Commands
By default, the source IP address in each packet sent by the FTP client is the IP
address of the interface where the packet is sent out.
Note:
You may specify a source IP address for the packets sent by the FTP client with the tftp
source-interface command or with the tftp source-ip command. If both commands
are configured, the one configured later overrides.
Example
Syntax
View
System view
Parameter
Description
Use the ftp source-ip command to specify a source IP address for the packets sent by
the TFTP client. This IP address must be a local IP address.
Use the undo ftp source-ip command to delete the source IP address specified for the
TFTP client. After that, the source IP address of each packet sent by the TFTP client is
the IP address of the interface where the packet is sent out.
By default, the source IP address in each packet sent by the TFTP client is the IP
address of the interface where the packet is sent out.
4-45
Command Manual – System Management
Comware V3 Chapter 4 File Management Commands
Note:
You may specify a source IP address for the packets sent by the FTP client with the tftp
source-interface command or with the tftp source-ip command. If both commands
are configured, the one configured later overrides.
Example
# Use 192.168.0.1 as the source IP address in the packets sent by the TFTP client.
[H3C] tftp source-ip 192.168.0.1
Syntax
View
User view
Parameter
4-46
Command Manual – System Management
Comware V3 Chapter 4 File Management Commands
Description
Use the tftp hostname vpn-instance command to adopt VPN instance mode to access
TFTP server and upload and download files.
Follow these rules when executing this command:
z VPN instance name must exist and be correct.
z The specified source IP address must be the IP address of the router.
z The specified VPN instance name must match the source IP address.
Example
# Upload the vrpcfg.cfg file to TFTP server in VPN instance mode. The IP address of
TFTP server is 172.31.1.7 and VPN instance name is vpn5.
<H3C> tftp 172.31.1.7 vpn-instance vpn5 source-ip 169.56.82.1 put vrpcfg.cfg
Syntax
View
User view
Parameter
Description
Example
Syntax
display tftp-server
4-47
Command Manual – System Management
Comware V3 Chapter 4 File Management Commands
View
Any view
Parameter
None
Description
Use the display tftp-server command to view TFTP server state and attribute setting.
Example
Table 4-2 Description on the fields in the output of the display tftp-server command
Field Description
TFTP server State State of the TFTP server, including open and close
The maximum number of concurrent users who
TFTP server max-users
access TFTP server
The maximum number of concurrent users who
TFTP server current users
access TFTP server
TFTP server timeout
UDP packet response timeout time for TFTP server
(second)
Maximum retry times for timeout transmission for
TFTP server retry-times
the TFTP server
TFTP server update mode Update mode for the TFTP server to receive data
TFTP server directory Directory that TFTP users can access
Syntax
4-48
Command Manual – System Management
Comware V3 Chapter 4 File Management Commands
View
System view
Parameter
directory: Directory that TFTP client can access, which defaults to Flash root directory.
Description
Use the tftp-server directory command to configure the directory TFTP client can
access.
Use the undo tftp-server directory command to restore the default directory.
Example
Syntax
tftp-server enable
undo tftp-server enable
View
System view
Parameter
None
Description
Example
4-49
Command Manual – System Management
Comware V3 Chapter 4 File Management Commands
Syntax
View
System view
Parameter
number: Maximum number of the users that are allowed to access TFTP server, in the
range 1 to 6 and defaults to 1.
Description
Example
Syntax
View
System view
Parameter
times: Maximum number of retry times for timeout retransmission, in the range 1 to 20
and defaults to 5.
4-50
Command Manual – System Management
Comware V3 Chapter 4 File Management Commands
Description
Use the tftp-server retry-times command to configure maximum number of retry times
for TFTP server timeout retransmission.
Use the undo tftp-server retry-times command to restore the default.
Example
# Configure maximum number of retry times for TFTP server timeout retransmission.
[H3C] tftp-server retry-times 6
Syntax
View
System view
Parameter
seconds: Response timeout time for a UDP packet, in the range 1 to 20 seconds and
defaults to five seconds.
Description
Use the tftp-server timeout command to configure UDP packet response timeout time
for TFTP server.
Use the undo tftp-server timeout command to restore the default.
Example
# Configure UDP packet response timeout time for TFTP server to 10 seconds.
[H3C]tftp-server timeout 10
Syntax
View
System view
4-51
Command Manual – System Management
Comware V3 Chapter 4 File Management Commands
Parameter
Description
Use the tftp-server update command to set the file update mode that the FTP server
uses while receiving data.
Use the undo tftp-server update command to restore the default, or fast mode.
The FTP server can update files to which you upload in either of the following modes:
z In fast mode, the FTP server judges whether there is enough space for storing files
in the Flash and then starts writing data to the Flash memory after file transfer
completes; if there is not enough space, the FTP server sends error prompt
message and releases memory. This protects the existing files on the router from
being ruined in the event that anomalies, power failure for example, occur during a
file transfer.
z In normal mode, the FTP server writes data to the Flash memory during file
transfer. This means that any anomaly, power failure for example, during file
transfer might result in corruption of the files on the router. This mode consumes
less memory than the fast mode, however has a lower security factor.
Example
Syntax
View
User view
Parameter
filename: Name of the file to be saved to Flash. It must be an absolute file path.
4-52
Command Manual – System Management
Comware V3 Chapter 4 File Management Commands
Description
Use the xmodem get command to download a file by using Xmodem through the AUX
port. Comware supports 128-byte packets and CRC check.
Caution:
The xmodem get command is not supported on asynchronous serial interfaces but the
AUX port. In addition, simultaneous operations are not allowed.
Example
# Download a file with Xmodem through the AUX port and assign the name test.txt to
the file to be saved to Flash.
<H3C> xmodem get flash:/test.txt
After the command is executed, you can send the file through the hyperterminal.
Syntax
View
Any view
Parameter
4-53
Command Manual – System Management
Comware V3 Chapter 4 File Management Commands
Description
Example
4-54
Command Manual – System Management
Comware V3 Chapter 4 File Management Commands
#
bgp 15535
undo synchronization
#
#
ospf 2 H3C-id 1.1.1.1
#
rip
#
user-interface con 0
set authentication password simple 123456
history-command max-size 30
user-interface aux 0
user-interface vty 0 4
#
return
# Display the running configurations on the H3C, identifying each line of displayed
information with a line number.
<H3C> display current-configuration by-linenum
1: #
2: sysname R1760
3: #
4: super password level 3 simple 123456
5: #
6: tcp window 8
7: #
8: undo multicast igmp-all-enable
9: #
10: interface Aux0
11: link-protocol ppp
12: #
13: interface Ethernet0/0/0
14: #
15: interface Serial0/0/0
16: link-protocol ppp
17: #
18: interface NULL0
19: #
20: bgp 15535
21: undo synchronization
22: #
23: #
4-55
Command Manual – System Management
Comware V3 Chapter 4 File Management Commands
Syntax
View
Any view
Parameter
Description
Use the display saved-configuration command to view the configuration file loaded
at this startup.
Related command: save, reset saved-configuration, display
current-configuration.
Example
4-56
Command Manual – System Management
Comware V3 Chapter 4 File Management Commands
link-protocol ppp
#
interface Ethernet0/0/0
#
interface Serial0/0/0
link-protocol ppp
#
interface NULL0
#
user-interface con 0
user-interface aux 0
user-interface vty 0 4
#
return
# Display the configuration file loaded at this startup, identifying each line with a line
number.
<H3C> display saved-configuration by-linenum
1: #
2: sysname H3C
3: #
4: tcp window 8
5: #
6: undo multicast igmp-all-enable
7: #
8: controller E1 3/0/0
9: #
10: interface Aux0
11: link-protocol ppp
12: #
13: interface Ethernet0/0/0
14: #
15: interface Serial0/0/0
16: link-protocol ppp
17: #
18: interface NULL0
19: #
20: user-interface con 0
21: user-interface aux 0
22: user-interface vty 0 4
23: #
24: return
4-57
Command Manual – System Management
Comware V3 Chapter 4 File Management Commands
Syntax
display startup
View
Any view
Parameter
None
Description
Use the display startup command to view the configuration file used at this startup and
the one used for next startup.
Example
# Display the configuration file used at this startup and the one used for next startup.
<H3C>display startup
Startup saved-configuration file: flash:/vrpcfg.cfg
Next startup saved-configuration file: flash:/comware.cfg
Syntax
View
Any view
Parameter
Description
Use the display this command to view the current configurations in current view.
Example
4-58
Command Manual – System Management
Comware V3 Chapter 4 File Management Commands
tcp window 8
#
# Display the current configurations for current view, identifying each line of information
with a line number.
[H3C] display this by-linenum
1: #
2: sysname H3C
3: #
4: tcp window 8
5: #
6: return
Syntax
reset saved-configuration
View
User view
Parameter
None
Description
Use the reset saved-configuration command to delete the configuration file loaded at
this startup from the Flash.
This command could not have the H3C boot with empty configuration at next startup.
Use this command with caution and under the guidance of technical staff.
You may use this command to delete the configuration file before deploying the H3C in
a new application environment where new configuration is required.
Related command: save, display current-configuration, display
saved-configuration.
Example
# Delete the configuration file loaded at this startup from the Flash.
<H3C> reset saved-configuration
The saved configuration will be erased.
Are you sure?[Y/N]y
Configuration in the device is being cleared.
Please wait ...
....
4-59
Command Manual – System Management
Comware V3 Chapter 4 File Management Commands
4.7.6 save
Syntax
View
Any view
Parameter
file-name: Filename, whose extension must be cfg. If this argument is not specified, the
configurations you made are saved to the configuration file loaded at this startup.
safely: Executing the command without the safely keyword is fast, but the file cannot
survive a reboot or power-off during the saving process; executing this command with
the safely keyword is slow, but the file can survive a reboot or power-off during the
saving process.
Description
Use the save command to save the current configuration file to the storage device.
After you finish and validate a set of configurations, you should save the current
configuration file to the Flash memory.
By default, fast saving applies. This mode is preferred in an environment where stable
power supplies are available. In an environment where stable power supplies are not
available or in the case of remote maintenance, however, the save safely command is
preferred.
Caution:
If you save the current configuration to the default configuration file with the save
command and also specify another configuration file to be loaded at next boot, the
saved configuration, which can be seen by executing the display
saved-configuration command, will not be executed at next boot.
Example
4-60
Command Manual – System Management
Comware V3 Chapter 4 File Management Commands
<H3C> save
Syntax
View
User view
Parameter
Description
Use the startup saved-configuration command to specify the configuration file used
at next startup.
Use the undo startup saved-configuration command to configure the system to boot
without any configuration file at next startup.
When multiple configuration files are available on the Flash, you may use this
command to specify the one to be loaded at startup.
Table 4-3 shows how to name a configuration file:
4-61
Command Manual – System Management
Comware V3 Chapter 4 File Management Commands
3) If you do not specify a boot configuration file, the configuration file is selected in
this order: vrpcfg.cfg, vrpcfg.txt, and vrpcfg.def. If none of them exists, the system
boots with empty configuration.
Example
# Display the configuration files that the system saves for boot.
<H3C> display startup
Startup saved-configuration file: flash:/vrpcfg.cfg
Next startup saved-configuration file: flash:/master.cfg
vrpcfg.cfg is the default configuration file and master.cfg is the configuration file used at
next reboot.
# Configure the system to boot without any configuration file at next startup.\
<H3C> undo startup saved-configuration
4.7.8 upgrade
Syntax
View
User view
Parameter
Description
4-62
Command Manual – System Management
Comware V3 Chapter 4 File Management Commands
Example
# Upgrade the Boot ROM on the R1760, provided the upgrade software package is
stored under the root directory on the Flash memory and the file name is “bootromfull”.
<H3C> upgrade bootrom full
4-63
Command Manual – System Management
Comware V3 Chapter 5 User Interface Configuration Commands
Syntax
View
Parameter
Description
Use the accounting commands command to enable the system to start per-command
accounting for terminal users logged into the user interface.
Use the undo accounting commands command to stop per-command accounting for
terminal users.
By default, per-command accounting is not configured.
At present, per-command accounting for terminal users is available with the
HWTACACS protocol only.
After this function is enabled on a user interface, a command statistics packet is sent to
a TACACS accounting server for statistics and accounting each time a login terminal
user executes a command.
When the TACACS accounting server becomes unavailable, the terminal user can
execute commands normally but with per-command accounting stopped. The system,
however, does not record or inform the terminal user of this event.
Example
5-1
Command Manual – System Management
Comware V3 Chapter 5 User Interface Configuration Commands
5.1.2 acl
Syntax
View
Parameter
acl-number: Address access control list number, in the range 2000 to 3999.
inbound: Controls call-in.
outbound: Controls call-out.
Description
Use the acl command to reference an ACL to control call-in and call-out of VTY (Telnet
and SSH) users.
Use the undo acl command to remove the ACL.
By default, call-in and call-out of VTY users are not restricted.
Example
5.1.3 activation-key
Syntax
activation-key character
undo activation-key
View
Parameter
character: Shortcut key or key combination for starting terminal sessions, a string of 1
to 3 characters or their corresponding ASCII code values in the range 0 to 127.
5-2
Command Manual – System Management
Comware V3 Chapter 5 User Interface Configuration Commands
Description
Use the activation-key command to define a shortcut key or key combination for
starting a terminal session.
Use the undo activation-key command to remove the shortcut key or key combination
used to start terminal sessions.
Example
<H3C>
%Mar 2 18:40:27:981 2005 H3C SHELL/5/LOGIN: Console login from con0el
If the prompt for user view, <H3C> for example, appears after you press <s>, the
configuration is valid.
5.1.4 authentication-mode
Syntax
View
5-3
Command Manual – System Management
Comware V3 Chapter 5 User Interface Configuration Commands
Parameter
Description
Note:
Domain configuration is valid on both VTY and console users, while the banner
message is only valid for Telnet and terminal users. This is because SSH client can be
provided by the third party and the interaction mode of the client cannot be modified.
Example
5-4
Command Manual – System Management
Comware V3 Chapter 5 User Interface Configuration Commands
Syntax
View
Parameter
Description
Caution:
Before configuring the auto-execute command command and saving it with the save
command, make sure that means exist that allow you to access the system to remove
the configuration.
5-5
Command Manual – System Management
Comware V3 Chapter 5 User Interface Configuration Commands
Example
# Allow the system to execute the telnet 10.110.100.1 command automatically after a
user logs on from the AUX interface.
[H3C-ui-aux0] auto-execute command telnet 10.110.100.1
5.1.6 databits
Syntax
databits { 5 | 6 | 7 | 8 }
undo databits
View
Parameter
Description
Use the databits command to set data bits on the user interface.
Use the undo databits command to restore the default, or eight.
The configuration can take effect only when the serial interface works in the
asynchronous flow mode.
Example
Syntax
View
User view
5-6
Command Manual – System Management
Comware V3 Chapter 5 User Interface Configuration Commands
Parameter
Description
Example
Syntax
View
Any view
Parameter
type-name: User interface type. Together with a user interface index, it specifies a user
interface.
number: Number of a user interface. If type-name is not specified, number is an
absolute index in the range 0 to 38. If type-name is specified, it is a relative index whose
value depends on the user interface type.
summary: Displays summary about user interfaces.
Description
Use the display user-interface command to view information about the specified or all
user interfaces.
Example
5-7
Command Manual – System Management
Comware V3 Chapter 5 User Interface Configuration Commands
Syntax
View
Any view
Parameter
Description
Use the display users command to view the login information of the users on each
user interface.
Example
You can see information on all active terminal lines. The following table describes the
fields in the output.
5-8
Command Manual – System Management
Comware V3 Chapter 5 User Interface Configuration Commands
Field Description
+ Indicates the terminal line in use.
The first number and the second number are respectively
UI
the absolute index and relative index of the user interface.
Delay Interval since the last input, in the format of hh:mm:ss.
Type User type, such as Telnet, SSH, and PAD
Location where connection is initiated, or IP address of the
Ipaddress
call-in host.
Username that the user uses to log in from this user
Username interface. In this example, this field is void because AAA
authentication is not required on this terminal line.
User authority or level: 0 for visit, 1 for monitor, 2 for
Userlevel
system, and 3 for manage.
All the terminal lines are displayed. The plus (+) signs indicate active terminal lines.
5.1.10 escape-key
Syntax
View
Parameter
5-9
Command Manual – System Management
Comware V3 Chapter 5 User Interface Configuration Commands
Description
Use the escape-key command to define an escape key or key combination for aborting
tasks.
Use the undo escape-key command to delete the escape key or key combination
used to abort tasks.
Example
If the ping task is terminated and return to the current view, the configuration is correct.
5.1.11 flow-control
Syntax
View
Parameter
Description
5-10
Command Manual – System Management
Comware V3 Chapter 5 User Interface Configuration Commands
Example
Syntax
View
User view
Parameter
Description
Use the free user-interface number command to disconnect the user corresponding to
the user interface specified by its absolute index.
Use the free user-interface type-name number command to disconnect the user
corresponding to the user interface specified by its type and relative index.
Example
Syntax
5-11
Command Manual – System Management
Comware V3 Chapter 5 User Interface Configuration Commands
View
Parameter
size-value: History buffer size in the range 0 to 256. It defaults to 10, that is, up to ten
history commands can be stored.
Description
Use the history-command max-size command to set the size of history command
buffer.
Use the undo history-command max-size command to restore the default, or 10.
Example
5.1.14 idle-timeout
Syntax
View
Parameter
Description
Use the idle-timeout command to set the idle-timeout timer. When it expires, the user
connection is disconnected.
Use the undo idle-timeout command to restore the default.
The default idle-timeout is 10 minutes.
Setting idle-timeout to zero disables the timer and the connection is maintained
regardless of whether it is idle.
Example
5-12
Command Manual – System Management
Comware V3 Chapter 5 User Interface Configuration Commands
5.1.15 modem
Syntax
View
Parameter
Description
Use the modem or modem both command to allow modem calls to pass through, both
incoming and outgoing.
Use the modem [ call-in | call-out ] command to allow incoming or outgoing modem
calls to pass through.
Use the undo modem or undo modem both command to disable modem calls to
pass through, both incoming and outgoing.
Use the undo modem [ call-in | call-out ] command to disable incoming or outgoing
modem calls to pass through.
By default, both incoming and outgoing modem calls are disabled to pass through.
This command is only available with the AUX interface and other asynchronous
interfaces (TTYs). You cannot use it on the console interface.
Example
Syntax
modem auto-answer
undo modem auto-answer
View
5-13
Command Manual – System Management
Comware V3 Chapter 5 User Interface Configuration Commands
Parameter
None
Description
Use the modem auto-answer command to set the answering mode to auto-answer.
Use the undo modem auto-answer command to restore the default, or manual
answer.
This command applies only to the AUX interface and other TTYs. You cannot use it on
the console interface.
To allow a user interface to accept dial-up connections using modem, you must first set
the modem parameters on it.
Example
Syntax
View
Parameter
Description
Use the modem timer answer command to set the timeout time spent waiting for the
carrier signal after the off-hook action when setting up an incoming call connection.
Use the undo modem timer answer command to restore the default, or 30 seconds.
This command is only available with the AUX interface and other TTYs. You cannot use
it on the console interface.
Example
None
5-14
Command Manual – System Management
Comware V3 Chapter 5 User Interface Configuration Commands
5.1.18 parity
Syntax
View
Parameter
Description
Use the parity command to set the check bit of the user interface.
Use the undo parity command to restore the default, or none.
The configuration is effective only when the serial interface works in asynchronous flow
mode.
Example
Syntax
View
Parameter
5-15
Command Manual – System Management
Comware V3 Chapter 5 User Interface Configuration Commands
Description
Use the protocol inbound command to enable the current user interface to support
Telnet, PAD, SSH, or all of them.
By default, the VTY interface supports all these protocols.
Note that even after you configured the current user interface to support SSH (which
has been enabled), the SSH service is unavailable if no local RSA key exists. After you
configure the RSA key, the configuration takes effect at next login.
If SSH is configured, you must set the authentication method to scheme using the
authentication-mode scheme command to guarantee a successful login. The
configuration of the authentication-mode password or authentication-mode none
command fails the protocol inbound ssh command.
Related command: user-interface vty.
Example
5.1.20 re-authentication
Syntax
re-authentication
undo re-authentication
View
Parameter
None
Description
5-16
Command Manual – System Management
Comware V3 Chapter 5 User Interface Configuration Commands
Suppose you remove the console cable without clearing the existing console
connection. Console login re-authentication ensures that even if the cable is connected
again when the console connection is still present, one must undergo another
authentication to log in from the console port.
Configure the re-authentication command in conjunction with the flow-control
hardware command.
Example
# Remove the console cable, and then connect it before the console connection times
out. The following message is displayed:
Login authentication
Username:
Password:
5.1.21 screen-length
Syntax
screen-length screen-length
undo screen-length
View
Parameter
Description
Use the screen-length command to set the number of lines displayed on the terminal
screen.
Use the undo screen-length command to restore the default, or 24 lines.
Setting the screen length to zero disables multiple-screen output.
5-17
Command Manual – System Management
Comware V3 Chapter 5 User Interface Configuration Commands
Example
5.1.22 screen-width
Syntax
screen-width width
undo screen-width
View
Parameter
Description
Use the screen-width command to set the width of the terminal screen, that is, how
many characters can be displayed in one line.
Use the undo screen-width command to restore the width of the terminal screen to the
default value.
By default, 80 characters can be displayed in one line.
Example
# Set the width of the terminal screen for console port to 100.
[H3C-ui-console0] screen-width 100
5.1.23 send
Syntax
View
User view
Parameter
5-18
Command Manual – System Management
Comware V3 Chapter 5 User Interface Configuration Commands
Description
Example
Syntax
View
Parameter
Description
5-19
Command Manual – System Management
Comware V3 Chapter 5 User Interface Configuration Commands
Use the undo set authentication password command to remove the local
authentication password.
Regardless of whether the password format is set to plain text or ciphertext, a user
must input plain text password at authentication time.
When configuring a password, you must specify its format either to simple or to cipher
to save it in plain text or ciphertext. In the latter case, the password is displayed in
ciphertext regardless of whether the password you entered is in plain text or in
ciphertext.
By default, Telnet users must provide passwords at login, that is, the
authentication-mode password command applies. If no password is configured, the
following information appears:
Login password has not been set !
Example
# Set the local authentication password for the user interfaces VTYs 0 through 4 to h3c.
[H3C-ui-vty0-4] authentication-mode password
[H3C-ui-vty0-4] set authentication password simple h3c
5.1.25 shell
Syntax
shell
undo shell
View
Parameter
None
Description
Use the shell command to enable terminal services on the user interface.
Use the undo shell command to cancel the current setting.
If you want to enable telnet redirect, you must configure this command.
By default, terminal services are enabled on all user interfaces.
The following are the restrictions on the use of the undo shell command:
z You cannot execute the command on the console port.
5-20
Command Manual – System Management
Comware V3 Chapter 5 User Interface Configuration Commands
z When the AUX port on your H3C functions as the console port, you cannot
execute the command on it.
z These restrictions do not apply to other types of user interfaces.
Example
Syntax
View
System view
Parameter
None
Description
Use the shell priority high command to set command execution first.
Use the undo shell priority high command to remove command execution first.
The possessing rate of the CPU of a H3C exceeding 50% may result in the low reaction
speed on the Console interface because the system defaults to give higher priority to
data forwarding. Here you can use the command to make the system process
command executions first.
By default, shell priority high is disabled.
Example
5.1.27 speed
Syntax
speed speed-value
5-21
Command Manual – System Management
Comware V3 Chapter 5 User Interface Configuration Commands
undo speed
View
Parameter
Description
Use the speed command to set the transmission rate on the user interface.
Use the undo speed command to restore the default, or 9600 bps.
Only when the serial interface works in asynchronous flow mode can the configuration
be effective.
The transmission rates available with asynchronous serial interfaces include:
z 300 bps
z 600 bps
z 1200 bps
z 2400 bps
z 4800 bps
z 9600 bps
z 19200 bps
z 38400 bps
z 57600 bps
z 115200 bps
Example
5.1.28 stopbits
Syntax
stopbits { 1.5 | 1 | 2 }
undo stopbits
View
Parameter
5-22
Command Manual – System Management
Comware V3 Chapter 5 User Interface Configuration Commands
1: 1 stop bit.
2: 2 stop bits.
Description
Use the stopbits command to set the stop bits on the user interface.
Use the undo stopbits command to restore the default, or one stop bit.
Only when the serial interface works in asynchronous flow mode can the configuration
be effective.
Example
Syntax
View
Parameter
Description
Example
Syntax
5-23
Command Manual – System Management
Comware V3 Chapter 5 User Interface Configuration Commands
View
Parameter
Description
Use the user privilege command to configure the command level that the login users
on the current user interface can access.
Use the undo user privilege command to cancel the current setting.
By default, the default command level is three for the console user interface and zero
for other user interfaces.
When a user logs onto the H3C from a user interface, the command level that the user
can access depends on two points. One is the command level that the user itself can
access, the other is the command level assigned to this user interface. If the two levels
are different, the former is taken. For example, the command level of the VTY 0 user
interface is two; however, user 007 has the right to access command level 3. If 007 logs
in from VTY 0 user interface, he can access commands at level 3 and lower.
Example
# Set the command level that the users logging in from VTY 0 to two.
[H3C-ui-vty0] user privilege level 2
# After the user telnets to the H3C from VTY 0, the terminal displays:
<H3C>
5.1.31 user-interface
Syntax
View
System view
Parameter
5-24
Command Manual – System Management
Comware V3 Chapter 5 User Interface Configuration Commands
Description
Example
# Enter user interface view to configure user interfaces 0 through 3. The types of the
interfaces include console, AUX and VTY. The actual user interface types however
depend on the interfaces provided by the H3C. If the H3C does not provide the AUX
port, this example configures one console user interface and three VTY user interfaces.
[H3C] user-interface 0 3
[H3C-ui0-3]
5-25
Command Manual – System Management
Comware V3 Chapter 6 NTP Configuration Commands
Syntax
View
User view
Parameter
Description
Example
6-1
Command Manual – System Management
Comware V3 Chapter 6 NTP Configuration Commands
Syntax
View
Any view
Parameter
Description
Use the display ntp-service sessions command to view brief information about all
sessions maintained by the NTP at the local device.
Use the display ntp-service sessions verbose command to view details about all
sessions maintained by the NTP at the local device.
By default, the status of all sessions maintained by NTP at the local device is displayed.
Example
# Display brief information about all sessions maintained by NTP at the local device.
<H3C> display ntp-service sessions
source reference stra reach poll now offset delay disper
********************************************************************
[5]1.1.1.1 0.0.0.0 16 0 64 - 0.0 0.0 0.0
note: 1 source(master),2 source(peer),3 selected,4 candidate,5 configured
Table 6-1 Description on the fields of the display ntp-service sessions command
Field Description
source IP address of the clock source
6-2
Command Manual – System Management
Comware V3 Chapter 6 NTP Configuration Commands
Field Description
disper Clock dispersion relative to the reference clock
note: 1
source(master),2 Remark on the number enclosed by the square brackets
source(peer),3 in front of the source IP address. This number indicates
selected,4 candidate,5 type of the clock source
configured
Syntax
View
Any view
Parameter
None
Description
Use the display ntp-service status command to view status about the NTP service.
Example
Table 6-2 Description on the fields of the display ntp-service status command
Field Description
Indicates that the local system is synchronized to a
synchronized
remote NTP server or a clock source
6-3
Command Manual – System Management
Comware V3 Chapter 6 NTP Configuration Commands
Field Description
Indicates that the local system is not synchronized to any
unsynchronized
remote NTP server.
stratum The NTP stratum of the local system.
If the local system is synchronized to a remote NTP server
reference or a clock source, it indicates the address of the remote
server or clock source ID.
Nominal frequency of the hardware clock in the local
nominal freq
system.
Actual frequency of the hardware clock in the local
actual freq
system.
precision Precision of the local system clock
reference time Reference timestamp
offset Offset of the NTP server relative to the local clock
root delay Total roundtrip delay to the master reference clock
Syntax
View
Any view
Parameter
None
Description
Use the display ntp-service trace command to view the summary about each NTP
time server from the local device back to the reference clock source.
This command draws a picture of the NTP servers on the time synchronization path
from the local device to the reference clock source.
Example
6-4
Command Manual – System Management
Comware V3 Chapter 6 NTP Configuration Commands
The output displays the synchronization path from server 4 to its reference clock source,
where server 4 synchronizes to server 3, server 3 to server 2, server 2 to server 1, and
server 1 to the reference clock source GPS Receiver.
Syntax
View
System view
Parameter
Description
Use the ntp-service access command to control access to the NTP service on the
local device.
Use the undo ntp-service access command to cancel the limit on the access right.
By default, no access right is configured.
You can control access to the NTP service on the local device with this command. Each
time the system receives a request, it compares the request against the access control
restrictions from least to maximum: peer, server, synchronization, query.
For protection more secure, you need to configure identification authentication.
Example
# Enable the peer in ACL 76 to perform time request, query control and time
synchronization on the local device.
[H3C] ntp-service access peer 76
# Enable the peer in ACL 28 to perform time request, query control on the local device.
[H3C] ntp-service access server 28
6-5
Command Manual – System Management
Comware V3 Chapter 6 NTP Configuration Commands
Syntax
View
System view
Parameter
None
Description
Example
Syntax
View
System view
Parameter
Description
6-6
Command Manual – System Management
Comware V3 Chapter 6 NTP Configuration Commands
Example
# Set MD5 ID authentication key: the key ID number is 10 and the key is BetterKey.
[H3C] ntp-service authentication-keyid 10 authentication-mode md5 BetterKey
Syntax
ntp-service broadcast-client
undo ntp-service broadcast-client
View
Interface view
Parameter
None
Description
Example
6-7
Command Manual – System Management
Comware V3 Chapter 6 NTP Configuration Commands
Syntax
View
Interface view
Parameter
Description
Example
# Specify Ethernet 1/0/0 to transmit NTP broadcast packets, use the key numbered four
for encryption, and set NTP version number to three.
[H3C] interface ethernet 1/0/0
[H3C-Ethernet1/0/0] ntp-service broadcast-server authentication-key 4
version 3
Syntax
6-8
Command Manual – System Management
Comware V3 Chapter 6 NTP Configuration Commands
View
System view
Parameter
Description
Example
Syntax
View
Interface view
Parameter
Description
6-9
Command Manual – System Management
Comware V3 Chapter 6 NTP Configuration Commands
network delay. Then it enters multicast client mode to listen to the multicast packets and
synchronizes the local clock according to the incoming multicast packets.
Example
# Configure Ethernet 1/0/0 to receive NTP multicast packets. The multicast address
corresponding to the multicast packets is 224.0.1.1.
[H3C] interface ethernet 1/0/0
[H3C-Ethernet1/0/0] ntp-service multicast-client 224.0.1.1
Syntax
View
Interface view
Parameter
Description
6-10
Command Manual – System Management
Comware V3 Chapter 6 NTP Configuration Commands
Example
# Configure Ethernet 1/0/0 to transmit NTP multicast messages. Set the multicast
address to 224.0.1.1, encryption key ID to four and NTP version to three.
[H3C] interface ethernet 1/0/0
[H3C-Ethernet1/0/0] ntp-service multicast-server 224.0.1.1
authentication-keyid 4 version 3
Syntax
View
System view
Parameter
Description
Use the ntp-service refclock-master command to set the local clock as the NTP
master clock to provide synchronization source.
Use the undo ntp-service refclock-master command to remove the setting of the
NTP master clock.
By default, the IP address of reference clock is not specified. In this case, the local
clock is the NTP master clock.
You may set the stratum of the NTP master clock in this command.
By default, the stratum of the local clock is eight.
Example
# Use the local device as the NTP master clock to provide synchronization source for
other peers. Set layers-number to three.
[H3C] ntp-service refclock-master 3
Syntax
6-11
Command Manual – System Management
Comware V3 Chapter 6 NTP Configuration Commands
View
System view
Parameter
Description
Example
# Enable ID authentication of NTP. Adopt MD5 encryption, and specify the key ID to 37
and the key to BetterKey. Specify the key to be reliable.
[H3C] ntp-service authentication enable
[H3C] ntp-service authentication-keyid 37 authentication-mode md5 BetterKey
[H3C] ntp-service reliable authentication-keyid 37
Syntax
View
System view
Parameter
Description
Use the ntp-service source-interface command to specify an interface for the local
end to transmit NTP messages.
Use the undo ntp-service source-interface command to cancel the setting.
6-12
Command Manual – System Management
Comware V3 Chapter 6 NTP Configuration Commands
Normally, the source IP address of an NTP message is the address of its output
interface. However, you may use this command to specify the source IP address for all
the NTP messages to be transmitted. The replies to these messages, as a result, use
that address as their destination address.
Example
# Use the IP address of interface Ethernet 1/0/0 as the source address of all the NTP
messages to be transmitted.
[H3C] ntp-service source-interface ethernet 1/0/0
Syntax
View
System view
Parameter
6-13
Command Manual – System Management
Comware V3 Chapter 6 NTP Configuration Commands
Description
Example
# Allow the local device and its peer at 128.108.22.44 to synchronize to each other.
Specify NTP version to three and use the IP address of Ethernet 1/0/0 as the source IP
address of the NTP messages.
[H3C] ntp-service unicast-peer 128.108.22.44 version 3 source-interface
ethernet 1/0/0
Syntax
View
System view
Parameter
6-14
Command Manual – System Management
Comware V3 Chapter 6 NTP Configuration Commands
Description
Example
# Configure the local device to synchronize to the server at 128.108.22.44. NTP version
3 is used.
[H3C] ntp-service unicast-server 128.108.22.44 version 3
6-15
Command Manual – System Management
Comware V3 Chapter 7 SNMP Configuration Commands
Syntax
View
User view
Parameter
Description
Use the debugging snmp-agent command to enable SNMP agent debugging and
specify the information to be output.
Use the undo debugging snmp-agent command to disable SNMP agent debugging.
By default, SNMP agent debugging is disabled.
Example
Syntax
View
Any view
7-1
Command Manual – System Management
Comware V3 Chapter 7 SNMP Configuration Commands
Parameter
Description
Use the display snmp-agent command to view the engine ID of the local or remote
SNMP entity.
Within an administrative domain, each SNMP engine ID uniquely identifies an SNMP
engine and thus the associated SNMP entity. SNMP engines are an indispensable part
of SNMP entities, completing functions such as message dispatching, processing,
authentication, and access control.
Example
Syntax
View
Any view
Parameter
Description
Example
Community name:8040core
7-2
Command Manual – System Management
Comware V3 Chapter 7 SNMP Configuration Commands
Group name:8040core
Storage-type: nonVolatile
Syntax
View
Any view
Parameter
group-name: Specifies the group name of the SNMP information to be displayed, in the
range 1 to 32 bytes.
Description
Use the display snmp-agent group command to view information about the specified
or all user security model (USM) based groups, including group name, security model,
storage type.
Example
Table 7-1 Description on the fields of the display snmp-agent group command
Field Description
Groupname SNMP group name corresponding to the user
Security model Security model of SNMP
Readview Name of the read-only MIB view corresponding to the group
Writeview Name of the write MIB view corresponding to the group
Notifyview Name of the notify MIB view corresponding to the group
Storage-type Storage type
7-3
Command Manual – System Management
Comware V3 Chapter 7 SNMP Configuration Commands
Syntax
View
Any view
Parameter
exclude: Excludes the SNMP MIB view attributes displayed and set.
include: Includes the SNMP MIB view attributes displayed and set.
viewname: Specifies the name of the view to be displayed.
Description
Use the display snmp-agent mib-view command to view the configured MIB views.
Example
View name:ViewDefault
MIB Subtree:snmpUsmMIB
Subtree mask:
Storage-type: nonVolatile
View Type:excluded
View status:active
View name:ViewDefault
MIB Subtree:snmpVacmMIB
Subtree mask:
Storage-type: nonVolatile
View Type:excluded
View status:active
View name:ViewDefault
7-4
Command Manual – System Management
Comware V3 Chapter 7 SNMP Configuration Commands
MIB Subtree:snmpModules.18
Subtree mask:
Storage-type: nonVolatile
View Type:excluded
View status:active
Table 7-2 Description on the fields of the display snmp-agent mib-view command
Field Description
View name View name
MIB Subtree MIB subtree
Subtree mask MIB subtree mask
Storage-type Storage type
Indicates that the access to a MIB object is
ViewType: Included/excluded
allowed or prohibited.
Active Indicates the state of lines in the table.
Syntax
View
Any view
Parameter
None
Description
Use the display snmp-agent statistics command to view the state and statistics
about SNMP.
Example
7-5
Command Manual – System Management
Comware V3 Chapter 7 SNMP Configuration Commands
Table 7-3 Description on the fields of the display snmp-agent statistics command
Field Description
0 Messages delivered to the SNMP Number of messages transmitted to the
entity SNMP entity is 0
0 Messages which were for an Number of messages with unsupported
unsupported version version is 0
0 Messages which used a SNMP Number of messages with unknown
community name not known SNMP community name is 0
0 Messages which represented an
Number of messages returned
illegal operation for the community
indicating illegal operation is 0
supplied
0 ASN.1 or BER errors in the process of Number of ASN.1 or BER error occurred
decoding during decoding is 0
0 Messages passed from the SNMP Number of messages transmitted by the
entity SNMP entity is 0
0 SNMP PDUs which had badValue Number of SNMP PDUs with badValue
error-status error is 0
0 SNMP PDUs which had genErr Number of SNMP PDUs with genErr
error-status error is 0
0 SNMP PDUs which had noSuchName Number of SNMP PDUs with
error-status noSuchName error is 0
Number of SNMP PDUs with tooBig
0 SNMP PDUs which had tooBig
error is 0 (maximum packet size is 500
error-status (Maximum packet size 500)
bytes)
0 MIB objects retrieved successfully Number of retrieved MIB objects is 0
0 MIB objects altered successfully Number of altered MIB objects is 0
7-6
Command Manual – System Management
Comware V3 Chapter 7 SNMP Configuration Commands
Field Description
0 GetRequest-PDU accepted and Number of GetRequest PDUs being
processed received and processed is 0
0 GetNextRequest-PDU accepted and Number of GetNextRequest PDUs being
processed received and processed is 0
0 GetBulkRequest-PDU accepted and Number of GetBulkRequest PDUs being
processed received and processed is 0
0 GetResponse-PDU accepted and Number of GetResponse PDUs being
processed received and processed is 0
0 SetRequest-PDU accepted and Number of setRequest PDUs being
processed received and processed is 0
Number of trap PDUs being received
0 Trap PDUs accepted and processed
and processed is 0
Syntax
View
Any view
Parameter
Description
Use the display snmp-agent sys-info command to view the system information of this
SNMP device.
Example
7-7
Command Manual – System Management
Comware V3 Chapter 7 SNMP Configuration Commands
SNMPv3
Table 7-4 Description on the fields of the display snmp-agent sys-info command
Field Description
The contact person for this managed node Contact person for this device
The physical location of this node: Physical location for this device
SNMP version running in the system: SNMP version in use
Syntax
View
Any view
Parameter
None
Description
Use the display snmp-agent trap-list command to display whether trap sending is
enabled on each module.
Related command: snmp-agent trap enable.
Example
7-8
Command Manual – System Management
Comware V3 Chapter 7 SNMP Configuration Commands
The command output shows that trap sending is enabled on all modules other than the
system module.
Syntax
View
Any view
Parameter
engineid: Displays information about the SNMPv3 users with the specified engine ID.
engineid-string: Character string of the engine ID.
username: Displays information about the specified SNMPv3 user.
user-name: User name, in the range 1 to 32 bytes.
group: Displays information about the users in the specified SNMP group.
group-name: Group name, in the range 1 to 32 bytes.
Description
Use the display snmp-agent usm-user command to view information about the
specified or all SNMP users.
SNMP users are users that remotely execute SNMP management operation.
Example
Table 7-5 Description on the fields of the display snmp-agent usm-user command
Field Description
User name The character string identifies the SNMP user.
Group name Name of the group to which the SNMP user belongs
7-9
Command Manual – System Management
Comware V3 Chapter 7 SNMP Configuration Commands
Field Description
Engine ID The character string identifies the SNMP device.
Active Indicates the state of the SNMP user.
Storage-type Storage type of SNMP information
UserStatus State of the SNMP user
7.1.10 snmp-agent
Syntax
snmp-agent
undo snmp-agent
View
System view
Parameter
None
Description
Example
Syntax
7-10
Command Manual – System Management
Comware V3 Chapter 7 SNMP Configuration Commands
View
System view
Parameter
read: Indicates that the community name has read-only access to the specified view.
write: Indicates that the community name has read-write access to the specified view.
community-name: Community string.
mib-view: MIB view that the specified community can access.
view-name: Specifies a MIB view.
acl: Applies an ACL to the community name.
acl-number: Number of the ACL, in the range 2000 to 2999.
Description
Example
Syntax
7-11
Command Manual – System Management
Comware V3 Chapter 7 SNMP Configuration Commands
View
System view
Parameter
Description
Use the snmp-agent group command to configure a new SNMP group, or to map an
SNMP user or group to an SNMP view.
Use the undo snmp-agent group command to delete a specified SNMP group.
By default, the snmp-agent group group-name v3 command does not provide
authentication or encryption.
If no view is specified, the snmp-agent group v3 command considers ViewDefault
view as read-only by default. The rights of other views needs configuration.
The snmp-agent group { v1 | v2c } command configures the SNMP community
attribute. Its default is the same as the snmp-agent group v3 command.
Related command: snmp-agent mib-view, snmp-agent usm-user.
Example
7-12
Command Manual – System Management
Comware V3 Chapter 7 SNMP Configuration Commands
Syntax
View
System view
Parameter
Description
Use the snmp-agent local-engineid command to configure an engine ID for the local
SNMP entity.
Use the undo snmp-agent local-engineid command to remove the current setting.
The default engine ID is enterprise number plus equipment information. Equipment
information can be an IP address, MAC address or a hexadecimal number string
defined using this command.
Related command: snmp-agent usm-user.
Example
Syntax
View
System view
Parameter
7-13
Command Manual – System Management
Comware V3 Chapter 7 SNMP Configuration Commands
Description
Use the snmp-agent mib-view command to create or update the information about a
view.
Use the undo snmp-agent mib-view command to delete the view information.
By default, the view name is ViewDefault and the OID is 1.3.6.1.
This command accepts both variable OID strings and node names.
Related command: snmp-agent group.
Example
Syntax
View
System view
Parameter
byte-count: Maximum length of the SNMP packets that the agent can receive/send, in
the range 484 to 17940 bytes. The default value is 1500 bytes.
Description
Use the snmp-agent packet max-size command to set the maximum length of the
SNMP packets that the agent can receive/send.
Use the undo snmp-agent packet max-size command to cancel the current setting.
Example
# Set the maximum length of SNMP packets that the agent can receive/send to 1042
bytes.
[H3C] snmp-agent packet max-size 1042
7-14
Command Manual – System Management
Comware V3 Chapter 7 SNMP Configuration Commands
Syntax
View
System view
Parameter
Description
Use the snmp-agent sys-info command to set system information, including system
contact, physical location of the node, and SNMP version.
Use the undo snmp-agent sys-info command to cancel the current setting.
By default, the system contact is Huawei-3Com Technology Co., Ltd., system location
is Hangzhou China and the version is SNMPv3.
Related command: display snmp-agent sys-info.
Example
7-15
Command Manual – System Management
Comware V3 Chapter 7 SNMP Configuration Commands
Syntax
View
System view
Parameter
Description
Use the snmp-agent target-host command to set the destination that receives SNMP
notifications.
Use the undo snmp-agent target-host command to cancel the current setting.
Use the snmp-agent target-host command in conjunction with the snmp-agent trap
enable command.
7-16
Command Manual – System Management
Comware V3 Chapter 7 SNMP Configuration Commands
The snmp-agent trap enable command enables a device to send traps. To have a
host send notifies, you need to configure the snmp-agent target-host command on it.
In an MPLS L3VPN network environment, a CE, a Quidview NMS for example, on a
private network can use SNMP to manage PEs. To this end, you must specify the VPN
instance to which the SNMP trap host belongs on PEs so these PEs can send back
SNMP messages in response to the SNMP get/set requests from the CE. If a PE has
no direct connection to the CE, you must specify a source interface for traps in addition.
Related command: snmp-agent trap enable, snmp-agent trap source, snmp-agent
trap life.
Example
# Allow the H3C to send SNMP traps to 10.1.1.1, using the community name of
comaccess.
[H3C] snmp-agent trap enable standard
[H3C] snmp-agent target-host trap address udp-domain 10.1.1.1 params
securityname comaccess
# Send traps to 202.38.160.6 in private network blue, using the community name of
public.
[H3C] snmp-agent target-host trap address udp-domain 202.38.160.6 udp-port
5000 vpn-instance blue params securityname public
Syntax
View
System view
Parameter
trap-type: Specifies the trap type, or the module where traps are sent.
trap-list: Parameter list corresponding to the trap type.
7-17
Command Manual – System Management
Comware V3 Chapter 7 SNMP Configuration Commands
Description
Use the snmp-agent trap enable command to enable the device to send traps and set
the trap and notification parameters.
Use the undo snmp-agent trap enable command to cancel the current setting.
By default, trap sending is enabled on all modules.
The snmp-agent trap enable command without any parameters specified allows the
device to send all types of SNMP traps from all the modules.
Use the snmp-agent trap enable command in conjunction with the snmp-agent
target-host command, which specifies the hosts to which the traps are sent. To send
traps, you must configure at least one snmp-agent target-host command.
The trap-type argument specifies the module where traps are sent. It can be bgp,
configuration, flash, ldp, lsp, ospf, standard, system, voice, and vrrp.
The standard traps include authentication, coldstart, linkdown, linkup, and
warmstart.
Related command: snmp-agent target-host, snmp-agent trap-source, snmp-agent
trap-timeout.
Example
# Allow the system to send SNMP authentication traps to 10.1.1.1, with the trap format
of SNMPv2c and the community name of public.
[H3C] snmp-agent trap enable standard authentication
[H3C] snmp-agent target-host trap address udp-domain 10.1.1.1 params
securityname public v2c
# Allow the system to send all types of BGP traps to 10.1.1.1. Set the trap format to
SNMPv3. Authenticate the traps without encryption and set the use name to super.
[H3C] snmp-agent trap enable bgp
[H3C] snmp-agent target-host trap address udp-domain 10.1.1.1 params
securityname super v3 authentication
Syntax
View
System view
7-18
Command Manual – System Management
Comware V3 Chapter 7 SNMP Configuration Commands
Parameter
Description
Use the snmp-agent trap life command to set the lifetime of traps. The expired traps
are discarded without being retained or sent.
Use the undo snmp-agent trap life command to cancel the current setting.
Related command: snmp-agent trap enable, snmp-agent target-host.
Example
Syntax
View
System view
Parameter
Description
Use the snmp-agent trap queue-size command to set the length of the trap queue to
the specified host.
Use the undo snmp-agent trap queue-size command to cancel the setting.
The default queue length is 100.
Related command: snmp-agent trap enable, snmp-agent target-host, snmp-agent
trap life.
Example
7-19
Command Manual – System Management
Comware V3 Chapter 7 SNMP Configuration Commands
Syntax
View
System view
Parameter
Description
Use the snmp-agent trap source command to specify the source address of traps.
Use the undo snmp-agent trap source command to cancel the current setting.
The SNMP traps from a server have a trap address, regardless of out which interface
they are sent. Through trap addresses configured using this command, you can trace a
particular event.
Related command: snmp-agent trap enable, snmp-agent target-host.
Example
# Specify the IP address of Ethernet interface 1/0/0 as the source address of trap
packets.
[H3C] snmp-agent trap source ethernet 1/0/0
Syntax
View
System view
Parameter
7-20
Command Manual – System Management
Comware V3 Chapter 7 SNMP Configuration Commands
Description
Use the snmp-agent usm-user command to add a new user to an SNMP group.
Use the undo snmp-agent usm-user command to delete an SNMP group user.
After you configure a remote user for an agent, engine ID is needed during
authentication. If the engine ID changes after that, the user corresponding to the
original engine ID becomes invalid.
For SNMPv1 and SNMPv2c, this command adds a new community name; for SNMPv3,
it adds a new user to an SNMP group.
Related command: snmp-agent group, snmp-agent community, snmp-agent
local-engineid.
Example
# Add user John to the SNMP group of Johngroup, setting the security level to
authentication, authentication protocol to HMAC-MD5-96 and password to hello.
[H3C] snmp-agent usm-user v3 John Johngroup authentication-mode md5 hello
7-21
Command Manual – System Management
Comware V3 Chapter 8 BIMS Configuration Commands
Syntax
View
System view
Description
Use the bims boot request command to enable the BIMS device to access the branch
intelligent management system (BIMS) center at startup.
Use the undo bims boot request command to disable the BIMS device to access the
BIMS center automatically at startup.
If a user forcibly disables the BIMS device to access the BIMS center at startup, when
the device is restarted, it will not send messages to BIMS server. Therefore BIMS
center cannot detect that the device is restarted and the waiting for restart message will
be displayed on the interface.
By default, the BIMS device does not access the BIMS center at startup.
Related command: bims request.
Example
Syntax
View
System view
8-1
Command Manual – System Management
Comware V3 Chapter 8 BIMS Configuration Commands
Parameter
string: Unique identifier of the BIMS device, up to 30 characters, among which the
characters “0 to 9”, “a to z”, “A to Z”, “-”, “_”, “@”, and “.” can be configured.
Description
Use the bims device-id command to configure the unique identifier of the BIMS device
at the BIMS center.
Use the undo bims device-id command to delete the identifier.
By default, no identifier is assigned to the BIMS device.
Related command: bims interval.
Example
# Set the unique identifier of the BIMS device at the BIMS center to
R2102311042W033000076.
[H3C] bims device-id R2102311042W033000076
Syntax
bims enable
undo bims enable
View
System view
Description
Example
# Enable BIMS.
[H3C] bims enable
bims is enable
Syntax
8-2
Command Manual – System Management
Comware V3 Chapter 8 BIMS Configuration Commands
View
System view
Parameter
number: Interval for accessing the BIMS center, in the range 10 to 10080 minutes.
Description
Use the bims interval command to configure the interval for accessing the BIMS
center. When the interval is set to 0, the BIMS device does not access the BIMS center
regularly.
Use the undo bims interval command to delete the interval specified for accessing the
BIMS center.
By default, no BIMS center accessing interval is set.
Example
# Set the interval for accessing the BIMS center to 120 minutes.
[H3C] bims interval 120
Syntax
View
System view
Parameter
Description
Use the bims ip address command to configure the IP address and port number of the
BIMS center.
Use the undo bims ip address command to delete the configuration.
By default, the IP address of the BIMS center is not configured. If you do not specify a
port number when configuring the IP address of the BIMS center, port 80 applies by
default.
8-3
Command Manual – System Management
Comware V3 Chapter 8 BIMS Configuration Commands
Example
# Set the IP address and port number of the BIMS center to 129.33.72.66 and 81
respectively.
[H3C] bims ip address 129.33.72.66 port 81
Syntax
bims request
View
System view
Description
Use the bims request command to have the BIMS device access the BIMS center.
Related command: bims boot request.
Example
Syntax
View
System view
Parameter
sharekey: Shared Key between the BIMS device and the BIMS center. It is 16 bits long.
simple: Displays the shared key in clear text.
cipher: Displays the shared key in ciphertext.
Description
Use the bims sharekey command to configure the shared key between the BIMS
device and the BIMS center.
8-4
Command Manual – System Management
Comware V3 Chapter 8 BIMS Configuration Commands
Use the undo bims sharekey command to delete the shared key.
Related command: bims ip address.
Example
# Set the shared key between the BIMS device and the BIMS center to
1234567812345678. It is to be displayed in clear text.
[H3C] bims sharekey simple 1234567812345678
Syntax
View
System view
Parameter
Description
Use the bims source ip-address command to specify a source IP address for the
packets sent by the BIMS device. It can be the IP address of a port on the H3C.
Use the undo bims source ip-address command to delete the source IP address
configured for the BIMS device.
By default, no source IP address is configured for the BIMS device.
Example
Syntax
View
System view
8-5
Command Manual – System Management
Comware V3 Chapter 8 BIMS Configuration Commands
Parameter
hh:mm yyyy/mm/dd: The first and second hh:mm yyyy/mm/dd arguments respectively
specify the start time and end time for accessing the BIMS center. If only the first
argument is specified, the BIMS device accesses the BIMS center at that time once.
numberdays: Period in days for accessing the BIMS center.
Description
Use the bims specify-time command to configure the BIMS device to access the
BIMS center at the specified time and if desired, configure the device to access the
BIMS center at regular intervals from then on during a specified period.
Use the undo bims specify-time command to delete the setting.
The precision of the timer is one minute. The device will access BIMS center in one
minute after the specified time comes.
Example
# Configure the H3C to access the BIMS center at 01:01 on December 12, 2004, and
from then on, to access the BIMS center at seven-day intervals until December 12,
2005 01:01. If the current time hasn’t reached the specified start time, after the above
configuration, the router will access the BIMS center at 01:01 on December 12, 2004
and at 01:01 on December 19, 2004 after a 7*24 hours interval for the next time.
[H3C] bims specify-time 01:01 2004/12/12 01:01 2005/12/12 period 7
Syntax
View
User view
Description
Example
8-6
Command Manual – System Management
Comware V3 Chapter 8 BIMS Configuration Commands
<H3C> system-view
[H3C] bims request
Now start visit the bims server .
*0.1252374 H3C BIMS/8/debug2:
The host name is:10.153.21.96, the Path is:/bims/service, Port:80
HTC_SendMessage req msg action!
[H3C]
[H3C]
*0.1253285 H3C BIMS/8/debug2:
HTC_SendMessage req msg action,ulRet = 0
*0.1253286 H3C BIMS/8/debug2:
Msgid = 2
*0.1253287 H3C BIMS/8/debug2:
The return code string is: 0
*0.1253287 H3C BIMS/8/debug2:
FileID is = 12
*0.1253288 H3C BIMS/8/debug2:
FileType is cfg
*0.1253289 H3C BIMS/8/debug2:
FileSize = 775
*0.1253289 H3C BIMS/8/debug2:
Digest = 90 1b b6 c9 2f e7 4e ec 8d 8f 5a d6 13 0d 55 3e
*0.1253290 H3C BIMS/8/debug2:
The length of the cfg file is 775
*0.1253291 H3C BIMS/8/debug2:
Come into BIMS_ExcuteDownCfg!
[H3C]
[H3C]
%FTP server has been started
[H3C]
[H3C]
%Unrecognized command found at '^' position.
[H3C]
bims is enable
Ready to save current build run info! ........
Current configuration has been saved to the device successfully.
*0.1271100 H3C BIMS/8/debug2:
Ok,success to deal with the download config file!
*0.1271101 H3C BIMS/8/debug2:
The host name is:10.153.21.96, the Path is:/bims/service, Port:80
<H3C>
*0.1271553 H3C BIMS/8/debug2:
Have send file confirm request message,ulRet = 0
8-7
Command Manual – System Management
Comware V3 Chapter 8 BIMS Configuration Commands
Table 8-1 Description on the fields of the debugging bims all command
Field Description
The host name is:10.153.21.111, the The URL where the BIMS center is
Path is:/bims/service, Port:80 accessed
HTC_SendMessage req msg The H3C sent a request to the BIMS center
action,ulRet = and the returned value
Msgid = 2 Type of the message from the BIMS center
The return code string is: 0 The return code from the BIMS center
FileID is = 1 File ID delivered by the BIMS center
FileType is cfg File type delivered by the BIMS center
8-8
Command Manual – System Management
Comware V3 Chapter 9 RMON Configuration Commands
Syntax
View
Any view
Parameter
Description
Use the display rmon alarm command to display the alarm table of remote monitoring
(RMON) or the specified alarm entry.
Related command: rmon alarm.
Example
Table 9-1 Description on the fields of the display rmon alarm command
Field Description
Alarm table 1 Alarm index 1
H3C Owner
The sample type of the 1.3.6.1.2.1.16.1.1.1.4.1 node
Samples absolute value
is absolute
VALID The alarm entry corresponding to the index is valid
9-1
Command Manual – System Management
Comware V3 Chapter 9 RMON Configuration Commands
Field Description
Sampling interval Sampling interval
Rising threshold is 1000 Rising threshold is 1000
Falling threshold is 100 Falling threshold is 100
When startup enables : Type of the first alarm, which can be rising alarm,
risingOrFallingAlarm falling alarm, or both
Syntax
View
Any view
Parameter
Description
Use the display rmon event command to display the event table of RMON or the
specified event entry.
The displayed information includes: event index, event owner, event description, action
triggered by the event (log or trap), and last time the event occurred (the elapsed time
since system initialization/startup in centiseconds.
Related command: rmon event.
Example
Table 9-2 Description on the fields of the display rmon event command
Field Description
Event table 1 Event index 1
The event entry corresponding to the
VALID
index is valid
9-2
Command Manual – System Management
Comware V3 Chapter 9 RMON Configuration Commands
Field Description
The event causes log-and-trap
cause log-trap when triggered
notification when triggered
last triggered at 0days 00h:02m:27s Last time the event was triggered
Syntax
View
Any view
Parameter
Description
Use the display rmon eventlog command to display the log table of RMON or the log
entry for the specified event.
The displayed information includes: index and current state of the event, time the log
entry was created (the elapsed time since system initialization/startup in centiseconds),
and event description.
Example
Table 9-3 Description on the fields of the display rmon eventlog command
Field Description
Event table 1 Event index 1
VALID The event entry corresponding to the index is valid
9-3
Command Manual – System Management
Comware V3 Chapter 9 RMON Configuration Commands
Field Description
Generates eventLog 1.2
Last time the event was triggered
at 0days 00h:02m:27s
Description Event description
Syntax
View
Any view
Parameter
Description
Use the display rmon history command to display the history control table of RMOM
and information about the latest sampling, such as utilization, number of errors and
total number of packets.
Related command: rmon history.
Example
9-4
Command Manual – System Management
Comware V3 Chapter 9 RMON Configuration Commands
Table 9-4 Description on the fields of the display rmon history command
Field Description
History control entry 1 Index of the history control entry
VALID State of history control entry 1 is valid
Samples interface Monitored interface
Sampling interval : 10(sec) Sampling every 10 seconds
buckets Number of buckets
Latest sampled values Latest sampling information
dropevents Number of drop events
Number of the received/transmitted bytes in this
octets
sample
Number of the received/transmitted packets
packet
during the sampling period
broadcastpacket Number of broadcast packets
Syntax
View
Any view
Parameter
9-5
Command Manual – System Management
Comware V3 Chapter 9 RMON Configuration Commands
Description
Use the display rmon prialarm command to display information about the prialarm
table of RMON or the specified prialarm entry.
Related command: rmon prialarm.
Example
Table 9-5 Description on the fields of the display rmon prialarm command
Field Description
Prialarm table 1 Index of the prialarm entry
owned by null Owner of the prialarm entry
VALID State of prialarm entry 1 is valid
9-6
Command Manual – System Management
Comware V3 Chapter 9 RMON Configuration Commands
Syntax
View
Any view
Parameter
Description
Use the display rmon statistics command to display the RMON statistics about the
specified or all interfaces.
The displayed information includes: number of collisions, CRC and queues, oversize
packets and undersize packets, timeout, fragments, broadcast, multicast, unicast, and
bandwidth use.
Related command: rmon statistics.
Example
Syntax
9-7
Command Manual – System Management
Comware V3 Chapter 9 RMON Configuration Commands
View
System view
Parameter
Description
Use the rmon alarm command to set an alarm entry. When an exception occurs, the
alarm is triggered. The alarm in turn triggers the corresponding event, which can be log,
trap, or log-and-trap.
Use the undo rmon alarm command to remove an alarm entry.
Example
Syntax
View
System view
9-8
Command Manual – System Management
Comware V3 Chapter 9 RMON Configuration Commands
Parameter
Description
Example
# Add event entry 10 to the event table and set its type to log.
[H3C] rmon event 10 log
Syntax
View
Parameter
9-9
Command Manual – System Management
Comware V3 Chapter 9 RMON Configuration Commands
Description
Example
Syntax
View
System view
Parameter
9-10
Command Manual – System Management
Comware V3 Chapter 9 RMON Configuration Commands
event-entry2: Index of the event associated with the falling threshold. It ranges from 0
to 65535.
forever | cycle cycle-period: Lifetime of the prialarm entry, which can be forever or
span the specified period.
owner text: Owner of the entry, a string of 1 to 128 characters.
Description
Use the rmon prialarm command to add an entry to the prialarm table.
Use the undo rmon prialarm command to remove an entry from the prialarm table.
The number of prialarm entries you can create is hardware-dependent.
Example
Syntax
View
Parameter
Description
Example
9-11
Command Manual – System Management
Comware V3 Chapter 10 Terminal Service Commands
Syntax
debugging telnet
undo debugging telnet
View
User view
Parameter
None
Description
Example
Syntax
View
Parameter
10-1
Command Manual – System Management
Comware V3 Chapter 10 Terminal Service Commands
Description
Use the direct listen-port command to set the listening port for VTY.
Use the undo direct listen-port command to restore the default port number.
By default, the listening port is 23.
Example
Syntax
View
Any view
Parameter
None
Description
Use the display tcp status command to view information about the current TCP
connections on the H3C.
Compared with display users, the display tcp status command can display more
information about Telnet clients and servers.
The information that this command provides includes local address of TCP connection,
local port number, external address, external port number, and connection state.
Related command: telnet.
Example
The output indicates that one TCP connection is set up, where the local IP address is
129.102.100.142, local port is 23, and remote IP address is 129.102.001.92. In addition,
a local server process is listening to port 23.
10-2
Command Manual – System Management
Comware V3 Chapter 10 Terminal Service Commands
Syntax
View
Any view
Parameter
None
Description
Use the display telnet-server source-ip command to display the source IP address
configured for the Telnet server.
If a source interface has been specified for the Telnet server, the IP address of the
interface is displayed. If neither source interface nor source IP address has been
specified for the Telnet server, 0.0.0.0 is displayed.
Example
Syntax
View
Parameter
Description
Use the redirect bind vpn-instance command to bind a VPN instance to the user
interface.
Use the undo redirect bind vpn-instance command to remove the binding.
By default, no VPN instance is bound with the user interface.
10-3
Command Manual – System Management
Comware V3 Chapter 10 Terminal Service Commands
Example
Syntax
redirect enable
undo redirect enable
View
Parameter
None
Description
Use the redirect enable command to enable redirect on the asynchronous serial
interface.
Use the undo redirect enable command to disable redirect on the corresponding
asynchronous serial interface.
By default, the asynchronous serial interface does not support redirect.
This command is only useful for AUX and TTY interfaces.
Related command: telnet, display tcp status.
Example
Syntax
View
Parameter
10-4
Command Manual – System Management
Comware V3 Chapter 10 Terminal Service Commands
Description
Use the redirect listen-port command to specify a port to listen for redirected Telnet
connections.
Use the undo redirect listen-port command to restore the default listening port.
The default number of the port that listens for redirected Telnet connections is TTY
number plus 2000.
Example
# Set the number of the port that listens for the redirected Telnet connections to 5000.
[H3C-ui-tty7] redirect listen-port
Syntax
View
Parameter
minutes: Idle timeout in the range 30 to 86400 seconds. It defaults to 360 seconds.
Description
Use the redirect timeout command to specify the amount of time that a redirected
Telnet connection can stay idle. After that, the connection is disconnected.
Use the undo redirect timeout command to allow the system to maintain an
always-on redirected telnet connection.
Example
# Set the idle timeout for the redirected telnet connection to 200 seconds.
[H3C-ui-tty7] redirect timeout 200
Syntax
10-5
Command Manual – System Management
Comware V3 Chapter 10 Terminal Service Commands
View
Parameter
None
Description
Use the redirect return-deal from-telnet command to have the H3C that redirects
Telnet connection substitute 0x0d for 0x0d 0x0a and 0x0d 0x00, the carriage returns
received from the Telnet client.
Use the undo redirect return-deal from-telnet command to disable the H3C that
redirects Telnet connection to process carriage returns.
By default, carriage returns are not processed.
Example
# Enable the H3C that redirects Telnet connection to process the carriage returns
received from the Telnet client.
[H3C-ui-tty7] redirect return-deal from-telnet
Syntax
View
Parameter
None
Description
Use the redirect return-deal from-terminal command to have the H3C that redirects
Telnet connection substitute 0x0d for 0x0d 0x0a and 0x0d 0x00, the carriage returns
received from the terminal (a PC connected to the console port for example).
Use the undo redirect return-deal from-terminal command to disable the H3C that
redirects Telnet connection to process the carriage returns.
By default, carriage returns are not processed.
10-6
Command Manual – System Management
Comware V3 Chapter 10 Terminal Service Commands
Example
# Enable the H3C that redirects Telnet connection to process the carriage returns
received from the terminal.
[H3C-ui-tty7] redirect return-deal from-terminal
Syntax
redirect refuse-negotiation
undo redirect refuse-negotiation
View
Parameter
None
Description
Example
Syntax
redirect disconnect
View
Parameter
None
10-7
Command Manual – System Management
Comware V3 Chapter 10 Terminal Service Commands
Description
Example
10.1.13 telnet
Syntax
View
User view
Parameter
Description
Use the telnet command to telnet from this H3C to another device.
By default, if the service-port is not specified, the Telnet port number is 23.
By executing the telnet command, you can telnet from this H3C to another device to
manage it.
Related command: display tcp status.
Example
10-8
Command Manual – System Management
Comware V3 Chapter 10 Terminal Service Commands
Syntax
View
System view
Parameter
Description
Note:
You may specify a source IP address for the packets sent by the Telnet server with the
telnet-server source-interface command or with the telnet-server source-ip
command. If both commands are configured, the one configured later overrides.
Example
Syntax
10-9
Command Manual – System Management
Comware V3 Chapter 10 Terminal Service Commands
View
System view
Parameter
Description
Use the telnet-server source-ip command to specify a source IP address for the
packets sent by the Telnet server. This IP address must be a local IP address.
Use the undo telnet-server source-ip command to delete the source IP address
specified for the Telnet server. After that, the source IP address of each packet sent by
the Telnet server is the IP address of the interface where the packet is sent out.
By default, the source IP address in each packet sent by the Telnet server is the IP
address of the interface where the packet is sent out.
Note:
You may specify a source IP address for the packets sent by the Telnet server with the
telnet-server source-interface command or with the telnet-server source-ip
command. If both commands are configured, the one configured later overrides.
Example
# Use 192.168.0.1 as the source IP address in the packets sent by the Telnet server.
[H3C] telnet-server source-ip 192.168.0.1
Syntax
View
Parameter
10-10
Command Manual – System Management
Comware V3 Chapter 10 Terminal Service Commands
Description
Use the telnet source-interface command to telnet from the main IP address of the
specified interface to the destination IP address.
Example
# Telnet from the source interface ethernet 1/0/1 to the destination address 2.2.2.2.
<H3C> telnet 2.2.2.2 source-interface ethernet 1/0/1
Syntax
View
Parameter
Description
Use the telnet source-ip command to telnet from the specified source IP address to
the specified destination IP address.
Example
Syntax
View
User view
10-11
Command Manual – System Management
Comware V3 Chapter 10 Terminal Service Commands
Parameter
index: Index of the SSH channel to be debugged. Its value range is restricted by VTY
numbers and defaults to 0 to 4.
all: All SSH channels.
Description
Use the debugging ssh server command to output information such as the
negotiation process regulated by SSH1.5 protocol to information center as debugging
formation and to debug a user interface separately.
Use the undo debugging ssh server command to disable debugging.
By default, debugging is disabled.
Related command: ssh server authentication-retries, ssh server rekey-interval,
ssh server timeout.
Example
Syntax
View
Any view
Parameter
None
10-12
Command Manual – System Management
Comware V3 Chapter 10 Terminal Service Commands
Description
Use the display rsa local-key-pair public command to view the public key of the host
key pair and server key pair on the server. If no key is generated, the system displays:
RSA keys not found.
Related command: rsa local-key-pair create.
Example
# Display the public key of the host key pair and server key pair on the server.
<H3C> display rsa local-key-pair public
=====================================================
Time of Key pair created: 13:41:21 2004/11/12
Key name: H3C_Host
Key type: RSA encryption Key
=====================================================
Key code:
3047
0240
C30B0C1E 1AC2A028 984B7801 9583105D 78E69F6C
62561976 95E3B92B 7D9EC59C 150AE9CC 92E7CEF7
F025D3E0 C15408F5 4C9F4945 308A2DCF 1BA59D60
53DB5825
0203
010001
=====================================================
Time of Key pair created: 13:41:25 2004/11/12
Key name: SecPath1000_Server
Key type: RSA encryption Key
=====================================================
Key code:
3067
0260
E0DC0229 0525E04D AE3B8998 C56A18A1 997A609B
043B9302 F843715B FC727A3D 4A503B32 333DFD46
D95F4BD7 5AF63BBF 99100F9E EEAE4B3E DC6FBE42
1757F88D 1F7A098F 2C3FFFDF 8E2DA17D 991111ED
C318E857 6D40D224 4114AD15 A42068B9
0203
010001
10-13
Command Manual – System Management
Comware V3 Chapter 10 Terminal Service Commands
Syntax
View
Any view
Parameter
brief: Displays the brief information about all peer public keys.
keyname: Specifies the key to be displayed. A consecutive character string in the range
0 (exclusive) to 64 (inclusive).
Description
Use the display rsa peer-public-key command to view the specified RSA public key. If
no public key specified, all public keys are displayed.
Related command: rsa local-key-pair create.
Example
Syntax
10-14
Command Manual – System Management
Comware V3 Chapter 10 Terminal Service Commands
View
Any view
Parameter
Description
Use the display ssh server command to view information on SSH status or sessions.
Related command: ssh server authentication-retries, ssh server rekey-interval,
ssh server timeout.
Example
Syntax
View
Any view
Parameter
None
Description
Use the display ssh-server source-ip command to display the source IP address
configured for the SSH server.
10-15
Command Manual – System Management
Comware V3 Chapter 10 Terminal Service Commands
If a source interface has been specified for the SSH server, the IP address of the
interface is displayed. If neither source interface nor source IP address has been
specified for the SSH server, 0.0.0.0 is displayed.
Example
Syntax
View
Any view
Parameter
Description
Use the display ssh user-information command to view information about current
SSH users, including user name, corresponding key name and user authentication
mode. If you specify the username parameter, then only the information about the
specified user is displayed.
Related command: ssh user username assign rsa-key, ssh user username
authentication-type.
Example
10-16
Command Manual – System Management
Comware V3 Chapter 10 Terminal Service Commands
Syntax
peer-public-key end
View
Parameter
None
Description
Use the peer-public-key end command to return to system view from public key view.
Related command: rsa peer-public-key, public-key-code begin.
Example
Syntax
public-key-code begin
View
Parameter
None
Description
Use the public-key-code begin command to enter public key code view.
Before using this command, you must use the rsa peer-public-key command to
specify a key name. With the public-key-code begin command, you can enter public
key code view to input key data. Spaces and carriage returns are accepted between
characters. The configured public key must be a hex character string coded according
to public key format. It is generated randomly by the SSH2.0-supported client software.
Related command: rsa peer-public-key, public-key-code end.
10-17
Command Manual – System Management
Comware V3 Chapter 10 Terminal Service Commands
Example
Syntax
public-key-code end
View
Parameter
None
Description
Use the public-key-code end command to return from public key code view to public
key view and to save the configured public key.
Executing this command ends the public key edit process. The system verifies the key
before saving it. If the key contains illegal characters, the system prompts the error and
discards the key. The configuration fails. If the key is valid, it is saved to the linked list of
client public keys.
Related command: rsa peer-public-key, public-key-code begin.
Example
Syntax
10-18
Command Manual – System Management
Comware V3 Chapter 10 Terminal Service Commands
View
System view
Parameter
None
Description
Use the rsa local-key-pair create command to generate the local RSA host key pair
and server key pair.
Executing this command generates two files, hostkey and serverkey, each containing a
pair of local public key and private key. While the key pair in the serverkey file is
updated automatically at regular intervals, the key pair in the hostkey file will not
change after their creation.
If the key pairs exist when you enter this command, the system warns that the existing
keys are to be replaced. The names of the generated key pairs are respectively H3C
name+ server and H3C name + host, for example, H3C_host and H3C_server. This
command is not stored in the configuration file.
After you enter this command, the system asks you to input the number of digits for the
host key pair. The server key pair and the host key pair have at least 128 digits of
difference. The minimum length of server key pair and host key pair is 512 digits and
the maximum length is 2048 digits. If there have been key pairs, you need to confirm
whether to change them. The default key pair length is 1024 digits.
To log onto the H3C through SSH, you must first generate local RSA key pairs using the
rsa local-key-pair create command. You only need to execute this command once
and do not need to execute it again at reboot.
If the H3C works as a SSH2.0 server, the key pair you use the rsa local-key-pair
create command to generate must be at least 768 bits; otherwise, the SSH2.0 client
cannot log on successfully. At this time if the RSA authentication of SSH2.0 client is
needed, the key pair generated by SSH2.0 client must be at least 768 bits as well.
Related command: rsa local-key-pair destroy.
Example
# Generate the local host key pair and server key pair.
[H3C] rsa local-key-pair create
The name for the keys will be: H3C _Host
%You already have RSA keys defined for rtvrp_Host
%Do you really want to replace them? [yes/no]:y
Choose the size of the key modulus in the range of 512 to 2048 for your Keys.
Choosing a key modulus greater than 512 may take a few minutes.
How many bits in the modulus [512]:512
10-19
Command Manual – System Management
Comware V3 Chapter 10 Terminal Service Commands
Generating keys...
.....++++++++++++
........................++++++++++++
..........++++++++
............................++++++++
Syntax
View
System view
Parameter
None
Description
Use the rsa local-key-pair destroy command to remove all RSA keys on the server
(including the host key pair and the server key pair).
The execution of this command needs your confirmation. This command is not stored
in the configuration file.
Related command: rsa local-key-pair create.
Example
Syntax
View
System view
Parameter
10-20
Command Manual – System Management
Comware V3 Chapter 10 Terminal Service Commands
filename: Name of the key file to be imported from Flash. The file must have existed on
Flash.
Description
Use the rsa peer-public-key command to enter public key view. After that, you may
use the public-key-code begin command and the public-key-code end command to
configure the public key of the client.
Before performing those operations, you must obtain the RSA public key file generated
at the SSH client and use SSHKEY.EXE software to convert the generated public key to
a hexadecimal character string.
The following is an alternative way of configuring the public key of the client.
Use the rsa peer-public-key keyname import sshkey filename command to convert
the format of an RSA public key file generated at the SSH client to PKCS format and to
complete the configuration of the key automatically.
Unlike the rsa peer-public-key command, the rsa peer-public-key keyname import
sshkey filename command does not involve manual configuration. However, it
requires that the device functioning as the SSH client have upload its RSA public key to
the Flash at the SSH server end through FTP or TFTP.
The SSH client discussed here refers to both SSH 1.0 client and SSH 2.0 client.
Related command: public-key-code begin, public-key-code end.
Example
Syntax
View
System view
Parameter
password: Sets the default authentication mode for SSH users to AAA.
10-21
Command Manual – System Management
Comware V3 Chapter 10 Terminal Service Commands
RSA: Sets the default authentication mode for SSH users to RSA.
all: Sets the default authentication mode for SSH users to RSA or AAA.
password-publickey: Sets the default authentication mode for SSH users to the
combination of RSA and AAA.
Description
Example
Syntax
View
System view
Parameter
Description
Use the ssh server authentication-retries command to set the number of SSH
connection authentication retries, which is validated at next login.
Use the undo ssh server authentication-retries command to restore the default.
10-22
Command Manual – System Management
Comware V3 Chapter 10 Terminal Service Commands
Example
Syntax
View
System view
Parameter
None
Description
Use the ssh server compatible_ssh1x enable command to enable the SSH server to
work with SSH1.X clients.
Use the undo ssh server compatible_ssh1x command to disable the SSH server to
work with SSH1.X clients.
By default, the SSH server can work with SSH1.X clients.
Example
Syntax
View
System view
Parameter
10-23
Command Manual – System Management
Comware V3 Chapter 10 Terminal Service Commands
Description
Use the ssh server rekey-interval command to set the interval for updating the server
key.
Use the undo ssh server rekey-interval command to cancel the current setting.
By default, the server key is not updated.
Related command: display ssh sever.
Example
# Set the interval for updating the server key to three hours.
[H3C] ssh server rekey-interval 3
Syntax
View
System view
Parameter
Description
10-24
Command Manual – System Management
Comware V3 Chapter 10 Terminal Service Commands
Note:
You may specify a source IP address for the packets sent by the SSH server with the
ssh-server source-interface command or with the ssh-server source-ip command.
If both commands are configured, the one configured later overrides.
Example
# Set the source interface for the SSH server to Ethernet 0/0/0.
[H3C] ssh-server source-interface Ethernet 0/0/0
Syntax
View
System view
Parameter
Description
Use the ssh-server source-ip command to specify a source IP address for the packets
sent by the SSH server. This IP address must be a local IP address.
Use the undo ssh-server source-ip command to delete the source IP address
specified for the SSH server. After that, the source IP address of a packet sent by the
FTP server is the IP address of the interface where the packet is sent out.
By default, the source IP address in each packet sent by the SSH server is the IP
address of the interface where the packet is sent out.
Note:
You may specify a source IP address for the packets sent by the FTP server with the
ssh-server source-interface command or with the ssh-server source-ip command.
If both commands are configured, the one configured later overrides.
10-25
Command Manual – System Management
Comware V3 Chapter 10 Terminal Service Commands
Example
# Use 192.168.0.1 as the source IP address in the packets sent by the SSH server.
[H3C] ssh-server source-ip 192.168.0.1
Syntax
View
System view
Parameter
Description
Use the ssh server timeout command to set a timeout for SSH connection
authentication at login. It becomes valid at next login.
Use the undo ssh server timeout command to restore the default, or 60 seconds.
Related command: display ssh sever.
Example
Syntax
View
System view
Parameter
username: SSH user name; it must be consistent with the user name defined in AAA if
password authentication is adopted. If RSA authentication is adopted, the value of this
argument is a local SSH user name and needs not to be defined in AAA.
10-26
Command Manual – System Management
Comware V3 Chapter 10 Terminal Service Commands
Description
Example
Syntax
View
System view
Parameter
username: username: SSH user name; it must be consistent with the user name
defined in AAA if password authentication is adopted. If RSA authentication is adopted,
the value of this argument is a local SSH user name and needs not to be defined in
AAA.
keyname: Public key name of the client, a string of 1 to 64 characters.
Description
Use the ssh user assign command to assign one existing public key to a user. If a key
exists, the new assignment overrides.
Use the undo ssh user assign command to delete the association.
10-27
Command Manual – System Management
Comware V3 Chapter 10 Terminal Service Commands
The AAA module is responsible for creating and deleting local users in the system.
Each time AAA creates an SSH user, SSH receives a notification and adds the user into
the user set that it maintains. Likewise, each time AAA deletes an SSH user, SSH
receives a notification and deletes the user if there is any.
The newly configured public key becomes valid at next login.
Related command: display ssh user-information.
Example
Syntax
View
System view
Parameter
username: SSH user name; it must be consistent with the user name defined in AAA if
password authentication is adopted. If RSA authentication is adopted, the value of this
argument is a local SSH user name and needs not to be defined in AAA.
password: Sets the authentication mode of the user to password.
rsa: Sets the authentication mode of the user to RSA.
all: The authentication mode of the user can be either password or RSA.
password-publickey: Sets the authentication mode for the SSH user to the
combination of AAA and RSA.
Description
Use the ssh user authentication-type command to create an SSH user and specify
an authentication mode for it.
Use the undo ssh user authentication-type command to restore the default, where
login is always denied.
You must specify an authentication mode for each new user, or they will be unable to
log in. The new authentication mode takes effect at next login.
10-28
Command Manual – System Management
Comware V3 Chapter 10 Terminal Service Commands
Example
Syntax
View
System View
Parameter
username: SSH user name; it must be consistent with the user name defined in AAA if
password authentication is adopted. If RSA authentication is adopted, the value of this
argument is a local SSH user name and needs not to be defined in AAA.
stelnet: Sets the service type to stelnet.
sftp: Sets the service type to secure FTP (SFTP).
all: Includes stelnet and SFTP services.
Description
Use the ssh user service-type command to specify service type for a user.
Use the undo ssh user service-type command to restore the default service type for
the SSH user in the system.
The default service type for the SSH user is stelnet.
Related command: display ssh user-information.
Example
10-29
Command Manual – System Management
Comware V3 Chapter 10 Terminal Service Commands
Note:
The public-key-code begin command and the public-key-code end command are
described in the section for the SSH server, but they are supported by the SSH client as
well.
Syntax
View
User view
Parameter
None
Description
Use the debugging ssh client command to enable SSH client debugging.
Use the undo debugging ssh client command to disable SSH client debugging.
By default, the SSH client debugging is disabled.
Related command: debugging ssh server.
Example
Syntax
View
Any view
10-30
Command Manual – System Management
Comware V3 Chapter 10 Terminal Service Commands
Parameter
None
Description
Use the display ssh server-info command to view the associations of public key to
SSH server maintained at the client end.
Example
# Display the public key to SSH server associations at the client end.
[H3C] display ssh server-info
ServerIP public-key-name
192.168.0.1 h3c_key01
192.168.0.2 h3c_key02
Syntax
View
Any view
Parameter
None
Description
Use the display ssh2 source-ip command to display the source IP address configured
for the SSH client.
If a source interface has been specified for the SSH client, the IP address of the
interface is displayed. If neither source interface nor source IP address has been
specified for the SSH client, 0.0.0.0 is displayed.
Example
10.3.4 quit
Syntax
quit
10-31
Command Manual – System Management
Comware V3 Chapter 10 Terminal Service Commands
View
User view
Parameter
None
Description
Use the quit command to terminate the connection to the remote SSH server.
Example
Syntax
View
System view
Parameter
Description
Use the ssh client assign rsa-key command to associate an SSH server with the
name assigned to its public key. When connecting to this server, the client verifies its
trustworthiness based on this association.
Use the undo ssh client assign rsa-key command to remove the association.
Example
# At the client end associate an SSH server with its public key.
[H3C] ssh client 192.168.0.1 assign rsa-key abc
Syntax
10-32
Command Manual – System Management
Comware V3 Chapter 10 Terminal Service Commands
View
System view
Parameter
None
Description
Use the ssh client first-time enable command to enable the SSH client to perform
first-time authentication on SSH servers.
Use the undo ssh client first-time command to disable the SSH client to perform
first-time authentication on SSH servers.
The configuration of first-time authentication decides the action taken by the SSH client
when it accesses a server in the absence of the server’s public key:
z With first-time authentication enabled, the SSH client can attempt to access the
server and get the server’s public key through negotiation. Then this public key
could be saved on the client for next access.
z With first-time authentication disabled, the SSH client rejects to access a server.
To access the server, you must save its public key on the SSH client beforehand.
By default, first-time authentication is disabled on the SSH client.
Example
10.3.7 ssh2
Syntax
View
System view
Parameter
10-33
Command Manual – System Management
Comware V3 Chapter 10 Terminal Service Commands
port-num: Port number of the server, in the range 0 to 65,535. The default port number
is 22.
prefer_kex: Preferred key exchange algorithm, Diffie-Hellman-Group1-SHA1 or
Diffie-Hellman-Group-Exchange-SHA1.
dh_group1: Key exchange algorithm Diffie-Hellman-Group1-SHA1, the default
algorithm.
dh_exchange_group: Key exchange algorithm
Diffie-Hellman-Group-Exchange-SHA1.
prefer_ctos_cipher: Preferred encryption algorithm from the client to the server. The
default algorithm is AES 128.
prefer_stoc_cipher: Preferred encryption algorithm from the server to the client. The
default algorithm is AES 128.
des: Encryption algorithm DES_CBC.
3des: Encryption algorithm 3DES_CBC.
aes128: Encryption algorithm AES_128.
prefer_ctos_hmac: Preferred HMAC algorithm from the client to the server. The
default algorithm is SHA1_96.
prefer_stoc_hmac: Preferred HMAC algorithm from the server to the client. The
default algorithm is SHA1_96.
sha1: HMAC algorithm HMAC-SHA1.
sha1_96: HMAC algorithm HMAC-SHA1-96.
md5: HMAC algorithm HMAC-MD5.
md5_96: HMAC algorithm HMAC-MD5-96.
Description
Use the ssh2 command to initiate a connection to the specified SSH server, and
specify the preferred key exchange algorithm, encryption algorithm and HMAC
algorithm between the client and the server.
Example
# Log into the remote SSH2 server with IP address 10.214.50.51, and configure
algorithms as follows:
z Preferred key exchange algorithm: DH_exchange_group
z Preferred encryption algorithm from the client to the server: 3DES-CBC
z Preferred HMAC algorithm from the client to the server: HMAC-MD5
z Preferred encryption algorithm from the server to the client: AES-128
z Preferred HMAC algorithm from the server to the client: HMAC-SHA1-96
[H3C] ssh2 10.214.50.51 prefer_kex dh_exchange_group prefer_ctos_cipher 3des
prefer_ctos_hmac md5
10-34
Command Manual – System Management
Comware V3 Chapter 10 Terminal Service Commands
Syntax
View
System view
Parameter
Description
Use the ssh2 source-interface command to specify a source interface, which must be
an existing local interface, for the SSH client. After that, the IP address of the specified
interface is used as the source IP address in each packet sent by the SSH client.
Use the undo ssh2 source-interface command to delete the source interface
specified for the SSH client. After that, the source IP address in each packet sent by the
SSH client is that of the outgoing interface where the packet is sent out.
By default, the source IP address in each packet sent by the SSH client is the IP
address of the interface where the packet is sent out.
Note:
You may specify a source IP address for the packets sent by the SSH client with the
ssh2 source-interface command or with the ssh2 source-ip command. If both
commands are configured, the one configured later overrides.
Example
Syntax
10-35
Command Manual – System Management
Comware V3 Chapter 10 Terminal Service Commands
View
System view
Parameter
Description
Use the ssh2 source-ip command to specify a source IP address for the packets sent
by the SSH client. This IP address must be a local IP address.
Use the undo ssh2 source-ip command to delete the source IP address specified for
the SSH client. After that, the source IP address of each packet sent by the SSH client
is the IP address of the interface where the packet is sent out.
By default, the source IP address in each packet sent by the SSH client is the IP
address of the interface where the packet is sent out.
Note:
You may specify a source IP address for the packets sent by the Telnet server with the
telnet-server source-interface command or with the telnet-server source-ip
command. If both commands are configured, the one configured later overrides.
Example
# Use 192.168.0.1 as the source IP address in the packets sent by the SSH client.
[H3C] ftp source-ip 192.168.0.1
Syntax
View
System view
Parameter
None
10-36
Command Manual – System Management
Comware V3 Chapter 10 Terminal Service Commands
Description
Use the sftp server enable command to enable the secure FTP (SFTP) server.
Use the undo sftp server command to disable the SFTP server.
By default, the SFTP server is disabled.
Example
Syntax
bye
View
Parameter
None
Description
Use the bye command to terminate the connection to the remote SFTP server and exit
to system view as you would with the exit and quit commands.
Example
10.5.2 cd
Syntax
cd [remote-path ]
View
10-37
Command Manual – System Management
Comware V3 Chapter 10 Terminal Service Commands
Parameter
Description
Use the cd command to change the current path on the SFTP server. If you do not
specify the remote-path argument, the current path is displayed.
Example
10.5.3 cdup
Syntax
cdup
View
Parameter
None
Description
Example
10.5.4 delete
Syntax
delete remote-file
View
Parameter
10-38
Command Manual – System Management
Comware V3 Chapter 10 Terminal Service Commands
Description
Use the delete command to delete the specified file from the server as you would with
the remove command.
Example
10.5.5 dir
Syntax
dir [remote-path ]
View
Parameter
Description
Use the dir command to view the files in the specified directory as you would with the ls
command.
If the remote-path argument is not specified, the files in the current directory are
displayed.
Example
Syntax
10-39
Command Manual – System Management
Comware V3 Chapter 10 Terminal Service Commands
View
Any view
Parameter
None
Description
Use the display sftp source-ip command to display the source IP address configured
for the SFTP client.
If a source interface has been specified for the SFTP client, the IP address of the
interface is displayed. If neither source interface nor source IP address has been
specified for the SFTP client, 0.0.0.0 is displayed.
Example
10.5.7 exit
Syntax
exit
View
Parameter
None
Description
Use the exit command to terminate the connection to the remote SFTP server and exit
to system view as you would with the bye and quit commands.
Example
10-40
Command Manual – System Management
Comware V3 Chapter 10 Terminal Service Commands
10.5.8 get
Syntax
View
Parameter
Description
Use the get command to download and save a file from a remote server.
If no local file name is specified, the name of the source file is used by default.
Example
10.5.9 help
Syntax
help [ command ]
View
Parameter
Description
Use the help command to get the help information for the specified or all SFTP client
commands.
Example
10-41
Command Manual – System Management
Comware V3 Chapter 10 Terminal Service Commands
10.5.10 ls
Syntax
ls [ remote-path ]
View
Parameter
Description
Use the ls command to view the files in the specified directory as you would with the dir
command.
If the remote-path argument is not specified, the files in the current directory are
displayed.
Example
10.5.11 mkdir
Syntax
mkdir remote-path
View
Parameter
Description
Use the mkdir command to create a directory on the remote SFTP server.
10-42
Command Manual – System Management
Comware V3 Chapter 10 Terminal Service Commands
Example
10.5.12 put
Syntax
View
Parameter
Description
Use the put command to upload a local file to the remote SFTP server.
If no name is specified for the file to be saved on the remote SFTP server, the name of
the source file is used.
Example
# Upload local file temp.c to the remote SFTP server and save it with the name
temp1.c.
sftp-client> put temp.c temp1.c
10.5.13 pwd
Syntax
pwd
View
Parameter
None
Description
Use the pwd command to display the current directory on the SFTP server.
10-43
Command Manual – System Management
Comware V3 Chapter 10 Terminal Service Commands
Example
10.5.14 quit
Syntax
quit
View
Parameter
None
Description
Use the quit command to terminate the connection to the remote SFTP server and exit
to system view as you would with the bye and exit commands.
Example
10.5.15 remove
Syntax
remove remote-file
View
Parameter
Description
Use the remove command to delete the specified file from the server as you would with
the delete command.
10-44
Command Manual – System Management
Comware V3 Chapter 10 Terminal Service Commands
Example
10.5.16 rename
Syntax
View
Parameter
Description
Use the rename command to change the name of the specified file on the SFTP server.
Example
10.5.17 rmdir
Syntax
rmdir remote-path
View
Parameter
Description
Use the rmdir command to delete the specified directory from the remote SFTP server.
Example
10-45
Command Manual – System Management
Comware V3 Chapter 10 Terminal Service Commands
10.5.18 sftp
Syntax
View
System view
Parameter
10-46
Command Manual – System Management
Comware V3 Chapter 10 Terminal Service Commands
Description
Use the sftp command to establish a connection to the remote SFTP server and enter
SFTP client view.
Example
# Connect to the SFTP server with IP address 10.1.1.2 and using the default
algorithms.
[H3C] sftp 10.1.1.2
Syntax
View
System view
Parameter
Description
Use the sftp source-interface command to specify a source interface, which must be
an existing local interface, for the SFTP client. After that, the IP address of the specified
interface is used as the source IP address in each packet sent by the SFTP client.
Use the undo sftp source-interface command to delete the source interface specified
for the SFTP client. After that, the source IP address in each packet sent by the SFTP
client is that of the outgoing interface where the packet is sent out.
By default, the source IP address in each packet sent by the SFTP client is the IP
address of the interface where the packet is sent out.
Note:
You may specify a source IP address for the packets sent by the Telnet server with the
sftp source-interface command or with the sftp source-ip command. If both
commands are configured, the one configured later overrides.
Example
10-47
Command Manual – System Management
Comware V3 Chapter 10 Terminal Service Commands
Syntax
View
System view
Parameter
Description
Use the sftp source-ip command to specify a source IP address for the packets sent
by the SFTP client. This IP address must be a local IP address.
Use the undo sftp source-ip command to delete the source IP address specified for
the SFTP client. After that, the source IP address of each packet sent by the SFTP
client is the IP address of the interface where the packet is sent out.
By default, the source IP address in each packet sent by the SFTP client is the IP
address of the interface where the packet is sent out.
Note:
You may specify a source IP address for the packets sent by the Telnet server with the
sftp source-interface command or with the sftp source-ip command. If both
commands are configured, the one configured later overrides.
Example
# Use 192.168.0.1 as the source IP address in the packets sent by the SFTP client.
[H3C] sftp source-ip 192.168.0.1
Syntax
10-48
Command Manual – System Management
Comware V3 Chapter 10 Terminal Service Commands
View
User View
Parameter
Description
Example
# Execute the dir command remotely on the remote server at 169.254.1.100 (the
operating system is Windows 2000).
<H3C> rsh 169.254.1.100 com dir
Trying 169.254.1.100 ...
Press CTRL+K to abort
Volume in drive C is SYSTEM
Volume Serial Number is 2A0F-18DF
Directory of C:\WRSHDNT
10-49
Command Manual – System Management
Comware V3 Chapter 10 Terminal Service Commands
# Execute the interactive command time on the RSH server at 169.254.1.100 (the
operating system is Windows 2000).
<H3C> rsh 169.254.1.100 command time
Trying 169.254.1.100 ...
Press CTRL+K to abort
The current time is: 6:56:42.57
Enter the new time: 12:00
12:00
Syntax
debugging rsh
undo debugging rsh
View
User View
Parameter
None
Description
Example
10-50
Command Manual – System Management
Comware V3 Chapter 10 Terminal Service Commands
Syntax
debugging rlogin
undo debugging rlogin
View
User view
Parameter
None
Description
Use the debugging rlogin command to enable remote login (rlogin) debugging.
Use the undo debugging rlogin command to disable rlogin debugging.
By default, rlogin debugging is disabled.
Example
10.7.2 rlogin
Syntax
10-51
Command Manual – System Management
Comware V3 Chapter 10 Terminal Service Commands
View
User view
Parameter
remote-host: IP address or name of the UNIX host onto which you want to log.
username: User name for the remote login, which must have been registered with the
Unix host.
Description
Use the rlogin command to rlogin onto the specified remote host with the specified
user name.
The rlogin client function of the H3C enables its logging terminal users to log onto a
remote UNIX host using rlogin.
After a terminal user logs onto the remote UNIX host and passes authentication, all
characters input by the user except for local terminal escape sequences are sent to the
remote server. The commands in escape sequences are locally executed.
The local terminal can terminate the rlogin session in one of the following three ways:
z Press CTRL+K.
z Enter the local terminal escape character, or a tilde (~) at the beginning of a line,
and then enter a dot (.).
z Enter an abort command requesting the server to terminate the session process.
This command differs with servers, while exit and quit are commonly used.
Example
Enter your password at the prompt. After the authentication is passed, the server
prompt appears.
Last login: Thu Oct 28 17:30:23 from 192.168.0.5
bash: Path: command not found
[root@localhost zhb] #
10-52
Command Manual – System Management Chapter 11 POS Terminal Access Configuration
Comware V3 Commands
Syntax
View
Parameter
pos-number: Number for the POSPAD access port, in the range 0 to 255.
Description
Use the async mode pos command to configure a POSPAD access port.
Use the undo async mode padpos command to remove the POSPAD access port
setting.
After a POSPAD access port is configured, the access H3C simulates the POSPAD
device to receive packets from the connected POS terminal and sends them to the
POSPAD concentrator by performing PAD tasks.
Related command: undo detect dsr-dtr, async mode protocol.
Example
Syntax
11-1
Command Manual – System Management Chapter 11 POS Terminal Access Configuration
Comware V3 Commands
View
Asynchronous serial interface view, AM interface view, FCM interface view, AUX
interface view
Parameter
pos-number: Number for the POS access interface, in the range 0 to 255.
ip-address: IP address of the front end processor (FEP).
port-number: Port number of the FEP.
permanent: Specifies the permanent TCP connection mode.
temporary: Specifies the temporary TCP connection mode.
Description
Use the async mode pos pos-number command to create a POS access port in
nontransparent transmission and permanent TCP connection mode.
Use the async mode pos pos-number app ip-address port-number command to
create a POS access port in transparent transmission mode. In this mode, the H3C
cannot identify the POS application to which a packet belongs by resolving the packet
as it would in nontransparent mode. Therefore, when you configure a POS access port,
you must specify its corresponding POS application.
For the async mode pos pos-number app ip-address port-number [ permanent |
temporary ] command, permanent TCP connection is adopted by default. The function
of the async mode pos pos-number app ip-address port-number permanent
command is the same as that of the async mode pos pos-number app ip-address
port-number command.
To accommodate to the FEP program requiring temporary TCP connection, you may
configure the async mode pos pos-number app ip-address port-number temporary
command.
As asynchronous and FCM interfaces operate in protocol mode by default, no POS
access port is configured by default.
An interface can receive POS packets only after it is configured as a POS access port
with POS access server enabled.
Note:
The async mode pos command has no undo form. To cancel the command, use the
async mode protocol command.
11-2
Command Manual – System Management Chapter 11 POS Terminal Access Configuration
Comware V3 Commands
Example
Syntax
View
Parameter
app-number: Number for a POS application, in the range 0 to 31. A H3C can be
configured with up to 32 POS applications.
Description
Use the async mode posapp command to configure the interface to operate in POS
application mode.
Use the undo async mode posapp command to disable the interface to operate in
POS application mode.
By default, the interface operates in protocol mode.
For an asynchronous interface to receive POS packets, you must configure it to
operate in POS application mode.
Example
Syntax
View
User view
11-3
Command Manual – System Management Chapter 11 POS Terminal Access Configuration
Comware V3 Commands
Parameter
None
Description
Use the debugging pos event command to enable event debugging for the POS
access service.
Use the debugging pos error command to enable error debugging for the POS
access service.
Use the debugging pos packet command to enable packet debugging for the POS
access service.
Use the debugging pos all command to enable all debugging for the POS access
service.
Use the undo debugging pos event command to disable event debugging output for
the POS access service.
Use the undo debugging pos error command to disable error debugging output for
the POS access service.
Use the undo debugging pos packet command to disable packet debugging output
for the POS access service.
Use the undo debugging pos all command to disable all debugging output for the
POS access service.
Example
Syntax
View
User view
Parameter
11-4
Command Manual – System Management Chapter 11 POS Terminal Access Configuration
Comware V3 Commands
Description
Use the debugging pos-app command to enable debugging for the specified or all
POS applications.
Use the undo debugging pos-app command to disable debugging output for the
specified or all POS applications.
Example
Syntax
View
User view
Parameter
Description
Use the debugging pos-interface command to enable debugging for the specified or
all POS access ports.
Use the undo debugging pos-interface pos-number command to disable debugging
output for the specified or all POS access ports.
The output of this command provides information about receiving interface, packet type,
discarded packet, packet content, TPDU, and buffer overflow.
Example
Syntax
display fcm
11-5
Command Manual – System Management Chapter 11 POS Terminal Access Configuration
Comware V3 Commands
View
Any view
Parameter
None
Description
Use the display fcm command to display the count of dial-up negotiation failures and
the count of disconnections upon transaction timeouts for FCM module interfaces.
Related command: reset fcm.
Example
# Display the count of dial-up negotiation failures and the count of disconnections upon
transaction timeouts for FCM interfaces.
[H3C] display fcm
FCMId ConnectFail Timeout
0 0 0
1 0 0
2 0 0
3 0 0
4 0 2
5 0 0
6 0 0
7 0 0
8 0 0
9 0 0
Syntax
display pos-app
View
Any view
Parameter
None
Description
Use the display pos-app command to display brief information about POS
applications.
11-6
Command Manual – System Management Chapter 11 POS Terminal Access Configuration
Comware V3 Commands
The output of this command provides information about POS application number,
connection state, and counters for received packets, transmitted packets, error packets,
packets with distribution errors, discarded packets, and buffered packets.
Example
Field Description
AppId POS application number
State Connection state
Recv Count of received packets
Syntax
display pos-interface
View
Any view
Parameter
None
Description
Use the display pos-interface command to display brief information about POS
access ports.
11-7
Command Manual – System Management Chapter 11 POS Terminal Access Configuration
Comware V3 Commands
The output of this command provides information about interface name, POS
application ID, connection state, and counters for received packets, error packets,
application map errors, discarded packets, and buffered packets.
Example
Field Description
POS access port number. This number is the source
ID
address found in the TPDU field of POS switched packets.
Interface Name of the POS access port
Type Interface module/card type
State Physical state of the POS access port
Syntax
View
11-8
Command Manual – System Management Chapter 11 POS Terminal Access Configuration
Comware V3 Commands
Parameter
Description
Use the pad-mode pos enable command to enable POSPAD access mode.
Use the undo pad-mode pos enable command to restore the default PAD access
mode, that is, X.25 PAD.
The H3C Series H3Cs support two PAD access modes: X.25 PAD and POSPAD.
Example
Syntax
View
System view
Parameter
app-number: Number for the POS application, in the range 0 to 31. A H3C can be
configured with up to 32 POS applications.
ip-address: Destination address of the POS application in TCP/IP connection mode.
port-number: Port number of the POS application in TCP/IP connection mode, in the
range 1 to 65,535.
Description
Use the pos-server app tcp command to configure a POS application in TCP/IP
connection mode.
Use the undo pos-server app tcp command to remove the specified POS application.
By default, no POS application is configured.
A POS access H3C can be connected to a UNIX FEP in one of two ways:
asynchronous and TCP/IP. When configuring a POS application in asynchronous
connection mode, a different command is used.
11-9
Command Manual – System Management Chapter 11 POS Terminal Access Configuration
Comware V3 Commands
Example
# Configure POS application 1 with IP address 1.1.254.78 and port number 9010.
[H3C] pos-server app tcp 1 1.1.254.78 9010
Syntax
View
System view
Parameter
Description
Use the pos-server app x25 command to configure the specified POS application on
the POSPAD client H3C.
Use the undo pos-server app x25 command to remove the specified POSPAD client
application.
The POSPAD client sends the POS packets of the specified application to the POSPAD
server with the specified x121 address, and receives responses from that address.
When configuring an application, ensure that the serial interface on the H3C works in
X.25 PAD mode and the PAD is available.
The POSPAD client does not support PAD multi-application mapping, so only one client
application needs to be configured.
By default, no POSPAD client application is configured.
Example
# Associate POSPAD client application 1 with the peer x121 address of 12345.
[H3C] pos-server app x25 1 12345
11-10
Command Manual – System Management Chapter 11 POS Terminal Access Configuration
Comware V3 Commands
Syntax
pos-server checkschar
undo pos-server checkschar
View
System view
Parameter
None
Description
Use the pos-server checkschar command to enable the system to check POS
packets for the string 10 04.
Use the undo pos-server checkschar command to disable the system to check POS
packets for the string 10 04.
In the context of POSPAD access, the string 10 04 indicates a disconnection request
and the string 02 03 03 indicates a connection setup request. After you configure the
pos-server checkschar command, the system considers all packets with the string 10
04 as disconnection requests.
When 10 04 string check is disabled, the system does not check the payload of POS
packets for the string 10 04. Instead, it treats a POS packet as a disconnection request
only when the payload of this packet is 10 04 or when the packet ends with 10 04.
By default, the system does not check POS packets for the string 10 04.
Example
# Enable the system to check POS packets for the string 10 04.
[H3C] pos-server checkschar
Syntax
pos-server enable
undo pos-server enable
View
System view
11-11
Command Manual – System Management Chapter 11 POS Terminal Access Configuration
Comware V3 Commands
Parameter
None
Description
Example
Syntax
View
System view
Parameter
answertime time: Maximum duration waiting for an answer, in the range 500 to 2000
milliseconds. The default is 500 milliseconds.
tradetime time: Maximum duration a transaction may last, in the range 30,000 to
12,000,000 milliseconds. The default is 60,000 milliseconds.
packetinterval time: Maximum duration waiting for an acknowledgement, in the range
3,500 to 10,000 milliseconds. The default is 5,000 milliseconds.
Description
Use the pos-server fcm command to configure FCM parameters for modem
negotiation.
Use the undo pos-server fcm command to restore the defaults.
11-12
Command Manual – System Management Chapter 11 POS Terminal Access Configuration
Comware V3 Commands
In a POS access application, the modem on the FCM module usually acts as the called
party, and the modem embedded in the POS terminal acts as the calling party. The
following is the communication process between the two parties:
1) The POS terminal originates a call.
2) When the called party detects the call signal, it switches to the off-hook status and
sends answer tone to the POS terminal.
3) After the POS terminal receives the answer tone, the two sides begin the modem
negotiation (V.22). To ensure a successful negotiation, you need to set the
duration of answer tone appropriately considering the differences of telephony
networks in signal quality and delay. For a system with a bad network condition, a
short duration setting may cause modem negotiation failures; on the H3C, the
modem port intermittently comes up/goes down and no data is transmitted or
received. In this case, you can increase the value of the answer timer.
4) After the negotiation succeeds, the two parties begin to communicate. Since the
link layer protocol adopted by POS terminals is SDLC, a timeout retransmission
mechanism is needed to handle communication exceptions during transmission of
data frames. To this end, you may set the packet interval timer. For a system that
must handle packets greater than 512 bytes, consider to increase the value of
packet interval.
POS network convergence ratios are usually quite high. To improve the utilization of
POS access ports, you need to limit the duration of each transaction, preventing a POS
terminal from occupying resources for a long time. To this end, you may set the trade
timer. If a transaction is not completed upon expiration of this timer, the H3C
disconnects the involved POS terminal to release the occupied resources.
In normal cases, the defaults of these timers are adequate. When exceptions occur,
you may modify them as needed.
Related command: pos-server enable.
Example
# Set the answer timer to 800 milliseconds, trade timer to 1,200,000 milliseconds (20
minutes), and packet interval timer to 6000 milliseconds (6 seconds).
[H3C] pos-server fcm answertime 800
[H3C] pos-server fcm tradetime 1200000
[H3C] pos-server fcm packetinterval 6000
Syntax
11-13
Command Manual – System Management Chapter 11 POS Terminal Access Configuration
Comware V3 Commands
View
System view
Parameter
des-code: Destination address in the TPDU header of the POS packet. It is a string of
four hexadecimal numerals, such as FFFF, usually used for identifying a bank.
Generally, the number is distributed by the service center to a POS access device.
default: Default POS multi-application map entry.
app-number: Number of a POS application, in the range 0 to 31.
Description
Use the pos-server map command to configure a multi-application POS access map
entry.
Use the undo pos-server map command to delete a multi-application POS access
map entry.
By default, no multi-application POS access map is configured.
When a POS access port receives a packet from its physical interface, it looks up the
POS multi-application map for a match based on the destination address in the TPDU
field. If a match is found, the packet is passed to the corresponding application; if no
match is found, the packet is passed to the default application.
At present, a router supports up to 32 applications.
Example
# Configure the system to send the packets with a destination address of 01f1 in their
TDPU header to application 2.
[H3C] pos-server map 01f1 2
# Configure the system to send the packets that do not match any multi-application
map entry to default application 0.
[H3C] pos-server map default 0
Syntax
pos-server padmode { 0 | 1 }
View
System view
11-14
Command Manual – System Management Chapter 11 POS Terminal Access Configuration
Comware V3 Commands
Parameter
Description
Example
Syntax
View
System view
Parameter
Description
Use the pos-server source-ip command to bind the specified application with the
source address of a TCP connection.
11-15
Command Manual – System Management Chapter 11 POS Terminal Access Configuration
Comware V3 Commands
Example
Syntax
View
System view
Parameter
time: POSPAD wait timer setting, in the range 1 to 100, in 100-millisecond units.
Description
Use the pos-server wait-time command to set the POSPAD wait timer.
Use the undo pos-server wait-time command to restore the default of the POSPAD
wait timer, that is, 200 milliseconds.
While a POS terminal sends a packet in asynchronous mode, the POSPAD does not
know when the transmission is complete. Therefore, you need to set a wait timer for the
POSPAD. Upon expiration of this timer, the POSPAD considers that the transmission is
complete and begins to receive the packet.
The setting of this timer depends on packet length. Normally, the default setting is
adequate.
11-16
Command Manual – System Management Chapter 11 POS Terminal Access Configuration
Comware V3 Commands
Example
Syntax
reset fcm
View
User view
Parameter
None
Description
Use the reset fcm command to clear the dial-up negotiation failure counter and the
timeout disconnection counter for each FCM interface.
Related command: display fcm.
Example
# Clear the dial-up negotiation failure counter and the timeout disconnection counter for
each FCM interface
[H3C] reset fcm
Syntax
reset pos
View
User view
Parameter
None
Description
Use the reset pos command to clear the counters for POS applications and POS
access ports, that is, the information displayed with the display pos-app and display
pos-interface commands.
11-17
Command Manual – System Management Chapter 11 POS Terminal Access Configuration
Comware V3 Commands
Example
# Clear the counters for POS applications and POS access ports.
[H3C] reset pos
Syntax
View
System view
Parameter
idle-time: Idle-clear timer setting for PAD connection, in the range 0 to 600 seconds. It
defaults to 0 seconds, meaning PAD connection never expires.
Description
Use the x29 timer idleclear command to set the idle-clear timer for PAD connection.
Use the undo x29 timer idleclear command to restore the default.
In normal cases, a POSPAD connection is disconnected upon completion of the
transaction on it. The likelihood exists however, that a POSPAD connection is still
present upon completion of the transaction on it.
To prevent idle PAD connections from occupying resources, configure an idle-clear
timer on the POSPAD H3C. This allows the H3C to automatically terminate an idle PAD
connection upon expiration of the timer.
Example
11-18
Interface
Command Manual – Interface
Comware V3 Table of Contents
Table of Contents
i
Command Manual – Interface
Comware V3 Table of Contents
ii
Command Manual – Interface
Comware V3 Table of Contents
iii
Command Manual – Interface
Comware V3 Table of Contents
iv
Command Manual – Interface
Comware V3 Table of Contents
v
Command Manual – Interface
Comware V3 Table of Contents
vi
Command Manual – Interface
Comware V3 Table of Contents
vii
Command Manual – Interface
Comware V3 Table of Contents
viii
Command Manual – Interface
Comware V3 Chapter 1 Interface Management Commands
Syntax
View
User view
Parameter
Description
Use the debugging physical command to enable debugging of the physical module
on the specified interface.
Use the undo debugging physical command to disable debugging on the specified
interface.
Example
// Display LOS information when no cable is connected and display Recovery of signal
when a cable is present.
*0.98233300 H3C PHYD/8/debugging: (T1 1/0/0)PHY/EVT: Loss of frame
alignment./*
1-1
Command Manual – Interface
Comware V3 Chapter 1 Interface Management Commands
// Display LOF information when frame alignment is lost, and display Recovery of
frame alignment when frame alignment is achieved.
*0.98233400 H3C PHYD/8/debugging:(T1 1/0/0)PHY/EVT: No AIS. /*
1.1.2 description
Syntax
description interface-description
undo description
View
Interface view
Parameter
Description
Example
# Change the description of the interface Ethernet 0/0/0 to “H3C Router Ethernet
interface”.
[H3C] interface ethernet 0/0/0
[H3C-Ethernet0/0/0] description H3C Router ethernet interface
Syntax
1-2
Command Manual – Interface
Comware V3 Chapter 1 Interface Management Commands
View
Any view
Parameter
Description
Use the display brief interface command to display summary information about the
specified or all interfaces.
Example
# Display summary information about all interfaces, with the regular expression
“down” included.
<H3C> display brief interface | include down
Interface Link Protocol-link Protocol type Main IP
Analogmodem2/0/0 DOWN UP (spoofing) PPP --
Analogmodem2/1/0 DOWN UP (spoofing) PPP --
Atm1/0/0/0 DOWN DOWN ATM --
Aux0 DOWN DOWN PPP --
Dialer0 UP UP (spoofing) PPP --
Ethernet0/0/0 DOWN DOWN ETHERNET --
NULL0 UP UP (spoofing) NULL --
Serial0/0/0 DOWN DOWN PPP --
Serial3/0/0:0 DOWN DOWN PPP --
Syntax
View
Any view
Parameter
1-3
Command Manual – Interface
Comware V3 Chapter 1 Interface Management Commands
Description
Use the display interface command to view the current running state and other
information about an interface.
Executing this command displays the following information:
z Physical and protocol state of the interface
z Physical features of the interface (including operating mode, DTE/DCE, clock
selection, external cable, and so on.)
z IP address of the interface
z Link layer protocol of the interface and its operating state and statistics.
z Statistics about the incoming and outgoing packets on the interface
Related command: reset counters interface.
Example
# View the running state and the relevant information about Serial 0/0/0.
[H3C] display interface serial 0/0/0
Serial0/0/0 is up , line protocol is up
Description : Serial0/0/0 Interface
Virtualbaudrate is 300 bps
The Maximum Transmit Unit is 1500, The keepalive is 10(sec)
Internet protocol processing : disabled
Link layer protocol is PPP
LCP opened, MPLSCP stopped
FIFO queuing: (Outbound queue:Size/Length/Discards)
FIFO: 0/75/0
Physical layer is synchronous,Baudrate is 64000 bps
Interface is DCE, Cable type is V35
5 minutes input rate 0.56 bytes/sec, 0.04 packets/sec
5 minutes output rate 0.66 bytes/sec, 0.05 packets/sec
51 packets input, 640 bytes, 0 no buffers
55 packets output, 700 bytes, 0 no buffers
0 input errors, 0 CRC, 0 frame errors
0 overrunners, 0 aborted sequences, 0 input no buffers
DCD=UP DTR=UP DSR=UP RTS=UP CTS=UP
1-4
Command Manual – Interface
Comware V3 Chapter 1 Interface Management Commands
Field Description
Serial0 is up Physical layer state of the interface
line protocol is up Link layer state of the interface
The input rate of the interface within the last five
5 minutes input rate
minutes
The output rate of the interface within the last five
5 minutes output rate
minutes
FIFO queueing: FIFO Type of the output queue on the interface
Packets and bytes received by the interface and
51 packets input, 640 bytes,
the packets discarded due to the unavailability of
0 no buffers
receive-buffer.
Packets and bytes sent by the interface and the
55 packets output, 700 bytes,
packets discarded due to the unavailability of
0 no buffers
send-buffer.
input errors:0, CRC:0, frame The received packets that contain errors, including
errors:0 CRC errors and frame errors.
DCD=UP DTR=UP DSR=UP State of the physical electrical signals DCD, DTR,
RTS=UP CTS=UP DSR, RTS, and CTS
Syntax
View
Any view
Parameter
Description
Use the display status interface command to display the state of the specified
interface.
Example
1-5
Command Manual – Interface
Comware V3 Chapter 1 Interface Management Commands
callok times: 1
done times: 1
delay times: 0
destroy time: 0
receive information
done times: 0
get ok mbufs: 0
make mbuf fails: 0
no buffer times: 0
Rx disable times: 0
Rx enable times: 1
1-6
Command Manual – Interface
Comware V3 Chapter 1 Interface Management Commands
Syntax
View
Interface view
Parameter
None
Description
Use the enable snmp trap updown command to enable the interface to send
UPDOWN traps.
Use the undo enable snmp trap updown command to disable the interface to send
UPDOWN traps.
By default, the interface can send UPDOWN traps.
Example
1-7
Command Manual – Interface
Comware V3 Chapter 1 Interface Management Commands
1.1.7 flow-interval
Syntax
flow-interval seconds
undo flow-interval
View
System view
Parameter
seconds: Statistic interval in the range 1 to 1500 seconds. It defaults to 300 seconds.
Description
Use the flow-interval command to configure the interval for measuring the average
rate of the interfaces.
Use the undo flow-interval command to restore the default.
Related command: display interface.
Example
# Set the interval for measuring the average interface rate to 10 seconds.
[H3C] flow-interval 10
1-8
Command Manual – Interface
Comware V3 Chapter 1 Interface Management Commands
1.1.8 interface
Syntax
View
System view
Parameter
type: Interface type. Table 1-2 lists the interfaces that Comware supports so far.
number: Interface number. Comware numbers the interfaces separately by interface
type, with the numbers of each type of interfaces beginning at 0 or 1.
sub-number: Subinterface number, which is separated from the main interface
number by a dot (.).
Description
Use the interface command to enter the specified interface view or create a logical
interface or subinterface.
Use the undo interface command to delete a specified logical interface or
subinterface.
1-9
Command Manual – Interface
Comware V3 Chapter 1 Interface Management Commands
Remembering the interface numbering convention mentioned earlier, you could know
that the name of a physical interface is represented by interface type + interface
number. For example, Ethernet0/0/0 represents the Ethernet interface numbered
0/0/0, and Serial0/0/0.1 the first subinterface on the interface Serial0/0/0, and
interface Serial3/0/0:2 the second channel set of the CE1/PRI interface (namely
controller interface) numbered 3/0/0.
The name of a logical interface is represented by interface type + interface number,
for example, tunnel 0.
You can however shorten the type portion in the interface name by inputting only the
leading conflict-free letters, for example, e0/0/0 for Ethernet 0/0/0 and s0/0/0.1 for
Serial 0/0/0.1.
You can enter the view of the desired physical interface and create logical interfaces
or subinterfaces as needed by executing the interface command.
You can create subinterfaces for an Ethernet interface or a serial interface
encapsulated with X.25 or Frame Relay (FR). The subinterface numbered 0 is the
actually corresponding main interface.
Note that executing the undo interface command deletes the defined logical
interfaces (such as Dialer, tunnel, and virtual-template interfaces) and subinterfaces.
1-10
Command Manual – Interface
Comware V3 Chapter 1 Interface Management Commands
Example
1.1.9 looptest
Syntax
View
Any view
Parameter
Description
1-11
Command Manual – Interface
Comware V3 Chapter 1 Interface Management Commands
A loop test on an interface starts by sending a test packet. If the interface is in a local
or line loop, the test packet just sent will loop back to the interface.
In addition to testing interface or line loops, you may use this command to test the
transmission quality of a loopback line.
The output of this command provides information about:
z Receiving state of test packets. If a test packet does not loop back to the sending
interface upon timeout, the message “Wait time out” is displayed. If it does loop
back, information about number of bytes, sequence number, and delay is
displayed for the packet.
z Final statistics about sent test packets, received test packets, lost packets,
received error packets, percentage of lost packets, percentage of error packets,
delay in its minimum/average/maximum, and test conclusion.
For a line with a low transmission speed, increase the timeout waiting for receiving a
sent test packet.
Related command: loopback, fe1 loopback, ft1 loopback.
Example
# Test whether interface Serial 1/0/0 and its connected line is in a loop.
<H3C> looptest interface serial 1/0/0
LOOPTEST Serial1/0/0: 52 data bytes, press CTRL_C to break
Receive from Serial1/0/0: bytes=52 sequence=1 time=1 ms
Receive from Serial1/0/0: bytes=52 sequence=2 time=1 ms
Receive from Serial1/0/0: bytes=52 sequence=3 time=1 ms
Receive from Serial1/0/0: bytes=52 sequence=4 time=1 ms
Receive from Serial1/0/0: bytes=52 sequence=5 time=1 ms
Syntax
1-12
Command Manual – Interface
Comware V3 Chapter 1 Interface Management Commands
View
User view
Parameter
Description
Use the reset counters interface command to clear statistics about the transmitted
and received packets, IP, ARP, and ICMP on the specified interface or all interfaces.
To count the traffic size on an interface within some period, you need to clear the
existing statistics on the interface before making a new counting.
Related command: display interface.
Example
1.1.11 restart
Syntax
restart
View
Interface view
Parameter
None
Description
Example
1-13
Command Manual – Interface
Comware V3 Chapter 1 Interface Management Commands
1.1.12 shutdown
Syntax
shutdown
undo shutdown
View
Interface view
Parameter
None
Description
Example
1-14
Command Manual – Interface Chapter 2 Fundamental Ethernet Interface
Comware V3 Configuration Commands
Syntax
View
Any view
Parameter
Description
Example
2-1
Command Manual – Interface Chapter 2 Fundamental Ethernet Interface
Comware V3 Configuration Commands
Field Description
Ethernet2/0/0 current state : UP Current state of the Ethernet interface
Current state of the link layer protocol on
Line protocol current state
the Ethernet interface
Description Description about the Ethernet interface
The Maximum Transmit Unit is 1500 MTU of the Ethernet interface
Hold timer is 10(sec) Poll interval
IP address and subnet mask of the
Internet Address is 172.31.29.103/16
Ethernet interface
IP Sending Frames' Format is
Format and hardware (MAC) address of
PKTFMT_ETHNT_2, Hardware address
IP sending frames
is 00e0.fc06.3085
Media type is twisted pair Medium type
Indicates whether loopback is enabled
loopback not set
on the interface
Indicates whether promiscuous mode is
promiscuous mode not set
set
100Mb/s-speed mode,Full-duplex Speed, duplex mode, and link type on
mode,link type is autonegotiation the interface
Output flow-control is unsupported, input Output and input flow control modes on
flow-control is unsupported the interface
Current length and maximum length of
Output queue : (Urgent queue :
the urgent output queue and its dropped
Size/Length/Discards) 0/500/0
packets
Current length and maximum length of
Output queue : (FIFO queuing :
the FIFO queue, and its dropped
Size/Length/Discards) 0/75/0
packets
2-2
Command Manual – Interface Chapter 2 Fundamental Ethernet Interface
Comware V3 Configuration Commands
Field Description
Last 5 minutes input rate 227.13 Input and output rates within the last five
bytes/sec, 2.67 packets/sec minutes on the interface, in terms of
Last 5 minutes output rate 0.00 bytes per second and packets per
bytes/sec, 0.00 packets/sec second
# Display the running state and relevant information on the GE interface 1/0/1.
[H3C] display interface GigabitEthernet 1/0/1
GigabitEthernet1/0/1 current state : DOWN
IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is
00e0-fc00-1500
The Maximum Transmit Unit is 1500
Media type is twisted pair, loopback not set
Port hardware type is 1000_BASE_SFP
100Mbps-speed mode, unknown-duplex mode
Link speed type is force link, link duplex type is autonegotiation
Flow-control is not enabled
The Maximum Frame Length is 1500
Broadcast MAX-ratio: 100%
Unicast MAX-ratio: 100%
Multicast MAX-ratio: 100%
Allow jumbo frame to pass
PVID: 1
Mdi type: across
Port link-type: access
Tagged VLAN ID : none
Untagged VLAN ID : 1
Last 300 seconds input: 0 packets/sec 0 bytes/sec
Last 300 seconds output: 0 packets/sec 0 bytes/sec
Input(total): 0 packets, 0 bytes
0 broadcasts, 0 multicasts, 0 pauses
Input(normal): 0 packets, 0 bytes
0 broadcasts, 0 multicasts, 0 pauses
Input: 0 input errors, 0 runts, 0 giants, 0 throttles, 0 CRC
0 frame, 0 overruns, 0 aborts, 0 ignored, 0 parity errors
Output(total): 0 packets, 0 bytes
0 broadcasts, 0 multicasts, 0 pauses
2-3
Command Manual – Interface Chapter 2 Fundamental Ethernet Interface
Comware V3 Configuration Commands
Note:
For an SFP port, the detailed information about the optic module including vender
type, wavelength, transmission distance, and serial number as follows:
The transceiver Detail Information:
The transceiver type: Xenpak
The standard compliance: 1000BASE_CX
Transfers distance(m) :9um Fiber: 0
50um Fiber: 0
625um Fiber: 1000
copper line: 100
Serial Num is 123456789
Vender Name is 3com
3C Number is 123456789
2.1.2 duplex
Syntax
View
Parameter
Description
Use the duplex command to set the operating mode of the Ethernet interface.
Use the undo duplex command to restore the default operating mode of the Ethernet
interface.
2-4
Command Manual – Interface Chapter 2 Fundamental Ethernet Interface
Comware V3 Configuration Commands
Example
2.1.3 flow-control
Syntax
flow-control
undo flow-control
View
Parameter
None
Description
Use the flow-control command to enable flow control on the Ethernet interface,
which is useful only when the peer end also supports flow control.
Use the undo flow-control command to restore the default.
By default, flow control is disabled.
When using this command, keep the configuration the same as that of the peer end.
Example
2-5
Command Manual – Interface Chapter 2 Fundamental Ethernet Interface
Comware V3 Configuration Commands
2.1.4 force-link
Syntax
force-link
undo force-link
View
GE interface view
Parameter
None
Description
Use the force-link command to enable the GE interface to work in force mode.
Use the undo force-link command to restore the default operating mode.
The default operating mode is negotiation.
GE optical interfaces provide two operating modes: negotiation and force. In
negotiation mode, the interface chip checks negotiation code, negotiating the format
of the PAUSE frame and the peer state (that is, whether it is faulty). In force mode, no
negotiation stream is present on the line. The interface chip decides whether an
interface can be brought up depending on how much light intensity it reads.
You must set the two ends to work in the same operating mode. Any inconsistency
can prevent the interface adopting negotiation mode from going up.
Example
Syntax
loopback
undo loopback
View
Parameter
None
2-6
Command Manual – Interface Chapter 2 Fundamental Ethernet Interface
Comware V3 Configuration Commands
Description
Use the loopback command to enable local loopback on the Ethernet interface.
Use the undo loopback command to disable local loopback on the Ethernet
interface.
By default, local loopback is disabled on the Ethernet interface.
You need to enable local loopback on the Ethernet interface only when testing some
special functions.
Note:
The Ethernet interface works in full duplex mode after you enable loopback. The
original mode resumes after loopback is disabled.
Example
Syntax
mtu size
undo mtu
View
Parameter
size: Maximum transmission unit (MTU) size of the Ethernet interface, which is in
bytes. It is in the range 46 to 1500 for the frame formats of both Ethernet_II and GE.
Description
Use the mtu command to set the MTU size of the Ethernet interface.
Use the undo mtu command to restore the default or 1500 bytes.
The MTU setting of an Ethernet interface can affect the assembly and fragmentation
of IP packets on the interface.
Related command: display interface.
2-7
Command Manual – Interface Chapter 2 Fundamental Ethernet Interface
Comware V3 Configuration Commands
Example
2.1.7 promiscuous
Syntax
promiscuous
undo promiscuous
View
Parameter
None
Description
Example
2.1.8 speed
Syntax
2-8
Command Manual – Interface Chapter 2 Fundamental Ethernet Interface
Comware V3 Configuration Commands
View
Parameter
Description
Use the speed command to set the operating speed of the Ethernet interface.
Use the undo speed command to restore the default operating speed of the Ethernet
interface.
By default, the Ethernet interface is working in auto-negotiation mode.
Before setting the Ethernet interface to work in auto-negotiation mode, make sure that
the connected end is working in auto-negotiation mode. If you cannot make sure,
manually set the same operating mode at the two ends.
You can set the rate of FE electrical interface to 10 Mbps, 100 Mbps or auto-sensing
and the rate of GE electrical interface to 10 Mbps, 100 Mbps, 1000 Mbps or
auto-sensing. Nevertheless, the rate of FE optical interface is fixed to 100Mbps and
the rate of GE optical interface is fixed to 1000Mbps, which cannot be changed by
using commands.
Note:
As for GE electrical interface, the operating rate of 1000Mbps and the mode of
half-duplex are mutually exclusive. Do not set these two values at the same time.
Example
2-9
Command Manual – Interface Chapter 3 Layer 2 Ethernet Port Configuration
Comware V3 Commands
Syntax
broadcast-suppression pct
undo broadcast-suppression
View
Parameter
pct: Specifies the maximum wire speed ratio of the broadcast traffic allowed on the
Ethernet port. It ranges from 5 to 100 and defaults to 100. The smaller the ratio is, the
smaller the broadcast traffic is allowed.
Description
Example
3.1.2 description
Syntax
description text
3-1
Command Manual – Interface Chapter 3 Layer 2 Ethernet Port Configuration
Comware V3 Commands
undo description
View
Parameter
Description
Use the description command to configure port description. Identifying a port is the
only function of this command.
Use the undo description command to restore the default port description, that is,
port name plus interface.
Example
Syntax
View
Any view
Parameter
Description
Use the display interface command to view configuration information on the port.
If port type and port number are not specified when displaying the port information,
information on all the ports is displayed. If only port type is specified, information on all
the ports of this type is displayed. If both port type and port number are specified,
information on the specified port is displayed.
Example
3-2
Command Manual – Interface Chapter 3 Layer 2 Ethernet Port Configuration
Comware V3 Commands
Field Description
Current state of the port, enabled or
Ethernet1/0/1 current state
disabled
Description Port description
Media type Media type
loopback not set State about loopback on the port
Port hardware type Hardware type of the port
100Mbps-speed mode, full-duplex mode Both duplex mode and port rate are set
to auto-negotiation, but full-duplex and
Link speed type is autonegotiation, link 100 Mbps are adopted as the result of
duplex type is autonegotiation negotiation with the peer.
Flow-control is not supported Flow control setting on the port
Mac-aging time Aging time of MAC addresses
Broadcast storm suppression ratio on
Broadcast MAX-ratio
the port
Output flow-control is disabled, input Output flow control and input flow control
flow-control is disabled are disabled.
PVID Default VLAN ID of the port
3-3
Command Manual – Interface Chapter 3 Layer 2 Ethernet Port Configuration
Comware V3 Commands
Field Description
Port link-type Link type of the port
Indicates the VLAN from which the
Tagged VLAN ID
packets must be tagged.
Indicates the VLAN from which the
Untagged VLAN ID
packets are not to be tagged.
Last 300 seconds output: 0 packets/sec
0 bytes/sec The input and output rates as well as the
input and output packets in the last 300
Last 300 seconds input: 0 packets/sec 0 seconds on the port
bytes/sec
Input: 6 packets, 574 bytes, 0 buffers
0 broadcasts, 0 multicasts, 0 pauses
0errors,0runts,0giants
0 crc, 0 align errors, 0 overruns
Statistics about input/output packets and
0 dribbles, 0 drops, 0 no buffers errors on the port
Output: 0 packets, 0 bytes,0 buffers
0 broadcasts, 0 multicasts, 0 pauses
0 errors, 0 underruns, 0 collisions
0 deferred, 0 lost carriers
Syntax
View
Any view
Parameter
Description
Use the display port command to check whether the current system has hybrid or
trunk ports. If there is any, its port name is displayed.
Example
3-4
Command Manual – Interface Chapter 3 Layer 2 Ethernet Port Configuration
Comware V3 Commands
The output indicates that the current system has two hybrid ports, Ethernet 1/0/1 and
Ethernet 1/0/2.
3.1.5 duplex
Syntax
View
Parameter
Description
Use the duplex command to configure the duplex mode of the Ethernet port.
Use the undo duplex command to restore the default duplex mode of the port, that is,
auto-negotiation.
When the port is connected to a Hub, it must operate in half duplex mode. When the
port is connected to a full duplex-supported network device that is operating in full
duplex mode, a LAN switch for example, it must operate in full duplex also.
When setting the port to auto-negotiation mode, you must ensure that the connected
port is operating in the same mode. If otherwise, you must set both ports to operate in
the same mode manually.
Related command: speed.
Example
3.1.6 flow-control
Syntax
flow-control
undo flow-control
3-5
Command Manual – Interface Chapter 3 Layer 2 Ethernet Port Configuration
Comware V3 Commands
View
Parameter
None
Description
Use the flow-control command to enable flow control on the Ethernet port to avoid
packet drop when congestion occurs.
Use the undo flow-control command to disable flow control.
By default, flow control on the Ethernet port is disabled.
Example
3.1.7 interface
Syntax
View
System view
Parameter
Description
Example
3-6
Command Manual – Interface Chapter 3 Layer 2 Ethernet Port Configuration
Comware V3 Commands
Syntax
View
Parameter
age-time: Address aging time on the port, in the range 10 to 1000000 seconds. It
defaults to 300 seconds.
no-age: The MAC addresses are never aged out of the table on the port.
Description
Use the mac-address timer aging command to set the aging timer for the MAC
address table on the port.
Use the undo mac-address timer aging command to restore the default, that is, 300
seconds.
Example
# Set the aging timer for the MAC address table on port Ethernet 1/0/1 to 20 seconds.
[H3C-ethernet1/0/1] mac-address timer aging 20
3.1.9 loopback
Syntax
loopback
undo loopback
View
Parameter
None
Description
Use the loopback command to enable loopback on the Ethernet port for test purpose.
Use the undo loopback command to disable loopback on the Ethernet port.
By default, loopback is disabled.
3-7
Command Manual – Interface Chapter 3 Layer 2 Ethernet Port Configuration
Comware V3 Commands
Example
Syntax
View
Parameter
Description
Use the port access vlan command to add the port whose link type is access to a
specified VLAN.
Use the undo port access vlan command to remove the access port from the
specified VLAN.
The default VLAN ID of access port is 1.
Example
Syntax
View
Parameter
3-8
Command Manual – Interface Chapter 3 Layer 2 Ethernet Port Configuration
Comware V3 Commands
Description
Use the port hybrid pvid vlan command to assign a default VLAN ID to the hybrid
port.
Use the undo port hybrid pvid command to restore the default VLAN ID of the hybrid
port.
To ensure correct transmission of packets, the default VLAN ID of the hybrid port must
be the same as the one used by the connected hybrid port.
Related command: port link-type.
Example
Syntax
View
Parameter
Description
Use the port hybrid vlan command to assign the hybrid port to the specified VLANs,
which must have existed in the system.
Use the undo port hybrid vlan command to remove the hybrid port from the
specified VLANs.
A hybrid port can belong to multiple VLANs. If multiple VLAN lists are configured using
the port hybrid vlan vlan_id_list { tagged | untagged } command, all the VLANs of
these list can pass through the port.
Related command: port link-type.
3-9
Command Manual – Interface Chapter 3 Layer 2 Ethernet Port Configuration
Comware V3 Commands
Example
# Assign hybrid port Ethernet 1/0/1 to VLANs 2, 4 and 50 through 100. All packets
from these VLANs are to be tagged.
[H3C-Ethernet1/0/1] port hybrid vlan 2 4 50 to 100 tagged
Syntax
View
Parameter
Description
Use the port link-type command to configure the link type of the Ethernet port.
Use the undo port link-type command to restore the default link type of the port, that
is, access.
Example
Syntax
View
Parameter
3-10
Command Manual – Interface Chapter 3 Layer 2 Ethernet Port Configuration
Comware V3 Commands
ranges from 1 to 4094. &<1-10> indicates that the former arguments can be input 10
times repeatedly at most.
all: Assign the trunk port to all VLANs.
Description
Use the port trunk permit vlan command to assign the trunk port to the specified
VLANs.
Use the undo port trunk permit vlan command to remove the trunk port from the
specified VLANs.
A trunk port can belong to multiple VLANs. If multiple VLAN lists are configured using
the port trunk permit vlan command, all the VLANs of these list can pass through
the port.
This command can be used on condition that the VLAN specified using vlan_id is not
the default one.
Related command: port link-type.
Example
Syntax
View
Parameter
Description
Use the port trunk pvid vlan command to configure the default VLAN ID of the trunk
port.
Use the undo port trunk pvid command to restore the default VLAN ID of the port.
To ensure correct transmission of packets, the default VLAN ID of the hybrid port must
be the same as the one used by the connected hybrid port.
Related command: port link-type.
3-11
Command Manual – Interface Chapter 3 Layer 2 Ethernet Port Configuration
Comware V3 Commands
Example
Syntax
View
User view
Parameter
Description
Use the reset counters interface command to reset the statistics about the port.
If port type and port number are not specified when clearing the statistics, information
on all the ports is cleared. If only port type is specified, information on all the ports of
this type is cleared. If both port type and port number are specified, information on the
specified port is cleared.
Example
3.1.17 shutdown
Syntax
shutdown
undo shutdown
View
3-12
Command Manual – Interface Chapter 3 Layer 2 Ethernet Port Configuration
Comware V3 Commands
Parameter
None
Description
Example
3.1.18 speed
Syntax
View
Parameter
Description
Example
3-13
Command Manual – Interface Chapter 3 Layer 2 Ethernet Port Configuration
Comware V3 Commands
Syntax
View
Any view
Parameters
Description
Use the display mac-address command to display information about MAC address
entries of an interface or about all MAC address entries.
When the display mac-address command without keyword and argument is used,
information about all MAC address entries will be displayed.
Example
Field Description
MAC ADDR MAC address
3.1.20 mac-address
Syntax
3-14
Command Manual – Interface Chapter 3 Layer 2 Ethernet Port Configuration
Comware V3 Commands
View
Parameters
Description
Example
Syntax
display mirror
View
Any view
Parameters
None
3-15
Command Manual – Interface Chapter 3 Layer 2 Ethernet Port Configuration
Comware V3 Commands
Description
Use the display mirror command to display information about port mirroring
configuration, information including the monitored ports, the direction of monitored
packets and monitoring port.
Example
Field Description
Monitor port: Ethernet1/1 The monitoring port: Ethernet1/1
Mirroring port: Ethernet1/2 Ethernet1/2 is the monitored port; packets of both
both directions on it are monitored.
3.2.2 monitor-port
Syntax
monitor-port
undo monitor-port
View
Parameters
None
Description
Use the monitor-port command to specify the current port as the monitoring port.
Use the undo monitor-port command to remove the configuration.
Example
3-16
Command Manual – Interface Chapter 3 Layer 2 Ethernet Port Configuration
Comware V3 Commands
[H3C-Ethernet1/1] monitor-port
3-17
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
Syntax
View
Parameter
protocol: Protocol mode, with which the local end directly adopts the configured link
layer protocol parameters to set up a link with the remote end after setting up a
physical link.
flow: Flow mode, also known as interactive mode. With this approach, the two ends
set up a link by interacting with each other upon the setup a physical link. Specifically,
the calling party sends the configuration commands to the called party (it is equal to
the operation of manually inputting configuration commands at the remote end), sets
the link layer protocol operating parameters of the called party, and then sets up the
link. This approach normally applies to man-machine interaction.
terminal: Terminal mode, applied for terminal access service. So far, it is supported
only on asynchronous serial and synchronous/asynchronous serial interfaces.
template-name: Terminal template name.
tty-number: The allocated TTY number.
Description
Use the async mode command to set the operating mode of the asynchronous serial
interface.
By default, the asynchronous serial interface is working in protocol mode and the AUX
interface in flow mode.
Related command: modem.
Example
4-1
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
4.1.2 baudrate
Syntax
baudrate baudrate
View
Parameter
baudrate: Baud rate of the serial interface in bps. It is in the range 300 to 115,200 for
an asynchronous serial interface and 1200 to 2,048,000 for a synchronous serial
interface.
Description
Use the baudrate command to set the baud rate of a serial interface.
By default, the baud rate is 9,600 bps on the asynchronous serial interface and
64,000 bps on a synchronous serial interface.
The following are the baud rates available with asynchronous serial interfaces:
300 bps, 600 bps, 1,200 bps, 2,400 bps, 4,800 bps, 9,600 bps, 19,200 bps, 38,400
bps, 57,600 bps, 115,200 bps
The following are the baud rates available with synchronous serial interfaces:
1,200 bps, 2,400 bps, 4,800 bps, 9,600 bps, 19,200 bps, 38,400 bps, 57,600 bps,
64,000 bps, 72,000 bps, 115,200 bps, 128,000 bps, 192,000 bps, 256,000 bps,
384,000 bps, 512,000 bps, 1,024,000 bps, 2,048,000 bps
Note that the baud rates of 192,000 bps, 256,000 bps, 512,000 bps, 1,024,000 bps,
and 2,048,000 bps are available with some types of serial interfaces only. You can
know whether these baud rates are available by reading the prompt message
displayed on the screen for this command.
The baud rate range available with synchronous serial interfaces depends on the
applied physical electric specifications.
z V.24 DTE/DCE supports the range of 1200 bps to 64000 bps
z V.35 DCE/DCE, X.21 DTE/DCE, EIA/TIA-449 DTE/DCE and EIA-530 DTE/DCE
supports the range of 1200 bps to 2048000 bps
After a synchronous/asynchronous serial interface makes the
synchronous/asynchronous switchover, the baud rate of the interface resumes the
default baud rate in the new operating mode.
When setting baud rate for a serial interface, you should take into consideration the
elements such as operating mode (synchronous/asynchronous mode) and the
4-2
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
electric specifications of the connected external cable. In addition, you should note
that the baud rate of asynchronous serial interface is only significant for the
connection between router and modem. If two modems are concerned, the baud rate
between them will be directly negotiated by themselves. Therefore, different baud rate
settings can be set on the routers at the two ends of a connection, if the routers are
working in asynchronous mode. In synchronous mode, however, the router working
as DCE will determine the baud rate for the line transmission. Therefore, you need to
set baud rate at the DCE side in this case.
Example
# Set the baud rate of the asynchronous serial interface at DCE side to 115200 bps.
[H3C-Serial0/0/0] baudrate 115200
Syntax
View
Parameter
dteclk1: Sets the interface clock selection mode to DTE clock option 1.
dteclk2: Sets the interface clock selection mode to DTE clock option 2.
dteclk3: Sets the interface clock selection mode to DTE clock option 3.
dteclk4: Sets the interface clock selection mode to DTE clock option 4.
Description
Use the clock command to set clock selection mode for a synchronous serial
interface.
If the synchronous serial interface operates as DCE, its clock defaults to DCE clock; if
the interface operates as DCE, its clock defaults to dteclk1.
Different operating clocks are selected for the synchronous serial interfaces working
as DTE and DCE, as shown in the following figure.
TxClk
4-3
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
In the figure, “TxClk” represents transmitting clock and “RxClk” receiving clock.
As a DCE device is required to provide clock for the remote DTE device, you must
select DCEclk as the operating clock for the synchronous serial interface working as
DCE.
Working as DTE, the synchronous serial interface must accept the clock provided by
the remote DCE. As transmitting and receiving clocks of synchronization devices are
independent, the receiving clock of a DTE device can be either the transmitting or
receiving clock of the DCE device. So is the transmitting clock. Therefore, there are
four clock options are available for a DTE device.
The following table gives the four clock selection options.
Table 4-1 Clock options available for a synchronous serial interface working as DTE
In the table, the clock ahead of = is the DTE clock and the one behind is the DCE
clock.
Example
# Set the synchronous serial interface working as DTE to use the clock selection
option dteclk2.
[H3C-Serial0/0/0] clock dteclk2
Syntax
code nrzi
undo code
View
Parameter
None
4-4
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
Description
Use the code nrzi command to set the digital signal coding format to
None-Return-to-Zero-Inverse (NRZI) for a synchronous serial interface.
Use the undo code command to restore the digital coding format of the synchronous
serial interface to NRZ.
The digital signal coding format defaults to NRZ on the synchronous serial interface.
Example
# Set the digital signal coding format to NRZI on the synchronous serial interface.
[H3C-Serial0/0/0] code nrzi
4.1.5 country-code
Syntax
country-code area-name
View
Parameter
Description
Use the country-code command to configure the coding format of the modem
connected to the serial interface.
The default area code is united-states.
The coding format of modem varies by area. To adapt to coding formats in different
areas, you can use this command.
On the asynchronous serial interface, only after the command modem is enabled can
this command be configured.
Note:
The AR 18 series does not support this command.
4-5
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
Example
4.1.6 detect
Syntax
View
Parameter
Description
Use the detect command to enable data carrier detection as well as level detection on
a serial interface.
Use the undo detect command to disable data carrier detection as well as level
detection on the serial interface.
By default, the serial interface is enabled to make data carrier and level detection.
If this function is disabled on the serial interface, the system does not detect the DCD
and DSR/DTR signals when determining the state (UP or DOWN) of the interface.
When level detection is disabled on a serial interface, the system does not detect
whether a cable is connected if the interface is asynchronous, AUX or Async for
example and the state of the interface is up automatically. If the interface is
synchronous/asynchronous, however, it goes up only when the system detects that a
cable is connected.
Example
4-6
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
4.1.7 idle-mark
Syntax
idle-mark
undo idle-mark
View
Parameter
None
Description
Use the idle-mark command to set the line idle-mark of the synchronous serial
interface to “FF”.
Use the undo idle-mark command to restore the line idle-mark of the synchronous
serial interface to “7E”.
Line idle-mark of synchronous serial interfaces defaults to “7E”.
In normal circumstances, the synchronous serial interface uses the code “7E” to
identify the idle state of the line. However, there are still some devices that use “FF”
(that is, the high level of all “1s”) to make the identification. For the sake of
compatibility in this case, it is necessary to configure the line idle-mark of the
synchronous serial interface.
Example
4.1.8 eliminate-pulse
Syntax
eliminate-pulse
undo eliminate-pulse
View
Parameter
None
4-7
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
Description
Use the eliminate-pulse command to eliminate the pulses with a width less than
3.472us, increasing signal reliability. This is useful when the line is seriously
interfered.
Use the undo eliminate-pulse command to restore the default, eliminating the
pulses with a width less than 1.472 us.
Note:
You can use this command only when the baud rate of the interface is less than
115,200 bps. After you configure this command, the baud rate of the interface cannot
be set to 115,200 bps or greater.
This command is restricted to the 8ASE and 16ASE interface cards and modules.
Example
# Eliminate the pulses with a width less than 3.472 us on interface Async1/0/0.
[H3C-Async1/0/0] eliminate-pulse
Syntax
framefill none
undo framefill none
View
Synchronous serial interface view, asynchronous serial interface view, AUX interface
view and AM interface view
Parameter
None
Description
Use the framefill none command to disable a serial interface to send interframe filling
tags.
Use the undo framefill none command to enable the serial interface to send
interframe filling tags.
By default, there are filling tags between frames sent by a serial interface.
4-8
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
Example
Syntax
invert receive-clock
undo invert receive-clock
View
Parameter
None
Description
Use the invert receive-clock command to invert the receive-clock signal on the
DTE-side synchronous serial interface.
Use the undo invert transmit-clock command to disable inverting the signal.
By default, receive-clock signal inversion is disabled on the synchronous serial
interface at DTE side.
You may invert the receive-clock signal on a DTE-side serial interface for the special
purpose of eliminating the half clock-period delay on the line. This command is useful
only for some special DCE devices. For common applications, clock must not be
inverted.
Related command: physical-mode, invert transmit-clock, clock.
Example
Syntax
invert transmit-clock
undo invert transmit-clock
View
4-9
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
Parameter
None
Description
Use the invert transmit-clock command to enable the inverting of the transmit-clock
signal of the synchronous serial interface at the DTE side.
Use the undo invert transmit-clock command to disable inverting the signal.
By default, transmit-clock signal inversion is disabled on the synchronous serial
interface at DTE side.
In some special cases, for eliminating the half-period delay of the clock on the line,
you may make the configuration to make the system invert the transmit-clock signal of
the synchronous serial interface at the DTE side. This command can take effect only
on some specific DCE devices. Clock inversion is unnecessary to general
applications.
Related command: physical-mode, invert receive-clock, clock.
Example
4.1.12 loopback
Syntax
loopback
undo loopback
View
Parameter
None
Description
4-10
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
Example
Syntax
View
Parameter
None
Description
Example
# Set the asynchronous serial interface Modem to switch from IDLE to ACTIVE
without waiting for the CONNECT signal after it receives CD_UP (a lower layer
detects carrier signal).
[H3C-ui-aux0] modem adapt no-waitting-connect
Syntax
mtu size
undo mtu
4-11
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
View
Parameter
size: MTU size of the serial interface in the range 128 to 1500 bytes. It defaults to
1500 bytes.
Description
Example
4.1.15 physical-mode
Syntax
View
Parameter
Description
Example
4-12
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
4.1.16 phy-mru
Syntax
phy-mru size
undo phy-mru
View
Parameter
size: Maximum receive unit (MRU), in the range 4 to 1,700 bytes. It defaults to 1,700
bytes.
Description
Use the phy-mru command to configure in asynchronous flow mode MRU at the
physical layer.
Use the undo phy-mru command to restore the default.
Example
# Set the MRU at the physical layer of asynchronous serial interface Async 1/0/0 to
100 bytes.
[H3C-Async1/0/0] phy-mru 100
4.1.17 reverse-rts
Syntax
reverse-rts
undo reverse-rts
View
Parameter
None
Description
4-13
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
Example
4.1.18 virtualbaudrate
Syntax
virtualbaudrate virtualbaudrate
undo virtualbaudrate
View
Parameter
virtualbaudrate: Specifies a baudrate in bps, which must be consistent with the one
configured at the DCE side and can be 1200, 2400, 4800, 9600, 19200, 38400, 56000,
57600, 64000, 72000, 115200, 128000, 384000, 2048000, or 4096000.
Description
Use the virtualbaudrate command to set a virtual baudrate for the DTE interface.
Use the undo virtualbaudrate command to cancel the specified virtual baudrate.
When working as DTE, the serial interface determines its baudrate through
negotiation with the DCE side. The virtualbaudrate command, however, allows you
to configure DTE-side baudrate manually, but the configured value must be the same
as the one set at the DCE side.
To validate the configured baudrate value for routing, execute the shutdown
command and then the undo shutdown command on the interface.
Note:
z Configure the baudrate command at DCE side and the virtualbaudrate
command at DTE side (only when the interface is operating in synchronous mode).
Avoid configuring the two commands at the same end of a link.
z At DCE side, you can use the display interface command to view the baudrate of
the interface; at the DTE end, you can use the display interface command to view
the virtual baudrate of the interface, if it is configured.
4-14
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
Example
Syntax
View
Parameter
Description
Use the cable command to set the cable length matching the CE1/PRI interface.
Use the undo cable command to restore the default.
By default, the long parameter applies.
Example
Syntax
View
4-15
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
Parameter
set-number: The number of the channel set formed by bundling the timeslots on the
interface, in the range 0 to 30.
range: The number of the timeslots that are bundled, in the range 1 to 31. When
specifying the timeslots to be bundled to specify a single timeslot by specifying a
number, a range of timeslots by specifying a range between number1-number2, or
several discrete timeslots by specifying number1, number2-number3.
Description
Use the channel-set command to bundle some timeslots of a CE1/PRI interface into
a channel-set.
Use the undo channel-set command to remove the specified timeslot bundle.
By default, no timeslots are bundled into channel-sets.
A CE1/PRI interface in CE1/PRI mode is physically divided into 32 timeslots
numbered from 0 through 31.
In actual applications, all the timeslots except for timeslot 0 can be bundled into
multiple channel-sets and the system will automatically create a serial interface for
each set. This serial interface has the same logic features of synchronous serial
interface.
The serial interface is numbered in the form of serial interface-number :set-number.
Where, interface-number is the number of the CE1/PRI interface, and set-number is
the number of the channel-set.
Only one timeslot bundling mode can be supported on one CE1/PRI interface at a
time. In other words, this command cannot be used together with the pri-set
command.
Related command: pri-set.
Example
# Bundle the timeslots 1, 2, 5, 10 through 15, and 18 on the CE1/PRI interface into
channel-set 0.
[H3C-E1 3/0/0] channel-set 0 timeslot-list 1,2,5,10-15,18
# Make the same configuration on the CE1/PRI interface on the remote router.
[H3C-E1 3/0/0] channel-set 0 timeslot-list 1,2,5,10-15,18
Syntax
4-16
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
View
Parameter
Description
Use the clock command to set the clock mode on a CE1/PRI interface.
Use the undo clock command to restore the default clock mode on the interface.
By default, the CE1/PRI interface adopts the line clock mode (slave).
When a CE1/PRI interface is working as DCE, chose the internal clock for it, that is,
master clock mode. When it is working as DTE, chose the line clock, that is, slave
clock mode for it.
Example
# Set the clock mode of the CE1/PRI interface to internal clock (master) mode.
[H3C-E1 3/0/0] clock master
Syntax
View
Parameter
Description
Use the code command to set the line code format for a CE1/PRI interface.
Use the undo code command to restore the default line code format of the interface.
The line code format of CE1/PRI interface defaults to hdb3.
You should keep the line code format of the interface in consistency with that used by
the remote device.
4-17
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
Example
4.2.5 controller e1
Syntax
controller e1 number
View
System view
Parameter
Description
Example
4.2.6 crc
Syntax
crc { 16 | 32 | none}
undo crc
View
Parameter
Description
Use the crc command to configure CRC mode of the serial interface formed by CE1.
Use the undo crc command to restore the default configuration.
4-18
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
Example
# Apply 32-bit CRC to the serial interface formed by the interface E1 2/0/0 in fractional
mode.
[H3C-Serial2/0/0:0] crc 32
Syntax
detect-ais
undo detect-ais
View
Parameter
None
Description
Use the detect-ais command to enable alarm indication signal (AIS) detect on the
CE1/PRI interface.
Use the undo detect-ais command to disable AIS detect on the CE1/PRI interface.
By default, AIS detect is enabled on the CE1/PRI interface.
Before enabling or disabling AIS detect for a CE1/PRI interface, you must configure
the interface to operate in E1 mode with the using e1 command.
Example
Syntax
View
Any view
4-19
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
Parameter
Description
Example
Field Description
E1 1/0/0 current state :DOWN Current state of the E1 interface
Description : E1 1/0/0 Interface Description about the E1 interface
Operating mode of the E1 interface: E1
Work mode
or CE1
Cable type Cable type of the E1 interface
4-20
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
Field Description
Frame format configured on the E1
Frame-format
interface: CRC4 or no-CRC4
Line Code Line code: AMI or HDB3
Source clock used by the interface:
Source Clock
master or slave
Idle Code Idle code: 7e or ff
Itf type Type of interframe filling tag: 7e or ff
Itf number Number of interframe filling tags
Loopback Loopback setting on the interface
Alarm State Alarm state
Historical Statistics Historical statistics for the E1 interface
Data in current interval (10 seconds
elapsed):
10 Loss Frame Alignment Secs, 0 In the current interval, duration that each
Framing Error Secs, type of errors lasts. These errors include
loss of frame alignment, frame error,
0 CRC Error Secs, 0 Alarm Indication alarm, loss of signals, code violation,
Secs, 10 Loss-of-signals Secs, frame slip, and E-bit error.
0 Code Violations Secs, 1 Slip Secs, 0
E-Bit error Secs.
Syntax
View
System view
Parameter
Description
Use the error-diffusion restraint config command to set the three parameters for
error diffusion restraint function.
4-21
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
Use the undo error-diffusion restraint enable command to restore the three
parameters set for error diffusion restraint function to the default value.
By default, the value of detect-timer is 30 seconds, renew-timer is 600 seconds and
threshold is 20%.
The value of renew-timer cannot be 4 times less than that of detect-timer. If the total
number of packets received in detect-timer time is less than 100, no error will be
counted.
Example
# Configure detect timer for error diffusion restraint to 100 seconds and restore the
timer to 2400 seconds, error threshold to 15%.
[H3C] error-diffusion restraint cofing 100 2400 15
Syntax
View
System view
Parameter
None
Description
Example
Syntax
4-22
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
undo frame-format
View
Parameter
Description
Use the frame-format command to set the frame format on the CE1 interface.
Use the undo frame-format command to restore the default, or no-crc4.
A CE1/PRI interface in CE1 mode supports both CRC4 and no-CRC4 frame formats.
Among them, CRC4 supports four-bit cyclic redundancy check (CRC) on physical
frames whereas no-CRC4 does not.
Example
Syntax
idlecode { 7e | ff }
undo idlecode
View
Parameter
Description
Use the idlecode command to set the line idle code on the CE1/PRI interface. Two
types of line idle code are available: 0x7e and 0xff.
Use the undo idlecode command to restore the default, or 0x7e.
The line idle code is sent in the timeslots that are not bundled into the logical channels
on the interface.
4-23
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
Example
Syntax
View
Parameter
information-element Description
connectnum Connect number
4-24
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
information-element Description
datetime Date and time
display display
facility Facility
hlc High-layer compatibility
Description
Example
Syntax
itf type { 7e | ff }
itf number number
undo itf { type | number }
View
Parameter
type { 7e | ff }: Sets the type of interframe filling tag to 0x7e by specifying the 7e
argument or to 0xff by specifying the ff keyword. On the CE1/PRI interface, the default
type of interframe filling tag is 0x7e.
4-25
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
number number: Sets the number of interframe filling tags. It ranges from 0 to 14
bytes and defaults to 4 bytes.
Description
Use the itf command to set the type of and the number of interframe filling tags on the
CE1/PRI interface. Two types of interframe filling tag are available: 0x7e and 0xff.
Use the undo itf command to restore the default.
Interframe filling tags are sent when no service data is sent on the timeslots bundled
into logical channels on the CE1/PRI interface.
On the CE1/PRI interface, the default type of interframe filling tag is 0x7e and the
default number of interframe filling tags is four.
Example
# Set the type of interframe filling tag to 0xff on CE1/PRI interface 3/0/0.
[H3C-E1 3/0/0] itf type ff
# On CE1/PRI interface 3/0/0 set the number of interframe filling tags to five.
[H3C-E1 3/0/0] itf number 5
Syntax
View
Parameter
Description
4-26
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
You can bundle timeslots on the CE1/PRI interface to form a serial interface and
encapsulate it with PPP. After you enable loopback on this serial interface, it is normal
that the state of the link layer protocol is reported down.
Example
Syntax
View
Parameter
range: Number of the timeslots in the bundle. It is in the range 1 to 31. When
specifying the timeslots to be bundled, you can configure a single timeslot using the
form of number, or a range of timeslots using the form of number1-number2, or
multiple discrete timeslots using the form of number1, number2-number3.
Description
Use the pri-set command to have timeslots on the CE1/PRI interface form a pri-set.
Use the undo pri-set command to remove the bundle.
By default, no pri-set is created.
When creating a pri-set on a CE1/PRI interface, note that timeslot 16 is D channel for
transmitting signaling; it cannot form a bundle that includes itself only. The attempt to
bundle only timeslot 16 will fail.
In a pri-set formed by timeslot bundling on a CE1/PRI interface, timeslot 0 is used for
frame synchronization control (FSC), timeslot 16 as a D channel for signaling
transmission, and other timeslots as B channels for data transmission. You may
bundle the timeslots except for timeslot 0 into a pri-set (as the D channel, timeslot 16
is automatically bundled). The logic features of this pri-set will be the same like those
of an ISDN PRI interface. If no timeslot is specified, all timeslots except for timeslot 0
are bundled into an interface similar to an ISDN PRI interface in the form of 30B+D.
The system automatically creates a serial interface after timeslot bundling on the
interface. This serial interface has the same logic features of ISDN PRI interface. The
serial interface is numbered in the form of serial number:15, where number is the
number of the CE1/PRI interface where the serial interface is created.
4-27
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
Only one timeslot bundling mode is supported on one CE1/PRI interface at a time. In
other words, you cannot use this command and the channel-set command together.
Related command: channel-set.
Example
Syntax
View
User view
Parameter
Description
Use the reset counters controller e1 command to clear the controller counter for the
CE1/PRI interface.
To display the value of the controller counter, use the display controller e1
command.
Example
Syntax
using { ce1 | e1 }
undo using
View
Parameter
4-28
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
Description
Use the using command to configure the operating mode of the CE1/PRI interface.
Use the undo using command to restore the default or CE1/PRI mode.
A CE1/PRI interface can work in either E1 mode (non-channelized mode) or CE1/PRI
mode (channelized mode).
A CE1/PRI interface in E1 mode equals a 2 Mbps interface without timeslot division.
Its logic features are the same like those of a synchronous serial interface. When
working in CE1/PRI mode, it is physically divided into 32 timeslots numbered from 0 to
31. Among them, timeslot 0 is used for transmitting the FSC information. This
interface can work as either a CE1 interface or a PRI interface.
After the CE1/PRI interface is enabled to work in E1 mode by using the using e1
command, the system automatically creates a serial interface numbered serial
interface-number:0, where interface-number is the number of the CE1/PRI interface.
Example
Syntax
View
Parameter
los: Sets a loss of signal (LOS) alarm threshold. Two LOS alarm thresholds are
available: pulse-detection for the pulse detection duration threshold with LOS and
pulse-recovery for the pulse threshold with LOS.
The threshold of pulse-detection ranges from 16 to 4,096 pulse intervals and defaults
to 176.
4-29
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
Description
Use the alarm-threshold command to configure the alarm thresholds on the CT1/PRI
interface as needed.
Use the undo alarm-threshold command to restore the default alarm threshold
values.
Example
# Set the number of detection intervals to 300 for the pulse detection duration
threshold.
[H3C-T1 1/0/0] alarm-threshold los pulse-detection 300
Syntax
View
Parameter
pattern: Sets a bit error rate test (BERT) pattern, which could be 2^15 or 2^20.
4-30
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
2^15: Two to the fifteenth power, length of the transmitted BERT pattern in bits.
2^20: Two to the twentieth power, length of the transmitted BERT pattern in bits.
time minutes: Sets the duration of a BERT test, in the range 1 to 1440 minutes.
unframed: The test pattern covers the overhead bits of the frame.
Description
Use the bert command to start a BERT test on the CT1/PRI interface.
Use the undo bert command to stop the BERT test running on the CT1/PRI interface.
ITU O.151, ITU O.153, and ANSI T1.403-1999 define many BERT patterns, among
which, the CT1/PRI interface supports only 2^15 and 2^20 at present.
When running a BERT test, the local end sends out a pattern, which is to be looped
over somewhere on the line and back to the local end. The local end then checks the
received pattern for the bit error rate, and by so doing helps you determine whether
the condition of the line is good. To this end, you must configure loopback to allow the
transmitted pattern to loop back from somewhere on the line, for example, from the
far-end interface by placing the interface in far-end loopback.
You may view the state and result of the BERT test with the display controller t1
command.
Example
Syntax
cable { long { 0db | -7.5db | -15db | -22.5db } | short { 133ft | 266ft | 399ft | 533ft |
655ft } }
undo cable
View
Parameter
long: Matches a 655-feet and longer transmission line. The options for this parameter
include 0db, -7.5db, -15db and -22.5db. The attenuation parameter is selected
depending on the signal quality received at the receiving end. In this case, no external
CSU is needed.
4-31
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
short: Matches a transmission cable under 655 feet. The options for this parameter
include 133ft, 266ft, 399ft, 533ft and 655ft. The length parameter is selected
depending on the actual transmission segment.
Description
Use the cable command to set cable attenuation and length on a CT1/PRI interface to
match the distance of the transmission line.
Use the undo cable command to restore the default or long 0db.
You can use this command to configure the signal waveform for transmission to
accommodate different needs. Whether to use this command depends on the quality
of the signal received by the receiver. If the signal quality is relatively good, you can
use the default setting, where the CT1/PRI interface does not need an external CSU
device.
Example
# Set the transmission cable that the CT1/PRI interface matches to 133 feet.
[H3C-T1 1/0/0] cable short 133ft
Syntax
View
Parameter
4-32
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
Description
Use the channel-set command to bundle timeslots on the CT1/PRI interface into a
channel-set.
Use the undo channel-set command to remove the specified channel-set.
By default, no timeslots are bundled into channel-sets.
A CT1/PRI interface is physically divided into 24 timeslots numbered from 1 through
24. In actual applications, all the timeslots can be bundled into multiple channel-sets
and for each of them, the system automatically creates a serial interface. This serial
interface has the same logic features of synchronous serial interfaces.
The serial interface is numbered in the form of serial interface-number:set-number,
where interface-number starts from the maximum serial interface number plus 1, and
set-number is the number of the channel-set.
Only one timeslot bundling mode is supported on a CT1/PRI interface at a time. In
other words, you cannot use this command together with the pri-set command.
Related command: pri-set.
Example
Syntax
View
Parameter
Description
4-33
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
Example
Syntax
View
Parameter
Description
Use the code command to set the line code format on the CT1/PRI interface.
Use the undo code command to restore the default or b8zs.
You should keep the line code format of the interface in consistency with the one used
by the remote device.
Example
4.3.7 controller t1
Syntax
controller t1 number
View
System view
Parameter
Description
4-34
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
Example
4.3.8 crc
Syntax
crc { 16 | 32 | none}
undo crc
View
Parameter
Description
Use the crc command to configure CRC mode of the serial interface formed by CT1.
Use the undo crc command to restore the default configuration.
By default, 16-bit CRC is adopted.
Related command: channel-set.
Example
# Apply 32-bit CRC to the serial interface formed by the interface T1 2/0/0 in fractional
mode.
[H3C-Serial2/0/0:0] crc 32
Syntax
View
4-35
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
Parameter
Description
Use the data-coding normal command to disable user data inversion on the
CT1/PRI interface.
Use the data-coding inverted command to enable user data inversion on the
CT1/PRI interface.
Use the undo data-coding command to restore the default.
By default, data inversion is disabled.
To prevent 7e in valid data from being taken for stuffing characters, HDLC inserts a
zero after every five ones in the data stream. Then, HDLC inverts every one bit into a
zero and every zero bit into a one. This ensures at least at least one out of every eight
bits is a one. When AMI encoding is adopted on a T1 interface, the use of data
inversion can eliminate presence of multiple consecutive zeros.
At the two ends of a T1-F line, the same data inversion setting must be adopted.
Example
Syntax
View
Any view
Parameter
Description
Use the display controller t1 command to display the information about the specified
CT1/PRI interface.
This command displays the following information about the specified interface:
z Physical state
z Cable type
4-36
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
z Clock mode
z Line code format
z Loopback mode
z Line idle code
z Interframe filling tag
z Alarm states
z Error statistics gathered at 15-minute intervals during the last 24 hours
Example
4-37
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
Field Description
Physical state of the interface: up or
T1 1/0/0 current state :DOWN
down
Description : T1 1/0/0 Interface Description about the T1 interface
4-38
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
Field Description
Type of the transmitted alarm: RAI, or
Transmitter is sending remote alarm.
none
The detected pulse density is
Pulse density violation detected
incompliant with the specification
SendLoopCode History:
inband-llb-up:0 times, History of loopback code sending to the
inband-llb-down:0 times. far-end, including the number of
fdl-ansi-llb-up:0 times, transmissions for each type of code, and
fdl-ansi-llb-down:0 times. the type of the last sent code. (See the
sendloopcode command.)
fdl-ansi-plb-up:0 times,
fdl-ansi-plb-down:0 times
BERT state: completed, stopped (not
BERT state:(stopped, not completed)
completed), or running.
4-39
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
Field Description
Data in Interval 1:
0 Line Code Violations, 0 Path Code
Violations
Statistics spanning the first interval.
0 Ais Alarm Secs, 901 Los Alarm
Secs The statistical items are the same as
those provided by the statistics spanning
22 Slip Secs, 901 Fr Loss Secs, 0 the current interval.
Line Err Secs, 0 Degraded Mins
0 Errored Secs, 0 Bursty Err Secs, 0
Severely Err Secs, 901 Unavail Secs
Data in Interval 2:
0 Line Code Violations, 0 Path Code
Violations
Statistics spanning the second interval.
0 Ais Alarm Secs, 900 Los Alarm
Secs The statistical items are the same as
those provided by the statistics spanning
23 Slip Secs, 900 Fr Loss Secs, 0 the current interval.
Line Err Secs, 0 Degraded Mins
0 Errored Secs, 0 Bursty Err Secs, 0
Severely Err Secs, 900 Unavail Secs
Total Data (last 2 15 minute intervals):
0 Line Code Violations, 0 Path Code
Violations
Statistics spanning the last two intervals.
0 Ais Alarm Secs, 2087 Los Alarm
Secs The statistical items are the same as
those provided by the statistics spanning
52 Slip Secs, 2087 Fr Loss Secs, 0 the current interval.
Line Err Secs, 0 Degraded Mins
0 Errored Secs, 0 Bursty Err Secs, 0
Severely Err Secs, 2087 Unavail Secs
4.3.11 fdl
Syntax
View
Parameter
4-40
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
Description
Use the fdl command to set the behavior of the CT1/PRI interface on the FDL in ESF
framing.
Use the undo fdl command to restore the default.
FDL is an embedded 4 kbps overhead channel within the ESF format for transmitting
performance statistics or loopback code.
By default, FDL is disabled. You can however change the setting depending on the
setting at the far end.
Example
Syntax
frame-format { sf | esf }
undo frame-format
View
Parameter
Description
Use the frame-format command to set the frame format on the CT1/PRI interface.
Use the undo frame-format command to restore to the default or esf.
A CT1/PRI interface supports two frame formats, that is, SF and ESF. In SF format,
multiple frames can share the same FSC and signaling information, so that more
significant bits are available for transmitting user data. The use of ESF allows you to
test the system without affecting the ongoing service.
Example
4-41
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
Syntax
idlecode { 7e | ff }
undo idlecode
View
Parameter
Description
Use the idlecode command to set the line idle code on the CT1/PRI interface. Two
types of line idle code are available: 0x7e and 0xff.
Use the undo idlecode command to restore the default, 0x7e.
The line idle code is sent in the timeslots that are not bundled into the logical channels
on the interface.
Example
Syntax
View
Parameter
4-42
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
information-element Description
connectnum Connect number
connectsub Connect subnet address
datetime Date and time
display Display
facility Facility
hlc High-layer compatibility
keypad Keyboard facility
llc Lower-layer compatibility
notification Notification
progress Progress
datetime Date and time
display display
facility Facility
hlc High-layer compatibility
Description
Example
4-43
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
<H3C> system-view
[H3C] interface serial 0/0/0:15
[H3C-Serial0/0/0:15] isdn ie passthrough facility both
Syntax
itf type { 7e | ff }
itf number number
undo itf { type | number }
View
Parameter
type { 7e | ff }: Sets the type of interframe filling tag to 0x7e by specifying the 7e
argument or to 0xff by specifying the ff keyword. On the CE1/PRI interface, the default
type of interframe filling tag is 0x7e.
number number: Sets the number of interframe filling tags. It ranges from 0 to 14
bytes and defaults to 4 bytes.
Description
Use the itf command to set the type of and the number of interframe filling tags on the
CT1/PRI interface. Two types of interframe filling tag are available: 0x7e and 0xff.
Use the undo itf command to restore the default.
Interframe filling tags are sent when no service data is sent on the timeslots bundled
into logical channels on the CT1/PRI interface.
On the CT1/PRI interface, the default type of interframe filling tag is 0x7e and the
default number of interframe filling tags is four.
Example
# Set the type of interframe filling tag to 0xff on CT1/PRI interface 3/0/0.
[H3C-T1 3/0/0] itf type ff
# On CE1/PRI interface 3/0/0 set the number of interframe filling tags to five.
[H3C-T1 3/0/0] itf number 5
Syntax
4-44
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
undo loopback
View
Parameter
Description
Use the loopback command to enable a CT1/PRI interface to perform local, remote,
or external payload loopback.
Use the undo loopback command to disable the CT1/PRI interface to perform
loopback.
By default, the interface is disabled to perform loopback in any form.
You can use loopback to check the condition of interfaces or cables. When they are
operating normally, disable this function.
You can bundle timeslots on the CT1/PRI interface to form a serial interface and
encapsulate it with PPP. After you enable loopback on this serial interface, it is normal
that the state of the link layer protocol is reported down.
Example
Syntax
View
Parameter
range: The number of the timeslots that are bundled, which is in the range 1 to 24.
When specifying the timeslots to be bundled, you can specify one timeslot by
specifying its number, a timeslot range by specifying a range in the form
4-45
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
Description
Use the pri-set command to bundle the timeslots of the CT1/PRI interface into a
pri-set.
Use the undo pri-set command to remove the timeslot bundle.
By default, no timeslots are bundled into pri-sets.
When creating a pri-set on a CT1/PRI interface, note that timeslot 24 is D channel for
transmitting signaling; it cannot form a bundle that includes itself only. The attempts to
bundle only timeslot 24 will fail.
In a pri-set formed by timeslot bundling on a CT1/PRI interface, timeslot 24 is used as
D channel for signaling transmission, and other timeslots as B channels for data
transmission. You may randomly bundle these timeslots into a pri-set (as the D
channel, timeslot 24 is automatically bundled). The logic features of this pri-set will be
the same like those of an ISDN PRI interface. If no timeslot is specified, all timeslots
are bundled into an interface similar to an ISDN PRI interface in the form of 23B+D.
The system automatically creates a serial interface after timeslot bundling on the
interface. This serial interface has the same logic features of ISDN PRI interface. The
serial interface is numbered in the form of serial number:23, where number is the
number of the CT1/PRI interface where the serial interface is created.
Only one timeslot bundling mode is supported on a CT1/PRI interface at a time. In
other words, you cannot use this command and the channel-set command together.
Related command: channel-set.
Example
# Bundle the timeslots 1, 2, and 8 through 12 of the CT1/PRI interface into a pri-set.
[H3C-T1 1/0/0] pri-set timeslot-list 1,2,8-12
Syntax
View
User view
Parameter
4-46
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
Description
Use the reset counters controller t1 command to clear the controller counter for the
CT1/PRI interface.
To display the value of the controller counter, use the display controller t1
command.
Note:
The reset counters interface command could not clear the controller counters for
CE1/PRI interfaces. To do so, you must use the reset counters controller t1
command.
Example
4.3.19 sendloopcode
Syntax
View
Parameter
inband-llb-up: Sends in-band line loopback (LLB) activation request code compliant
with the ANSI or AT&T implementation. This enables remote loopback.
inband-llb-down: Sends in-band LLB deactivation request code compliant with the
ANSI or AT&T implementation. This disables loopback.
fdl-ansi-llb-up: Sends ANSI-compliant line loopback (LLB) activation request code in
the FDL. This enables remote loopback.
fdl-ansi-llb-down: Sends ANSI-compliant LLB deactivation request code in the FDL.
This disables loopback.
fdl-ansi-plb-up: Sends ANSI-compliant payload loopback (PLB) activation request
code in the FDL to enable remote loopback.
4-47
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
Description
Use the sendloopcode command to send the remote loopback control code.
By default, no remote loopback control code is sent.
You may configure loopback on the far-end CT1/PRI interface by sending the
loopback request code.
In LLB mode, all 193 bits (one synchronization bit and 192 effective bandwidth bits) in
a T1 PCM frame are looped back. In PLB mode, however, only 192 effective
bandwidth bits are looped back.
The format of loopback code can be compliant with ANSI T1.403 or AT&T TR 54016.
In SF framing, LLB code is sent using the effective bandwidth (slots 1 through 24). In
ESF framing, both LLB code and PLB code are sent/received in the FDL in ESF
frames.
This command is used in conjunction with the far-end T1 device. The far-end device
must be able to set loopback mode depending on the detected loopback code. The
sending of remote loopback control code can last five minutes without affecting the
operation of other interfaces.
You can use this command only when the far-end CT1/PRI interface can
automatically detect loopback request code from the network.
Example
Syntax
View
Any view
4-48
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
Parameter
Description
Use the display fe1 serial command to view the configuration and state about the
specified or all E1-F interfaces.
If the specified interface is a serial interface rather than an E1-F interface, the system
prompts that the serial interface is not a factional E1 interface.
Example
Table 4-6 Description on the fields of the display fe1 serial command
Field Description
Physical type Interface type (75-ohm unbalanced/120-ohm balanced)
Work mode Operating mode (frame/unframed)
Frame-format Frame format (CRC4/no-CRC4)
Line Code Line code format (AMI/HDB3)
Source Clock Clock mode (master/slave)
Alarm State Alarm information
4-49
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
Syntax
View
Parameter
Description
Use the fe1 clock command to configure clocking on the E1-F interface.
Use the undo fe1 clock command to restore the default or slave, the line clock.
When the E1-F interface works as DCE, internal clock (master) must be used. If the
interface works as DTE, however, line clock (slave) must be used.
Example
Syntax
View
Parameter
Description
Use the fe1 code command to configure the line code format of the E1-F interface.
Use the undo fe1 code command to restore the default or hdb3.
The line code of an interface should be set in consistency with that of the peer.
4-50
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
Example
Syntax
fe1 detect-ais
undo fe1 detect-ais
View
Parameter
None
Description
Use the fe1 detect-ais command to enable alarm indication signal (AIS) detect on the
E1-F interface.
Use the undo detect-ais command to disable AIS detect on the E1-F interface.
By default, AIS detect is enabled on the E1-F interface.
Before enabling or disabling AIS detect for an E1-F interface, you must configure the
interface to operate in unframed mode with the fe1 unframed command.
Example
Syntax
View
Parameter
crc4: Adopts CRC4 as the framing format for the E1-F interface.
no-crc4: Adopts no-CRC4 as the framing format for the E1-F interface..
4-51
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
Description
Use the fe1 frame-format command to configure the framing format of the E1-F
interface.
Use the undo fe1 frame-format command to restore the default or no-crc4.
Example
Syntax
View
Parameter
Description
Use the fe1 loopback command to place the E1-F interface in local or remote
loopback.
Use the undo fe1 loopback command to disable the local and remote loopback on
the interface.
By default, loopback is disabled.
Enable loopback only when testing state of interfaces or cables.
Example
Syntax
4-52
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
View
Parameter
range: Timeslots participating in the binding. It in the range 1 to 31. When specifying
timeslots for binding, you can specify one timeslot by specifying its number, a timeslot
range by specifying a range in the form number1-number2, or multiple discrete
timeslots by specifying number1, number2-number3.
Description
Use the fe1 timeslot-list command to bundle timeslots on the E1-F interface.
Use the undo fe1 timeslot-list command to restore the default.
By default, all the timeslots on the E1-F interface are bundled to form a 1984 kbps
interface.
Time slot bundling results in interface rate change. For example, after you bundle
timeslots 1 through 10 on the interface, the interface rate becomes 10 x 64 kbps.
When the E1-F interface is working in unframed mode, you cannot configure the fe1
timeslot-list command.
Related command: fe1 unframed.
Example
Syntax
fe1 unframed
undo fe1 unframed
View
Parameter
None
Description
Use the fe1 unframed command to configure an E1-F interface to work in unframed
mode.
4-53
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
Use the undo fe1 unframed command to configure the E1-F interface to work in
framed mode.
By default, the E1-F interface works in framed mode.
When the E1-F interface is working in unframed mode, it is a 2048 kbps interface
without timeslot division and is logically equivalent to a synchronous serial interface.
When it works in framed mode, however, it is physically divided into 32 timeslots
numbered in the range 0 to 31, and timeslot 0 is used for transmitting synchronization
information.
Related command: fe1 timeslot-list.
Example
Syntax
View
Any view
Parameter
Description
Use the display ft1 serial command to view the configuration and state of the T1-F
interface.
If the specified interface is a common serial interface rather than a T1-F interface, the
system prompts that the serial interface is not a fractional T1 interface.
Example
4-54
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
4-55
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
Table 4-7 Description on the fields of the display ft1 serial command
Field Description
Serial 1/0/0 Interface type and number
Basic Configuration Basic configuration for the interface
Operating mode: T1 framed or
Work mode
unframed)
Cable type of the interface, 100 ohm
Cable type
balanced in this example
Frame format configured on the
Frame-format
interface: ESF or SF
fdl FDL format: ANSI, ATT, or none
Line code AMI or B8ZS
Source clock used by the interface:
Source Clock
master or slave
Data-coding Normal or inverted
Idle code 7e or ff
Itf type Type of interframe filling tag: 7e or ff
Itf number Number of interframe filling tags
Loopback setting on the interface: local,
Loop back
payload, remote, or not set
Alarm State Alarm state
Type of the received alarm: none, LOS,
Receiver alarm state
LOF, RAI, or AIS
Type of the transmitted alarm: RAI, or
Transmitter is sending remote alarm.
none
The detected pulse density is
Pulse density violation detected
incompliant with the specification
SendLoopCode History:
inband-llb-up:0 times, History of loopback code sending to the
inband-llb-down:0 times. far-end, including the number of
fdl-ansi-llb-up:0 times, transmissions for each type of code, and
fdl-ansi-llb-down:0 times. the type of the last sent code. (See the
sendloopcode command.)
fdl-ansi-plb-up:0 times,
fdl-ansi-plb-down:0 times
BERT state: completed, stopped (not
BERT state:(stopped, not completed)
completed), or running.
Test pattern in use, 2^15 in this example;
Test pattern: 2^15, Status: Not Sync,
synchronization state, and the number
Sync Detected: 0
of detected synchronizations
4-56
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
Field Description
Time: 0 minute(s), Time past: 0 The duration of the BERT test and the
minute(s) time that has elapsed
Number of bit errors received since the
Bit Errors (since test started): 0 bits
start of the BERT test
Number of bits received since the start
Bits Received (since test started)
of the BERT test
Number of bit errors received since the
Bit Errors (since latest sync)
last synchronization
Number of bits received since last
Bits Received (since latest sync)
synchronization
Historical Statistics: Historical statistics
Last clearing of counters: Never Counter clearing records
Data in current interval (285 seconds
elapsed):
0 Line Code Violations, 0 Path Code Statistics spanning the current interval.
Violations The statistical items, such as AIS alarm,
LOS signal, and LFA, are provided
0 Ais Alarm Secs, 286 Los Alarm according to the T1 specifications for the
Secs physical layer.
7 Slip Secs, 286 Fr Loss Secs, 0 Line For details, refer to ANSI T1.403 and
Err Secs, 0 Degraded Mins AT&T TR 54016.
0 Errored Secs, 0 Bursty Err Secs, 0
Severely Err Secs, 286 Unavail Secs
Data in Interval 1:
0 Line Code Violations, 0 Path Code
Violations
Statistics spanning the first interval.
0 Ais Alarm Secs, 901 Los Alarm
Secs The statistical items are the same as
those provided by the statistics spanning
22 Slip Secs, 901 Fr Loss Secs, 0 the current interval.
Line Err Secs, 0 Degraded Mins
0 Errored Secs, 0 Bursty Err Secs, 0
Severely Err Secs, 901 Unavail Secs
Data in Interval 2:
0 Line Code Violations, 0 Path Code
Violations
Statistics spanning the second interval.
0 Ais Alarm Secs, 900 Los Alarm
Secs The statistical items are the same as
those provided by the statistics spanning
23 Slip Secs, 900 Fr Loss Secs, 0 the current interval.
Line Err Secs, 0 Degraded Mins
0 Errored Secs, 0 Bursty Err Secs, 0
Severely Err Secs, 900 Unavail Secs
4-57
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
Field Description
Total Data (last 2 15 minute intervals):
0 Line Code Violations, 0 Path Code
Violations
Statistics spanning the last two intervals.
0 Ais Alarm Secs, 2087 Los Alarm
Secs The statistical items are the same as
those provided by the statistics spanning
52 Slip Secs, 2087 Fr Loss Secs, 0 the current interval.
Line Err Secs, 0 Degraded Mins
0 Errored Secs, 0 Bursty Err Secs, 0
Severely Err Secs, 2087 Unavail Secs
Syntax
View
Parameter
pattern: Sets a bit error rate test (BERT) pattern, which could be 2^15 or 2^20.
2^15: Two to the fifteenth power, length of the transmitted BERT pattern in bits.
2^20: Two to the twentieth power, length of the transmitted BERT pattern in bits.
time minutes: Sets the duration of a BERT test, in the range of 1 to 1440 minutes.
unframed: The test pattern covers the overhead bits of the frame.
Description
Use the ft1 bert command to start a BERT test on the T1-F interface.
Use the undo ft1 bert command to stop the BERT test running on the T1-F interface.
ITU O.151, ITU O.153, and ANSI T1.403-1999 define many BERT patterns, among
which, the T1-F interface supports only 2^15 and 2^20 at present.
When running a BERT test, the local end sends out a pattern, which is to be looped
over somewhere on the line and back to the local end. The local end then checks the
received pattern for the bit error rate, and by so doing helps you determine whether
the condition of the line is good. To this end, you must configure loopback to allow the
transmitted pattern to loop back from somewhere on the line, for example, from the
far-end interface by placing the interface in far-end loopback.
4-58
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
You may view the state and result of the BERT test with the display ft1 serial
command.
Example
Syntax
View
Parameter
long decibel: Matches the transmission segment longer than 655 feet. The argument
decibel can take 0db, -7.5db, -15db, or -22.5db, depending on the signal quality at
the receiving end. In this case, no external CSU is required.
short length: Matches the transmission segment shorter than 655 feet. The argument
length can take 133ft, 266ft, 399ft, 533ft, or 655ft, depending on the transmission
segment.
Description
Example
# Set the transmission segment matching the T1-F interface to 133 feet.
[H3C-Serial0/0/0] ft1 cable short 133ft
4-59
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
Syntax
View
Parameter
Description
Use the ft1 clock command to configure clocking on the T1-F interface.
Use the undo ft1 clock command to restore the default or slave.
If the T1-F interface is working as DCE, use internal clock (master) for it. If the
interface is working as DTE, use line clock (slave) for it.
Example
Syntax
View
Parameter
Description
Use the ft1 code command to configure line code format for a T1-F interface.
Use the undo ft1 code command to restore the default or b8zs.
The line code of an interface should be set in consistency with that of its peer.
4-60
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
Example
Syntax
View
Parameter
Description
Use the ft1 data-coding normal command to disable user data inversion on the T1-F
interface.
Use the ft1 data-coding inverted command to enable user data inversion on the
CT1/PRI interface.
Use the undo ft1 data-coding command to restore the default.
By default, data inversion is disabled.
To prevent 7e in valid data from being taken for stuffing characters, HDLC inserts a
zero after every five ones in the data stream. Then, HDLC inverts every one bit into a
zero and every zero bit into a one. This ensures at least at least one out of every eight
bits is a one. When AMI encoding is adopted on a T1-F interface, the use of data
inversion can eliminate presence of multiple consecutive zeros.
At the two ends of a T1-F line, the same data inversion setting must be adopted.
Example
Syntax
4-61
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
View
Parameter
Description
Use the ft1 fdl command to set the behavior of the T1-F interface on the FDL in ESF
framing.
Use the undo ft1 fdl command to restore the default.
FDL is an embedded 4 kbps overhead channel within the ESF format for transmitting
performance statistics or loopback code.
By default, FDL is disabled. You can however change the setting depending on the
setting at the far end.
Example
Syntax
View
Parameter
Description
Use the ft1 loopback command to place the T1-F interface in local or remote
loopback.
Use the undo ft1 loopback command to disable loopback on the interface.
4-62
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
Example
Syntax
View
Parameter
Description
Use the ft1 timeslot-list command to bundle timeslots on the T1-F interface.
Use the undo ft1 timeslot-list command to restore the default.
By default, all the timeslots on the T1-F interface are bundled to form a 1536 kbps
interface.
Time slot bundling results in interface rate change. For example, after you bundle
timeslots 1 through 10 on the interface, the interface rate becomes 10 x 64 kbps or 10
x 56 kbps.
4-63
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
Note:
When binding T1-F interface with Virtual-template, if you want to use the ft1
timeslot-list command to modify T1-F interface time-slot bundling, shutdown the
corresponding T1-F interface and execute the ft1 timeslot-list command. Note that
you should perform the above modification on the two T1-F interfaces on both end of
the link and then execute the undo shutdown command to T1-F interface; otherwise,
when you execute the display interface virtual-template command, the displayed
baudrate for virtual-template interface could be incorrect.
Example
Syntax
View
Parameter
los: Sets a loss of signal (LOS) alarm threshold. Two LOS alarm thresholds are
available: pulse-detection for the pulse detection duration threshold with LOS and
pulse-recovery for the pulse threshold with LOS.
The threshold of pulse-detection ranges from 16 to 4,096 pulse intervals and defaults
to 176.
The threshold of pulse-recovery ranges from 1 to 256 and defaults to 22.
If the number of the pulses detected during the total length of the specified pulse
detection intervals is smaller than the pulse-recovery threshold, a LOS alarm occurs.
ais: Sets the alarm threshold of alarm indication signal (AIS). Two AIS alarm threshold
options are available: level-1 and level-2. If level-1 is specified, an AIS alarm occurs
when the number of 0s in the bit stream of an SF or ESF frame is less than or equal to
4-64
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
2. If level-2 is specified, an AIS alarm occurs when the number of 0s is less than or
equal to 3 in the bit stream of an SF frame or less than or equal to 5 in the bit stream
of an ESF frame.
By default, level-1 AIS alarm threshold applies.
lfa: Sets the loss of frame align (LFA) alarm threshold. Four threshold options are
available: level-1, level-2, level-3, and level-4. If level-1 is specified, an LFA alarm
occurs when two of four frame alignment bits are lost. If level-2 is specified, an LFA
alarm occurs when two of five frame alignment bits are lost. If level-3 is specified, an
LFA alarm occurs when two of six frame alignment bits are lost. Level-4 applies only to
ESF frames; an LFA alarm occurs when four consecutive ESF frames have errors.
By default, level-1 LFA alarm threshold applies.
Description
Use the alarm-threshold command to configure the alarm thresholds on the T1-F
interface as needed.
Use the undo alarm-threshold command to restore the default alarm threshold
values.
Example
# Set the number of detection intervals to 300 for the pulse detection duration
threshold.
[H3C-Serial0/0/0] ft1 alarm-threshold los pulse-detection 300
Syntax
View
Parameter
inband-llb-up: Sends in-band line loopback (LLB) activation request code compliant
with the ANSI or AT&T implementation. This enables remote loopback.
inband-llb-down: Sends in-band LLB deactivation request code compliant with the
ANSI or AT&T implementation. This disables loopback.
fdl-ansi-llb-up: Sends ANSI-compliant line loopback (LLB) activation request code in
the FDL. This enables remote loopback.
4-65
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
Description
Example
Syntax
4-66
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
View
Parameter
pattern: Sets BERT test mode, including 2^7, 2^11, 2^15 and QRSS.
2^7: Specifies length of the stream to be sent to 27 bits.
2^11: Specifies length of the stream to be sent to 211 bits.
2^15: Specifies length of the stream to be sent to 215 bits.
qrss: Specifies length of the stream to be sent to 220 bits and no more than 14
contiguous zeros can be included in the stream.
time minutes: Sets duration time of BERT test, ranging from 1 to 1440 in minutes.
unframed: Sets filling frame overhead bit for test stream.
Description
Note:
The bert command is only supported by 2CE3 interface on FIC and MIM.
Example
# Perform the BERT test in QRSS mode on CE3 interface 1/0/0 for 10 minutes.
4-67
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
<H3C> system-view
[H3C] interface e3 1/0/0
[H3C-E3 1/0/0] bert pattern qrss time 10
Syntax
View
Parameter
Description
Use the clock command to set the clock mode on the CE3 interface.
Use the undo clock command to restore the default or slave.
The clock is selected depending on the connected remote device. If it is a
transmission device, the local end uses line clock.
If the CE3 interfaces on the two routers are directly connected, one router should use
internal clock whereas the other router uses line clock.
Example
4.6.3 controller e3
Syntax
controller e3 interface-number
View
System view
Parameter
4-68
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
Description
Example
4.6.4 crc
Syntax
crc { 16 | 32 | none }
undo crc
View
Parameter
Description
Use the crc command to configure CRC mode of the serial interface formed by CE3.
Use the undo crc command to restore the default or 16-bit CRC.
Related command: e1 channel-set, e1 unframed, using.
Example
# Apply 32-bit CRC to the serial interface formed by the interface E3 2/0/0 in fractional
mode.
[H3C-Serial2/0/0:0] crc 32
Syntax
View
Any view
4-69
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
Parameter
Description
Use the display controller e3 command to view state information on a CE3 interface.
In addition to the state information of the CE3 interface, the command can display the
information about each E1 line on the CE3 interface if the interface is working in CE3
mode.
Example
4-70
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
Field Description
Physical state of the E3 interface, which is up
E3 1/0/0 is up
in this example
Description : E3 1/0/0 Interface Description about the interface
4.6.6 e1 bert
Syntax
e1 line-number bert pattern { 2^11 | 2^15 | 2^20 | 2^23 | qrss } time minutes
[ unframed ]
undo e1 line-number bert
4-71
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
View
Parameter
Description
Use the e1 bert command to test line bit error rate on CE3 interface.
Use the undo e1 bert command to delete the test.
Various BERT test modes are defined in ITU O.151, ITU O.153 and ANSI
T1.403-1999. Currently, 2CE3 interface supports the test modes as 2^7, 2^11, 2^15
and QRSS.
In BERT test mode, the local end sends a test data stream to a specific node and the
node returns the data stream back. The local end then detects the link state by
checking the line bit error rate and whether the test stream received is consistent with
the stream sent. Therefore, the BERT test requires a certain node to return the data
stream sent, for example to set the remote end to remote loopback.
You can view BERT test state and result in interface state after you configure test
mode and specify test lifetime with the bert command and start the test.
You can use the display controller e3 command to view test state and result after
executing the bert command.
By default, no bert test is performed.
Example
# Perform the BERT test in QRSS mode on the E1 line for 10 minutes.
[H3C-E3 1/0/0] e1 1 bert pattern qrss time 10
4-72
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
4.6.7 e1 channel-set
Syntax
View
Parameter
Description
Example
# Bundle a 128 kbps serial interface on the first E1 line on the interface E3 1/0/0.
[H3C-E3 1/0/0] e1 1 channel-set 1 timeslot-list 1,2
Syntax
4-73
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
View
Parameter
Description
Use the e1 set clock command to set clocking of an E1 line on the CE3 interface.
Use the undo e1 clock command to restore the default or line clock.
When the CE3 interface is working in channelized mode, you can set separate clock
for each E1 line on it.
Note:
A CE3 interface uses the line clock (slave mode) as its clock source by default. If
interfaces on both sides of the line work in slave mode, the CE3 interfaces cannot
work well due to asynchronous clock. You are recommended to configure the
interface on one side of the line to work in the internal clock (master) mode.
Example
# Configure the first E1 line on the E3 interface to adopt line clock mode.
[H3C-E3 1/0/0] e1 1 set clock slave
Syntax
View
Parameter
4-74
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
Description
Use the e1 set frame-format command to configure the frame format on an E1 line.
Use the undo e1 set frame-format command to restore the default or no-crc4.
You can configure this command only when the specified E1 line is working in framed
format (which can be set using the undo e1 unframed command).
Related command: e1 unframed.
Example
# Configure the first E1 line on the E3 interface to adopt the frame format CRC4.
[H3C-E3 1/0/0] e1 1 set frame-format crc4
Syntax
View
Parameter
Description
Use the e1 set loopback command to set the loopback mode of the specified E1 line
on the E3 interface.
Use the undo e1 set loopback command to disable loopback on the E1 line.
By default, loopback is disabled on E1 lines.
If an E1 line encapsulated with PPP is placed in a loopback, it is normal that the state
of the link layer protocol is reported down.
Example
# Set the loopback mode of the first E1 line on the E3 interface to local.
4-75
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
4.6.11 e1 shutdown
Syntax
e1 line-number shutdown
undo e1 line-number shutdown
View
Parameter
Description
Use the e1 shutdown command to shut down an E1 line on the CE3 interface.
Use the undo e1 shutdown command to enable the E1 line.
By default, E1 lines are enabled.
This command affects not only the specified E1 line but also the serial interfaces
formed by E1 line bundling. Executing the e1 shutdown command on the specified
E1 line shuts down all these serial interfaces. Data transmission and receiving stop as
a result. Likewise, executing the undo e1 shutdown command will restart all these
serial interfaces.
Example
4.6.12 e1 unframed
Syntax
e1 line-number unframed
undo e1 line-number unframed
View
Parameter
4-76
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
Description
Example
Syntax
View
Parameter
Description
Use the loopback command to configure the loopback mode of a CE3 interface.
Use the undo loopback command to disable the CE3 interface to perform loopback.
By default, loopback is disabled on the CE3 interface.
4-77
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
It is necessary for you to enable the CE3 interface to perform loopback only for testing
some special functions.
If a CE3 interface encapsulated with PPP is placed in a loopback, it is normal that the
state of the link layer protocol is reported down.
Example
4.6.14 national-bit
Syntax
national-bit { 0 | 1 }
undo national-bit
View
Parameter
Description
Use the national-bit command to configure national bit on the CE3 interface.
Use the undo national-bit command to restore the default or 1.
You need to set the national bit to 0 on an E3 interface only in some special
circumstances.
Related command: controller e3.
Example
Syntax
using { e3 | ce3 }
undo using
4-78
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
View
Parameter
Description
Use the using command to configure the operating mode of a CE3 interface. Use the
undo using command to restore the default setting.
By default, the CE3 interface is working in channelized mode.
Only when the CE3 interface is working in channelized mode can you configure the
E1 lines on it.
When the CE3 interface is working in unchannelized mode, the system automatically
creates a serial interface numbered serial number / 0:0 for it. This interface operates
at 34.368 Mbps and has the same logic features of a synchronous serial interface on
which you can make other configurations.
Related command: controller e3.
Example
Syntax
View
Parameter
4-79
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
Description
Use the alarm command to enable the CT3 interface to detect/send alarm signals.
Use the undo alarm command to cancel the alarm signal detection/sending setting.
At the startup of the router, periodical alarm signal detection is enabled on the CT3
interface. When detecting LOS, LOF, or AIS signals, the interface sends RAI signals
to its peer. Alarm state report for the interface is real time; you may view that by
executing the display controller t3 command.
The supported alarm signals, LOS, LOF, AIS, RAI, FEBE, and idle, are ANSI
T1.107-1995 compliant.
You can only configure the CT3 interface to send a type of alarm signal. To have the
interface send another type of signal, use the undo alarm command to delete the
previous setting first. In addition, when the RAI signal generated upon detection of the
LOS, LOF, or AIS signal is present, the CT3 interface cannot send another type of
signal. To do that, use the undo alarm detect command to disable the CT3 interface
to send the RAI signal generated after detecting an alarm first.
For description on alarm sending and receiving states for the CT3 interface, refer to
the display controller t3 command.
Example
Syntax
View
4-80
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
Parameter
pattern: Sets a bit error rate test (BERT) pattern, which could be 2^7, 2^11, 2^15, or
QRSS.
2^7: Two to the seventh power, length of the transmitted BERT pattern in bits.
2^11: Two to eleventh power, length of the transmitted BERT pattern in bits.
2^15: Two to the fifteenth power, length of the transmitted BERT pattern in bits.
qrss: Two to the twentieth power, length of the transmitted BERT pattern in bits. In this
pattern, the presence of 14 consecutive zeros is not allowed.
time number: Sets the duration of a BERT test, in the range of 1 to 1440 minutes.
unframed: The test pattern covers the overhead bits of the frame.
Description
Use the bert command to start a BERT test on the CT3 interface.
Use the undo bert command to stop the BERT test running on the CT3 interface.
ITU O.151, ITU O.153, and ANSI T1.403-1999 define many BERT patterns, among
which, the CT3 interface supports only 2^7, 2^11, 2^15, and QRSS at present.
When running a BERT test, the local end sends out a pattern, which is to be looped
over somewhere on the line and back to the local end. The local end then checks the
received pattern for the bit error rate, and by so doing helps you determine whether
the condition of the line is good. To this end, you must configure loopback to allow the
transmitted pattern to loop back from somewhere on the line, for example, from the
far-end interface by placing the interface in far-end loopback.
You may view the state and result of the BERT test with the display controller t3
command.
Example
Syntax
cable feet
4-81
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
undo cable
View
Parameter
Description
Use the cable command to configure the length of the cable with which a CT3
interface is connected.
Use the undo cable command to restore the default length of the cable with which the
CT3 interface is connected.
The parameter feet defaults to 49.
The length of the cable for CT3 interface connection refers to the distance between
the router and the cable distribution rack.
Example
Syntax
View
Parameter
Description
Use the clock command to set the clock mode on the CT3 interface.
Use the undo clock command to restore the default clock mode or slave.
The clock is selected depending on the connected remote device. If it is a
transmission device, the local end uses line clock.
4-82
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
If the CT3 interfaces on the two routers are directly connected, one router should use
the internal clock whereas the other router uses the line clock.
Example
4.7.5 controller t3
Syntax
controller t3 interface-number
View
System view
Parameter
Description
Example
4.7.6 crc
Syntax
crc { 16 | 32 | none }
undo crc
View
Parameter
4-83
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
Description
Use the crc command to configure CRC mode of the serial interface formed by CT3.
Use the undo crc command to restore the default or 16-bit CRC.
Related command: t1 channel-set, t1 unframed, using.
Example
# Apply 32-bit CRC to the serial interface formed by the interface T3 1/0/0 in fractional
mode.
[H3C-Serial1/0/0:0] crc 32
Syntax
feac detect
feac generate loopback { ds3-line | ds3-payload }
feac generate { ds3-los | ds3-ais | ds3-oof | ds3-idle | ds3-eqptfail }
undo feac detect
undo feac generate loopback { ds3-line | ds3-payload }
undo feac generate { ds3-los | ds3-ais | ds3-oof | ds3-idle | ds3-eqptfail }
View
Parameter
detect: Enables periodical far end and control signal (FEAC) channel signal detection.
By default, periodical FEAC channel signal detection is enabled.
loopback: Sends loopback code for activating far-end line loopback with the ds3-line
keyword or payload loopback with the ds3-payload keyword. By default, loopback
code sending is disabled.
generate: Sends FEAC signals. Specify ds3-los for DS3 LOS, ds3-ais for DS3 AIS,
ds3-oof for DS3 out of frame (OOF), ds3-idle for DS3 idle, and ds3-eqptfail for DS3
equipment failure. By default, FEAC signal sending is disabled.
Description
Use the feac command to enable FEAC channel signal detection and sending on the
CT3 interface.
Use the undo feac command to remove the current FEAC settings.
4-84
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
FEAC is a channel formed by using the third C-bit in the first subframe in C-bit framing.
It is used to transmit alarm state signals for line test purpose or to transmit loopback
control code for activating or deactivating far-end loopback during a loopback test.
According to ANSI T1.107a, the frame format used by FEAC channels is bit oriented
protocol (BOP).
At the startup of your router, FEAC channel signal detection is enabled on the CT3
interface with FEAC signal sending disabled.
After far-end loopback is enabled with the feac generate loopback { ds3-line |
ds3-payload } command, you may disable it with the undo form of the command.
Note:
Disable FEAC detection before you configure far-end loopback to prevent loopback
deadlock, which may happen when the local end enables loopback after detecting the
loopback code sent back by the far end.
You may view the transmitting/receiving state of the FEAC channel with the display
controller t3 command.
Example
# On CT3 interface 1/0/0 send loopback code to the far end and place the far end in a
line loopback.
<H3C> system-view
[H3C] interface t3 1/0/0
[H3C-T3 1/0/0] feac generate loopback ds3-line
# On CT3 interface 1/0/0 send loopback code to the far end and disable far-end
payload loopback.
<H3C> system-view
[H3C] interface t3 1/0/0
[H3C-T3 1/0/0] undo feac generate loopback ds3-payload
4-85
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
Syntax
View
Parameter
Description
Use the frame-format command to configure the frame format used by the CT3
interface.
Use the undo frame-format command to restore the default or C-bit frame format.
Example
Syntax
View
Parameter
dsu-mode: Sets the data service unit (DSU) mode for fractional T3 (FT3). The
following table lists available FT3 DSU mode options:
Total number of
Keyword DSU mode (vendor) Subrate range
subrate grades
300 to 44210 kbps in
0 Digital Link 147
steps of 300,746 bps
4-86
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
Total number of
Keyword DSU mode (vendor) Subrate range
subrate grades
1500 to 44,210 kbps in
1 Verilink steps of 1,578,918 20
bps
3100 to 44,210 kbps in
2 Larscom steps of 3,157,835 14
bps
75 to 44,210 kbps in
3 Adtran 588
steps of 75,187 bps
Description
Use the ft3 command to configure the CT3 interface to operate in FT3 mode and to
set the DSU mode and subrate for FT3.
Use the undo ft3 command to restore the default DSU mode or subrate.
FT3, also known as subrate T3, is a nonstandard application of T3. The subrate and
number of subrate grades vary with different vendors. The ft3 command allows your
router to be compatible with five mainstream FT3 DSU modes in the industry.
By default, DSU mode is set to 0, that is, Digital Link mode; the T3 subrate is set to
44,210 kbps.
When using the ft3 command, note that:
z The command is only available to the FT3-supported CT3 cards.
z The command is available in T3 mode only. In CT3 mode, the command is
unavailable.
z The subrates available in a DSU mode set using the ft3 dsu-mode command
are discrete and the subrate set using the ft3 subrate command is an
approximate subrate. The T3 interface calculates an exact subrate (in bps)
closest to the approximate subrate within the subrate range in the specified DSU
mode and then set the hardware circuit to support the calculated exact subrate.
z You may use the display interface serial interface-number:0 command to view
the DSU mode, subrate setting, real interface rate, and interface baudrate. The
actual interface rate refers to the data bandwidth without overheads and the
interface baudrate is 44,736 kbps, the actual rate of T3 line with overheads
included.
Example
# Configure interface T3 1/0/0 to operate in FT3 mode, and set DSU mode to 1 and
subrate to 3000 kbps.
[H3C-T3 1/0/0] using t3
4-87
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
Syntax
View
Parameter
Description
Use the loopback command to configure the loopback mode of the CT3 interface.
Use the undo loopback command to disable the CT3 interface to perform loopback.
By default, loopback is disabled on the CT3 interface.
Loopback is usually used for some special tests. Disable it in normal cases.
If you place a CT3 interface encapsulated with PPP in a loopback, it is normal that the
state of the link layer protocol is reported down.
Example
Syntax
mdl { detect | data { eic string | lic string | fic string | unit string | pfi string | port-no
string | gen-no string } | generate { path | idle-signal | test-signal } }
undo mdl [detect | data [ eic | lic | fic | unit | pfi | port-no | gen-no ] | generate
[ path | idle-signal | test-signal ] ]
4-88
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
View
Parameter
Description
Use the mdl command to configure MDL message detection/sending on the CT3
interface.
Use the undo mdl detect command to disable the CT3 interface to detect MDL
messages.
Use the undo mdl generate command to disable the CT3 interface to send MDL
messages.
Use the undo mdl data command to restore the default.
MDL is a channel formed by using the three C-bits in the fifth subframe in C-bit
framing. According to ANSI T1.107a, it is used to transmit three types of maintenance
messages, path, idle signal, and test signal, and its data frame format is LAPD.
At the startup of your router, MDL message detection and sending are disabled on the
CT3 interface and the default MDL message information applies.
4-89
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
Example
# On CT3 interface 1/0/0 set the LIC information sent with MDL messages to hello.
<H3C> system-view
[H3C] interface t3 1/0/0
[H3C-T3 1/0/0] mdl data lic hello
4.7.12 t1 alarm
Syntax
View
Parameter
Description
Use the t1 alarm command to enable the specified T1 line on the CT3 interface to
detect/send alarm signals.
Use the undo t1 alarm command to remove the alarm signal detection/sending
setting.
At the startup of the router, periodical alarm signal detection is enabled on all T1 lines
on the CT3 interface. When a T1 line detects LOS, LOF, or AIS signals, it sends RAI
4-90
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
signals to its peer. Alarm state report for the interface is real time; you may view that
by executing the display controller t3 command.
The supported alarm signals, LOS, LOF, AIS, RAI, FEBE, and idle, are ANSI T1.403
compliant.
You can only configure a T1 line to send a type of alarm signal. To have the channel
send another type of signal, use the undo t1 alarm command to delete the previous
setting first. In addition, when the RAI signal generated upon detection of the LOS,
LOF, or AIS signal is present, the T1 line cannot send another type of signal. To do
that, use the undo t1 alarm detect command to disable the T1 line to send the RAI
signal generated after detecting an alarm first.
For description on alarm sending and receiving states for the CT3 interface, refer to
the display controller t3 command.
Example
4.7.13 t1 bert
Syntax
t1 line-number bert pattern { 2^11 | 2^15 | 2^20 | 2^23 | qrss } time number
[ unframed ]
undo t1 line-number bert
View
Parameter
4-91
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
2^23: Two to the twenty third power, length of the transmitted BERT pattern in bits.
qrss: Two to the twentieth power, length of the transmitted BERT pattern in bits. In this
pattern, the presence of 14 consecutive zeros is not allowed.
time number: Sets the duration of a BERT test, in the range of 1 to 1440 minutes.
unframed: The test pattern covers the overhead bits of the frame.
Description
Use the t1 bert command to start a BERT test on the specified T1 line on the CT3
interface.
Use the undo t1 bert command to stop the BERT test running on the specified T1 line
on the CT3 interface.
ITU O.151, ITU O.153, and ANSI T1.403-1999 define many BERT patterns, among
which, t1 lines on the CT3 interface support only 2^11, 2^15, 2^20, 2^23, and QRSS
at present.
When running a BERT test, the local end sends out a pattern, which is to be looped
over somewhere on the line and back to the local end. The local end then checks the
received pattern for the bit error rate, and by so doing helps you determine whether
the condition of the line is good. To this end, you must configure loopback to allow the
transmitted pattern to loop back from somewhere on the line, for example, from the
far-end interface by placing the interface in far-end loopback.
You may view the state and result of the BERT test with the display controller t3
command.
Example
4.7.14 t1 channel-set
Syntax
View
4-92
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
Parameter
Description
Example
# Bundle a 128 kbps serial interface on the first T1 line on the interface T3 1/0/0.
[H3C-T3 1/0/0]t1 1 set channel-set 1 timeslot-list 1,2
4.7.15 t1 sendloopcode
Syntax
View
4-93
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
Parameter
Description
Use the t1 sendloopcode command to set the loopback mode of the specified
far-end T1 line.
Use the undo t1 sendloopcode command to remove the corresponding setting.
Loopback is an effective way of diagnosis. You may place a far-end device into
loopback mode either at command line on it or by sending loopback control code to it.
The types and formats of loopback control code supported on T1 interfaces are
compliant with ANSI T1.403.
Loopback is divided into line loopback and payload loopback by loopback method.
They differ in the sense that the data stream is looped back at the framer with line
loopback but not with payload loopback.
You may transmit loopback control code through the in-band signal (the 192 effective
bandwidth bits or all 193 bits of T1) or the FDL in ESF frames.
Example
# Send the in-band signal on T1 line 1 on CT3 interface 1/0/0 to place the far-end T1
line in line loopback mode.
<H3C> system-view
[H3C] interface t3 1/0/0
[H3C-T3 1/0/0] t1 1 sendloopcode inband-line-up
# Send line loopback control code on T1 line 1 on CT3 interface 1/0/0 to disable line
loopback on the far-end T1 line.
<H3C> system-view
[H3C] interface t3 1/0/0
[H3C-T3 1/0/0] undo t1 1 sendloopcode fdl-ansi-line-up
Syntax
4-94
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
View
Parameter
Description
Use the t1 set clock command to set the clock mode for a T1 line on the CT3
interface.
Use the undo e1 clock command to restore the default or line clock.
When the CT3 interface is working in channelized mode, its T1 lines may use
separate clocks.
Note:
A CT3 interface uses the line clock (slave mode) as its clock source by default. If
interfaces on both sides of the line work in slave mode, the CT3 interfaces cannot
work well due to asynchronous clock. You are recommended to configure the
interface on one side of the line to work in the internal clock (master) mode.
Example
Syntax
View
Parameter
4-95
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
Description
Use the t1 set frame-format command to configure the frame format of T1 line.
Use the undo t1 set frame-format command to restore the default or esf.
You can configure this command only when the T1 line is working in framed format
(which can be set by using the undo t1 unframed command).
Related command: t1 set unframed, using.
Example
# Adopt the frame format SF for the first T1 line on the T3 interface.
[H3C-T3 1/0/0] t1 1 set frame-format sf
Syntax
View
Parameter
Description
Use the t1 set loopback command to set the loopback mode of a T1 line on the T3
interface.
Use the undo t1 set loopback command to disable the T1 line to loop back.
By default, T1 lines are disabled to loop back.
If a T1 line encapsulated with PPP is placed in a loopback, it is normal that the state of
the link layer protocol is reported down.
Loopback is usually used for some special tests. Disable it in normal cases.
4-96
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
Example
# Set the loopback mode on the first T1 line on the T3 interface to local.
[H3C-T3 1/0/0] t1 1 set loopback local
Syntax
View
Parameter
Description
Use the t1 set fdl command to set the behavior of the specified T1 line on the FDL in
ESF framing.
Use the undo t1 set fdl command to disable FDL of T1.
By default, ANSI T1.403 FDL is not configured.
FDL is an embedded 4 kbps overhead channel within the ESF format for transmitting
periodical performance report (PPR) statistics or loopback code.
According to ANSI T1.403, the format of PPR is LAPD, and the format of loopback
code is BOP.
The t1 set fdl command only starts PPR transmission. It cannot be used to enable
loopback code transmission or detection.
Example
# On CT3 interface 1/0/0, set the FDL to be ANSI T1.403 compliant for T1 line 1.
<H3C> system-view
[H3C] interface t3 1/0/0
[H3C-T3 1/0/0] t1 1 set fdl ansi
4-97
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
4.7.20 t1 show
Syntax
t1 line-number show
View
Parameter
Description
Use the t1 show command to view the line state of the specified T1 line on the CT3
interface.
Example
Field Description
The state of T1 line 1 on the CT3 interface:
T3 3/0/0 CT1 1 is up
up or down
Frame-format ESF Frame format of T1: ESF or SF
clock slave Clock used by the T1 line: slave or master
Loopback state or mode: local, remote,
loopback not set
payload, or not set.
4-98
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
Field Description
Transmission of PPR in the FDL is
FDL Performance Report is disabled disabled. You may enable that with the t1
set fdl command.
The transmitter of the T1 line is sending
RAI signals. When the T1 line receives
Transmitter is sending RAI
LOS, LOF, or AIS signals, it sends RAI
signals.
The type of alarm signal that the T1 line
Receiver alarm state
can receive: LOS, LOF, AIS, or RAI
Line loop back activate code using The loobpack code sent last time is in-band
inband signal last sent LLB activation request code.
BERT test state: running, complete, or
BERT state
stopped (not completed)
Test pattern in use, 2^11 in this example;
Test pattern: 2^11, Status: Not Sync,
synchronization state, and the number of
Sync Detected: 0
detected synchronizations
Time: 0 minute(s), Time past: 0 The duration of the BERT test and the time
minute(s) that has elapsed
Number of bit errors received since the
Bit errors (since test started): 0 bits
start of the BERT test
Bits received (since test started): 0 Number of bits received since the start of
Kbits the BERT test
Number of bit errors received since the last
Bit errors (since latest sync): 0 bits
synchronization
Bits received (since latest sync): 0 Number of bits received since the last
Kbits synchronization
4.7.21 t1 shutdown
Syntax
t1 line-number shutdown
undo t1 line-number shutdown
View
Parameter
4-99
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
Description
Use the t1 shutdown command to shut down a T1 line on the CT3 interface.
Use the undo t1 shutdown command to open a T1 line.
By default, T1 lines are open.
This command will affect not only the specified T1 line but also the serial interfaces
formed by bundling timeslots on the T1 line. Executing the t1 shutdown command on
the specified T1 line will shut down all these serial interfaces. Data transmission and
receiving will stop as a result. Likewise, executing the undo t1 shutdown command
will re-enable all these serial interfaces.
Example
4.7.22 t1 unframed
Syntax
t1 line-number unframed
undo t1 line-number unframed
View
Parameter
Description
Use the t1 unframed command to set a T1 line on the CT3 interface to work in
unframed mode (T1 mode).
Use the undo t1 unframed command to set the T1 line on the CT3 interface to work
in framed mode (CT1 mode).
By default, T1 lines are working in framed mode.
A T1 line in unframed mode does not contain the frame control information; it cannot
be divided into timeslots. Naturally, no timeslot bundling can be performed on it. In this
case, the system automatically creates a serial interface numbered serial number /
line-number:0 for it. This interface operates at 1544 kbps and has the same logic
features of a synchronous serial interface on which you can make other
configurations.
Related command: t1 channel-set.
4-100
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
Example
Syntax
using { t3 | ct3 }
View
Parameter
Description
Use the using command to configure the operating mode of a CT3 interface.
Use the undo using command to restore the default or channelized mode.
Only when the CT3 interface is working in channelized mode can you configure the T1
lines on it.
When the CT3 interface is working in unchannelized mode, the system automatically
creates a serial interface numbered serial number / 0:0 for it. This interface operates
at 44.736 Mbps and has the same logic features of a synchronous serial interface on
which you can make other configurations.
Example
Syntax
View
Any view
Parameter
4-101
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
Description
Use the display controller t3 command to view state about a CT3 interface.
In addition to the state information about the CT3 interface, the command can display
the information about each T1 line on the CT3 interface if the interface is working in
CT3 mode.
Example
4-102
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
T3 1/0 CT1 1 is up
Frame-format ESF, clock slave, loopback not set
FDL Performance Report is disabled
Transmitter is sending none
Receiver alarm state is none
Line loop back deactivate code using inband signal last sent
BERT state:(stopped, not completed)
Test pattern: 2^11, Status: Not Sync, Sync Detected: 0
Time: 0 minute(s), Time past: 0 minute(s)
Bit errors (since test started): 0 bits
Bits received (since test started): 0 Kbits
Bit errors (since latest sync): 0 bits
Bits received (since latest sync): 0 Kbits
Field Description
Physical state of the interface: up or
T3 3/0/0 current state :UP
down
Description : T3 3/0/0 Interface Description about the interface
4-103
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
Field Description
No MDL message is being sent. If an
MDL message, path or idle-signal for
No message is sent now. example, was being sent, the screen
would display “Message sent now: path.
idle signal.”
Message data elements: MDL data elements
EIC, LIC, FIC, and UNIT are four
elements present in all types of MDL
EIC: line, LIC: line, FIC: line, UNIT: line
messages. Their values are user
configurable and default to line.
FI is found in MDL path messages,
PORT_NO in MDL idle signal
FI: line, PORT_NO: line, GEN_NO: line messages, and GEN_NO in MDL test
signal messages. Their values are user
configurable and default to line.
Periodical detection of MDL is disabled.
This is the default applied upon the
start-up of the router.
When the function is enabled, the
screen displays:
Periodical detection is enabled.
No message was received.
Periodical detection is disabled.
When MDL messages are detected, the
screen displays:
Message received now: path.idle signal.
EIC: line, LIC: line, FIC: line, UNIT:
line
path/FI: line
idle Signal/PORT_NO: line
FEAC state FEAC state
No FEAC signal is sent. The FEAC
No code is sent now. DS3 Line Loop
signal sent last time is DS3 Line Loop
Back Deactivate was last sent.
Back Deactivate.
Periodical detection of FEAC is enabled.
Periodical detection is enabled, no code This is the default applied at the startup
received now. of the router.
No FEAC signal is received now.
DS3 Line Loop Back Deactivate last The FEAC signal received last time is
received. DS3 Line Loop Back Deactivate.
BERT state: completed, stopped (not
BERT state:(stopped, not completed)
completed), or running.
Test pattern in use (such as 2^7, 2^11,
Test pattern: 2^7, Status: Not Sync, Sync 2^15, and QRSS), 2^7 in this example;
Detected: 0 synchronization state, and the number
of detected synchronizations
4-104
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
Field Description
Time: 0 minute(s), Time past: 0 The duration of the BERT test and the
minute(s) time that has elapsed
Number of bit errors received since the
Bit errors (since test started): 0 bits
start of the BERT test
Number of bits received since the start
Bits received (since test started)
of the BERT test
Number of bit errors received since last
Bit errors (since latest sync)
synchronization
Number of bits received since last
Bits received (since latest sync)
synchronization
Historical Statistics Historical statistics
Time when last counter clearing is
performed, for example, 14:39:02 UTC
Last clearing of counters: Never
Sat 06/25/2005. If no clearing is
performed, never is displayed.
Syntax
4-105
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
View
Any view
Parameter
Description
Use the display interface bri command to view status about the specified ISDN BRI
interface.
Example
It is normal that the count of broadcasts in the output is zero. For a non-Ethernet
interface, counting of broadcasts and multicasts is performed at the IP layer. The IP
layer, however, does not provide statistics about broadcasts and multicasts for a
4-106
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
physical interface, a BRI interface for example. To view the information, you need to
view statistics about the related routing interface, a dialer interface for example, by
executing the display ip interface dialer command.
Syntax
loopback { b1 | b2 | both }
undo loopback
View
Parameter
Description
Use the loopback command to place the B1, B2, or both channels on the BRI
interface in a remote loopback. This can send data from a line back to the line.
Use the undo loopback command to disable remote loopback.
By default, remote loopback is disabled on the ISDN BRI interface.
On the ISDN BRI interface, you can place its B1, B2, or both channels in a remote
loopback.
Caution:
The modules with loopback-supported ISDN interfaces include 4BS (MIM), and
1BS\1BU\2BS\2BU (SIC). In addition, loopback is also supported by the fixed ISDN
interfaces on the routers, if there is any.
Example
4-107
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
Syntax
View
Parameter
Description
Use the clock command to set the clock mode of the CPOS interface.
Use the undo clock command to restore the default or slave clock.
Example
Syntax
View
System view
Parameter
Description
4-108
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
Example
Syntax
View
Any view
Parameter
Description
Use the display controller cpos command to view information about CPOS
interfaces, such as state of the E1/T1 channels and alarms, and errors that occur to
regeneration section, multiplex section, and higher-order path.
The following table describes the possible error types in the displayed information:
Item Description
Receive loss of basic frame alignment, or receive the frame with red
FRED
alarm error
COFA Change of frame alignment.
Severely errored frame. Four consecutive frame synchronization errors
SEF
generate one SEF.
FERR Framing Bit Error. It refers to the frame with Ft/FPS/FAS error.
CERR CRC error
Far end block error. This occurs when the CRC4 frame format applies
FEBE
on the E1 channel.
BERR PRBS bit error (Pseudo-random binary sequence bit error for test only).
4-109
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
In this table, FRED, COFA, and SEF are alarm errors (AERRs).
Related command: display controller cpos e1, display controller cpos t1.
Example
4-110
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
Field Description
Current physical state of the CPOS
Cpos4/0/0 current state:
interface
Description: Interface description
Physical layer information of the CPOS
interface: SDH frame format, AU-3
Frame-format SDH, multiplex AU-3,
multiplexing path, master clock mode
clock master, loopback not set
(use internal clock signal), and no
loopback.
Tx: J0: 0x01, J1: "NetEngine", C2: 0x02 The sent overhead bytes
Rx: J0: 0x01, J1: "NetEngine", C2: 0x02 The received overhead bytes
Alarm and error statistics about the
Regenerator section:
regeneration section
Alarm and error statistics about the
Multiplex section:
multiplexing section
Alarm and error statistic about the
higher-order path. The x in “VC-3-x”
indicates the path number. When
adopting AU-3 multiplexing path, one
Higher order path(VC-3-x):
STM-1 is multiplexed by three VC-3s
with three higher-order multiplexing path
while in the AU-4 multiplexing path,
there are one higher-order path VC-4s.
Alarm: Alarm statistic
Error: Error statistic
The current physical state of T1 channel
Cpos4/0/0 CT1 1 is up
1 of the CPOS interface 4/0/0
Syntax
View
Any view
4-111
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
Parameter
Description
Use the display controller cpos e1 command to view the physical layer
configuration information of a specified E1 channel on the specified CPOS interface.
Different from the display controller cpos command, this command can display the
error and alarm information of the corresponding lower-order path and that of E1
frames.
Example
Regenerator section:
Alarm: none
Error: 0 BIP, 0 SEF
Multiplex section:
Alarm: none
Error: 0 BIP, 0 REI
Cpos2/0 CE1 1 is up
Frame-format NO-CRC4, clock slave, loopback not set
E1 framer(1-1-1-1):
Alarm: none
Error: 0 FERR, 0 FEBE, 0 AERR
4-112
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
Syntax
View
Any view
Parameter
Description
Use the display controller cpos t1 command to view the physical layer configuration
information of a specified T1 channel on the specified CPOS interface.
Different from the display controller cpos command, this command can display the
error and alarm information of the corresponding lower-order path and that of T1
frames.
Example
# View the state about the T1 channel 2 on the interface CPOS 4/0/0.
<H3C> display controller cpos 4/0/0 t1 2
Cpos4/0/0 current state : UP Frame-format SDH, multiplex AU-3, clock master,
loopback not set
Tx: J0: 0x01, J1: "NetEngine", C2: 0x02
Rx: J0: 0x01, J1: "NetEngine", C2: 0x02
Regenerator section:
Alarm: none
Error: 0 BIP, 0 SEF
Multiplex section:
Alarm: none
Error: 0 BIP, 0 REI
Higher order path(VC-3-2):
Alarm: none
Error: 0 BIP, 0 REI
Lower order path:
Alarm: none
Error: 4095 BIP, 2047 REI
Cpos4/0/0 CT1 2 is up
4-113
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
Table 4-14 Description on the fields of the display controller cpos t1 command
Field Description
The current physical state of the CPOS
Cpos1/0/0 current state :
interface
Frame-format SDH, multiplex AU-3, Physical layer information of the CPOS
clock master, loopback not set interface.
Tx: J0: 0x01, J1: "NetEngine", C2: 0x02 The sent overhead bytes
Rx: J0: 0x01, J1: "NetEngine", C2: 0x02 The received overhead bytes
Alarms and errors about the regenerator
Regenerator section:
sections.
Alarms and errors about the regenerator
Multiplex section:
sections.
Alarm and error statistic of the
higher-order path to which the T1
Higher order path(VC-3-2):
channel belongs. VC-3-2 means the
second VC-3.
Alarm and error statistic of the
Lower order path:
lower-order path
Error: Error statistics
The current physical state of T1 channel
Cpos4/0/0 CT1 2 is up
1 on interface CPOS 4/0/0
Information about the physical layer of
Frame-format ESF, clock master, the T1 channel: the frame format is set
loopback not set to ESF, master clock (internal clock) is
used, loopback is disabled.
Presents how the T1 channel is
multiplexed. 2-1-1 represents the
number of VC-3 to which this T1 channel
T1 framer(2-1-1): belongs, TUG-2 number, and TUG-11
number in order. For the concrete
calculation principle, refer to the
associated Operation Manual.
4-114
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
4.9.6 e1 channel-set
Syntax
View
Parameter
Description
Note:
z To guarantee the processing capacity of the system, you can have only up to 256
virtual serial interfaces on one CPOS physical interface.
z E1 commands are available with the CPOS(E) interface module but not with the
CPOS(T) interface module.
Example
# Enter the view of the serial interface formed by the timeslot bundle.
[H3C-Cpos1/0/0] quit
[H3C] interface serial 1/0/0/63:1
[H3C-Serial1/0/0/63:1]
4-115
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
Syntax
View
Parameter
Description
Use the e1 set clock command to set the clock mode of the E1 channel.
Use the undo e1 set clock command to restore the default, slave mode.
Different E1 channels on the same CPOS physical interface can use different clock
modes.
Note:
E1 commands are available with the CPOS(E) interface module but not with the
CPOS(T) interface module.
Example
Syntax
4-116
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
View
Parameter
Description
Use the e1 set frame-format command to set the frame format of an E1 channel.
Use the undo e1 set frame-format command to restore the default frame format,
no-CRC4.
Note:
E1 commands are available with the CPOS(E) interface module but not with the
CPOS(T) interface module.
Example
Syntax
View
Parameter
4-117
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
Description
Use the e1 set loopback command to configure the loopback mode of the E1
channel.
Use the undo e1 set loopback command to disable loopback (default).
You can test an E1 channel by placing it in local or remote loopback.
In local loopback, data of the sender is directly looped to the receiver.
In remote loopback, data received by the receiver is looped back without passing
through the E1 framer to generate payload.
Related command: display controller cpos e1.
Note:
E1 commands are available with the CPOS(E) interface module but not with the
CPOS(T) interface module.
Example
4.9.10 e1 shutdown
Syntax
e1 e1-number shutdown
undo e1 e1-number shutdown
View
Parameter
Description
4-118
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
Disabling an E1 channel also disables the serial interfaces that are formed on it, if
there is any.
Note:
E1 commands are available with the CPOS(E) interface module but not with the
CPOS(T) interface module.
Example
# Disable E1 channel 1.
<H3C> system-view
[H3C] controller cpos 1/0/0
[H3C-Cpos1/0/0] e1 1 shutdown
4.9.11 e1 unframed
Syntax
e1 e1-number unframed
undo e1 e1-number unframed
View
Parameter
Description
4-119
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
Note:
E1 commands are available with the CPOS(E) interface module but not with the
CPOS(T) interface module.
Example
4.9.12 flag
Syntax
View
Parameter
Description
Use the flag command to set the overhead byte of SONET/SDH frames.
Use the undo flag command to restore the default.
SONET/SDH frames provide a variety of overhead bytes for operation and
maintenance (OAM) such as layered management on transmission networks. j1, j0
and c2 are used to support interoperability between devices from different countries,
areas or vendors.
Related command: display controller cpos.
Example
# Set the path trace message j1 of the interface CPOS 1/0/0 to H3C.
<H3C> system-view
4-120
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
4.9.13 frame-format
Syntax
View
Parameter
Description
Use the frame-format command to set the frame type of the CPOS interface.
Use the undo frame-format command to restore the default or SDH.
Example
4.9.14 loopback
Syntax
View
Parameter
4-121
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
Description
Use the loopback command to configure the loopback function of the CPOS
interface.
Use the undo loopback command to disable loopback.
By default, loopback is disabled.
The CPOS module provides loopback of different depths that allows you to
troubleshoot the interfaces or connection cables.
In normal conditions, disable loopback.
Example
Syntax
View
Parameter
Description
4-122
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
Example
4.9.16 shutdown
Syntax
shutdown
undo shutdown
View
Parameter
None
Description
Use the shutdown command to shut down the CPOS physical interface.
Use the undo shutdown command to enable the CPOS physical interface.
By default, the CPOS physical interface is enabled.
Executing the shutdown command on the CPOS physical interface disables all
E1/T1 channels and serial interfaces formed by timeslot bundles. They stop
transmitting or receiving data as a result. If you execute the undo shutdown
command on the CPOS physical interface again, all E1/T1 channels and the serial
interfaces go up.
Example
4.9.17 t1 channel-set
Syntax
4-123
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
View
Parameter
Description
Note:
T1 commands are available with the CPOS(T) interface module but not with the
CPOS(E) interface module.
Example
Syntax
4-124
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
View
Parameter
Description
Use the t1 set clock command to configure the clock mode of T1 channel.
Use the undo t1 set clock command to restore the default or slave.
Different E1 channels on the same CPOS physical interface can use different clock
modes.
Note:
T1 commands are available with the CPOS(T) interface module but not with the
CPOS(E) interface module.
Example
Syntax
View
Parameter
4-125
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
esf: Sets the T1 channel to use the extended super frame (ESF) format.
sf: Sets the T1 channel to use the super frame (SF) format.
Description
Use the t1 set frame-format command to set a frame format for T1 channel.
Use the undo t1 set frame-format command to restore the default or ESF.
Note:
T1 commands are available with the CPOS(T) interface module but not with the
CPOS(E) interface module.
Example
Syntax
View
Parameter
Description
Use the t1 set loopback command to configure the loopback mode of the T1
channel.
Use the undo t1 set loopback command to disable loopback (default).
Loopback is used for troubleshooting purpose. Disable loopback when the device is
working normally.
4-126
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
Note:
T1 commands are available with the CPOS(T) interface module but not with the
CPOS(E) interface module.
Example
4.9.21 t1 shutdown
Syntax
t1 t1-number shutdown
undo t1 t1-number shutdown
View
Parameter
Description
Note:
T1 commands are available with the CPOS(T) interface module but not with the
CPOS(E) interface module.
4-127
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
Example
4.9.22 t1 unframed
Syntax
t1 t1-number unframed
undo t1 t1-number unframed
View
Parameter
Description
Note:
T1 commands are available with the CPOS(T) interface module but not with the
CPOS(E) interface module.
Example
4-128
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
Syntax
View
Parameter
Description
Use the clock command to set the clock mode of the POS interface.
Use the undo clock command to restore the default, slave.
Example
4.10.2 crc
Syntax
crc { 16 | 32 }
undo crc
View
Parameter
4-129
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
Description
Use the crc command to set the CRC length on the POS interface.
Use the undo crc command to restore the default setting, 32 bits.
Example
Syntax
View
Any view
Parameter
Description
Use the display interface pos command to view the configuration and state
information of one or all POS interfaces.
Example
# Display the configuration and the state information of the interface POS 3/0/0.
<H3C> display interface pos 3/0/0
4.10.4 flag
Syntax
flag { c2 | j0 } hex-value
undo flag { c2 | j0 }
View
4-130
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
Parameter
c2: Path signal label byte, a higher-order path overhead byte used to indicate the
multiplex structure of virtual container (VC) frames and property of payload. The
default value is the hexadecimal number 16.
j0: Regeneration section trace message, a section overhead byte used to test
continuity of the connection between two interfaces at the section level. The default
value is the hexadecimal number 0.
hex-value: Hexadecimal number in the range 0 to ff.
Description
Example
4.10.5 frame-format
Syntax
View
Parameter
Description
Use the frame-format command to set the frame format of the POS interface.
Use the undo frame-format command to restore the default or SDH.
By default, the frame format is SDH.
4-131
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
Example
4.10.6 link-protocol
Syntax
View
Parameter
fr: Specifies Frame Relay as the link layer protocol of the interface.
hdlc: Specifies HDLC as the link layer protocol of the interface.
ppp: Specifies PPP as the link layer protocol of the interface.
Description
Use the link-protocol command to set the link layer protocol of the interface.
By default, PPP is used.
Example
4.10.7 loopback
Syntax
View
Parameter
4-132
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
Description
Use the loopback command to configure the loopback function of the POS interface.
Use the undo loopback command to disable loopback.
By default, loopback is disabled.
Loopback is enabled on an interface only for troubleshooting purpose.
Note:
If you enable loopback on a POS interface encapsulated with PPP, it is normal that
the state of the link layer protocol is reported down.
Example
Syntax
mtu size
undo mtu
View
Parameter
size: MTU size of the POS interface, which is in bytes. It ranges from 128 to 1500 and
defaults to 1500.
Description
Use the mtu command to set the MTU size of the POS interface.
Use the undo mtu command to restore the default.
The MTU setting of a POS interface can affect the assembly and fragmentation of IP
packets on the interface.
Related command: display interface.
4-133
Command Manual – Interface Chapter 4 Fundamental WAN Interface
Comware V3 Configuration Commands
Example
4.10.9 scramble
Syntax
scramble
undo scramble
View
Parameter
None
Description
Use the scramble command to enable the POS interface to scramble payload data.
Use the undo scramble command to disable data scrambling.
By default, the POS interface is enabled to scramble payload data.
Example
4-134
Command Manual – Interface Chapter 5 ATM/DSL Interface Configuration
Comware V3 Commands
Syntax
View
Any view
Parameter
Description
Use the display interface atm command to display the configuration and state
information about the specified or all ATM interfaces.
Example
# Display the configuration and state information about ATM E1 interface 3/0/0.
[H3C-Atm3/0/0] display interface atm 3/0/0
Atm3/0/0 current state :DOWN
Line protocol current state :DOWN
Description : Atm3/0/0 Interface
The Maximum Transmit Unit is 1500
Internet protocol processing : disabled
AAL enabled: AAL5, Maximum VCs: 128
Current VCs: 0 (0 on main interface)
ATM over E1, Scramble enabled, frame-format crc4-adm
code hdb3, clock slave,Cable-length long, loopback not set
Cable type: 75 ohm non-balanced
Line Alarm: LOS LOF
Line Error: 0 FERR, 0 LCV, 0 CERR, 0 FEBE
5-1
Command Manual – Interface Chapter 5 ATM/DSL Interface Configuration
Comware V3 Commands
Table 5-1 Description on the fields of the display interface atm command
Field Description
Current physical layer state of the ATM
Atm3/0/0 current state
interface
Current link layer state of the ATM
Line protocol current state
interface
Description Description about the ATM interface
The Maximum Transmit Unit is 1500 MTU of the interface
Indicates whether Internet protocol
Internet protocol processing
processing is enabled on the interface
AAL enabled ATM adapter layer (AAL) type
Maximum VCs Maximum number of VCs
5-2
Command Manual – Interface Chapter 5 ATM/DSL Interface Configuration
Comware V3 Commands
Field Description
Input : 0 packets, 0 bytes, 0 buffers
0 errors, 0 crcs, 0 lens, 0 giants, Detailed statistics about input packets
0 pads, 0 aborts, 0 timeouts and their errors
0 overflows, 0 overruns,0 no buffer
Output: 0 packets, 0 bytes, 0 buffers Detailed statistics about output packets
0 errors, 0 overflows, 0 underruns and their errors
Syntax
View
System view
Parameter
Description
Use the interface atm command to enter the view of the specified ATM E1/T1
interface.
Example
Syntax
mtu size
undo mtu
View
Interface view
Parameter
5-3
Command Manual – Interface Chapter 5 ATM/DSL Interface Configuration
Comware V3 Commands
Description
Use the mtu command to set the MTU size of the ATM interface.
Use the undo mtu command to restore the default.
The MTU setting of an ATM interface can affect the assembly and fragmentation of IP
packets on the interface.
Related command: display interface.
Example
Syntax
View
User view
Parameter
Description
Use the reset atm command to clear statistics about all PVCs on the specified ATM
interface, excluding statistics about the ATM interface.
To clear statistics about ATM interfaces, use the reset counters interface command.
Example
Syntax
5-4
Command Manual – Interface Chapter 5 ATM/DSL Interface Configuration
Comware V3 Commands
View
Parameter
long: Long haul mode, with a cable length in the range 151 to 500 meters or 495 to
1640 feet.
short: Short haul mode, with a cable length in the range 0 to 150 meters or 0 to 495
feet.
Description
Use the cable command to set the cable length of the ATM E1 interface.
Use the undo cable command to restore the default, that is, long haul mode. In this
mode, the system can automatically adjust long haul mode and short haul mode.
To have the system use short haul mode, use the cable short command.
Related command: frame-format.
Example
5.2.2 clock
Syntax
View
Parameter
master: Sets the clock mode of the ATM E1/T1 interface to master.
slave: Sets the clock mode of the ATM E1/T1 interface to slave.
Description
Use the clock command to set the clock mode of the ATM E1/T1 interface.
Use the undo clock command to restore the default clock mode, that is, slave.
5-5
Command Manual – Interface Chapter 5 ATM/DSL Interface Configuration
Comware V3 Commands
When the ATM E1/T1 interface is operating as DCE, set its clock mode to master.
When the interface is operating as DTE, set its clock mode to slave.
When the ATM interfaces on two routers are connected directly through a fiber-optic
cable, set the clock mode to master at one end and to slave at the other end.
Example
5.2.3 differential-delay
Syntax
differential-delay milliseconds
undo differential-delay
View
Parameter
Description
Use the differential-delay command to set the maximum differential delay for the
member links in the IMA group.
Use the undo differential-delay command to restore the default, that is, 25
milliseconds.
Example
# Set the maximum differential delay for the member links in IMA group 1/0/1 to 25
milliseconds.
[H3C] interface ima 1/0/1
[H3C-Ima-group 1/0/1] differential-delay 25
Syntax
5-6
Command Manual – Interface Chapter 5 ATM/DSL Interface Configuration
Comware V3 Commands
View
Any view
Parameter
slot: Number of the slot for the ATM E1/T1 interface card.
card: Number of the ATM E1/T1 interface card.
group-number: IMA group number, an integer in the range 1 to 8.
If no IMA group interface is specified, the configuration of all existing IMA group
interfaces and their state information are displayed.
Description
Use the display interface ima-group command to view the configuration and state
information about the specified or all IMA group interfaces.
Example
# Display the configuration and state information about IMA group interface 6/0/1.
[H3C] display interface Ima-group 6/0/1
Ima-group6/0/1 current state :UP
Line protocol current state :UP
Description : Ima-group6/0/1 Interface
Total baudrate is 10808000 bps,the available baudrate is 10808000 bps,the min
baudrate is 1544000 bps
The Maximum Transmit Unit is 1500
Internet Address is 23.1.1.1/24
AAL enabled: AAL5, Maximum VCs: 128
Current VCs: 1 (1 on main interface)
Physical layer is ATM over IMA
IMA-clock: CTC, active-links-minimum: 1
Frame-length: 128, differential-delay-maximum: 25
symmetry: symmetrical configuration and operation
Ima-group state:
ImaGroupNeState:OPERATIONAL ImaGroupFeState:OPERATIONAL
ImaGroupNeFailureStatus:NO_FAILURE ImaGroupFeFailureStatus: NO_FAILURE
Ima-Link Information:
Link Physical status Near End Tx Status
0 UP ACTIVE
1 UP ACTIVE
2 UP ACTIVE
3 UP ACTIVE
4 UP ACTIVE
5-7
Command Manual – Interface Chapter 5 ATM/DSL Interface Configuration
Comware V3 Commands
5 UP ACTIVE
7 UP ACTIVE
Table 5-2 Description on the fields of the display interface ima-group command
Field Description
Current physical layer state of the IMA
Ima-group6/0/1 current state
group
Current data link layer state of the IMA
Line protocol current state
group
Description Description about the IMA group
5-8
Command Manual – Interface Chapter 5 ATM/DSL Interface Configuration
Comware V3 Commands
Field Description
State of the IMA group, which can be
one of the following:
IMA_GSM_START_UP
IMA_GSM_START_UP_ACK
IMA_GSM_CFG_ABORT_BAD_M
IMA_GSM_CFG_ABORT_BAD_SYM
IMA_GSM_CFG_ABORT_BAD_VERS
N
IMA_GSM_CFG_ABORT_OTHER
Ima-group state:
IMA_GSM_INSUFFICIENT_LINKS
ImaGroupNeState:OPERATIONAL
ImaGroupFeState:OPERATIONAL IMA_GSM_BLOCKED
ImaGroupNeFailureStatus:NO_FAILUR IMA_GSM_OPERATIONAL
E ImaGroupFeFailureStatus: State of the failed end in the IMA group,
NO_FAILURE which can be one of the following:
IMA_GRP_NO_FAILURE
IMA_GRP_START_UP
IMA_GRP_INVALID_M
IMA_GRP_FAILED_ASYMM
IMA_GRP_INSUFF_LNKS
IMA_GRP_BLOCKED
IMA_GRP_FAILED_OTHER
IMA_GRP_INVALID_VERSN
Information about links in the IMA group,
including link number, physical status of
Ima-Link Information:
the link, and transmitting status at the
near end
Test setting state: disabled, success, or
Test Status
failed
Last clearing of counters: Never Time of last counter clearing
Input rate in the last 300 seconds in
Last 300 seconds input rate 0.08
terms of bytes per second, bits per
bytes/sec, 0 bits/sec, 0.00 packets/sec
second, and packets per second
Output rate in the last 300 seconds in
Last 300 seconds output rate 0.09
terms of bytes per second, bits per
bytes/sec, 0 bits/sec, 0.00 packets/sec
second, and packets per second
Input : 746 packets, 982144 bytes, 746
buffers
0 errors, 0 crcs, 0 lens, 0 giants, Statistics about input packets and errors
0 pads, 0 aborts, 0 timeouts
0 overflows, 0 overruns,0 no buffer
5-9
Command Manual – Interface Chapter 5 ATM/DSL Interface Configuration
Comware V3 Commands
Field Description
Output: 746 packets, 982408 bytes, 746
buffers Statistics about output packets and
errors
0 errors, 0 overflows, 0 underruns
Syntax
View
Any view
Parameter
slot: Number of the slot for the ATM E1/T1 interface card.
card: Number of the ATM E1/T1 interface card.
group-number: IMA group number, an integer in the range 1 to 8.
Description
Use the display status interface ima-group command to view detailed information
about the specified IMA group interface.
Example
5-10
Command Manual – Interface Chapter 5 ATM/DSL Interface Configuration
Comware V3 Commands
Table 5-3 Description on the fields of the display status interface ima-group
Field Description
Number of shutdown/undo shutdown
Shutdowns/Noshuts
operations
LinkUps/LinkDowns Number of link status changes
5-11
Command Manual – Interface Chapter 5 ATM/DSL Interface Configuration
Comware V3 Commands
Field Description
Ima-group configuration and status :
ImaGroupTxImaId = 0
ImaGroupRxImaId = 0
reflect
Specify reflec
ImaGroupTxTRLSrc = 32
ImaGroupRxTRLSrc = 32
Configuration and states of the IMA group,
ImaGroupTxTRLSrcCfg = 0 including:
ImaGroupRxTRLSrcCfg =0
IMA group number, transmit/receive clock
ImaGroupLeastDelayLink = 0 source reference, minimum/maximum delay
ImaGroupDiffDelayMaxObs = 0 in the group, near/far end clock mode (CTC
ImaGroupNeTxClkMode = ctc or ITC), number of cells in each
ImaGroupFeTxClkMode = ctc received/transmitted frame, number of links
in the group, number of active links, test
ImaGroupTxFrameLen = 128
pattern (0-fe).
ImaGroupRxFrameLen = 128
ImaGroupNumTxCfgLinks = 1
ImaGroupNumRxCfgLinks = 1
ImaGroupNumTxActLinks = 0
ImaGroupNumRxActLinks = 0
ImaGroupNumTestLink = 0
ImaGroupTestPattern = 0xff
IMA Link Information :
Link 0 :
LinkState :
NeTx= Unusable
NeRx= Unusable
FeTx= No_In_Group Link state: not in group, unusable, usable, or
FeRx= No_In_Group active
LinkFailureStatus : Failure cause: LIF, LODS, LOS, or AIS
NeRx = Lif
FeRx= NoFailure
Link Information :
RxLinkId = 0
LinkRelDelay = 0
5.2.6 frame-format
Syntax
5-12
Command Manual – Interface Chapter 5 ATM/DSL Interface Configuration
Comware V3 Commands
View
Parameter
crc4-adm: Sets the ATM over E1 framing format to 4-bit cyclic redundancy check
ATM direct mapping (CRC4 ADM).
no-crc4-adm: Sets the ATM over E1 framing format to no-CRC4 ADM.
sf-adm: Sets the ATM over T1 framing format to super frame ADM (SF ADM).
esf-adm: Sets the ATM over T1 framing format to extended super frame ADM (ESF
ADM).
Description
Use the frame-format command to configure the ATM over E1/T1 framing format.
Use the undo frame-format command to restore the default, that is, CRC4 ADM for
ATM E1 and ESF ADM for ATM T1.
ADM directly maps the ATM cells transmitted over the E1/T1 line into E1/T1 frames.
Its process is defined by ITU-T G.804 and ATM forum.
Related command: cable, code.
Example
5.2.7 frame-length
Syntax
View
Parameter
32, 64, 128, 256: Specifies the number of ATM cells in an IMA frame.
Description
Use the frame-length command to configure the number of ATM cells in an IMA
frame.
5-13
Command Manual – Interface Chapter 5 ATM/DSL Interface Configuration
Comware V3 Commands
Use the undo frame-length command to restore the default, that is, 128 ATM cells in
an IMA frame.
Example
# Set the number of ATM cells in an IMA frame to 64 on IMA group interface 1/0/1.
[H3C] interface ima 1/0/1
[H3C-Ima-group 1/0/1] frame-length 64
Syntax
View
Parameter
Description
Use the ima ima-group command to add the ATM E1/T1 interface to the specified
IMA group. If the specified IMA group does not exist, it is created first.
Use the undo ima ima-group command to remove the interface from the IMA group.
Note:
The first link in the IMA group is the primary link. You can delete it only when you
delete the IMA group.
Example
5.2.9 ima-clock
Syntax
5-14
Command Manual – Interface Chapter 5 ATM/DSL Interface Configuration
Comware V3 Commands
View
Parameter
itc: Independent transmit clock configuration. In this mode, the links in the IMA group
use at least two clock sources.
ctc: Common transmit clock configuration. In this mode, all links in the IMA group
share a clock source, which can be an external clock or the one extracted from a
member link.
link_number number: Number of the E1/T1 link that provides the clock source.
Description
Use the ima-clock command to configure the clock mode of the IMA group.
Use the undo ima-clock command to restore the default, that is, CTC.
When the IMA group adopts ITC mode, you must set the clock mode of each member
ATM E1/T1 link to slave with the clock slave command.
When the IMA group adopts CTC mode, you must set the clock mode of each
member ATM E1/T1 link to master with the clock master command.
Example
5.2.10 ima-test
Syntax
View
Parameter
link_number number: Number of the test E1/T1 link in the IMA group.
pattern-id id: Test pattern, a hexadecimal number in the range 0 to FE.
Description
Use the ima-test command to set a test pattern for testing the connectivity of the
specified link to the rest of the IMA group.
5-15
Command Manual – Interface Chapter 5 ATM/DSL Interface Configuration
Comware V3 Commands
Example
Syntax
View
System view
Parameter
Description
Use the interface ima command to enter the specified IMA group interface view.
Example
5.2.12 loopback
Syntax
5-16
Command Manual – Interface Chapter 5 ATM/DSL Interface Configuration
Comware V3 Commands
View
Parameter
cell: Internal cell loopback for checking that the local physical chip is operating.
local: Internal loopback for checking that the local service chip is operating.
remote: External line loopback for checking that the remote end is normal.
payload: External payload loopback for checking that payload framing is normal.
Description
Use the loopback command to configure the loopback mode on the ATM E1/T1
interface.
Use the undo loopback command to disable loopback.
By default, loopback is disabled.
Example
5.2.13 min-active-links
Syntax
min-active-links number
undo min-active-links
View
Parameter
Description
5-17
Command Manual – Interface Chapter 5 ATM/DSL Interface Configuration
Comware V3 Commands
Example
# Set the minimum number of available links required for IMA group 1/0/1 to operate
to 2.
[H3C] interface ima 1/0/1
[H3C-Ima-group 1/0/1] min-active-links 2
5.2.14 scramble
Syntax
scramble
undo scramble
View
Parameter
None
Description
Use the scramble command to enable payload scrambling on the ATM E1/T1
interface. This, however, does not affect cell headers.
Use the undo scramble command to disable payload scrambling.
By default, payload scrambling is enabled on the ATM E1/T1 interface.
Example
Syntax
View
5-18
Command Manual – Interface Chapter 5 ATM/DSL Interface Configuration
Comware V3 Commands
Parameter
long: Long distance mode. Cable length ranges from 151 to 500 meters.
short: Short distance mode. Cable length ranges from 0 to 150 meters.
Description
Use the cable command to configure the cable mode of ATM T3 cable, i.e., to set the
distance between the router and the cable distribution frame.
Use the undo cable command to restore the default.
By default, short distance mode is used.
Example
5.3.2 clock
Syntax
View
Parameter
Description
Use the clock command to set the clock mode of ATM E3/T3 interface.
Use the undo clock command to restore the default setting.
By default, the clock mode of ATM E3/T3 interface is slave mode.
Example
5-19
Command Manual – Interface Chapter 5 ATM/DSL Interface Configuration
Comware V3 Commands
5.3.3 frame-format
Syntax
View
Parameter
Description
Use the frame-format command to configure frame format of ATM E3/T3 interface.
Use the undo frame-format command to restore the default configuration.
By default, frame format g751-plcp is used for ATM E3 and cbit-plcp used for ATM T3.
Example
5.3.4 loopback
Syntax
View
5-20
Command Manual – Interface Chapter 5 ATM/DSL Interface Configuration
Comware V3 Commands
Parameter
Description
Example
5.3.5 scramble
Syntax
scramble
undo scramble
View
Parameter
None
Description
Use the scramble command to enable scrambling function of ATM E3/T3 interface.
Use the undo scramble command to disable scrambling function.
By default, scrambling function of ATM E3/T3 interface is enabled.
The scramble command scrambles and descrambles the payload without touching
the cell header.
Example
5-21
Command Manual – Interface Chapter 5 ATM/DSL Interface Configuration
Comware V3 Commands
Syntax
View
Parameter
Description
Use the clock command to set the clock mode on an ATM interface.
Use the undo clock command to restore the default clock mode on the interface.
By default, the ATM interface adopts the slave clock.
When an ATM interface is working as DCE, choose the master clock mode. When it is
working as DTE, choose the slave clock mode for it. When ATM interfaces of two
routers are directly connected by fiber, one end should be configured with the master
clock mode and the other with the slave clock mode.
Example
5.4.2 loopback
Syntax
View
5-22
Command Manual – Interface Chapter 5 ATM/DSL Interface Configuration
Comware V3 Commands
Parameter
Description
Use the loopback command to set the loopback function on an ATM OC-3c/STM-1
interface.
Use the undo loopback command to cancel the loopback function.
By default, loop back is forbidden.
Set the interface configuration to local loop or loopback when testing some special
functions. Disable loopback in normal cases.
Example
Syntax
View
Parameter
Description
Use the clock command to set the clock mode on the ATM interface.
Use the undo clock command to restore the default or slave.
When an ATM interface is working as DCE, choose the master clock mode. When it is
working as DTE, choose the slave clock mode for it. When ATM interfaces of two
routers are directly connected by fiber, one end should be configured with the master
clock mode and the other with the slave clock mode.
5-23
Command Manual – Interface Chapter 5 ATM/DSL Interface Configuration
Comware V3 Commands
Example
5.5.2 frame-format
Syntax
View
Parameter
Description
Use the frame-format command to set the frame format of ATM OC-3c/STM-1
interface.
Use the undo frame-format command to restore the default setting.
The frame format on the ATM OC-3c/STM-1 interface defaults to SONET.
Example
5.5.3 loopback
Syntax
View
Parameter
5-24
Command Manual – Interface Chapter 5 ATM/DSL Interface Configuration
Comware V3 Commands
Description
Example
5.5.4 scramble
Syntax
scramble
undo scramble
View
Parameter
None
Description
Use the scramble command to enable an undo scramble to scramble the payload
on ATM OC-3c/STM-1 interface.
Use the undo scramble command to disable the scrambling function.
By default, the ATM OC-3c/STM-1 interface is enabled to scramble the payload.
Executing the scramble command will make an interface to scramble and
descramble the payload without touching the cell header.
Example
5-25
Command Manual – Interface Chapter 5 ATM/DSL Interface Configuration
Comware V3 Commands
Syntax
activate
undo activate
View
Parameter
None
Description
Example
5-26
Command Manual – Interface Chapter 5 ATM/DSL Interface Configuration
Comware V3 Commands
Syntax
View
Parameter
None
Description
Use the dsl link-check enable command to enable retraining upon detection of a
major fault after the DSL interface comes up.
Use the dsl link-check disable command to disable retraining upon detection of a
major fault after the DSL interface comes up.
By default, retraining upon detection of a major fault is enabled.
The dsl link-check disable command is intended only for hardware debugging. After
it is configured, even a link disruption cannot cause interface retraining.
Example
Syntax
shdsl annex { a | b }
undo shdsl annex
View
Parameter
a: Annex a
b: Annex b
5-27
Command Manual – Interface Chapter 5 ATM/DSL Interface Configuration
Comware V3 Commands
Description
Use the shdsl annex command to configure annex standard at an SHDSL interface.
You cannot activate a link with different standard types at its two ends.
Use the undo shdsl annex command to restore the default standard or annex b.
When setting annex standard, you must consider the standard adopted in the region
where your network is located. When ATU-C and ATU-R uses different standards,
G.SHDSL cannot set up connection.
Example
Syntax
View
Parameter
asymmetry: Asymmetric mode, where different power spectral densities (PSD) are
set for the central office (CO) and the customer premises equipment (CPE).
symmetry: Symmetric mode, where the same PSD is set for the CO and CPE.
Note:
Power spectral density (PSD) is the amount of power per unit (density) of frequency
(spectral) as a function of the frequency. PSD describes how the power of a time
series is distributed with frequency.
Description
Use the shdsl psd command to set PSD of the G.SHDSL interface working as CPE. It
is not necessarily the same as the one set at CO.
Use the undo shdsl psd command to restore the default.
By default, the PSD of the G.SHDSL interface is in symmetric mode.
5-28
Command Manual – Interface Chapter 5 ATM/DSL Interface Configuration
Comware V3 Commands
Example
Syntax
View
Parameter
Note:
z For four-wire (dual-pair) G.SHDSL, interface rate is two times that of single-pair
rate. For example, if you set single-pair rate to 2,312 kbps, four-wire interface rate
is 4,624 kbps.
z Because four-wire G.SHDSL interfaces cannot negotiate rate, do not set their
single-pair interface rate to auto mode.
Description
Use the shdsl rate command to set single-pair interface rate of the SHDSL interface
or just select auto-negotiation mode. You can specify maximum line rate.
Use the undo shdsl rate command to restore the default, that is, auto.
You can set the line rate in the range 192 to 2,312 kbps in steps of 64 kbps. The
overload displayed in interface view includes an additional 8 kbits.
In actual applications, likelihood exists that maximum downlink rate could not reach
the specified rate as restricted by ATU-C and line conditions. If you select the auto
mode, the CPE and CO can negotiate a rate commensurate with the current line
condition during the activating process. If fixed rates are set at the two ends, the two
parties negotiate rate. In case the lower rate between them cannot be provided, the
line could not be activated.
5-29
Command Manual – Interface Chapter 5 ATM/DSL Interface Configuration
Comware V3 Commands
By default, the rate of two-wire G.SHDSL interface is set to auto-negotiation mode; the
single-pair interface rate of four-wire G.SHDSL interface is set to 2,312 kbps (four-wire
G.SHDSL interface rate is 4,624 kbps).
Example
Syntax
View
Parameter
Description
Use the shdsl snr-margin command to set a target margin to signal-to-noise ratio
(SNR).
Use the undo shdsl snr-margin command to restore the default.
Setting margin can affect maximum rate of the line. When line condition is good, you
can set a small margin to obtain higher rate. When much noise is around the line, this
may cause disconnection however.
By default, current-margin-value is set to 2 and snext-margin-value is set to 0.
Example
# Set current-margin-value to 5.
[H3C-Atm1/0/0] shdsl snr-margin current 5
5-30
Command Manual – Interface Chapter 5 ATM/DSL Interface Configuration
Comware V3 Commands
Syntax
View
Parameter
2: Two-wire mode.
4-auto-enhanced: Four-wire auto-switch mode. When this mode is enabled, the
four-wire enhanced mode is used first when the local end negotiates with the remote
end. If the remote end is not operating in four-wire enhanced mode, the local end uses
the four-wire standard mode for negotiation. When four-wire auto-switch mode is
adopted, the remote end can be set to operate in four-wire enhanced mode or
four-wire standard mode.
4-standard: Four-wire standard mode. In this mode, the two pairs of these four wires
must start negotiation at the same time; in addition, the remote end must be set to
operate in four-wire standard mode as well.
4-enhanced: Four-wire enhanced mode. In this mode, the two pairs of the four wires
can start negotiation separately; in addition, the remote end must be set to operate in
four-wire enhanced mode as well.
Description
Use the shdsl wire command to set the operating mode of the current G.SHDSL
interface.
Use the undo shdsl wire command to restore the default.
By default, the four-wire G.SHDSL interface operates in four-wire enhanced mode.
Note:
The shdsl wire command is available with four-wire G.SHDSL devices only.
Example
5-31
Command Manual – Interface Chapter 5 ATM/DSL Interface Configuration
Comware V3 Commands
Syntax
View
Any view
Parameter
Description
Use the display dsl configuration command to view the actual DSL configurations.
Example
5-32
Command Manual – Interface Chapter 5 ATM/DSL Interface Configuration
Comware V3 Commands
Table 5-4 Description on the output of the display dsl configuration command
Field Description
Operating mode, customer premises equipment
Mode
(CPE) or central office (CO)
Standard The supported standard
Annex The available options are a and b.
Wire Type Two-wire system or four-wire system.
SNR Threshold Signal to noise ratio threshold
Current Margin Current margin
SNEXT margin Worst-case margin
Target Margin —
Line Rate —
Syntax
View
Any view
Parameter
Description
Use the display dsl status command to view state about the specified DSL interface.
Example
# Display state information of the specified two-wire G.SHDSL interface that is up.
5-33
Command Manual – Interface Chapter 5 ATM/DSL Interface Configuration
Comware V3 Commands
Line A status:
Xcvr Op State: Data Mode
Last Fail Op State: 0x00
Frame Sync: in sync
Line Rate(Kbps): 2312
Wire Type: 2
SNR Margin(dB): 16.30
Loop Attenuation(dB): 0.00
RecvGain(dB): 6.07
TxPower(dBm): 9.50
Power Backoff: enable
Power Backoff Level: 5
Tip/Ring Reversal: Reversed
FrmOH Stat: 0x00
Rmt Encoder A : 0x0000016e
Rmt Encoder B : 0x00000331
Rmt NSF Cusdata : 0x0000
Rmt NSF CusID : 0x0000
Rmt Country Code : 0x00b5
Rmt Provider Code: GSPN
Rmt Vendor Data: 0x12 0x34 0x56 0x78
0x12 0x34 0x56 0x78
# Display state information of the specified four-wire G.SHDSL interface that is up.
[H3C-Atm3/0/0]display dsl status interface atm 3/0/0
Operating Mode: CPE
DSL Mode: SHDSL Annex B
Configured Wire Type: 4
5-34
Command Manual – Interface Chapter 5 ATM/DSL Interface Configuration
Comware V3 Commands
Line A status:
Xcvr Op State: Data Mode
Last Fail Op State: 0x00
Frame Sync: in sync
Line Rate(Kbps): 2312
Wire Type: 4
SNR Margin(dB): 13.30
Loop Attenuation(dB): 0.00
RecvGain(dB): 5.86
TxPower(dBm): 9.50
Power Backoff: enable
Power Backoff Level: 5
Tip/Ring Reversal: Reversed
FrmOH Stat: 0x00
Rmt Encoder A : 0x0000016e
Rmt Encoder B : 0x00000331
Rmt NSF Cusdata : 0x0000
Rmt NSF CusID : 0x0000
Rmt Country Code : 0x00b5
Rmt Provider Code: GSPN
Rmt Vendor Data: 0x12 0x34 0x56 0x78
0x12 0x34 0x56 0x78
Line B Statistics since last activation:
CRC: 1
LOSW Defect: 1
ES: 1
SES: 1
UAS: 0
TX EOC: 0
RX EOC: 0
Line B status:
Xcvr Op State: Data Mode
Last Fail Op State: 0x00
5-35
Command Manual – Interface Chapter 5 ATM/DSL Interface Configuration
Comware V3 Commands
Table 5-5 Description on the fields of the display dsl status command
Field Description
Operating Mode CPE or CO
Annex supported by the interface:
DSL Mode
Annex A or Annex B
Configured wire mode of the interface:
Configured Wire Type
two-wire or four-wire
Line A Statistics since last activation Statistics about wire-pair A
CRC Count of CRC errors
Count of loss of synchronization word
LOSW Defect
defects
Errored second, count of errors per
ES
second
Severely errored second, count of
SES
severe errors per second
Unavailable second, count of
UAS one-second intervals for which the
G.SHDSL line is unavailable
TX EOC Count of transmitted EOC cells
RX EOC Count of received EOC cells
Line A status State of wire-pair A
5-36
Command Manual – Interface Chapter 5 ATM/DSL Interface Configuration
Comware V3 Commands
Field Description
Xcvr Op State: Data Mode Operating state of the receiver
Operating state of the receiver when the
Last Fail Op State
last negotiation failed
Frame Sync State of frame synchronization
Line Rate(Kbps) Negotiated wire-pair speed
Wire Type Wire type: four-wire, or two-wire
SNR Margin(dB) Margin to SNR
Loop Attenuation(dB) Loop attenuation
RecvGain(dB) Receive gain
TxPower(dBm) Transmit power
Power Backoff State of power compensation
Power Backoff Level Level of power compensation
Syntax
View
Any view
Parameter
5-37
Command Manual – Interface Chapter 5 ATM/DSL Interface Configuration
Comware V3 Commands
Description
Use the display dsl version command to view the DSL version and the available
functionality.
Example
Table 5-6 Description on the output of display dsl version interface atm
Field Description
DSL line Type Type of the user access line
ATM SAR Device Identifier of the SAR chip
DSP Version —
PCB Version —
Hardware Version —
ITU G991.2 ANNEX A, ITU G991.2 Standards and the annexes supported
ANNEX B by the interface
5-38
Command Manual – Interface Chapter 5 ATM/DSL Interface Configuration
Comware V3 Commands
Syntax
View
Parameter
Description
Use the shdsl mode command to set the operating mode of the G.SHDSL interface.
Use the undo shdsl mode command to restore the default.
On a back-to-back connection, you must set one end to CO mode and the other end
to CPE mode.
By default, the G.SHDSL interface is operating in CPE mode.
Example
Syntax
activate
undo activate
View
Parameter
None
Description
5-39
Command Manual – Interface Chapter 5 ATM/DSL Interface Configuration
Comware V3 Commands
Example
Syntax
View
Parameter
5-40
Command Manual – Interface Chapter 5 ATM/DSL Interface Configuration
Comware V3 Commands
Description
Use the adsl standard command to set the standard applied to the ADSL interface.
Use the undo adsl standard command to restore the default or auto.
Note that this configuration will not take effect unless you activate the interface again.
If you want to make it take effect immediately to execute the shutdown/undo
shutdown command or the activate/undo activate command.
Example
ADSL info:
Tx(US) Rx(DS)
K: 16 302
R: 0 8
S: 4 1
D: 2 16
5-41
Command Manual – Interface Chapter 5 ATM/DSL Interface Configuration
Comware V3 Commands
040: 0 e d e b d e e d e e a e e e d
050: e d b d e e d e d c e e d e d d
060: e d e d e d c d d e d d e c d d
070: d d e d d d d e d d d c d d d e
080: d d c d d d d d c d d d d c d c
090: d c d c d c c d c c d c d c d c
0a0: c d c c c d c c c d c c c d c c
0b0: c d c c c c d c c c c c d c c c
0c0: c c c c c c c c c c c b c c b c
0d0: c b c b c b c b c b c b c b b c
0e0: b c 2 b c b a b a a b a a b a a
0f0: b a a b a a a a a a a 9 9 9 8 0
Syntax
View
Parameter
Description
Use the adsl tx_attenuation command to set attenuation value for ADSL transmit
power.
Use the undo adsl tx_attenuation command to restore the default value.
Example
Syntax
View
Any view
5-42
Command Manual – Interface Chapter 5 ATM/DSL Interface Configuration
Comware V3 Commands
Parameter
Description
Use the display dsl configuration command to view the actual ADSL configurations.
Example
ADSL info:
Tx(US) Rx(DS)
K: 16 302
R: 0 8
S: 4 1
D: 2 16
5-43
Command Manual – Interface Chapter 5 ATM/DSL Interface Configuration
Comware V3 Commands
0f0: b a a b a a a a a a a 9 9 9 8 0
Table 5-7 Description on the output of the display dsl configuration command
Field Description
Line parameters at ATU-R end. Among these
Line Params Set by User parameters, you can only modify the standard for
special testing or diagnosis, but not the others.
The following information appears after the link is activated.
Actual Config Real operating parameters after the link is activated
ADSL parameters, which are displayed only when
ADSL info
they are different from ADSL2 info
ADSL2 parameters, which are displayed only when
ADSL2 info
they are different from ADSL info
DMT Bits Allocation Per Bin Bits allocated to and carried by each bin.
Syntax
View
Any view
Parameter
Description
Use the display dsl status command to view the DSL state information.
Example
ADSL Count Tx Rx
5-44
Command Manual – Interface Chapter 5 ATM/DSL Interface Configuration
Comware V3 Commands
ATM Count Tx Rx
HEC: 0 0
OCD: 0 0
LCD: 0 0
ES: 0 0
Total Cells: 0 15802440
Data Cells: 0 0
Dropped Cells: 0 0
Error Bits: 0 0
Table 5-8 Description on the output of the display dsl status command
Field Description
Parameters and indices, such as SNR margin and attenuation,
Active Params
for the line at both near end and far end.
Error and correction statistics from the chipset about errors and
corrects for ADSL, including:
Total RS: Total number of RS frames
Adsl Count RSCorr: Count of correctable RS frame errors
RSUnCorr: Count of uncorrectable RS frame errors
SF: Count of SF frames
SFErr: Count of SF errors
ATM Count Statistics from the chipset about errors and corrections for ATM.
Syntax
View
Any view
Parameter
5-45
Command Manual – Interface Chapter 5 ATM/DSL Interface Configuration
Comware V3 Commands
Description
Use the display dsl version command to view DSL version and the available
capabilities.
Example
Adsl Capability
ANNEX Supported :
ANNEX A
Standard Supported :
ANSI T1.413 Issue 2
ITU G992.1(G.dmt)
ITU G992.2(G.lite)
ITU G992.3(Adsl2)
ITU G992.3(ReAdsl2)
ITU G992.5(Adsl2p)
Table 5-9 Description on the output of the display adsl version command
Field Description
Adsl board chipset and The components of the interface board and the
version info version
DSL line Type Type of the user access line
Chipset Vendor Identifier of the ADSL chipset vendor
FW Release Identifier and version of the firmware
DSP Version —
AFE Version —
5-46
Command Manual – Interface Chapter 5 ATM/DSL Interface Configuration
Comware V3 Commands
Field Description
PCB Version —
Syntax
View
Parameter
None
Description
Use the dsl link-check enable command to enable retraining upon detection of a
major fault after the DSL interface comes up.
Use the dsl link-check disable command to disable retraining upon detection of a
major fault after the DSL interface comes up.
By default, retraining upon detection of a major fault is enabled.
The dsl link-check enable command is intended only for hardware debugging. After
it is configured, even a link disruption cannot cause interface retraining.
Example
Syntax
View
5-47
Command Manual – Interface Chapter 5 ATM/DSL Interface Configuration
Comware V3 Commands
Parameter
Description
Use the upgrade flash command to upgrade the software of ADSL2+ card. To have
the upgraded software take effect, reboot the router.
This command is valid for ADSL2+ cards and ADSL 7074 card installed with CPUs
only.
Before upgrading the current software of ADSL2+ card, you need first FTP or load the
new software by other means to the Flash of the router and then save it as a file
named bcm6348.bin. This file is then used for upgrading ADSL2+ card software.
Example
# Upgrade the whole mirror of the card using the bcm6348.bin file.
[H3C-Atm1/0/0] upgrade flash bcm6348.bin full
5-48
Command Manual – Interface Chapter 6 Fundamental Logical Interface
Comware V3 Configuration Commands
This chapter only discusses basic configuration of logical interfaces. For configuration
of link and network layer protocols, refer to the relevant parts in this manual.
Syntax
View
System view
Parameter
Description
Example
6-1
Command Manual – Interface Chapter 6 Fundamental Logical Interface
Comware V3 Configuration Commands
[H3C-Atm2/0/0.1]
Syntax
View
Any view
Parameter
vlan_id: Specifies a VLAN by its VLAN ID, which is defined in IEEE802.1Q, in the
range 1 to 4094. It defaults to 1.
all: Displays information on all VLANs.
Description
Example
Field Description
VLAN ID ID of the VLAN
Tagged Ports Indicates on which ports the VLAN packet should be tagged.
Untagged Ports Indicates on which ports the VLAN packet is not to be tagged.
6-2
Command Manual – Interface Chapter 6 Fundamental Logical Interface
Comware V3 Configuration Commands
Syntax
View
Any view
Parameter
Description
Use the display vlan interface command to view VLAN configuration information on
a certain interface (only supporting sub-interface).
Example
Syntax
View
Any view
Parameter
Description
Use the display vlan max-packet-process command to view the maximum number
of processed packets configured on a certain VLAN per second.
Related command: max-packet-process.
Example
# Display the maximum number of processed packets configured on the VLAN 10.
<H3C> display vlan max-packet-process 10
6-3
Command Manual – Interface Chapter 6 Fundamental Logical Interface
Comware V3 Configuration Commands
Syntax
View
Any view
Parameter
Description
Use the display vlan statistics vid command to view the packet statistics on a
certain VLAN, e.g. the received packet number and the sent packet number.
Related command: reset vlan statistics interface.
Example
Syntax
View
System view
Parameter
Description
6-4
Command Manual – Interface Chapter 6 Fundamental Logical Interface
Comware V3 Configuration Commands
Use the undo interface ethernet command to delete the specified Ethernet
subinterface.
Example
6.2.6 max-packet-process
Syntax
View
System view
Parameter
Description
Example
# Set the maximum number of processed packets per second on the VLAN 10 as
200000.
[H3C] max-packet-process 200000 10
6-5
Command Manual – Interface Chapter 6 Fundamental Logical Interface
Comware V3 Configuration Commands
Syntax
View
User view
Parameter
Description
Use the reset vlan statistics vid command to clear the VLAN statistics.
Related command: display vlan statistics vid.
Example
Syntax
View
Interface view
Parameter
vid: VLAN ID identifying a VLAN. Its value range varies with device model.
Description
Use the vlan-type dot1q command to set the encapsulation types on the
sub-interface.
By default, there is no encapsulation on the subinterface, nor VLAN ID related to the
subinterface.
Related command: display vlan interface.
Example
# Set the Ethernet sub-interface 2/0/0.1 to be related to VLAN ID 60, and its
encapsulation format is dot1q.
[H3C-Ethernet2/0/0.1] vlan-type dot1q vid 60
6-6
Command Manual – Interface Chapter 6 Fundamental Logical Interface
Comware V3 Configuration Commands
Syntax
View
System view
Parameter
Description
Example
Syntax
View
Parameter
number: Maximum number of links that the virtual template supports for sending
multicast or broadcast packets. It is in the range 0 to 128 and defaults to 30.
6-7
Command Manual – Interface Chapter 6 Fundamental Logical Interface
Comware V3 Configuration Commands
Description
Use the broadcast-limit link command to configure the maximum number of links
that the virtual template supports for sending multicast or broadcast packets.
Use the undo broadcast-limit link command to restore the default.
When there are many links on the virtual template, sending multicast or broadcast
packets from each link may influence the function of the system. In this case, the
broadcast-limit link command can be used for limitation, so that multicast or
broadcast packet will be discarded if link number exceeds the limitation.
Example
Syntax
View
Any view
Parameter
Description
Use the display interface virtual-template command to view the state about the
specified or all virtual templates.
Example
6-8
Command Manual – Interface Chapter 6 Fundamental Logical Interface
Comware V3 Configuration Commands
Syntax
View
Any view
Parameter
Description
Use the display virtual-access command to view state information about the
specified or all virtual access interfaces.
For VT and dialer interfaces used in MP, PPPoE, and PPPoA, the system may create
virtual access interfaces depending on link state. Thus, to check their link state, you
must use the display virtual-access command.
Example
6-9
Command Manual – Interface Chapter 6 Fundamental Logical Interface
Comware V3 Configuration Commands
Syntax
View
System view
Parameter
Description
Use the interface virtual-template command to create a virtual template or enter the
existing virtual template view.
Use the undo interface virtual-template command to delete the specified virtual
template.
You must create a virtual template before creating virtual access interfaces and
disable it after disabling the virtual access interface.
In deleting a virtual template, make sure that all its virtual access interfaces have been
removed and this virtual template is not in use any more.
Example
Syntax
View
Any view
6-10
Command Manual – Interface Chapter 6 Fundamental Logical Interface
Comware V3 Configuration Commands
Parameter
Description
Use the display interface mp-group command to view the state about the specified
or all MP-group interfaces.
Example
Syntax
View
System view
Parameter
number: Number of MP-group interface, in the range 0 to 1023. That is, an interface
board supports up to 1024 MP-group interfaces.
Description
Example
6-11
Command Manual – Interface Chapter 6 Fundamental Logical Interface
Comware V3 Configuration Commands
Syntax
View
Any view
Parameter
Description
Use the display interface virtual-ethernet command to view the state about of the
specified or all virtual Ethernet interfaces.
Example
Syntax
View
System view
Parameter
Description
6-12
Command Manual – Interface Chapter 6 Fundamental Logical Interface
Comware V3 Configuration Commands
Example
6.6.3 mac-address
Syntax
mac-address H-H-H
undo mac-address
View
Parameter
Description
Example
Syntax
View
Any view
Parameter
number: Number of loopback interface, which must have been created. If no loopback
interface is specified, state about all created loopback interfaces is displayed.
6-13
Command Manual – Interface Chapter 6 Fundamental Logical Interface
Comware V3 Configuration Commands
Description
Use the display interface loopback command to view state about the specified or all
created loopback interfaces.
Related command: interface loopback.
Example
Syntax
View
Any view
Parameter
Description
Use the display interface null command to view the state about the null interface.
Whether you specify the keyword does not affect the result.
Related command: interface null.
Example
6-14
Command Manual – Interface Chapter 6 Fundamental Logical Interface
Comware V3 Configuration Commands
Syntax
View
System view
Parameter
Description
Use the interface loopback command to create a loopback interface or its view.
Use the undo interface loopback command to delete the specified loopback
interface.
After created, the loopback interface keeps up until it is shutdown. As it has the
loopback feature, it is often used to improve reliability.
You can shut down a loopback interface using the shutdown command. When you do
this, “Line protocol current state :UP (spoofing)” is displayed describing the current
state of the link layer protocol on the interface.
Related command: display interface loopback.
Example
Syntax
interface null 0
6-15
Command Manual – Interface Chapter 6 Fundamental Logical Interface
Comware V3 Configuration Commands
View
System view
Parameter
None
Description
Example
6-16
Command Manual – Interface
Comware V3 Chapter 7 OSM Configuration Commands
View
Any view
Parameter
Description
Use the display osm status slot command to view the information about the OSM
board in the specified slot, including name of the board, board status, OS name, OS
version and running time of OS.
Example
# If the above information cannot be displayed, the system displays the following:
<H3C>display osm status slot 3
Module name is OSM
Module status is Normal
Getting module OS information, please wait...
Fail to get module OSM information!
7-1
Command Manual – Interface
Comware V3 Chapter 7 OSM Configuration Commands
Table 7-1 Description on fields in the output of the display osm status slot
command
Field Description
Module name Name of the board
Module status, falling into six categories: Booting,
Module status Normal, Heart Beat Error, Link Error, Shutting and
Shutdown
OS name Name of the operating system
OS version Version of the operating system
OS uptime Running time of the operating system
View
User view
Parameter
Description
Use the osm connect slot command to connect the current control terminal to the
OSM board to manage the system on the OSM board. If you want to return from the
OSM board to the operation interface on the router, click hot key <Ctrl+K>.
Example
# Connect the current control terminal of the router to the OSM board in slot3.
<H3C> osm connect slot 3
Connected to OSM
Red Hat Linux release 9 (Shrike)
Kernel 2.4.20-8custom on an i686
localhost.localdomain login: root
Password:
Last login: Tue Jul 4 14:11:14 on ttyS0
You have new mail.
[root@localhost root]#
7-2
Command Manual – Interface
Comware V3 Chapter 7 OSM Configuration Commands
View
User view
Parameter
Description
Use the osm reboot slot command to reset the OSM board, which equals to
resetting by pressing the reset button.
Note that before performing this operation, save the service data on Linux operating
system and shut it down to avoid service broken down and hardware data loss. After
resetting, the operating system of the OSM board reboots.
Related command: osm reload slot and osm shutdown slot.
Example
View
User view
Parameter
Description
Use the osm reload slot command to restart the operating system on OSM board.
7-3
Command Manual – Interface
Comware V3 Chapter 7 OSM Configuration Commands
Note the service interruption resulting from restart of the operating system.
Related command: osm reboot slot and osm shutdown slot.
Example
View
User view
Parameter
Description
Use the osm shutdown slot command to shut down the operating system on OSM
board. This operation equals to execute the turn off command on the operating
system of OSM board.
Related command: osm reboot slot and osm reload slot.
Example
sync-clock enable
undo sync-clock enable
7-4
Command Manual – Interface
Comware V3 Chapter 7 OSM Configuration Commands
View
Parameter
None
Description
Use the sync-clock enable command to enable clock synchronization between the
router and the OSM board.
Use the undo sync-clock enable command to disable clock synchronization
between the router and the OSM board.
By default, clock synchronization between the router and the OSM board is disabled.
Related command: sync-clock interval.
Example
# Enable clock synchronization between the router and the OSM board in slot3/0/0.
[H3C-GigabitEthernet3/0/0]sync-clock enable
# Disable clock synchronization between the router and the OSM board in slot3/0/0.
[H3C-GigabitEthernet3/0/0]undo sync-clock enable
View
Parameter
Description
Use the sync-clock interval command to set clock synchronization interval between
the router and the OSM board.
Related command: sync-clock enable.
Example
# Set the clock synchronization interval between the router and the OSM board in
slot3/0/0 to five minutes.
7-5
Command Manual – Interface
Comware V3 Chapter 7 OSM Configuration Commands
[H3C-GigabitEthernet3/0/0]sync-clock interval 5
7-6
Link Layer Protocol
Command Manual – Link Layer Protocol
Comware V3 Table of Contents
Table of Contents
i
Command Manual – Link Layer Protocol
Comware V3 Table of Contents
ii
Command Manual – Link Layer Protocol
Comware V3 Table of Contents
iii
Command Manual – Link Layer Protocol
Comware V3 Table of Contents
iv
Command Manual – Link Layer Protocol
Comware V3 Table of Contents
v
Command Manual – Link Layer Protocol
Comware V3 Table of Contents
vi
Command Manual – Link Layer Protocol
Comware V3 Table of Contents
vii
Command Manual – Link Layer Protocol
Comware V3 Table of Contents
viii
Command Manual – Link Layer Protocol
Comware V3 Chapter 1 PPP and MP Configuration Commands
Syntax
debugging ppp { all | cbcp packet | ccp { all | event | error | packet | state } | scp
packet } [ interface interface-type interface-number ]
undo debugging ppp { all | cbcp packet | ccp { all | event | error | packet | state } |
scp packet } [ interface interface-type interface-number ]
View
User view
Parameter
Description
Use the debugging ppp { all | cbcp | ccp | scp } command to enable PPP related
cbcp, ccp, scp or all debugging.
Use the undo debugging ppp { all | cbcp | ccp | scp } command to restore the
default setting for PPP related cbcp, ccp, scp or all debugging.
By default, all PPP debuggings are disabled.
Example
None.
1-1
Command Manual – Link Layer Protocol
Comware V3 Chapter 1 PPP and MP Configuration Commands
Syntax
debugging ppp { chap { all | event | error | packet | state } | pap { all | event | error |
packet | state } } [ interface interface-type interface-number ]
undo debugging ppp { chap { all | event | error | packet | state } | pap { all | event |
error | packet | state } } [ interface interface-type interface-number ]
View
User view
Parameter
Description
Use the debugging ppp { chap | pap } command to enable PPP related CHAP or PAP
debugging.
Use the undo debugging ppp { chap | pap } command to restore the default setting .
By default, all PPP debuggings are disabled.
Example
None.
Syntax
debugging ppp { core event | ip packet | ipcp { all | event | error | packet | state } |
lcp { all | event | error | packet | state } | lqc packet | mp { all | event | error |
packet } } [ interface interface-type interface-number ]
undo debugging ppp { core event | ip packet| ipcp { all | event | error | packet |
state } | lcp { all | event | error | packet | state } | lqc packet | mp { all | event | error
| packet } } [ interface interface-type interface-number ]
1-2
Command Manual – Link Layer Protocol
Comware V3 Chapter 1 PPP and MP Configuration Commands
View
User view
Parameter
Description
Use the debugging ppp { core | ip | ipcp | lcp | lqc | mp } command to enable PPP
related core, ip, ipcp, lcp, lqc or mp debugging.
Use the undo debugging ppp { core | ip | ipcp | lcp | lqc | mp } command to restore
the default setting of related core, ip, ipcp, lcp, lqc or mp debugging.
By default, all PPP debuggings are disabled.
Example
None.
Syntax
View
Any view
Parameter
1-3
Command Manual – Link Layer Protocol
Comware V3 Chapter 1 PPP and MP Configuration Commands
Description
Use the display ppp mp command to view all interface information and statistics of
MP.
Related command: link-protocol ppp, ppp mp.
Example
Field Description
Template is Virtual-Template1 Virtual-template interface.
The MP bundle can accommodate up to
max-bind: 100
100 links
Minimum size of an MP fragment is 128
min-fragment: 128
bytes
Maximum delay of transmitting an LFI
LFI max-delaly: 100
fragment is 100 milliseconds
Bundle 065a23ed48de/mp1250 Endpoint descriptor or user name
2 member Two channels in the bundle
slot 3 Bundled in slot 3.
Peer's endPoint descriptor: The endpoint descriptor of the peer is
244258d44d45 244258d44d45
Bundle Up Time: 2005/03/13 The MP channel went up at
15:04:08:870 15:04:08:870 on March 13, 2005
Master link is Virtual-Template1:0 Master link is Virtual-Template1:0
1-4
Command Manual – Link Layer Protocol
Comware V3 Chapter 1 PPP and MP Configuration Commands
Field Description
0 lost fragments Lost fragments.
0 reordered Number of reordered packets.
0 unassigned Fragments waiting for reorder.
0 interleaved Number of interleaved packets
Received sequence number/sent
sequence 0/0 rcvd/sent
sequence number
The following displays all the member
The member channels bundled are:
channels bundled on this logical channel
Serial1/0/0 Up-Time:2005/03/13 Subchannel Serial1/0/0 is up at
15:04:08:870 15:04:08:870 on March 13, 2005
Syntax
link-protocol ppp
1-5
Command Manual – Link Layer Protocol
Comware V3 Chapter 1 PPP and MP Configuration Commands
View
Interface view
Parameter
None
Description
Use the link-protocol ppp command to configure the link-layer protocol encapsulated
on the interface as PPP.
By default, the link-layer protocol for interface encapsulation is PPP.
PPP is a link-layer protocol bearing network-layer packets over the point-to-point link. It
defines a whole set of protocols including LCP (link control protocol), NCP
(network-layer control protocol), PAP (Password Authentication Protocol) and CHAP
(Challenge Handshake Authentication Protocol). It is widely used for it supports user
authentication, easy scalability and synchronization/asynchronization.
Related command: display interface.
Example
Syntax
View
Parameter
Description
1-6
Command Manual – Link Layer Protocol
Comware V3 Chapter 1 PPP and MP Configuration Commands
Use the undo ppp mp binding-mode command to restore the default value of the MP
binding condition.
By default, it performs the MP binding based on both the authentication user name of
PPP and the terminal identifier.
User name is the peer one received by the PPP link performing the PAP or CHAP
authentication, while the terminal identifier, as a unique flag of a Router, is the peer one
received in performing the LCP negotiation. The system can perform the MP binding
base on the received user name and terminal identifier, and then the interfaces with the
identical user name or the same terminal identifier is bound together.
Related command: ppp mp user.
Example
# Perform MP bundling only based on the user name of the PPP authentication.
[H3C-Dialer0] ppp mp binding-mode authentication
Syntax
View
Parameter
chap, pap: Authentication mode. You must specify either option, but not both of them.
call-in: Authenticates the peer only when a call from a remote user is received.
domain: Domain name in user authentication.
Description
Use the ppp authentication-mode command to set the mode that the local PPP uses
to authenticate the peer router.
Use the undo ppp authentication-mode command to disable authentication.
If you configure the ppp authentication-mode { pap | chap } command without
specifying a domain, the system-default domain named system applies by default,
adopting local authentication and using the address pool you configured for this domain
for address allocation.
If a domain is specified, you must configure an address pool in the specified domain.
1-7
Command Manual – Link Layer Protocol
Comware V3 Chapter 1 PPP and MP Configuration Commands
If a received username includes a domain name, this domain name is used for
authentication (if the name does not exist, authentication is denied). Otherwise, the
domain name configured for PPP authentication applies.
If the username does not include a domain name, and the domain name configured for
PPP authentication does not exist, authentication is denied also.
By default, no authentication is performed.
There are two PPP authentication algorithms:
z PAP is a two-way handshake authentication.
z CHAP is a three-way handshake authentication.
In addition, the defined AAA authentication algorithm list can be used.
Either CHAP or PAP is just an authentication process. The success of the
authentication is decided by AAA, which can authenticate on the basis of the local
authentication database or AAA server.
Related command: local-user, ppp chap user, ppp pap local-user, ppp pap
password, ppp chap password.
Example
Syntax
View
Interface view
Parameter
password: Password.
simple: Indicates to display the password in plain text.
cipher: Indicates to display the password in ciphertext.
Description
Use the ppp chap password command to configure the password for CHAP
authentication.
Use the undo ppp chap password command to cancel the configuration.
1-8
Command Manual – Link Layer Protocol
Comware V3 Chapter 1 PPP and MP Configuration Commands
While configuring CHAP authentication, you should configure the local password to be
the same as the user password at the remote end.
When encrypting randomly generated packets, the authenticatee always looks to the
ppp chap password command for a password prior to the local user database.
Related command: ppp authentication-mode chap, local-user.
Example
Syntax
View
Interface view
Parameter
username: User name of CHAP authentication, which is the one sent to the peer
equipment to be authenticated. username is a string of 1 to 80 characters.
Description
Use the ppp chap user command to configure the user name when performing the
CHAP authentication.
Use the undo ppp chap user command to delete the existing configuration.
By default, the user name of the CHAP authentication is “H3C”.
For CHAP authentication, the non domain username configured by the local-user
command must have the same length with the username configured by the ppp chap
user command; otherwise, the authentication is denied because of failing to finding a
corresponding user on the server.
While configuring CHAP authentication, you should configure the username of each
end as the local-user of the peer end, and configure the corresponding password
accordingly.
Related command: ppp authentication-mode, local-user.
1-9
Command Manual – Link Layer Protocol
Comware V3 Chapter 1 PPP and MP Configuration Commands
Example
# Configure the local user name as Root when CHAP authentication is performed on
interface Serial0/0/0.
[H3C-Serial1/0/0] ppp chap user Root
Syntax
View
Interface view
Parameter
Description
Use the ppp ipcp dns command to enable the router to allocate a DNS address to the
peer.
Use the undo ppp ipcp dns command to disable the router to allocate a DNS server
address to the peer.
By default, the router does not allocate DNS server addresses.
The router can allocate DNS server addresses after being solicited to the devices
connected to it using PPP, PCs dialed to it for example, allowing these devices to
access the network using their domain names.
If you are connected to the router using a PC, you can execute the winipcfg command
or the ipconfig/all command to view the provided DNS server address.
Related command: ppp authentication-mode pap, ppp ipcp dns admit-any,
local-user.
Example
# Configure the primary DNS address of the local Router as 100.1.1.1, and the
secondary DNS address as 100.1.1.2.
[H3C-Serial0/0/0] ppp ipcp dns 100.1.1.1 100.1.1.2
1-10
Command Manual – Link Layer Protocol
Comware V3 Chapter 1 PPP and MP Configuration Commands
Syntax
View
Interface view
Parameter
None
Description
Use the ppp ipcp dns admit-any command to enable the router to accept the
unsolicited DNS server address allocated by the peer without sending a DNS request.
When the router is connected using PPP to another device, a network access server of
a service provider for example, this allows the router to use the DNS server allocated
by the peer.
Use the undo ppp ipcp dns admit-any command to disable the router to accept the
unsolicited DNS server address allocated by the peer.
By default, the router does not accept the unsolicited DNS address allocated by the
peer.
Related command: ppp authentication-mode pap, ppp ipcp dns, local-user.
Example
# Enable the router to accept the unsolicited DNS server address allocated by the peer.
[H3C-Serial0/0/0] ppp ipcp dns admit-any
Syntax
View
Interface view
Parameter
None
1-11
Command Manual – Link Layer Protocol
Comware V3 Chapter 1 PPP and MP Configuration Commands
Description
Use the ppp ipcp remote-address forced command to forbid the peer to use the fix
self-configured IP address but the one allocated by this router.
Use the undo ppp ipcp remote-address forced command to cancel the setting of
forcible address allocation, allowing the peer to use its self-configured IP address.
By default, the peer can use its self-configured IP address in PPP IPCP negotiation. If
the peer explicitly requests this end for an address, this end acts as requested; if the
peer already has a self-configured IP address, this end does not allocate one to the
peer.
If the peer is not allowed to use self-configured IP address, you must configure the ppp
ipcp remote-address forced command on the local interface.
Related command: remote address.
Example
Syntax
View
Interface view
Parameter
None
Description
Use the ppp ipcp dns request command to enable the router to request the peer for a
DNS server address. When the router is connected using PPP to another device, a
1-12
Command Manual – Link Layer Protocol
Comware V3 Chapter 1 PPP and MP Configuration Commands
network access server of a service provider for example, this allows the router to
request the peer for a DNS server address through negotiation.
Use the undo ppp ipcp dns request command to disable the router to request the
peer for a DNS server address.
By default, the router is disabled to request the peer for a DNS server address.
Note:
The valid DNS server address obtained after negotiation is displayed in the output
information about the corresponding interface.
Related command: ppp authentication-mode pap, ppp ipcp dns, ppp ipcp dns
admit-any, local-user.
Example
Syntax
View
Interface view
Parameter
None
Description
Use the ppp lcp mru consistent command to enable PPP LCP to negotiation
maximum receive unit (MRU).
Use the undo ppp lcp mru consistent command to restore the default.
By default, PPP LCP does not negotiate MRU; the local end modifies MTU depending
on the remote MRU.
After PPP LCP is enabled to negotiate MRU, the MRU value carried in the LCP
CONREQ message received from the remote end cannot be less than the MTU value
configured on the local interface. If a smaller MRU value is received, the local end
1-13
Command Manual – Link Layer Protocol
Comware V3 Chapter 1 PPP and MP Configuration Commands
sends a CONNAK message to the remote end. If the received MRU value is still smaller
after the local end makes a specified number of CONNAK message sending attempts,
the local end sends a CONREJ message to disable MRU negotiation. The MRU
negotiation attempts made by the remote end after that will always fail.
Normally, after PPP LCP negotiation succeeds, the MTU at the local end does not
change as the remote MRU changes.
Example
Syntax
View
Interface view
Parameter
Description
Use the ppp lqc command to enable PPP link quality control (LQC).
Use the undo ppp lqc command to disable PPP link quality control.
By default, PPP LQC is disabled.
By default, the arguments resumptive-percentage and forbidden-percentage are equal.
You may use PPP LQC to monitor quality of PPP links including those in MP bundles.
The system shuts down a link when its quality decreased below the
forbidden-percentage and brings it up when its quality ameliorates exceeding the
resumptive-percentage. When re-enabling the link, PPP LQC experiences a delay to
avoid link flapping.
Note that the value of resumptive-percentage must be equal to or greater than that of
forbidden-percentage.
1-14
Command Manual – Link Layer Protocol
Comware V3 Chapter 1 PPP and MP Configuration Commands
When enabling LQC at both ends of a PPP link, you must use the same parameter
settings on the routers at both ends. Normally, you are not encouraged to enable LQC
at both ends of a link.
Besides, you are not encouraged to enable PPP LQC on a dial-up line. That is because
in case the link is disabled, the DCC would disconnect the dial-up line, resulting in
inability of LQC to work. LQC can operate again only after the DCC brings the dial-up
line up again for transmitting data.
Related command: timer hold.
Example
1.1.16 ppp mp
Syntax
ppp mp
undo ppp mp
View
Interface view
Parameter
None
Description
Use the ppp mp command to enable the interface encapsulated with PPP to operate in
the MP mode.
Use the undo ppp mp command to enable the interface to operate in the Single PPP
mode.
By default, the interface encapsulated with PPP operates in the Single PPP mode.
To increase the bandwidth, multiple PPP links can be bound to form a logical MP
interface. For this purpose, it is necessary to specify a virtual-template in system view.
MP can be configured and used only at the physical interfaces which can encapsulate
PPP. To enable MP, you must configure the ppp mp command and the PAP or CHAP
authentication at the physical interface.
Related command: link-protocol ppp, ppp mp user, interface virtual-template.
1-15
Command Manual – Link Layer Protocol
Comware V3 Chapter 1 PPP and MP Configuration Commands
Example
Syntax
View
Interface view
Parameter
Description
Use the ppp mp mp-group command to add the current interface to the specified
MP-group.
Use the undo ppp mp mp-group command to remove the current interface from the
specified MP-group.
Use this command in conjunction with the interface mp-group command to create an
MP-group interface and add an interface to the MP-group. These two tasks are order
independent.
Note that the interfaces added to an MP group must be physical. The logical interfaces
such as tunnel interfaces do not support this command.
Example
Syntax
1-16
Command Manual – Link Layer Protocol
Comware V3 Chapter 1 PPP and MP Configuration Commands
View
Parameter
Description
Use the ppp mp lfi command to configure the link fragmentation and interleaving
features.
Use the undo ppp mp lfi command to restore the default configuration.
By default, the value of number is 10.
Example
Syntax
View
Parameter
max-bind-num: Indicates maximum number of links which can be bound, in the range
from 1 to 128.
Description
Use the ppp mp max-bind command to configure maximum number of bound links of
MP.
Use the undo ppp mp max-bind command to restore the default configuration.
By default, its value is 16.
Normally, it is not necessary to configure the parameter, which should be performed
under the guidance of technical engineers when necessary. Such a configuration may
have impact on the performance of PPP. If it is necessary to bind more than 16 PPP
channels, the parameter max-bind-num can be changed.
1-17
Command Manual – Link Layer Protocol
Comware V3 Chapter 1 PPP and MP Configuration Commands
Note:
If MP fails to delete links, it is possible that the maximum binding number is smaller than
the actually configured one. Make sure that the maximum binding number should be
larger than the actual one.
After you change the maximum number of links in an MP bundle on a virtual-template
or dialer interface, you must shutdown and undo shutdown all the physical interfaces
to validate the modification.
Example
Syntax
View
Parameter
Description
In a dial application where multiple links are required to carry services, it is necessary to
allow a packet trigger to call up multiple links to guarantee the minimum bandwidth
needed.
Use the ppp mp min-bind command to configure the minimum number of PPP links
that an MP bundle must have.
Use the undo ppp mp min-bind command to restore the default when a call requires
only one PPP link.
By default, no lower limit of links is set for MP bundling.
Note that, after you configure the ppp mp min-bind command, the router does not look
at the ratio of traffic to bandwidth when making calls to bring up links. As for links that
already exist, they are not torn down because of timeout. The ppp mp min-bind
1-18
Command Manual – Link Layer Protocol
Comware V3 Chapter 1 PPP and MP Configuration Commands
command voids the dialer timer idle command, just as the dialer threshold 0
command would.
The argument min-bind-num must be less than max-bind-num.
Related command: dialer threshold, ppp mp.
Example
Syntax
View
Parameter
size: Minimum packet size for MP outgoing packet fragmentation. When the MP
outgoing packet is smaller than this value, fragmentation is avoided. When the MP
packet is larger than this value, fragment is involved. It is in byte in the range from 128
to 1500.
Description
Use the ppp mp min-fragment command to set minimum size of outgoing fragments.
Use the undo ppp mp min-fragment command to restore the default, that is, 128
bytes.
If the small packet fragmentation is not expected, this command can be used to set
larger packet size value of the MP packet fragment.
Related command: ppp mp.
Example
1-19
Command Manual – Link Layer Protocol
Comware V3 Chapter 1 PPP and MP Configuration Commands
Syntax
View
System view
Parameter
Description
Example
# Specify the corresponding virtual-template as 1 for the username H3C, and configure
the IP address of the virtual-template as 202.38.60.1.
[H3C] ppp mp user H3Cbind virtual-template 1
[H3C] interface virtual-template 1
[H3C-virtual-template1] ip address 202.38.60.1 255.255.255.0
Syntax
View
1-20
Command Manual – Link Layer Protocol
Comware V3 Chapter 1 PPP and MP Configuration Commands
Parameter
size: Size of the sort window, in the range 1 to 64. It defaults to 1, meaning only one
packet is sorted.
Description
Use the ppp mp sort-buffer-size command to set the size of the MP sort window.
Use the undo ppp mp sort-buffer-size command to restore the default.
When MP applies, packets may be received out of order. The sort window is thus used
to re-order packets. The size of the sort window is a trade-off between re-ordering effect
and delay: a large sort window brings good re-ordering effect but increased delay. For
voice packets, transmission delay should be minimized.
Example
Syntax
View
Interface view
Parameter
number: Configures the virtual template number to be bound by the interface, which
ranges from 0 to 1023.
Description
Use the ppp mp virtual-template command to configure the virtual template number
to be bound by the interface.
Use the undo ppp mp command to disable the MP binding of the interface.
By default, the MP binding of the interface is disabled, and the interface works in
ordinary PPP mode.
This command specifies the virtual template number to be bound on the interface. The
interface using this command to perform the MP binding needs not configuring PAP or
CHAP authentication. Two or more interfaces with the same virtual template number is
bound directly together. Moreover, this command is mutually exclusive with the ppp mp
1-21
Command Manual – Link Layer Protocol
Comware V3 Chapter 1 PPP and MP Configuration Commands
command. That is, only one of the two commands can be configured on a same
interface.
Related command: link-protocol ppp and interface virtual-template.
Example
Syntax
View
Interface view
Parameter
Description
Use the ppp pap local-user command to configure the username and password sent
by the local router when it is authenticated by the peer router via the PAP method.
Use the undo ppp pap local-user command to disable the configuration.
By default, when the local router is authenticated by the peer router via the PAP method,
both the username and the password sent by the local router are empty.
When the local router is authenticated via the PAP method by the peer router, the
username and password sent by the local router must be the same as the user and
password of the peer router.
Related command: ppp authentication pap-mode, local-user.
Example
# Set the username of the local router authenticated by the peer end via the PAP
method as H3C and the password as H3C.
[H3C-Serial1/0/0] ppp pap local-user H3C password simple H3C
1-22
Command Manual – Link Layer Protocol
Comware V3 Chapter 1 PPP and MP Configuration Commands
Syntax
View
Interface view
Parameter
seconds: Time of negotiation timeout in seconds. During the PPP negotiation, if the
local end does not receive the response packet of the peer end, PPP will resend the
last packet. The time ranges from 1 to 10 seconds.
Description
Use the ppp timer negotiate command to set the PPP negotiation timeout.
Use the undo ppp timer negotiate command to restore the default value.
By default, the PPP timeout is 3 seconds.
Related command: link-protocol ppp.
Example
Syntax
View
Parameter
seconds: Time interval for the interface to send keepalive packet in seconds. The value
ranges from 0 to 32767 and defaults to 10.
Description
Use the timer hold command to set the timer to send keepalive packet.
Use the undo timer hold command to restore the default value.
1-23
Command Manual – Link Layer Protocol
Comware V3 Chapter 1 PPP and MP Configuration Commands
For the very slow data links, the seconds parameter must not be set too small. Because
the long datagram can only be transferred totally after a long time, the transfer of
keepalive datagram is delayed. The data link would be regarded to be broken if the
interface has not received the keepalive packet from the other end for many keepalive
periods. When the keepalive time is set to a very long time, the link is considered
broken by the other end, and then is closed.
At the two ends of a PPP link, the same keepalive interval is recommended.
Related command: display interface.
Example
Syntax
View
User view
Parameter
Description
Use the debugging ppp compression iphc rtp command to view debugging
information about IP/UDP/RTP header compression in IP header compression.
Use the undo debugging ppp compression iphc rtp command to disable
IP/UDP/RTP header debugging in IP header compression.
1-24
Command Manual – Link Layer Protocol
Comware V3 Chapter 1 PPP and MP Configuration Commands
Example
Syntax
View
User view
Parameter
Description
Use the debugging ppp compression iphc tcp command to view the single packet
information of the IP/TCP header compression.
Use the undo debugging ppp compression iphc tcp command to disable IP/TCP
header debugging in IP header compression.
Example
Syntax
View
Any view
1-25
Command Manual – Link Layer Protocol
Comware V3 Chapter 1 PPP and MP Configuration Commands
Parameter
Description
Use the display ppp compression iphc rtp command to view the statistic information
of the RTP header compression.
Example
Syntax
View
Any view
Parameter
Description
Use the display ppp compression iphc tcp command to view the statistic information
of the TCP header compression.
Example
Syntax
View
Any view
1-26
Command Manual – Link Layer Protocol
Comware V3 Chapter 1 PPP and MP Configuration Commands
Parameter
Description
Use the display ppp compression stac-lzs command to view information about
STAC-LZS compression.
Example
Syntax
ip tcp vjcompress
undo ip tcp vjcompress
View
Interface view
Parameter
None
Description
Use the ip tcp vjcompress command to enable a PPP interface to compress the VJ
TCP header.
Use the undo ip tcp vjcompress command to disable the PPP interface to compress
the VJ TCP header.
If the VJ TCP header is permitted to compress at the PPP interface, the interface at the
opposite end shall also permit to compress the VJ TCP header. This command is only
used in the centralized environment.
By default, the VJ TCP header is disabled to compress at the PPP interface.
1-27
Command Manual – Link Layer Protocol
Comware V3 Chapter 1 PPP and MP Configuration Commands
Example
Syntax
View
Interface view
Parameter
Description
Use the ppp compression iphc command to enable IP header compression on the
interface.
Use the undo ppp compression iphc command to disable IP header compression.
IP header compression discussed here refers to compression of TCP and RTP
headers.
By default, TCP header compression and RTP header compression are disabled on the
interface.
The compression command can take effect on a link only when it is configured at both
ends of the link.
The configuration will take effect only when the shutdown and undo shutdown
operations are performed on the interface. If the configuration is applied on MP, the
shutdown and undo shutdown operations should be performed on all the MPs.
Related command: ppp compression iphc rtc-connection, ppp compression iphc
tcp-connections.
Example
1-28
Command Manual – Link Layer Protocol
Comware V3 Chapter 1 PPP and MP Configuration Commands
Syntax
View
Interface view
Parameter
Description
Example
Syntax
1-29
Command Manual – Link Layer Protocol
Comware V3 Chapter 1 PPP and MP Configuration Commands
View
Interface view
Parameter
number: The maximum connection number (from 3 to 256) of TCP compression mode
on the interface. By default, the number is 16.
Description
Example
Syntax
View
Interface view
Parameter
None
1-30
Command Manual – Link Layer Protocol
Comware V3 Chapter 1 PPP and MP Configuration Commands
Description
Use the ppp compression stac-lzs command to enable STAC-LZS compression for
PPP.
Use the undo ppp compression stac-lzs command to disable STAC-LZS
compression on the current interface.
By default, stac-lzs compression is disabled.
You can configure STAC-LZS compression on an interface to reduce size of data
frames through lossless compression. However, as this can increase the load on the
router, you are recommended to disable the function when the load on the router is
heavy.
Note that STAC-LZS compression can take effect on a PPP link only when the stac-lzs
option is configured on both ends of the link.
Related command: link-protocol ppp.
Example
Syntax
ppp mp lfi
undo ppp mp lfi
View
Parameter
None
Description
Use the ppp mp lfi command to enable link fragmentation and interleaving (LFI) on the
interface.
Use the undo ppp mp lfi command to remove LFI from the interface.
By default, the time delay of the fragment is 10ms after LFI is enabled on the Virtual
Template interface.
Related command: ppp mp lfi delay-per-frag.
1-31
Command Manual – Link Layer Protocol
Comware V3 Chapter 1 PPP and MP Configuration Commands
Example
Syntax
View
Parameter
time: The maximum time delay of LFI fragment in ms, in the range of 1 to 1000.
Description
Use the ppp mp lfi delay-per-frag command to set the maximum time delay for
transmitting a LFI fragment.
Use the undo ppp mp lfi delay-per-frag command to restore the default maximum
time delay for transmitting an LFI fragment.
By default, the time delay of the fragment is 10ms after LFI is enabled on the Virtual
Template interface.
Related command: ppp mp lfi.
Example
Syntax
View
User view
Parameter
1-32
Command Manual – Link Layer Protocol
Comware V3 Chapter 1 PPP and MP Configuration Commands
Description
Use the reset ppp compression iphc command to delete the invalid IP/UDP/RTP
header compression or decompression context storage table and clear statistic
information of IP/UDP/RTP header compression.
If no parameter is specified, the storage table entries of IP header compression on all
interfaces will be cleared.
Example
Syntax
View
User view
Parameter
Description
Use the reset ppp compression stac-lzs command to clear statistics about
STAC-LZS compression.
If no interface is specified, statistics about STAC-LZS compression on all interfaces is
cleared.
Example
1-33
Command Manual – Link Layer Protocol
Comware V3 Chapter 2 PPPoE Configuration Commands
Syntax
View
Any view
Parameter
Description
Use the display pppoe-server session command to view the status and statistics of
PPPoE session.
Related command: link-protocol ppp, pppoe-server bind.
Example
Field Description
There is 1 session in
Display total number of sessions for PPPoE
total:
SID Session Identifier
Intf The corresponding Virtual-Template interface
2-1
Command Manual – Link Layer Protocol
Comware V3 Chapter 2 PPPoE Configuration Commands
Field Description
OIntf corresponding Ethernet interface
RemMAC Remote MAC address
LocMAC Local MAC address
State State of sessions
Field Description
InP In Packets, Packages received
Syntax
View
Interface view
Parameter
number: Number of the virtual-template for access to PPPoE, and its value ranges from
0 to 1023.
Description
2-2
Command Manual – Link Layer Protocol
Comware V3 Chapter 2 PPPoE Configuration Commands
Use the undo pppoe-server bind command to disable PPPoE protocol on the
relevant interface.
By default, PPPoE protocol is disabled.
Related command: link-protocol ppp.
Example
Syntax
View
System view
Parameter
None
Description
Use the pppoe-server log-information off command to enable the PPPoE server to
output the PPP-related log information.
Use the undo pppoe-server log-information off command to disable the PPPoE
server to output the PPP-related log information.
By default, the PPPoE server outputs the PPP-related log information.
Example
Syntax
View
System view
2-3
Command Manual – Link Layer Protocol
Comware V3 Chapter 2 PPPoE Configuration Commands
Parameter
number: Maximum number of sessions that can be established at a local MAC address.
The number differs with vendors, so refer to your system display.
Description
Example
# Set the maximum number of PPPoE sessions that can be established at a local MAC
address to 50.
[H3C] pppoe-server max-sessions local-mac 50
Syntax
View
System view
Parameter
number: Maximum number of PPPoE sessions that can be established at a peer MAC
address. The number differs with vendors, so refer to your system display.
Description
2-4
Command Manual – Link Layer Protocol
Comware V3 Chapter 2 PPPoE Configuration Commands
Example
# Display how to set the maximum number of PPPoE sessions that can be established
at a remote MAC address to 50.
Syntax
View
System view
Parameter
number: Maximum number of PPPoE sessions that the system can establish, which
ranges from 1 to 65535.
Description
Use the pppoe-server max-sessions total command to set the maximum number of
PPPoE sessions that the system can establish.
Use the undo pppoe-server max-sessions total command to restore the default
configuration.
By default, the value of the AR 18 series routers is 512, while the value of AR 48/46 is
4096.
Related command: pppoe-server max-sessions remote-mac and pppoe-server
max-sessions local-mac.
Example
# Set the maximum number of PPPoE sessions established by the system to 3000.
[H3C] pppoe-server max-sessions total 3000
Syntax
2-5
Command Manual – Link Layer Protocol
Comware V3 Chapter 2 PPPoE Configuration Commands
View
User view
Parameter
Description
Use the reset pppoe-server command to clear PPPoE sessions at the server end.
Example
Syntax
View
User view
Parameter
Description
2-6
Command Manual – Link Layer Protocol
Comware V3 Chapter 2 PPPoE Configuration Commands
Example
None
Syntax
View
Any view
Parameter
Description
The command display pppoe-client session is used to display the status and
statistics of PPPoE session.
Example
For more details of the display information, see the following table.
Field Description
There are 2 sessions in total: There are 2 sessions in total:
ID Session ID, PPPoE session ID
Server-MAC Server MAC, server MAC address
Client-MAC Client MAC, client MAC address
Dialer Corresponding Dialer interface of PPPoE session
Bundle Dialer Bundle containing PPPoE session
2-7
Command Manual – Link Layer Protocol
Comware V3 Chapter 2 PPPoE Configuration Commands
Field Description
Intf Ethernet interface containing PPPoE session
State State of PPPoE session
For more details of the display information, see the following table.
Field Description
SID Session ID, PPPoE session ID
2.2.3 pppoe-client
Syntax
View
Parameter
2-8
Command Manual – Link Layer Protocol
Comware V3 Chapter 2 PPPoE Configuration Commands
no-hostuniq: The call originated from PPPoE Client does not carry the Host-Uniq field.
By default, no no-hostuniq parameter is configured, i.e. PPPoE session works in
permanent online mode by default.
idle-timeout seconds: Idle time of PPPoE session in seconds, and its value ranges
from 1 to 65535. If the parameter is not configured, PPPoE session will work in
permanent online mode. Otherwise, it will works in packet trigger mode.
queue-length packets: packet number cached in the system before PPPoE session is
established, its value ranges from 1 to 100.Only after idle-timeout is configured will the
parameter be enabled. By default, packets is 10.
Description
Use the pppoe-client command to establish a PPPoE session and specify the Dialer
Bundle corresponding to the session.
Use the undo pppoe-client command to delete a PPPoE session.
By default, no PPPoE session is configured.
Multiple PPPoE sessions can be configured at one Ethernet interface, i.e. one Ethernet
interface might simultaneously belong to multiple Dialer Bundles. However, one Dialer
Bundle only has one Ethernet interface. PPPoE session and Dialer Bundle are
one-to-one. If the Dialer Bundle at a certain Dialer has had one Ethernet interface used
by PPPoE, any other interfaces cannot be added to this Dialer Bundle. Likewise, if
Dialer Bundle has had interfaces other than the PPPoE Ethernet interface, this Dialer
Bundle can also not be added to the Ethernet interface used by PPPoE Client.
When PPPoE session works in permanent online mode, and the physical lines go UP,
the Router will immediately initiate PPPoE call to establish PPPoE session. This
PPPoE connection will exist constantly unless users use the command undo
pppoe-client to delete PPPoE session. When PPPoE session works in packet trigger
mode, the Router will not initiate PPPoE call to establish PPPoE session unless it has
data to transmit. If there is no data transmission on the PPPoE link within seconds, the
Router will automatically terminate PPPoE session. Only after it has new data to
transmit, PPPoE session will be re-established.
Related command: reset pppoe-client.
Example
Syntax
2-9
Command Manual – Link Layer Protocol
Comware V3 Chapter 2 PPPoE Configuration Commands
View
User view
Parameter
Description
Use the reset pppoe-client command to terminate PPPoE session and re-initiate the
connection later.
If PPPoE session in permanent online mode is terminated using the command reset
pppoe-client, the Router will automatically re-establish PPPoE session in sixteen
seconds. If PPPoE session is terminated in packet trigger mode using the command
reset pppoe-client, the Router will not re-establish PPPoE session unless it has data
to transmit.
Related command: pppoe-client.
Example
2-10
Command Manual – Link Layer Protocol
Comware V3 Chapter 3 ISDN Configuration Commands
Syntax
datetime local
undo datetime
View
Parameter
None
Description
Use the datetime local command to configure the Datetime information element in the
Connect message to use local time in an ISDN call.
Use the undo datetime command to configure the Datetime information element not to
use local time.
By default, no local time is used.
Example
# In PRI subscriber line set the datetime information element to use local time.
[H3C-voice-line1/0:15] datetime local
Syntax
View
User view
Parameter
3-1
Command Manual – Link Layer Protocol
Comware V3 Chapter 3 ISDN Configuration Commands
Description
Example
# Enable CC debugging.
<H3C> debugging isdn cc
# Disable CC debugging.
<H3C> undo debugging isdn cc
Syntax
View
Parameter
Description
Use the dialer isdn-leased 128k command to configure 128K leased line connection.
Use the undo dialer isdn-leased 128k command to delete 128K leased line
connection.
Use the dialer isdn-leased number command to configure 64K leased line connection.
Use the undo dialer isdn-leased number command to delete 64K leased line
connection.
3-2
Command Manual – Link Layer Protocol
Comware V3 Chapter 3 ISDN Configuration Commands
Note:
You cannot configure this command on the BRI interfaces provided by 2S1B modules.
For more information about configuring ISDN leased lines on CE1/PRI and CT1/PRI
interfaces, refer to the dialer isdn-leased command in the “Dial-up” part of this
manual.
Related command: dialer isdn-leased (in the “Dial-up” part of this manual).
Example
Syntax
View
Any view
Parameter
Description
Use the display interface bri command to view status about the specified ISDN BRI
interface.
Example
3-3
Command Manual – Link Layer Protocol
Comware V3 Chapter 3 ISDN Configuration Commands
Syntax
View
Any view
Parameter
Description
Use the display isdn active-channel command to view the active call information on
ISDN interfaces. If no interface has been specified, the system will display the active
call information on all the ISDN interfaces.
The displayed information can help you with ISDN call troubleshooting.
Example
3-4
Command Manual – Link Layer Protocol
Comware V3 Chapter 3 ISDN Configuration Commands
Table 3-1 Description on the fields of the display isdn active-channel command
Field Description
Channel Info Information about the channel
Call Property Call property: digital or analog
Call Type Call type: incoming or outgoing
Calling Number Calling number
Calling Subaddress Calling subaddress
Called Number Called number
Called Subaddress Called subaddress
Syntax
View
Any view
Parameter
Description
Use the display isdn call-info command to view the current states of ISDN interfaces.
If no interface has been specified, the system will display the current states of all the
ISDN interfaces.
3-5
Command Manual – Link Layer Protocol
Comware V3 Chapter 3 ISDN Configuration Commands
Executing this command will output the state of each layer of the ISDN protocol on one
or all interfaces, including the information of Q.921, Q.931 and CC modules. You may
make troubleshooting based on the output information.
Related command: display interface.
Example
Table 3-2 Description on the fields of the display isdn call-info command
Field Description
Interface Bri2/0/0 is operating at the user side
Bri2/0/0(User-side): ACTIVE
of ISDN; the D channel is active
Link Layer 1
Connections 1 through 8 at layer 2 of the BRI
…
interface
Link Layer 8
TEI Terminal equipment identifier
3-6
Command Manual – Link Layer Protocol
Comware V3 Chapter 3 ISDN Configuration Commands
Field Description
Current state of the layer 2 link. It can be one of
the following:
TEI_UNASSIGNED
ASSIGN_AWAITING_TEI
ESTABLISH_AWAITING_TEI
TEI_ASSIGNED
AWAITING_ESTABLISHMENT
State AWAITING_RELEASE
MULTIPLE_FRAME_ESTABLISHED
TIMER_RECOVER
TEI_ASSIGNED_EXT1: a state option for
TBR3 test, meaning a deactivation instruction is
received from the underlying layer
TEI_ASSIGNED_EXT2: a state option for
TBR3 test, meaning link establishment request
is received
Only one network layer connection is present
Network Layer: 1 connection(s)
on the interface.
CCIndex Index of the call at the CC layer
3-7
Command Manual – Link Layer Protocol
Comware V3 Chapter 3 ISDN Configuration Commands
Field Description
Called_Num[:Sub] Called number: called sub-address
Syntax
View
Any view
Parameter
interface type number: Displays only the call history of the specified interface.
Description
Use the display isdn call-record command to view the information of ISDN call
history.
Executing this command will display information of the calls activated in the last 15
minutes, but the number of retained entries is limited to 100.
Exam ple
Table 3-3 Description on the fields of the display isdn call-record command
Field Description
Call Type Call type: incoming or outgoing
Calling Number Calling number
Called Number Called number
Start Time Time at which the call is set up
3-8
Command Manual – Link Layer Protocol
Comware V3 Chapter 3 ISDN Configuration Commands
Field Description
Second Used Duration of the call in seconds
Syntax
View
Any view
Parameter
protocol: ISDN protocol type, which can be DSS1, NTT, NI, NI2, QSIG, ETSI, ANSI or
AT&T.
interface type number: ISDN interface type and number.
Description
Use the display isdn parameters command to view the system parameters at layers 2
and 3 of the ISDN protocol, such as the durations of system timers and frame size.
If only ISDN protocol is specified, the system will display the default system parameters
of ISDN.
Related command: display interface.
Example
3-9
Command Manual – Link Layer Protocol
Comware V3 Chapter 3 ISDN Configuration Commands
T309 90
T310 40
T313 4
T314 4
T316 120
T317 10
T318 4
T319 4
T321 30
T322 4
Table 3-4 Description of the fields of the display isdn parameters command
Item Description
Syntax
View
Any view
Parameter
3-10
Command Manual – Link Layer Protocol
Comware V3 Chapter 3 ISDN Configuration Commands
Description
Use the display isdn spid command to view information on SPID on the BRI interface
encapsulated with the NI protocol.
You may execute this command to view the SPID type, SPID value and some other
information when ISDN is running. Executing this command without specifying an
interface, you may view information on SPI on all the SPID-supported BRI interfaces.
Alternatively, you may view the information only on one interface by specifying its type
and number.
Example
# Display the related information of SPID on the NI-supported interface bri 0/0/0.
[H3C] display isdn spid interface bri 0/0/0
Interface Bri 0/0/0:
SPID Type : AUTO
SPID B1 :
SPID Num: 124345
LDN:1234321
Table 3-5 Description on the fields of the display isdn spid interface command
Field Description
SPID Type, which can be NIT, STATIC (having only the L3
SPID Type initialization process), or AUTO (including both the negotiation
and the L3 initialization)
SPID value of the BRI interface B1 channel. It can be a static
SPID B1 configuration or the result of a dynamic negotiation, all depending
on the specified SPID Type.
LDN Local dialing number
SPID value of the BRI interface. It can be a static configuration or
SPID Num the result of a dynamic negotiation, all depending on the specified
SPID Type.
3-11
Command Manual – Link Layer Protocol
Comware V3 Chapter 3 ISDN Configuration Commands
Field Description
Negotiation state of the SPID, which can be
Neg State SPID_UNASSIGNED, ASSIGN_AWAITING_SPID,
SPID_ASSIGNED, ASSIGN_AWAITING_CALL_CLEAR.
Initialization state of the SPID, which can be INIT_NULL,
Init State INIT_IND, INIT_PROCEEDING, INIT_END,
INIT_AWAITING_CALL_CLEAR.
SPID value of the BRI interface B2 channel. It can be a static
SPID B2 configuration or the result of a dynamic negotiation, all depending
on the specified SPID Type.
SPID timer Duration of the timer TSPID
SPID resend SPID message retransmission times
Syntax
enable deactivate
undo enable deactivate
View
Parameter
None
Description
Use the enable deactivate command to enable the router to actively deactivate the
BSV interface.
Use the undo enable deactivate command to disable the router to actively deactivate
the BSV interface.
By default, the router is enabled to actively deactivate the BSV interface.
If disabled to actively deactivate the BSV interface, the router deactivates the interface
only when the interface is shut down or the BRI line is disconnected. Disabling active
BSV interface deactivation allows the BRI line to stay in the active state, ensuring BSV
calls to be completed rapidly. This is not preferred however, if occasional BRI line
deactivation is desired.
This command is only valid at the BSV network side. When configured at the BSV user
side, this command does not take any effect.
3-12
Command Manual – Link Layer Protocol
Comware V3 Chapter 3 ISDN Configuration Commands
Example
Syntax
View
Parameter
exclusive: Exclusive local management mode for ISDN B channels. When the B
channel indicated by the exchange is inconsistent with the one required by the local
end, call failure occurs.
Description
3-13
Command Manual – Link Layer Protocol
Comware V3 Chapter 3 ISDN Configuration Commands
Example
Syntax
View
Parameter
Description
Example
Syntax
View
Parameter
caller-number: Caller number that an incoming ISDN call can carry, which is a character
string of 1 to 24 characters.
3-14
Command Manual – Link Layer Protocol
Comware V3 Chapter 3 ISDN Configuration Commands
Description
Use the isdn caller-number command to configure the range of the numbers that the
router can receive.
Use the undo isdn caller-number command to delete the configured caller number.
Example
# Configure the router to receive only the incoming calls from the caller numbers with
400.
[H3C-Serial0/0/0:15] isdn caller-number 400
Syntax
View
Parameter
Description
Use the isdn calling command to have the messages from a calling party to a called
party carry the calling number.
Use the undo isdn calling command to delete calling number in the messages that a
calling party transmitted.
This command mainly applies on BRI interfaces. If a calling party has configured this
command on its BRI interface, the call party will be able to see the calling number by
viewing the call history information.
Example
# Configure the message from a calling party to a called party on interface Bri0/0/0 to
carry calling number.
[H3C-Bri0/0/0] isdn calling 8060170
Syntax
3-15
Command Manual – Link Layer Protocol
Comware V3 Chapter 3 ISDN Configuration Commands
View
Parameter
number: Number of the B channel to be used for leased line service. It can be 0, 1, or
128. When it is set to 0 or 1, B-channel 0 or 1 is used; when it is set to 128, the two B
channels are used as a 128 kbps leased line.
Description
Use the channel-set timeslot command to configure a B channel for leased line
service.
Use the undo channel-set timeslot command to remove both the leased line
configuration of a B channel and the serial interface created by the channel-set
timeslot command.
By default, no B channel is configured for leased line service.
After you configure a B channel for leased line service, a serial interface is created
automatically and named as follows:
z For B channel 0, the serial interface is named serial + BRI interface number : 1, for
example, serial 1/0/0:1.
z For B channel 1, the serial interface is named serial + BRI interface number : 2, for
example, serial 1/0/0:2.
z For 128 kbps channel, the serial interface is named serial + BRI interface number :
0.
All leased line configurations must be made on this serial interface.
On an ISDN BRI interface configured with the channel-set timeslot command, you
cannot configure leased line service with the dialer isdn-leased command.
Related command: dialer isdn-leased.
Example
# Configure B channel 1 for leased line service on ISDN BRI interface 1/0/0.
[H3C-Bri1/0/0] channel-set timeslot-list 1
Upon execution of the command interface serial1/0/0:2 is created with the default link
layer protocol PPP enabled. You may enter the view of this serial interface to make
leased line configuration.
# Remove the leased line configuration of B channel 1 on the ISDN BRI interface.
[H3C-Bri1/0/0] undo channel-set timeslot-list 1
3-16
Command Manual – Link Layer Protocol
Comware V3 Chapter 3 ISDN Configuration Commands
Syntax
View
Parameter
Description
Example
# Check whether the called number carried by incoming digital calls is 66668888 on the
interface Bri 0/0/0.
[H3C-Bri0/0/0] isdn check-called-number 1 66668888 : 123
Syntax
View
3-17
Command Manual – Link Layer Protocol
Comware V3 Chapter 3 ISDN Configuration Commands
Parameter
call-reference-length: ISDN call reference length, which can be one or two bytes.
Description
Use the isdn crlength command to set length of the call reference used when a call is
placed on an ISDN interface.
Use the undo isdn crlength command to restore the default ISDN call reference
length on the interface.
Call reference is equal to the sequence number that the protocol assigns to each call. It
is one or two bytes in length and can be used cyclically.
Note:
When the router receives a call from a remote device, it can automatically identify the
length of the call reference. However, some devices on the network do not have such
capability. In the event that the router is required to place calls to such a device
connected to it, you must configure the router to use the same call reference length
configured on the connected device.
By default, the call reference length is two bytes for E1 PRI and T1 PRI interfaces and
one byte for BRI interfaces.
You are not allowed to configure this command on an ISDN interface if there is still a
call on it. This command can take effect only if it is configured when there is no call on
the interface. Alternatively you can manually disable the interface by executing the
shutdown command, configure the command, and then enable the interface by
executing the undo shutdown command. The operations, however, will lead to the
disconnection of the call existing on the interface.
Example
# Set the call reference length carried by the ISDN messages on the PRI interface
serial0/0/0:15 to 1 byte.
[H3C-serial0/0/0:15] isdn crlength 1
Syntax
3-18
Command Manual – Link Layer Protocol
Comware V3 Chapter 3 ISDN Configuration Commands
View
Parameter
information-element Description
connectnum Connect number
connectsub Connect subnet address
notification Notification
progress Progress
datetime Date and time
display Display
facility Facility
hlc High-layer compatibility
Description
3-19
Command Manual – Link Layer Protocol
Comware V3 Chapter 3 ISDN Configuration Commands
Use the undo isdn ie passthrough command to disable transparent transmission for
Q.931 related information element.
By default, Q.931 information element transparent transmission is not enabled on ISDN
interface (PRI interface and BRI interface).
This command is only valid when ISDN initiates or receives an H.323 call and invalid for
a DCC call.
Example
Syntax
View
Parameter
None
Description
Use the isdn ignore connect-ack command to configure the router to switch the ISDN
protocol state to ACTIVE to start the data and voice service communications after
sending a CONNECT message without having to wait for a CONNECT ACK message.
Use the undo isdn ignore connect-ack command to restore the default setting.
By default, in the event that the router is communicating with an exchange, the ISDN
protocol must wait for the CONNECT ACK message in response to the CONNECT
message before it can switch to the ACTIVE state to start data and voice service
communications.
3-20
Command Manual – Link Layer Protocol
Comware V3 Chapter 3 ISDN Configuration Commands
Note:
In the event that the router is communicating with an ISDN exchange, its settings must
be the same as those on the exchange.
You are not allowed to configure this command on an ISDN interface if there is still a
call on it. This command can take effect only if it is configured when there is no call on
the interface. Alternatively, you can manually disable the interface by executing the
shutdown command, configure the command, and then enable the interface by
executing the undo shutdown command. The operations, however, will lead to the
disconnection of the call existing on the interface.
Example
# Set the call process on the BRI interface 0/0/0 to proceed to the ACTIVE state without
waiting for CONNECT ACK messages.
[H3C-Bri0/0/0] isdn ignore connect-ack
Syntax
View
Parameter
None
Description
Use the isdn ignore hlc command to disable ISDN to carry the higher layer
compatibility (HLC) information element in the SETUP messages sent when placing
voice calls.
Use the undo isdn ignore hlc command to configure ISDN to carry the HLC
information element in SETUP messages.
By default, HLC information element is carried in SETUP messages when placing voice
calls.
3-21
Command Manual – Link Layer Protocol
Comware V3 Chapter 3 ISDN Configuration Commands
Note:
In the event that the router is communicating with an ISDN exchange, its settings must
be the same as those on the exchange.
You are not allowed to configure this command on an ISDN interface if there is still a
call on it. This command can take effect only if it is configured when there is no call on
the interface. Alternatively, you can manually disable the interface by executing the
shutdown command, configure the command, and then enable the interface by
executing the undo shutdown command. The operations, however, will lead to the
disconnection of the call existing on the interface.
Example
# Configure ISDN to carry the HLC information element in the SETUP messages for the
voice calls placed on the Bri interface 0/0/0.
[H3C-Bri0/0/0] isdn ignore hlc
Syntax
View
Parameter
None
Description
Use the isdn ignore llc command to disable ISDN to carry the Lower Layer
Compatibility (LLC) information element in the SETUP messages sent when placing
voice calls.
Use the undo isdn ignore llc command to configure ISDN to carry the LLC information
element in SETUP messages.
By default, LLC information element is carried in SETUP messages when placing voice
calls.
3-22
Command Manual – Link Layer Protocol
Comware V3 Chapter 3 ISDN Configuration Commands
Note:
In the event that the router is communicating with an ISDN exchange, its settings must
be the same as those on the exchange.
You are not allowed to configure this command on an ISDN interface if there is still a
call on it. This command can take effect only if it is configured when there is no call on
the interface. Alternatively, you can manually disable the interface by executing the
shutdown command, configure the command, and then enable the interface by
executing the undo shutdown command. The operations, however, will lead to the
disconnection of the call existing on the interface.
Example
# Disable ISDN to carry the LLC information element in the SETUP messages for the
voice calls placed on the interface Bri 0/0/0.
[H3C-Bri0/0/0] isdn ignore llc
Syntax
View
Parameter
Description
Use the isdn ignore sending-complete command to configure the ISDN protocol to
ignore the processing on the Sending Complete Information Element.
Use the undo isdn ignore sending-complete command to restore the default setting.
3-23
Command Manual – Link Layer Protocol
Comware V3 Chapter 3 ISDN Configuration Commands
By default, in the event that the router is communicating with an exchange, the ISDN
protocol checks whether the received SETUP messages carry the Sending Complete
Information Element with respect to incoming calls and carries the Sending Complete
Information Element in SETUP messages with respect to outgoing calls.
Note:
In the event that the router is communicating with an ISDN exchange, its settings must
be the same as those on the exchange.
You are not allowed to configure this command on an ISDN interface if there is still a
call on it. This command can take effect only if it is configured when there is no call on
the interface. Alternatively, you can manually disable the interface by executing the
shutdown command, configure the command, and then enable the interface by
executing the undo shutdown command. The operations, however, will lead to the
disconnection of the call existing on the interface.
You can configure this command on an interface only when the ISDN protocol running
on the interface is DSS1, Q.SIG, NI2, or ETSI.
Example
# Ignore the Sending Complete Information Element in the received SETUP messages.
[H3C-Bri0/0/0] isdn ignore sending-complete incoming
Syntax
View
Parameter
3-24
Command Manual – Link Layer Protocol
Comware V3 Chapter 3 ISDN Configuration Commands
t322 2 to 10 4
Description
Use the isdn L3-timer command to configure the duration of an ISDN L3 timer. Use the
undo isdn L3-timer command to restore the default duration of the ISDN L3 timer on
the interface.
You can view the default durations of the L3 timers in the ISDN protocol by executing
the display isdn parameters command.
Example
# Set the duration of the L3 timer T301 on the interface Bri 0/0/0 to 160 seconds.
[H3C-Bri0/0/0] isdn l3-timer t301 160
Syntax
View
3-25
Command Manual – Link Layer Protocol
Comware V3 Chapter 3 ISDN Configuration Commands
Parameter
number-property: Type and number scheme of ISDN numbers. The argument takes on
a hex value in the range of 0 to 7F. When it is expressed in 8 bits, bits 1 through 4
represent the code scheme, bits 5 through 7 represent the code type, and bit 8 is
reserved. The following table lists the possible number type and code schemes. For
more information, see the related protocol for reference.
3-26
Command Manual – Link Layer Protocol
Comware V3 Chapter 3 ISDN Configuration Commands
3-27
Command Manual – Link Layer Protocol
Comware V3 Chapter 3 ISDN Configuration Commands
3-28
Command Manual – Link Layer Protocol
Comware V3 Chapter 3 ISDN Configuration Commands
Note:
The undefined bits in all the protocols are reserved for other purposes.
3-29
Command Manual – Link Layer Protocol
Comware V3 Chapter 3 ISDN Configuration Commands
Description
Use the isdn number-property command to set the type and code scheme of calling
or called numbers in incoming or outgoing ISDN calls.
Use the undo isdn number-property command to restore the default.
By default, the system selects ISDN number type and code scheme depending on
upper layer service.
If the isdn number-property command is configured, the system adopts the
configured ISDN number type and code scheme without considering the upper layer
service.
The following table shows how to set number type and code scheme.
Table 3-9 Set the type and code scheme of ISDN numbers
Operation Command
Set a number type and code scheme
isdn number-property number-property
for the called numbers in incoming
called in
calls
Remove the number type and code
scheme for the called numbers in Undo isdn number-property called in
incoming calls
Set a number type and code scheme isdn number-property number-property
for the called numbers in outgoin calls called out
Remove the number type and code
scheme for the called numbers in undo isdn number-property called out
outgoing calls
Set a number type and code scheme
isdn number-property number-property
for the calling numbers in incoming
calling in
calls
Remove the number type and code
scheme for the calling numbers in undo isdn number-property calling in
incoming calls
Set a number type and code scheme
isdn number-property number-property
for the calling numbers in outgoing
calling out
calls
Remove the number type and code
scheme for the calling numbers in undo isdn number-property calling out
outgoing calls
3-30
Command Manual – Link Layer Protocol
Comware V3 Chapter 3 ISDN Configuration Commands
Operation Command
Set a number type and code scheme
isdn number-property number-property
for the calling numbers in incoming
calling
and outgoing calls
Remove the number type and code
scheme for the calling numbers in undo isdn number-property calling
incoming and outgoing calls
Set a number type and code scheme
isdn number-property number-property
for the called numbers in incoming
called
and outgoing calls
Remove the number type and code
scheme for the called numbers in undo isdn number-property called
incoming and outgoing calls
Set a number type and code scheme
isdn number-property number-property
for the calling and called numbers in
in
incoming calls
Remove the number type and code
scheme for the calling and called undo isdn number-property in
numbers in incoming calls
Set a number type and code scheme
isdn number-property number-property
for the calling and called numbers in
out
outgoing calls
Remove the number type and code
scheme for the calling and called undo isdn number-property out
numbers in outgoing calls
Set a number type and code scheme
for the calling and called numbers in isdn number-property number-property
incoming and outgoing calls
Remove the number type and code
scheme for the calling and called
undo isdn number-property
numbers in incoming and outgoing
calls
Example
# On interface BRI 0/0/0, set both number type and code scheme of calling numbers in
incoming ISDN calls to unknown.
[H3C-Bri0/0/0] isdn number-property 0 calling in
# On interface BRI 0/0/0, set both number type and code scheme of called numbers in
outgoing ISDN calls to unknown.
[H3C-Bri0/0/0] isdn number-property 0 called out
3-31
Command Manual – Link Layer Protocol
Comware V3 Chapter 3 ISDN Configuration Commands
Syntax
View
Parameter
digits: The number of the digits, which is sent each time in overlap-sending mode and is
in the range of 1 to 15.By default, digits are 10.
Description
Use the isdn overlap-sending command to set the system to send the called number
information in the overlap mode on the ISDN interface. Use the undo isdn
overlap-sending command to set the system to send the called information in full
mode.
In "overlap-sending” mode, the digits of each called number will be sent separately and
the number of the digits sent each time can be set using this command.
In "full-sending" mode, all the digits of each called number will be collected and sent at
a time.
By default, full-sending mode applies.
You are not allowed to configure this command on an ISDN interface if there is still a
call on it. This command can take effect only if it is configured when there is no call on
the interface. Alternatively, you can manually disable the interface by executing the
shutdown command, configure the command, and then enable the interface by
executing the undo shutdown command. The operations, however, will lead to the
disconnection of the call existing on the interface.
Overlap-sending is only suitable for five ISDN protocols: ANSI, DSS1, ETSI, NI, and
QSIG.
NI2 only supports full-sending.
Example
# Apply the overlap-sending function on the interface Bri0/0/0 and set the number of
digits allowed to send each time to 12 digits.
[H3C-Bri0/0/0] isdn overlap-sending 12
3-32
Command Manual – Link Layer Protocol
Comware V3 Chapter 3 ISDN Configuration Commands
Syntax
View
Interface view
Parameter
window-size: Slide window size in the range of 5 to 14. By default, the slide window size
on PRI interfaces is 7.
Description
Use the isdn pri-slipwnd-size command to set the slide window size on a PRI
interface. Use the isdn pri-slipwnd-size default command to restore the default slide
window size on the PRI interface.
Example
Syntax
View
Parameter
Description
Use the isdn protocol-mode command to set the ISDN interface to operate on the
user side or network side of ISDN protocol.
3-33
Command Manual – Link Layer Protocol
Comware V3 Chapter 3 ISDN Configuration Commands
By default, both ISDN BRI and ISDN PRI interfaces are operating on the user-side of
ISDN protocol. Among BRI interfaces, only BSV interfaces support network-side BRI.
Note:
z This command is available on ISDN BSV and PRI interfaces only.
z Network-side ISDN PRI interfaces only support Q.SIG and DSS1.
z Network-side ISDN BSV interfaces only support DSS1.
Example
Syntax
View
Parameter
protocol: ISDN protocol, which can be DSS1, NTT, NI, QSIG, ETSI, ANSI, or AT&T.
Description
Use the isdn protocol-type command to set the ISDN protocol to be run on an ISDN
interface.
By default, both BRI and PRI interfaces run the ISDN protocol DSS1.
You are not allowed to configure this command on an ISDN interface if there is still a
call on it. This command can take effect only if it is configured when there is no call on
the interface. Alternatively, you can manually disable the interface by executing the
shutdown command, configure the command, and then enable the interface by
executing the undo shutdown command. The operations, however, will lead to the
disconnection of the call existing on the interface.
3-34
Command Manual – Link Layer Protocol
Comware V3 Chapter 3 ISDN Configuration Commands
Note:
You are allowed to configure:
z ANSI ISDN on BRI and T1 PRI interfaces;
z AT&T ISDN on T1 PRI interfaces;
z DSS1 ISDN on BRI, E1 PRI, and T1 PRI interfaces;
z ETSI ISDN on BRI, E1 PRI, and T1 PRI interfaces;
z NI (National ISDN) on BRI interfaces;
z NI2 (National ISDN) on T1 PRI interfaces;
z QSIG ISDN on E1 PRI and T1 PRI interfaces;
z NTT ISDN on BRI and T1 PRI interfaces.
For a network-side PRI interface, its protocol must be set to DSS1 or Q.SIG; for a
network-side BSV interface, its protocol must be set to DSS1.
Example
Syntax
isdn q921-permanent
undo isdn q921-permanent
View
Parameter
None
Description
Use the isdn q921-permanent command to enable the Q.921 permanent link function.
Use the undo isdn q921-permanent command to disable the Q.921 permanent link
function.
3-35
Command Manual – Link Layer Protocol
Comware V3 Chapter 3 ISDN Configuration Commands
After you enable the function, the ISDN BRI interface automatically sets up and
maintains one or two Layer 2 links, whether Layer 3 calls are present on it or not. Two
Layer 2 links involves when two-TEI mode is enabled on the interface.
By default, the Q.921 permanent link function is disabled.
Example
Syntax
isdn send-restart
undo isdn send-restart
View
System view
Parameter
None
Description
Use the isdn send-restart command to enable PRI interfaces to actively send ISDN
RESTART messages to clear calls of the remote end before maintaining B channels.
Use the undo isdn send-restart command to disable PRI interfaces to actively send
ISDN RESTART messages.
By default, the PRI interface actively sends RESTART messages to the remote end
before maintaining B channels.
Example
3-36
Command Manual – Link Layer Protocol
Comware V3 Chapter 3 ISDN Configuration Commands
Syntax
View
Parameter
None
Description
Use the isdn spid auto_trigger command to enable SPID auto-negotiation once on
the BRI interface running the NI protocol.
On a BRI interface compliant with the North American ISDN protocol, the router can
place a call only after SPID negotiation or initialization. SPID information can be
obtained via static configuration or dynamic negotiation. You may manually trigger a
new SPID negotiation request by executing this command if the SPID negotiation in
dynamic negotiation fails or just for the purpose of testing.
By default, a BRI interface does not originate a SPID negotiation request unless
triggered by a call.
This command applies only on the BRI interface running the NI protocol.
Example
Syntax
View
Parameter
None
3-37
Command Manual – Link Layer Protocol
Comware V3 Chapter 3 ISDN Configuration Commands
Description
Use the isdn spid nit command to set the SPID processing mode to NIT (Not Initial
Terminal) on an NI-compliant BRI interface. Use the undo isdn spid nit command to
disable the NIT mode on the BRI interface.
By default, NIT mode does not apply on BRI interfaces. Instead, static SPID or dynamic
SPID negotiation is applied.
On an NI-compliant BRI interface, calls can be placed only after the SPID negotiation or
initialization is finished. When the router is communicating with an NI-compliant
exchange that does not support SPID negotiation, you can use this command to set the
SPID processing mode on the router to NIT and the ISDN will ignore ISPID negotiation
and initialization.
This command applies only on NI-compliant BRI interfaces.
Example
# Ignore SPID negotiation and initialization on the interface bri0/0/0, i.e., adopting the
NIT mode.
[H3C-bri0/0/0] isdn spid nit
Syntax
View
Parameter
seconds: Duration of the SPID timer, which is in the range of 1 to 255 seconds, and
defaults to 30 seconds.
Description
Use the isdn spid timer command to set the duration of the timer TSPID for an
NI-compliant BRI interface to timer_length.
Use the undo isdn spid timer command to restore the default duration of the timer
TSPID for the NI-compliant BRI interface.
On a BRI interface compliant with the ISDN protocol in North America, calls can be
placed only after the SPID negotiation or initialization is finished. SPID information can
be obtained via static configuration or dynamic negotiation. The timer TSPID is started
3-38
Command Manual – Link Layer Protocol
Comware V3 Chapter 3 ISDN Configuration Commands
Example
Syntax
View
Parameter
Description
Use the isdn spid service command to configure the service types that must be
supported in SPI negotiation on the BRI interface adopting NI protocol.
Use the undo isdn spid service command to delete he service types that must be
supported in SPI negotiation on the BRI interface adopting NI protocol.
There are three types of services. You can select any one or none. None means all
services are supported. By default, SPID needs to support data and voice service
simultaneously.
Generally, as for the BRI interface adopting North America ISDN protocol, you need to
negotiate or initialize SPID before originate a call. During negotiation, SPCS may send
multiple SPIDs and carry the service types supported by the SPID, therefore, the router
needs to choose a proper SPID according to the local service type.
This command can only be applied on the BRI interface adopting NI protocol.
Example
# Set the service type supported by BRI interface to data and voice.
[H3C-bri0/0/0] isdn spid service data
[H3C-bri0/0/0] isdn spid service speech
3-39
Command Manual – Link Layer Protocol
Comware V3 Chapter 3 ISDN Configuration Commands
Syntax
View
Parameter
Description
Use the isdn spid resend command to set the number of INFORMATION message
retransmission attempts for SPID negotiation or initialization on an NI-compliant BRI
interface.
Use the undo isdn spid resend command to restore the default number of
INFORMATION message retransmission attempts on the interface.
On a BRI interface compliant with the ISDN protocol in North America, calls can be
placed only after the SPID negotiation or initialization is finished. The timer TSPID is
started when the terminal originates a negotiation or initialization request by sending
the INFORMATION message. If the terminal does not receive any response upon the
expiration of TSPID, it will retransmit the INFORMAITON message. You can use this
command to modify the number of INFORMATION message retransmission attempts.
This command applies only on NI-compliant BRI interfaces.
Example
Syntax
View
3-40
Command Manual – Link Layer Protocol
Comware V3 Chapter 3 ISDN Configuration Commands
Parameter
Description
Use the isdn spid1 command to configure SPID information for the B1 channel on the
NI-compliant BRI interface.
Use the undo isdn spid1 command to remove the SPID information of the B1 channel
on the interface.
On a BRI interface compliant with the ISDN protocol (North America), calls can be
placed only after the SPID negotiation or initialization is finished. SPID information can
be obtained via static configuration or dynamic negotiation. Only after SPID information
is configured for the B1 channel on the BRI interface can the system makes the L3
initialization to place calls normally.
In addition, when the router works with an ISDN NI compliant switch (the DMS100 for
example) in North America, you must use this command to configure a unique SPID
and LDN for each B channel to ensure a successful MP channel call. Otherwise, only
one B channel can be brought up. Also note that both SPID and LDN are provided by
your service provider and the configuration of LDN voids the configuration of the ISDN
calling command.
By default, Both SPID and LDN for the B1 channel on the BRI interface are null.
This command applies only on NI-compliant BRI interfaces.
Example
# Assign the SPID 012345 and the LDN 54321 to the B1 channel on the BRI interface.
[H3C-bri0/0/0] isdn spid1 012345 54321
Syntax
View
3-41
Command Manual – Link Layer Protocol
Comware V3 Chapter 3 ISDN Configuration Commands
Parameter
Description
Use the isdn spid2 command to configure SPID information for the B1 channel on an
NI-compliant BRI interface.
Use the undo isdn spid2 command to remove the SPID information of the B1 channel
on the interface.
On a BRI interface compliant with the ISDN protocol in North America, calls can be
placed only after the SPID negotiation or initialization is finished. SPID information can
be obtained via static configuration or dynamic negotiation. Only after SPID information
is configured for the B2 channel on the BRI interface can the system makes the L3
initialization to place calls normally.
In addition, when the router works with an ISDN NI compliant switch (the DMS100 for
example) in North America, you must use this command to configure a unique SPID
and LDN for each B channel to ensure a successful MP channel call. Otherwise, only
one B channel can be brought up. Also note that both SPID and LDN are provided by
your service provider and the configuration of LDN voids the configuration of the ISDN
calling command.
By default, both SPID and LDN for the B2 channel on the BRI interface are null.
This command applies only on NI-compliant BRI interfaces.
Example
# Assign the SPID 012345 and the LDN 54321 to the B2 channel on the BRI interface.
[H3C-bri0/0/0] isdn spid2 012345 54321
Syntax
View
Parameter
3-42
Command Manual – Link Layer Protocol
Comware V3 Chapter 3 ISDN Configuration Commands
Description
Use the isdn statistics command to have the system make statistics on the
information received and transmitted at an ISDN interface.
By default, no statistics is made on the information transmitted and received at
interfaces.
Use the isdn statistics start command in the view of an interface to start making
statistics on the messages received and transmitted at the interface.
Use the isdn statistics display command to view the statistic information.
Use the isdn statistics continue command to continue the effort in making statistics.
Use the isdn statistics display flow command to view the statistics in the form of flow.
Use the isdn statistics stop command to stop making statistics.
Example
# Start counting incoming and outgoing messages on PRI interface serial 0/0/0:15.
[H3C-serial0/0/0:15] isdn statistics start
# After a while, stop counting incoming and outgoing messages on PRI interface serial
0/0/0:15.
[H3C-serial0/0/0:15] isdn statistics stop
# Display statistics about the received and sent messages for PRI interface serial
0/0/0:15.
[H3C-serial0/0/0:15] isdn statistics display
Q.931 message received and sent out on current port:
CALL_PROC Send(0) Recv(6)
SETUP Send(6) Recv(13)
CONN Send(13) Recv(5)
SETUP_ACK Send(0) Recv(6)
CONNECT_ACK Send(5) Recv(13)
DISCONNECT Send(3) Recv(16)
RELEASE Send(1) Recv(18)
RELEASE_COM Send(18) Recv(1)
3-43
Command Manual – Link Layer Protocol
Comware V3 Chapter 3 ISDN Configuration Commands
Syntax
isdn two-tei
undo isdn two-tei
View
Parameter
None
Description
Use the isdn two-tei command to have the router requests the connected switch for a
new TEI value before calling for a B channel.
Use the undo isdn two-tei command to restore the default TEI handling practice on
the BRI interface.
This command applies in the situation where the switch with which the router works is
an ISDN NI compliant switch (the DMS100 for example) in North America. In this case,
you must ensure that the TEI value assigned to each B channel is unique to ensure a
successful MP channel call. Otherwise, only one B channel can be brought up.
By default, all the B channels on the BRI interface use one TEI value.
Related command: isdn protocol-type NI, isdn spid1, isdn spid2, and ppp mp.
Example
# Configure the router to request the connected switch for a new TEI value before
calling to bring up a B channel.
[H3C-bri0/0/0] isdn two-tei
3-44
Command Manual – Link Layer Protocol
Comware V3 Chapter 4 SLIP Configuration Commands
Syntax
View
User view
Parameter
Description
Use the debugging slip command to enable the debugging switch of the SLIP
protocol.
Use the undo debugging slip command to disable the debugging of the SLIP
protocol.
By default, all debugging switches of the SLIP protocol are disabled.
Example
Syntax
link-protocol slip
View
Interface view
4-1
Command Manual – Link Layer Protocol
Comware V3 Chapter 4 SLIP Configuration Commands
Parameter
None
Description
Use the link-protocol slip command to set the link layer protocol of the interface as
SLIP.
By default, the link-layer protocol for interface is PPP.
P2P link can use simpler link layer protocol SLIP(Serial Line IP), which is mainly used
to run TCP/IP on the P2P serial port. SLIP is only used for the asynchronous link.
SLIP only defines the start and end identifiers of frame, so as to intercept IP packet on
the serial line. Compared with PPP, SLIP has no address concept, negotiation process,
differentiation of packet types (so only one network protocol can be supported at the
same time) and error correction function.
The link layer protocol of the interface shall be consistent with that of the peer interface.
Example
4-2
Command Manual – Link Layer Protocol
Comware V3 Chapter 5 HDLC Configuration Commands
Syntax
link-protocol hdlc
View
Interface view
Parameter
None
Description
Example
Syntax
View
Interface view
Parameter
seconds: Value of the polling interval. The value is in the range from 0 to 32767 in
seconds. 0 indicates that the link detection function is disabled.
5-1
Command Manual – Link Layer Protocol
Comware V3 Chapter 5 HDLC Configuration Commands
Description
Use the timer hold command to set the polling interval. Use the undo timer hold
command to restore the default value of the polling interval.
By default, the value of seconds is 10 seconds.
The polling interval should be set to equal at the two ends of the data link. A zero polling
interval set in both ends will close the polling operation of the data link.
Related command: display interface.
Example
5-2
Command Manual – Link Layer Protocol
Comware V3 Chapter 6 Frame Relay Configuration Commands
Syntax
View
DLCI view
Parameter
Description
Use the annexg command to enable T1.617 Annext G on the frame relay interface for
data transmission.
Use the undo annexg command to disable T1.617 Annext G on the frame relay
interface.
By default, T1.617 Annext G is disabled on the frame relay interface.
Example
Syntax
View
6-1
Command Manual – Link Layer Protocol
Comware V3 Chapter 6 Frame Relay Configuration Commands
Parameter
Description
Use the x25 template command in system view to create an X.25 template and in DLCI
view to reference the template.
Use the undo x25 template command to delete an X.25 template or remove the
referenced template from the frame relay interface.
Example
6.1.3 debugging fr
Syntax
View
User view
Parameter
6-2
Command Manual – Link Layer Protocol
Comware V3 Chapter 6 Frame Relay Configuration Commands
mfr control: Information debugging of multilink frame relay bundle and bundle link.
packet: Information debugging of frame relay packet. When this parameter is in use,
DLCI can be specified.
transmit-rate: Information debugging of FRTS transmit rate.
interface-type: Interface type.
interface-number: Interface number.
dlci dlci-number: DLCI number of virtual circuit, in the range 16 to 1007.
Description
Example
# Enable debugging of the bundle interface MFR1, supposing several links have been
bundle on it.
<H3C> debugging fr mfr control interface mfr1
serial3/0/2(Out):
MFR msg=Add_link, Length=28, Link=serial5/1/0, BL state=Add_sent
e1 00 01 01 07 4d 46 52 30 00 02 0c 53 65 72 69 61 6c 32 3a
serial3/0/2(In):
MFR msg=Add_link, Length=30, Link=serial5/1/0, BL state=Add_sent
e1 00 01 01 09 6b 70 6c 6b 70 6c 00 02 0c 53 65 72 69 61 6c
6-3
Command Manual – Link Layer Protocol
Comware V3 Chapter 6 Frame Relay Configuration Commands
serial3/0/2(Out):
MFR msg=Add_link_ack, Length=28, Link=serial5/1/0, BL state=Add_rx
e1 00 02 01 07 4d 46 52 30 00 02 0c 53 65 72 69 61 6c 32 3a
serial3/0/2(Out):
MFR msg=Hello, Length=9, Link=serial5/1/0, BL state=Up
e1 00 05 03 06 43 4b 01 f6
serial3/0/2(In):
MFR msg=Hello_ack, Length=9, Link=serial5/1/0, BL state=Up
e1 00 05 03 06 2f f7 00 a5
Field Description
Type of the control packets received and transmitted on
MFR msg
the bundle link.
Length Length of the control packets.
Syntax
View
User view
Parameter
Description
Use the debugging fr compress command to enable FRF9 IPHC debugging of frame
relay.
Use the undo debugging fr compress command to disable FRF9 IPHC debugging of
frame relay.
Example
6-4
Command Manual – Link Layer Protocol
Comware V3 Chapter 6 Frame Relay Configuration Commands
Syntax
View
User view
Parameter
Description
Example
Syntax
View
User view
6-5
Command Manual – Link Layer Protocol
Comware V3 Chapter 6 Frame Relay Configuration Commands
Parameter
Description
Use the debugging fr pvc-group command to enable debugging for the specified
PVC group or all PVC groups.
Use the undo debugging fr pvc-group command to disable the debugging output.
By default, the debugging of PVC groups is disabled.
Related command: fr pvc-group.
Example
# Enable debugging for the PVC group named 123 on interface Serial1/0/0.
<H3C> debugging fr pvc-group interface serial1/0/0 123
0.292940090 46A FR/8/debug8: PVCGROUP: Serial1/0/0, pvc group name:123
*0.292940180 46A FR/8/debug8: pvc group state change to DOWN
*0.292963710 46A FR/8/debug8: PVCGROUP: Serial1/0/0, pvc group name:123
*0.292963800 46A FR/8/debug8: pvc group state change to UP
The above debugging information displays the status change of the PVC group named
123 on interface Serial1/0/0.
Syntax
View
User view
Parameter
Description
6-6
Command Manual – Link Layer Protocol
Comware V3 Chapter 6 Frame Relay Configuration Commands
Example
Syntax
View
Any view
Parameter
Description
Use the display fr compress command to view the statistics information of the frame
relay compression. If no interface is specified, the DLCI statistics information of all the
interfaces will be displayed.
Related command: fr compression frf9.
Example
# View the frame relay compression statistics information of MFR interface 4/0/0.
<H3C> display fr compress
Serial2/0/0-DLCI:100
enable frame-relay compression
Uncompressed Octets out/in : 766/0 Compressed Octets out/in : 329/0
1 min avg ratio xmt/rcv:0.42/0.00 5 min avg ratio xmt/rcv:0.42/0.00
Field Description
enable frame-relay compression Frame relay compression is enabled
Uncompressed transmitted /received
Uncompressed Octets out/in : 766/0
octets
Compressed Octets out/in : 329/0 Compressed transmitted/received octets
In one minute, average
1 min avg ratio xmt/rcv:0.42/0.00
transmission/receiving rate
In five minutes, average
5 min avg ratio xmt/rcv:0.42/0.00
transmission/receiving rate
6-7
Command Manual – Link Layer Protocol
Comware V3 Chapter 6 Frame Relay Configuration Commands
Syntax
View
Any view
Parameter
Description
Use the display fr dlci-switch command to view the information of the configured FR
switching to check if the frame relay switching of a user is correctly configured.
Related command: fr dlci-switch.
Example
Field Description
Status The status of FR switching function.
Input interface and its DLCI, output
Interface(Dlci) < -- > Interface(Dlci)
interface and its DLCI.
Syntax
View
Any view
Parameter
6-8
Command Manual – Link Layer Protocol
Comware V3 Chapter 6 Frame Relay Configuration Commands
Description
Use the display fr inarp-info command to view statistics about frame relay inverse
ARP (INARP) packets, including requests and replies.
According to the output of this command, you can diagnose whether INARP is
operating normally.
Related command: fr inarp.
Example
Field Description
Frame relay InverseARP statistics for Display frame relay INARP packet
interface Serial1/0/0 (DTE) statistics for the interface
In ARP request Received ARP requests
Syntax
View
Any view
Parameter
Description
Use the display fr interface command to view frame relay state on the specified or all
interfaces.
6-9
Command Manual – Link Layer Protocol
Comware V3 Chapter 6 Frame Relay Configuration Commands
Example
Field Description
Interface encapsulated with frame relay, its
Serial1/0/0, DTE, physical up,
operating state (DTE, DCE, or NNI), its
protocol up
physical layer state and link layer state
Serial1/0/0.1, multi-point, protocol up Subinterface, its type and link layer state
Syntax
View
Any view
Parameter
Description
Use the display fr lmi-info command to view the statistics of LMI protocol frame.
The LMI protocol is used to maintain the current Frame Relay link, including the status
enquiry packet and status packet. The displayed information helps you to diagnose the
faults.
Related command: fr interface-type.
Example
6-10
Command Manual – Link Layer Protocol
Comware V3 Chapter 6 Frame Relay Configuration Commands
Field Description
Frame relay LMI statistics for interface
Terminal type and LMI protocol type for
Serial1/0/0(DTE,
the frame relay interface
NONSTANDARD-COMPATIBLE)
T391DTE = 10 (keepalive 10) DTE-side T.391 setting
N391DTE = 6, N392DTE = 3, N393DTE DTE-side N.391, N.392, and N.393
=4 settings
State enquiry packets sent out the
out status enquiry = 96
interface
in status = 85 Status packets received on the interface
Syntax
View
Any view
Parameter
Description
Use the display fr map-info command to view all FR address maps or the one for the
specified interface.
6-11
Command Manual – Link Layer Protocol
Comware V3 Chapter 6 Frame Relay Configuration Commands
This command displays whether the static address map entries are correct and
whether dynamic address mapping operates normally.
Related command: fr map ip, fr inarp.
Example
Field Description
Map Statistics for interface
Display the frame relay address map
Serial1/0/2 (DTE)
DLCI = 100, IP INARP 100.100.1.1, The PVC with DLCI 100 is mapped to remote
Serial1/0/2 IP address 100.100.1.1 through INARP
Time and date when the map entry was
create time = 2005/10/21 14:48:44
created
status = ACTIVE State of the map entry
encapsulation = ietf Encapsulation is set to IETF
broadcast Broadcasts are permitted
Syntax
View
Any view
Parameter
None
6-12
Command Manual – Link Layer Protocol
Comware V3 Chapter 6 Frame Relay Configuration Commands
Description
Use the display fr map-info pppofr command to display information about the current
PPPoFR map and its state.
Example
# Display information about the current PPPoFR map and its state.
[H3C] display fr map-info pppofr
Fr Interface DLCI Fr State PPP Interface PPP Phase
Serial0/0/0 100 down Virtual-Template1 Phase:0
Serial0/0/0 200 down Virtual-Template2 Phase:0
Table 6-8 Description on the fields of the display fr map-info pppofr command
Field Description
Fr Interface Frame relay interface name
DLCI DLCI number
Syntax
View
Any view
Parameter
Description
Use the display fr pvc-group command to view status, name, backup, protection, and
other information about the specified PVC group, PVC groups on a specified interface,
or all PVC groups if no argument is specified.
If no interface is specified, the displayed result does not provide information about the
interface where a PVC group is located.
6-13
Command Manual – Link Layer Protocol
Comware V3 Chapter 6 Frame Relay Configuration Commands
Example
# Display information about the PVC group named 123 on interface Serial 1/0/0.
[H3C] display fr pvc-group interface serial1/0/0 123
PVC group information for interface Serial1/0/0 (DCE, physical UP)
PVC-GROUP NAME: 123:
Interface: Serial1/0/0
Protocol: IP
State: ACTIVE
Field Description
PVC group information for
The interface Serial1/0/0 functions as DCE and its
interface Serial1/0/0 (DCE,
physical layer is up.
physical UP)
PVC-GROUP NAME: 123 The name of the PVC group is 123.
Interface: Serial1/0/0 PVC group 123 is located on interface Serial1/0/0.
6-14
Command Manual – Link Layer Protocol
Comware V3 Chapter 6 Frame Relay Configuration Commands
Field Description
Protocol: IP IP protocol is used for data transmission.
State: ACTIVE PVC group 123 is active.
The PVC group includes a PVC with the DLCI of
PVC DLCI: 100
100.
The precedence identifier of IP packet is used to
ip-precedence:
differentiate the flows.
The PVC with DLCI 100 carries IP packets of
Grade: 0 - 3
priority levels from 0 to 3.
When the PVC with the DLCI of 100 goes down,
the PVC for carrying IP packets of priority level 4
bump: 4
(that it, the PVC with the DLCI of 200) takes over
for the failed PVC.
The PVC with the DLCI of 100 is configured to be
protect: individual
protected individually.
state: ACTIVE The PVC with the DLCI of 100 is active.
Syntax
View
Any view
Parameter
Description
Use the display fr pvc-info command to view the frame relay PVC table.
This command displays the statistics about the frame relay PVC status and
receiving/sending data on this PVC.
Related command: fr dlci.
Example
6-15
Command Manual – Link Layer Protocol
Comware V3 Chapter 6 Frame Relay Configuration Commands
Field Description
PVC statistics for interface Serial1/0/0 Display information about PVCs on the
(DTE, physical UP) frame relay interface
DLCI 100 was assigned to the PVC
DLCI = 100, USAGE = UNUSED (0000), through negotiation of LMI with DCE
INTERFACE = Serial1/0/0 end. Its state is unused, and it belongs to
interface Serial 1/0/0.
create time = 2005/04/01 23:55:39, Date and time creating the PVC and the
status = active state of the PVC
in BECN = 0, in FECN = 0 Received FECNs and BECNs
in packets = 0, in bytes = 0 Received frames and bytes
out packets = 0, out bytes = 0 Transmitted frames and bytes
Syntax
View
Any view
Parameter
Description
Use the display fr statistics command to view the current Frame Relay statistics
about receiving and sending packets.
The output information of this command can help the user to perform FR traffic
statistics and fault diagnosis.
6-16
Command Manual – Link Layer Protocol
Comware V3 Chapter 6 Frame Relay Configuration Commands
Example
# Display the Frame Relay statistics about receiving and sending packets.
<H3C> display fr statistics
Frame relay packet statistics for interface Serial1/0/0 (DTE)
in packets = 84, in bytes = 1333
out packets = 92, out bytes = 1217
discarded in packets = 13, discarded out packets = 0
Frame relay packet statistics for interface Serial1/1/0 (DCE)
in packets = 0, in bytes = 0
out packets = 0, out bytes = 0
discarded in packets = 0, discarded out packets = 0
Field Description
Frame relay packet statistics for Display frame relay packet statistics for
interface Serial1/0/0 (DTE) the interface
in packets = 84, in bytes = 1333 Received packets and bytes
out packets = 92, out bytes = 1217 Transmitted packets and bytes
discarded in packets = 13, discarded out
Dropped incoming/outgoing packets
packets = 0
Syntax
View
Any view
Parameter
Description
Use the display interface mfr command to view information on one or all MFR
interfaces, including configuration, state, and packet statistics.
6-17
Command Manual – Link Layer Protocol
Comware V3 Chapter 6 Frame Relay Configuration Commands
Example
Table 6-12 Description on the fields of the display interface mfr command
Field Description
MFR4 current state : UP Physical layer state
6-18
Command Manual – Link Layer Protocol
Comware V3 Chapter 6 Frame Relay Configuration Commands
Field Description
Packets and bytes received on the
1058 packets input, 832389 bytes, 0
interface and packets dropped as the
drops
result of full receive buffer
Packets and bytes transmitted on the
619 packets output, 828190 bytes, 0
interface and packets dropped as the
drops
result of full transmit buffer
Syntax
View
Any view
Parameter
Description
Use the display mfr command to view configuration and statistics information of
multilink frame relay bundle and bundle link. If no bundle or bundle link is specified,
information of all bundles and bundle links will be displayed.
Related command: link-protocol fr mfr, interface mfr.
Example
# Display configuration and state information of all frame relay bundles and frame relay
bundle links.
<H3C> display mfr
Bundle interface:MFR0, Bundle State = up, Bundle Class = A
fragment disabled
Bundle name = MFR0
Bundle links:
Serial0/0/0, PHY state = up, link state = up, Link name = Serial0/0/0
6-19
Command Manual – Link Layer Protocol
Comware V3 Chapter 6 Frame Relay Configuration Commands
Field Description
Bundle interface ––
6-20
Command Manual – Link Layer Protocol
Comware V3 Chapter 6 Frame Relay Configuration Commands
Field Description
Peer LID Identifier of the peer bundle link.
Physical state Operating state of the physical interface.
link state Operating state of the link protocol on the bundle link.
Bundle Link statistics: Statistics about the packets on the bundle link.
Number of the transmitted and received Hello messages.
Hello(TX/RX)
Hello messages are sent for maintaining link state.
Number of transmitted and received Hello
acknowledgement messages.
Hello_ack(TX/RX)
Hello_ack messages are sent notifying receipt of the Hello
messages.
Number of transmitted and received Add_link messages.
Add_link(TX/RX) Add_link messages are sent notifying the peer that the
local node is ready for processing frames.
Number of transmitted and received Add_link
acknowledgment messages.
Add_link_ack(TX/RX)
Add_link_ack messages are sent notifying receipt of the
Add_link messages.
Number of transmitted and received Add_link reject
messages.
Add_link_rej(TX/RX)
Add_link_rej messages are sent notifying reject of the
Add_link messages.
Number of transmitted and received Remove_link
messages.
Remove_link(TX/RX)
Remove_link messages are sent notifying removal of a
link from the bundle.
Number of transmitted and received Remove_link_ack
Remove_link_ack(TX/ messages.
RX) Remove_link_ack messages are sent notifying receipt of
the Remove_link messages.
Pkts dropped(in/out) Number of dropped incoming and outgoing packets.
Time waiting for a Hello_ack message before a Hello
Timer: Ack 4 message or an Add_link message (for initial
synchronization) is retransmitted on the bundle link.
Hello 10 Intervals for sending Hello messages.
Maximum number of Hello or Add_link sending retries
Retry: max 2 made when no Hello_ack or Add_link_ack is received on
the bundle link.
Current 0 Number of retries
Cause code Cause resulting in the current state of the bundle link.
6-21
Command Manual – Link Layer Protocol
Comware V3 Chapter 6 Frame Relay Configuration Commands
6.1.20 fr bump
Syntax
View
FR pvc-group view
Parameter
dlci: DLCI number of the PVC to be backed up, in the range 16 to 1007.
grade: Priority level of the packets assigned to the standby PVC that will take over for
the specified PVC when it fails. When the Precedence identifier in IP packet or the EXP
field in MPLS packet is used to differentiate packets, this argument is in the range 0 to 7.
When the DSCP identifier in IP packet is used to differentiate packets, this argument is
in the range 0 to 63.
Description
Use the fr bump command to configure the standby PVC that will take over when a
specified PVC goes down.
Use the undo fr bump command to remove the backup configuration.
The standby PVC configured using this command must be in the same PVC group as
the PVC to be backed up.
By default, a PVC has no standby PVC configured.
When a PVC goes down, if there is no standby PVC configured for it, the PVC carrying
packets of default priority levels takes over for it. If there is no PVC configured to carry
packets of default priority levels, the whole PVC group becomes unavailable.
Example
# For the PVC group named 123, configure the PVC carrying packets of priority level 3
to take over when PVC 200 goes down.
[H3C] interface serial1/0/0
[H3C-Serial1/0/0] fr pvc-group 123
[H3C-fr-pvc-group-Serial1/0/0-123] fr bump 200 3
Syntax
fr compression frf9
undo fr compression
6-22
Command Manual – Link Layer Protocol
Comware V3 Chapter 6 Frame Relay Configuration Commands
View
Parameter
None
Description
Example
Syntax
fr compression iphc
undo fr compression iphc
View
Parameter
None
Description
6-23
Command Manual – Link Layer Protocol
Comware V3 Chapter 6 Frame Relay Configuration Commands
Example
# Configure the Frame Relay interface Serial 4/1/0 to adopt IP header compression.
[H3C-Serial4/1/0] fr compression iphc
6.1.23 fr dlci
Syntax
fr dlci dlci
undo fr dlci dlci
View
Parameter
dlci: Virtual circuit number allocated for Frame Relay interface. The range of the
number is 16 to 1007. 0 to 15 and 1008 to 1023 are reserved by the protocol for special
purpose.
Description
Use the fr dlci command to configure the virtual circuit for Frame Relay interface.
Use the undo fr dlci command to cancel the configuration.
When the Frame Relay interface type is DCE or NNI, it is necessary to manually
configure virtual circuit for interface (either main interface or sub-interface). When the
Frame Relay interface type is DTE, if the interface is main interface, the system will
automatically configure the virtual circuit according to the peer device.
If a PVC group has been created on the interface, configure the command in the view of
the PVC group.
Related command: fr interface-type.
Example
# Assign a virtual circuit with DLCI 100 to Frame Relay sub-interface Serial1/0/0.1.
[H3C-Serial1/0/0.1] fr dlci 100
6.1.24 fr dlci-switch
Syntax
6-24
Command Manual – Link Layer Protocol
Comware V3 Chapter 6 Frame Relay Configuration Commands
View
Parameter
in-dlci: DLCI in the packets received on the interface, in the range 16 to 1007.
interface-type: Specified interface type.
interface-number: Specified interface number.
out-dlci: DLCI in the sent packets. It is in the range 16 to 1007.
Description
Use the fr dlci-switch command to configure a static route for frame relay PVC
switching.
Use the undo fr dlci-switch command to delete a static route for frame relay PVC
switching.
By default, no static route is configured for frame relay PVC switching.
Before the static route of frame relay PVC is configured, it is necessary to enable the
frame relay PVC switching first by using the command fr switching.
The default type of the forwarding interface can be frame relay or MFR. You can
however specify a tunnel interface for forwarding, if one has been configured, thus
transmitting frame relay packets over IP networks.
Related command: fr switching.
Example
# Configure a static route, allowing the packets on the link with DLCI of 100 on Serial
1/0/0 to be forwarded over the link with DLCI of 200 on interface Serial 2/0/0.
[H3C-Serial1/0/0] fr dlci-switch 100 interface serial2/0/0 dlci 200
# Configure a static route, allowing the packets on the link with DLCI of 200 on Serial
4/1/2 to be forwarded over the link with DLCI of 300 on tunnel interface 4.
[H3C-Serial4/1/2] fr dlci-switch 200 interface Tunnel4 dlci 300
6.1.25 fr inarp
Syntax
6-25
Command Manual – Link Layer Protocol
Comware V3 Chapter 6 Frame Relay Configuration Commands
View
Interface view
Parameter
Description
Use the fr inarp command to enable the inverse address resolution of Frame Relay.
Use the undo fr inarp command to disable this function.
By default, system permits enabling the Frame Relay inverse address resolution.
When the Frame Relay sends data over the interface, it is necessary to map the
network address to the DLCI numbers. Such a map can be specified manually or can
be completed via the function of automatic inverse address resolution. Automatic
inverse address resolution can be started by using the command.
InARP of FR applies to both IP and IPX addresses.
If it is expected to enable the inverse address resolution function of all PVCs, the
command without any parameters is adopted.
If it is expected to enable the inverse address resolution function in the specified data
link, the command with dlci parameter is adopted.
The fr inarp command configured on an FR main interface also applies to its
subinterfaces.
Related command: fr map, reset fr inarp, and display fr map-info.
Example
# Enable InARP for IPX addresses on PVC 100 on FR interface Serial 0/0/0.
[H3C-Serial0/0/0] fr inarp ipx 100
6.1.26 fr interface-type
Syntax
6-26
Command Manual – Link Layer Protocol
Comware V3 Chapter 6 Frame Relay Configuration Commands
View
Interface view
Parameter
Description
Use the fr interface-type command to set the Frame Relay interface type.
Use the undo fr interface-type command to restore the default Frame Relay interface
type.
By default, the frame relay interface type is DTE
In Frame Relay, there are two communicating parties, namely, the user side and
network side. The user side is called Data Terminal Equipment (DTE), and the network
side is called Data Communications Equipment (DCE). In a Frame Relay network, the
interface between the Frame Relay switches is Network-to-Network Interface (NNI),
and the corresponding interface adopts the NNI operating view. If the device is used as
Frame Relay switching, the Frame Relay interface should operate in the NNI view or
DCE mode. NE16E/08E/05 routers support the three modes.
In NE16E/08E/05 routers, while configuring the Frame Relay interface type as DCE or
NNI, it is unnecessary to perform the fr switching command in the System view.
Please notice that this is different from Cisco.
Related command: link-protocol fr.
Example
6.1.27 fr iphc
Syntax
View
6-27
Command Manual – Link Layer Protocol
Comware V3 Chapter 6 Frame Relay Configuration Commands
Parameter
Description
Example
# Configure the number of RTP compression connections as 200 on the frame relay
Serial1/0/0.
[H3C-Serial1/0/0] fr iphc rtp-connections 200
6.1.28 fr ip-dscp
Syntax
View
FR pvc-group view
Parameter
6-28
Command Manual – Link Layer Protocol
Comware V3 Chapter 6 Frame Relay Configuration Commands
Description
Use the fr ip-dscp command to configure the PVC to carry packets of the specified
priority levels when the DSCP identifier in the IP packet is used to identify the priority
levels of packets.
Use the undo fr ip-dscp command to remove the configuration.
The DSCP identifier in the TOS field of the IP header occupies six bits, and therefore is
able to identify 64 priority levels. Note that:
z Only after you use the fr match command to specify to identify the priority levels of
packets by the DSCP identifier of IP packets, can you configure the fr ip-dscp
command.
z After configuring the fr match dscp command, you must configure this command;
otherwise, the whole PVC group will become unavailable because the packets of
the corresponding priority levels have no PVC to carry.
Related command: fr match.
Example
# Configure PVC 100 in PVC group 123 to carry IP packets of priority levels from 0 to
20.
<H3C> system-view
[H3C] interface serial1/0/0
[H3C-Serial1/0/0] fr pvc-group 123
[H3C-fr-pvc-group-Serial1/0/0-123] fr match dscp
[H3C-fr-pvc-group-Serial1/0/0-123] fr ip-dscp 100 0 20
6.1.29 fr ip-precedence
Syntax
View
FR pvc-group view
Parameter
6-29
Command Manual – Link Layer Protocol
Comware V3 Chapter 6 Frame Relay Configuration Commands
Description
Use the fr ip-precedence command to configure the PVC to carry packets of the
specified priority levels when the Precedence identifier in the IP packet is used to
identify the priority levels of packets.
Use the undo fr ip-precedence command to remove the configuration.
The Precedence identifier in the TOS field of the IP header occupies three bits, and
therefore is able to identify eight priority levels. Note that:
z After configuring the fr match command to specify to differentiate traffic by the
DSCP identifier, you cannot configure this command.
z If you do not configure the fr match dscp command or you have configured the fr
match precedence command, you must configure the fr ip-precedence
command.
By default, no packets are assigned to a PVC.
Related command: fr match.
Example
# Configure PVC 100 in PVC group 123 to carry IP packets of priority levels 0 to 2.
<H3C> system-view
[H3C] interface serial1/0/0
[H3C-Serial1/0/0] fr pvc-group 123
[H3C-fr-pvc-group-Serial1/0/0-123] fr match precedence
[H3C-fr-pvc-group-Serial1/0/0-123] fr ip-precedence 100 0 2
Syntax
View
Interface view
Parameter
Description
Use the fr lmi n391dte command to configure N391 parameter at the DTE side.
Use the undo fr lmi n391dte command to restore the default value.
By default, its value is 6.
6-30
Command Manual – Link Layer Protocol
Comware V3 Chapter 6 Frame Relay Configuration Commands
The DTE sends a Status-Enquiry packet at regular interval set by T391 to the DCE.
There are two types of Status-Enquiry packets: link integrity authentication packet and
link status enquiry packet. The N391 parameter defines the ratio of sending the two
types of packets, that is, link integrity authentication packets: link status enquiry
packets = (N391 - 1): 1.
Related command: fr interface-type.
Example
# Set DTE as the operating mode of Frame Relay interface Serial1/0/0, and the counter
value of the PVC status to 10.
[H3C-Serial1/0/0] link-protocol fr
[H3C-Serial1/0/0] fr interface-type dte
[H3C-Serial1/0/0] fr lmi n391dte 10
Syntax
View
Interface view
Parameter
Description
Use the fr lmi n392dce command to set N392 parameter at the DCE side.
Use the undo fr lmi n392dce command to restore the default configuration.
By default, the parameter value is 3.
The DCE requires the DTE to send a Status-Enquiry packet at regular interval (set by
T392). If the DCE does not receive the Status-Enquiry packet within a period of time, it
will record the error by adding 1 to the error count. If the errors exceed the threshold,
the DCE would consider the physical channels and all the DLCIs to be unavailable.
N392 and N393 together define the “error threshold”. N393 defines the event number
observed and N392 defines the error threshold of that number (N393). That is, if
number of errors that occurred to the DCE reaches N392 in N393 events, DCE will
consider the errors have reached the threshold and declare the physical channels and
all DLCIs to be unavailable.
N392 should be less than N393.
6-31
Command Manual – Link Layer Protocol
Comware V3 Chapter 6 Frame Relay Configuration Commands
Example
# Set the operation of frame relay interface Serial1/0/0 as DCE mode and sets N392 to
5 and N393 to 6.
[H3C] interface Serial1/0/0
[H3C-Serial1/0/0] link-protocol fr
[H3C-Serial1/0/0] fr interface-type dce
[H3C-Serial1/0/0] fr lmi n392dce 5
[H3C-Serial1/0/0] fr lmi n393dce 6
Syntax
View
Interface view
Parameter
Description
Use the fr lmi n392dte command to set N392 parameter at the DTE side.
Use the undo fr lmi n392dte command to restore the default configuration.
By default, the parameter is 3.
The DTE sends a Status-Enquiry packet at a regular interval to the DCE to inquire the
link status. On receiving this packet, the DCE will immediately send a Status-Response
packet. If the DTE does not receive the response packet in the specified time, it will
record the error by adding 1 to the error count. If the errors exceed the threshold, the
DTE will consider that the physical channels and all the DLCIs to be unavailable.
N392 and N393 together define the “error threshold”. N393 indicates the event number
observed and N392 indicates the error threshold of that number (N393). That is, if N392
errors occurred in N393 Status-Enquiry packets in the DTE, the DTE would consider
that the error had exceeded the threshold and declare the physical channels and all
DLCIs to be unavailable.
N392 at DTE side should be less than N393 at DTE side.
Related command: fr interface-type and fr lmi n393dte.
6-32
Command Manual – Link Layer Protocol
Comware V3 Chapter 6 Frame Relay Configuration Commands
Example
# Set the operation of frame relay interface Serial1/0/0 as the DTE mode and sets N392
to 5 and N393 to 6.
[H3C-Serial1/0/0] link-protocol fr
[H3C-Serial1/0/0] fr interface-type dte
[H3C-Serial1/0/0] fr lmi n392dte 5
[H3C-Serial1/0/0] fr lmi n393dte 6
Syntax
View
Interface view
Parameter
Description
Use the fr lmi n393dce command to set the N393 parameter at the DCE side.
Use the undo fr lmi n393dce command to restore the default configuration.
By default, the parameter value is 4.
The DCE requires the DTE to send a Status-Enquiry packet at a regular interval (set by
T392). If the DCE does not receive the Status-Enquiry packet, it will record the error by
adding 1 to the error count. If the errors exceed the threshold, the DCE would consider
the physical channels and all the DLCIs to be unavailable.
N392 and N393 together define the “error threshold”. N393 defines the event number
observed and N392 defines the error threshold of that number (N393). That is, if the
number of errors that occurred to the DCE reach N392 in N393 events, DCE will
consider the errors have reached the threshold and declare the physical channels and
all DLCIs to be unavailable.
N392 at DCE side should be less than N393 at DCE side.
Related command: fr interface-type and fr lmi n392dce.
Example
# Set the operation of frame relay interface Serial1/0/0 as DCE mode and sets N392 to
5 and N393 to 6.
[H3C] interface Serial1/0/0
6-33
Command Manual – Link Layer Protocol
Comware V3 Chapter 6 Frame Relay Configuration Commands
[H3C-Serial1/0/0] link-protocol fr
[H3C-Serial1/0/0] fr interface-type dce
[H3C-Serial1/0/0] fr lmi n392dce 5
[H3C-Serial1/0/0] fr lmi n393dce 6
Syntax
View
Interface view
Parameter
Description
Use the fr lmi n393dte command to set N393 parameter at the DTE side. Use the
undo fr lmi n393dte command to restore the default configuration.
By default, the parameter value is 4.
The DTE sends a Status-Enquiry packet at a regular interval to the DCE to inquire the
link status. On receiving this packet, the DCE will immediately send a Status-Response
packet. If the DTE does not receive the response packet in the specified time, it will
record the error by adding 1 to the error count. If the errors exceed the threshold, the
DTE will consider that the physical channels and all the DLCIs to be unavailable.
N392 and N393 together define the “error threshold”. N393 indicates the event number
observed and N392 indicates the error threshold of that number (N393). That is, if N392
errors occurred in N393 Status-Enquiry packets in the DTE, the DTE would consider
that the error count had exceeded the threshold and declare the physical channels and
all DLCIs to be unavailable.
N392 at DTE side should be less than N393 at DTE side.
Related command: fr interface-type and fr lmi n392dte.
Example
# Set the operation of frame relay interface Serial1/0/0 as the DTE mode and sets N392
to 5 and N393 to 6.
[H3C-Serial1/0/0] link-protocol fr
[H3C-Serial1/0/0] fr interface-type dte
[H3C-Serial1/0/0] fr lmi n392dte 5
[H3C-Serial1/0/0] fr lmi n393dte 6
6-34
Command Manual – Link Layer Protocol
Comware V3 Chapter 6 Frame Relay Configuration Commands
Syntax
View
Interface view
Parameter
t392-value: Value of the polling timer. The range of the value is 5 to 30, in seconds.
Description
Use the fr lmi t392dce command to set T392 parameter at the DCE side.
Use the undo fr lmi t392dce command to restore the default configuration.
By default, the parameter value is 15s.
This parameter defines the maximum time for DCE waiting for a Status-Enquiry.
T392 at DCE side should be greater than T391 at DTE side.
Related command: fr interface-type.
Example
# Set the Frame Relay interface Serial1/0/0 to operate in DCE mode and set T392 to
10s.
[H3C] interface Serial1/0/0
[H3C-Serial1/0/0] link-protocol fr
[H3C-Serial1/0/0] fr interface-type dce
[H3C-Serial1/0/0] fr lmi t392dce 10
Syntax
View
Interface view
Parameter
6-35
Command Manual – Link Layer Protocol
Comware V3 Chapter 6 Frame Relay Configuration Commands
Description
Use the fr lmi type command to configure the Frame Relay LMI protocol type.
Use the undo fr lmi type command to restore to the default value of LMI protocol type.
By default, the LMI protocol type is q933a.
The NE16E/08E/05 routers usually support three LMI protocols, namely, Q.933
Appendix A, ANSI T1.617 Appendix D and Nonstandard compatible LMI protocol.
Related command: display interface.
Example
6.1.37 fr map ip
Syntax
View
Interface view
Parameter
6-36
Command Manual – Link Layer Protocol
Comware V3 Chapter 6 Frame Relay Configuration Commands
ietf: The map adopts IETF encapsulation format. In this case, only FRF9 and IPHC can
be adopted. PVC groups does not support compression.
compression: Enables frame relay compression.
frf9: Adopts payload compression.
iphc: Adopts IP, UDP, or RTP header compression.
connections number: RTP compression connection number.
Description
Use the fr map ip command to add an IP address map entry for FR.
Use the undo fr map ip command to remove an IP address map entry for FR.
By default, no static address map entry exists and InARP is enabled.
You may map an IP address to a PVC by specifying DLCI, or to a PVC group by
specifying PVC group name. In the latter case, which PVC is selected from the PVC
group to forward an IP packet depends on the precedence of the packet.
You can create an address map manually or by using InARP. InARP is suitable for a
complex network where the remote router also supports InARP. When the number of
remote hosts is small or when default routes exist, however, manual map creation is
preferred.
Related command: display fr map, fr inarp.
Note:
In the fr map ip command, if nonstandard encapsulation is adopted, only IPHC
compression is available; if IETF encapsulation is adopted, both IPHC compression
and FRF.9 compression are available.
Example
# Create a static address map entry on interface Serial 1/0/0, where DLCI 50 is
connected to the router with IP address 202.38.163.252.
[H3C-Serial1/0/0] fr map ip 202.38.163.252 50
# Interface Serial 1/0/0 is connected to a router with IP address 10.1.1.1. Map PVC
group 123 to this remote IP address for data forwarding.
[H3C-Serial1/0/0] fr map ip 10.1.1.1 pvc-group 123
6-37
Command Manual – Link Layer Protocol
Comware V3 Chapter 6 Frame Relay Configuration Commands
Syntax
View
Interface view
Parameter
Description
Use the fr map ipx command to add an IPX address map entry.
Use the undo fr map ipx command to remove an IPX address map entry of FR.
By default, no static address map entry exists.
You can create an address map manually or by using InARP. InARP is suitable for a
complex network where the remote router also supports InARP. When the number of
remote hosts is small or when default routes exist, however, manual map creation is
preferred.
The priority of a static address map entry is higher than that of a dynamic address map
entry. When a dynamic address map entry is found to be the same as a static address
map entry, it is automatically removed.
Related command: display fr map, fr inarp.
Example
# Create a static IPX address map entry on interface Serial 0/0/0, where DLCI 50 is
connected to the remote IPX address 100.00e0-fc32-4802.
[H3C-Serial0/0/0] fr map ipx 100.00e0-fc32-4802 50
6-38
Command Manual – Link Layer Protocol
Comware V3 Chapter 6 Frame Relay Configuration Commands
Syntax
View
Interface view
Parameter
Description
Use the fr map ppp interface virtual-template command to map the FR DLCI
(corresponds to an FR PVC) to a PPP link, so the PPPoFR link is established, and thus
PPP packets can be sent/received on FR PVC. The configuration parameter of this
PPP link is up to the parameters configured on the interface which is specified by
interface virtual-template interface-number.
Use the undo map ppp command to cancel this map, and thus eliminates this
PPPoFR link.
See interface virtual-template for related configurations.
Example
6.1.40 fr match
Syntax
View
FR pvc-group view
Parameter
dscp: Specifies to differentiate IP packets by the 6-bit DSCP identifier in the TOS field
of the IP header.
6-39
Command Manual – Link Layer Protocol
Comware V3 Chapter 6 Frame Relay Configuration Commands
Description
Use the fr match command to configure a PVC group to differentiate traffic by the
Precedence or DSCP identifier in the TOS field of the IP header.
Use the undo fr match command to remove the configuration.
By default, a PVC group uses the 3-bit Precedence identifier to differentiate IP packets.
Related command: fr ip-precedence, fr ip-dscp.
Example
# Configure PVC group 123 to differentiate traffic by the 6-bit DSCP identifier in the
TOS field of the IP header.
<H3C> system-view
[H3C] interface serial1/0/0
[H3C-Serial1/0/0] fr pvc-group 123
[H3C-fr-pvc-group-Serial1/0/0-123] fr match dscp
6.1.41 fr mpls-exp
Syntax
View
FR pvc-group view
Parameter
Description
Use the fr mpls-exp command to configure the PVC to carry packets of the specified
priority levels when the EXP identifier in the MPLS packet is used to identify the priority
levels of packets.
Use the undo fr mpls-exp command to remove the configuration.
6-40
Command Manual – Link Layer Protocol
Comware V3 Chapter 6 Frame Relay Configuration Commands
Before configuring this command, you must enable MPLS in system view and interface
view.
By default, no PVC is assigned for MPLS packets of the specified priority levels.
Example
# Configure PVC 100 in PVC group 123 to carry MPLS packets of priority levels 0 to 2.
<H3C> system-view
[H3C] interface serial1/0/0
[H3C-Serial1/0/0] fr pvc-group 123
[H3C-fr-pvc-group-Serial1/0/0-123] fr mpls-exp 100 0 2
6.1.42 fr pvc-group
Syntax
fr pvc-group pvc-group-name
undo fr pvc-group pvc-group-name
View
Interface view
Parameter
Description
Example
6.1.43 fr pvc-protect
Syntax
6-41
Command Manual – Link Layer Protocol
Comware V3 Chapter 6 Frame Relay Configuration Commands
View
FR pvc-group view
Parameter
Description
Use the fr pvc-protect command to configure the protection mode for a PVC in a PVC
group.
Use the undo fr pvc-protect command to remove protection of a PVC group member.
Note that:
z With a PVC in a PVC group configured to be protected in individual mode, the
whole PVC group becomes unavailable when the PVC goes down. Even if the
PVC is configured with a standby PVC, the standby PVC does not take over.
z With several PVCs in a PVC group configured to be protected in group mode,
when a protected PVC goes down, if its standby PVC (if any) is also a member of
the protected object, the standby PVC takes over for the failed PVC. Otherwise,
the standby PVC cannot take over and the whole PVC group becomes
unavailable.
By default, the system does not protect any PVC in a PVC group.
Note:
When a PVC protected in individual mode goes down, the whole PVC group becomes
unavailable. When all PVCs in a protected group go down, even if packets of any
priority levels are configured with standby PVCs that are active at the time, the PVC
group still becomes unavailable.
Example
# Specify to protect PVC 200 and PVC 300 in PVC group 123 in group mode.
<H3C> system-view
6-42
Command Manual – Link Layer Protocol
Comware V3 Chapter 6 Frame Relay Configuration Commands
6.1.44 fr switch
Syntax
View
System view
Parameter
name: Name of PVC used for frame relay switching, consisting of 30 characters at
most.
interface interface-type interface-number dlci dlci: DLCI number at both ends of PVC
as well as the type and number of its interface. The peer can be specified as Tunnel
interface.
Description
Use the fr switch command to create a PVC used for frame relay switching and enter
frame relay switching view.
Use the undo fr switch command to delete a specified PVC.
By default, there is no PVC used for frame relay switching.
The interface for forwarding packets can be either a frame relay interface or an MFR
interface. If Tunnel interface is specified as the forwarding interface, frame relay
packets over IP can thus be realized.
In frame relay switching view, the shutdown/undo shutdown operation can be
executed on a PVC. Before you can enter frame relay switching view, the PVC must
have existed.
Related command: display fr pvc-info, fr dlci-switch, fr switching, and fr dlci.
Example
# Create a PVC named pvc1 on the DCE serving as the switch, which is from the DCLI
100 of serial interface 0/0/0 to the DLCI 200 of serial interface 1/0/0.
[H3C] fr switching
6-43
Command Manual – Link Layer Protocol
Comware V3 Chapter 6 Frame Relay Configuration Commands
[H3C] fr switch pvc1 interface serial 0/0/0 dlci 100 interface serial 1/0/0
dlci 200
[H3C-fr-switching-pvc1]
6.1.45 fr switching
Syntax
fr switching
undo fr switching
View
System view
Parameter
None
Description
Example
Syntax
View
System view
Parameter
6-44
Command Manual – Link Layer Protocol
Comware V3 Chapter 6 Frame Relay Configuration Commands
Description
Use the interface mfr command to create a multilink frame relay bundle interface or
sub-interface and enter the corresponding interface view.
Use the undo interface mfr command to delete a specified multilink frame relay
bundle interface or sub-interface.
By default, there is no multilink frame relay interface or sub-interface.
Before using the undo interface mfr command to delete an MFR interface, you must
delete all physical interfaces from the MFR interface.
Before an MFR sub-interface is created, the MFR interface must be created first.
Related command: link-protocol fr mfr, mfr bundle-name.
Example
Syntax
View
System view
Parameter
Description
Use the interface serial [ p2p | p2mp ] command to configure type of the specified FR
subinterface and enter frame relay subinterface view.
Use the undo interface serial [ p2p | p2mp ] command to restore the default frame
relay subinterface type.
6-45
Command Manual – Link Layer Protocol
Comware V3 Chapter 6 Frame Relay Configuration Commands
By default, the link-layer protocol encapsulated on the interface is PPP, and the Frame
Relay encapsulation format is IETF.
FR subinterface type defaults to p2mp.
Example
6.1.48 link-protocol fr
Syntax
View
Interface view
Parameter
Description
Example
Syntax
6-46
Command Manual – Link Layer Protocol
Comware V3 Chapter 6 Frame Relay Configuration Commands
View
Interface view
Parameter
Description
Use the link-protocol fr mfr command to configure the current physical interface as an
MFR bundle link and bundle it onto a specified MFR interface.
By default, there is no MFR bundle link.
When this command is configured, the specified MFR interface must exist. A maximum
of 16 physical interfaces can be bundled onto an MFR interface.
To delete a physical interface from an MFR interface, use the link-protocol command
to apply a link layer protocol of non frame relay MFR to the interface.
Related command: interface mfr, mfr link-name.
Example
# Configure the current serial interface as a bundle link and add it onto the frame relay
bundle interface mfr4.
[H3C-Serial4/1/2] link-protocol fr mfr 4
Syntax
View
Parameter
Description
Use the mfr bundle-name command to set frame relay bundle identification (BID).
Use the undo mfr bundle-name command to restore the default value.
By default, BID is represented by mfr plus frame relay bundle number, for example,
mfr4.
6-47
Command Manual – Link Layer Protocol
Comware V3 Chapter 6 Frame Relay Configuration Commands
Each MFR bundle has a BID, which only has local significance. Therefore, the same
BID can be used at both ends of the link.
When changing the BID of an interface, you must execute the shutdown/undo
shutdown command on the interface to validate the new BID.
Related command: mfr link-name.
Example
Syntax
mfr fragment
undo mfr fragment
View
Parameter
None
Description
Use the mfr fragment command to enable FRF.16 fragmentation on the MFR bundle.
Use the undo mfr fragment command to disable the function.
By default, FRF.16 fragmentation is disabled on the MFR bundle.
Related command: mfr fragment-size, mfr window-size.
Example
Syntax
6-48
Command Manual – Link Layer Protocol
Comware V3 Chapter 6 Frame Relay Configuration Commands
View
Parameter
Description
Use the mfr fragment-size command to configure the maximum fragment size allowed
on a frame relay bundle link.
Use the undo mfr fragment-size command to restore the default setting.
By default, the maximum fragment size allowed on a frame relay bundle link is of 300
bytes.
The priority of the fragment size configured in frame relay interface view is higher than
that of the one configured in MFR interface view.
Related command: mfr fragment and mfr window-size.
Example
# Configure the maximum fragment size allowed on the multilink frame relay bundle link
Serial4/1/2 to be 70 bytes.
[H3C-Serial4/1/2] mfr fragment-size 70
Syntax
View
Parameter
name: Name of a bundle link identification, in the form of character string, in the range 1
to 49.
Description
Use the mfr link-name command to set the frame relay bundle link identification (LID).
Use the undo mfr link-name command to restore the default setting.
By default, LID is the name of the corresponding physical interface.
6-49
Command Manual – Link Layer Protocol
Comware V3 Chapter 6 Frame Relay Configuration Commands
The peer equipment identifies a frame relay bundle link via LID or associates the
bundle link with a frame relay bundle by using LID. LID is locally valid; therefore, the
LIDs at both ends of a link can be the same.
When changing the bundle LID on an interface, you must execute the shutdown/undo
shutdown command on the interface to make the new bundle LID valid.
Related command: mfr bundle-name.
Example
# Set the bundle LID of the multilink frame relay bundle link Serial4/1/2 to be bl1.
[H3C-Serial4/1/2] mfr link-name bl1
Syntax
View
Parameter
number: The maximum times that a bundle link can resend hello messages, in the
range 1 to 5. By default, it is twice.
Description
Use the mfr retry command to set the maximum times that a frame relay bundle link
can resend hello message when waiting for a hello acknowledgement message.
Use the undo mfr retry command to restore the default setting.
If the times that a bundle link resends hello message reach the maximum without
receiving acknowledgement from the peer, the system will regard the link protocol on
the bundle link to be malfunctioning.
Only after the link-protocol fr mfr command is used to associate a frame relay bundle
link interface with a frame relay bundle, can this command be configured.
Related command: mfr timer ack and mfr timer hello.
Example
# Set the bundle link Serial4/1/2 to resend hello message for 3 times at most.
[H3C-Serial4/1/2] mfr retry 3
6-50
Command Manual – Link Layer Protocol
Comware V3 Chapter 6 Frame Relay Configuration Commands
Syntax
View
Parameter
seconds: Time of waiting for hello acknowledgment message before resending hello
message, in seconds, in the range 1 to 10. It defaults to 4 seconds.
Description
Use the mfr timer ack command to set the time of waiting for hello acknowledgment
message before frame relay bundle link resends hello message.
Use the undo mfr timer ack command to restore the default setting.
Related command: mfr timer hello and mfr retry.
Example
# Set the frame relay bundle link Serial4/1/2 to wait for six seconds before resending
hello message.
[H3C-Serial4/1/2] link-protocol fr mfr 4
[H3C-Serial4/1/2] mfr timer ack 6
Syntax
View
Parameter
seconds: Interval for a bundle link to send hello message, in seconds, in the range 1 to
180. By default, it is 10 seconds.
Description
Use the mfr timer hello command to set the interval for a frame relay bundle link to
send hello message.
6-51
Command Manual – Link Layer Protocol
Comware V3 Chapter 6 Frame Relay Configuration Commands
Use the undo mfr timer hello command to restore the default setting.
Both ends of a frame relay bundle link periodically send hello message to the peer end.
After the peer receives the hello message, it will response hello acknowledgement
message.
Related command: mfr timer ack, mfr retry.
Example
# Set the bundle link Serial4/0/2 to send hello message once every 15 seconds.
[H3C-Serial4/1/2] mfr timer hello 15
Syntax
View
Parameter
Description
Use the mfr window-size command to configure the number of fragments that can be
held by the window used in sliding window algorithm when multilink frame relay
reassembles received fragments.
By default, the size of a sliding window is equal to the number of physical interfaces of
an MFR bundle.
Related command: interface mfr, mfr fragment, mfr fragment-size.
Example
# Set the size of the sliding window of the MFR bundle interface MFR4 to be 8.
[H3C-MFR4] mfr window-size 8
6.1.58 shutdown
Syntax
shutdown
undo shutdown
6-52
Command Manual – Link Layer Protocol
Comware V3 Chapter 6 Frame Relay Configuration Commands
View
Description
Example
Syntax
reset fr inarp
View
User view
Parameter
None
Description
Use the reset fr inarp command to clear the address mapping established by inverse
ARP.
In some special cases, for example, when the network architecture changes, the
dynamic address maps originally established will become invalid. Hence it is necessary
to establish them again. Users can use this command to clear all the dynamic address
maps.
Related command: fr inarp.
Example
6-53
Command Manual – Link Layer Protocol
Comware V3 Chapter 6 Frame Relay Configuration Commands
Syntax
View
Interface view
Parameter
seconds: Value of polling timer, which ranges from 0 to 32767 in seconds. 0 indicates
that the LMI protocol is disabled.
Description
Use the timer hold command to configure the polling timer at the DTE side.
Use the undo timer hold command to restore its default value.
By default, the parameter is 10 seconds.
The parameter defines the interval of Status-Enquiry packet sent by DTE.
Related command: fr interface-type and fr lmi t392dce.
Example
# Configure that Frame Relay interface serial1/0/0 to work in DTE mode, and set the
value of polling timer to 15 seconds.
[H3C-Serial1/0/0] link-protocol fr
[H3C-Serial1/0/0] fr interface-type dte
[H3C-Serial1/0/0] timer hold 15
6-54
Command Manual – Link Layer Protocol
Comware V3 Chapter 7 ATM Configuration Commands
Syntax
atm-class atm-class-name
undo atm-class atm-class-name
View
Parameter
Description
Use the atm-class command to apply a set of parameters (which are defined in
ATM-Class) to an ATM interface or a PVC.
Use the undo atm-class command to delete the specified ATM-Class.
Related command: atm class.
Example
Syntax
View
System view
Parameter
7-1
Command Manual – Link Layer Protocol
Comware V3 Chapter 7 ATM Configuration Commands
Description
Use the atm class command to create an ATM-Class and enter the ATM-Class view.
Use the undo atm class command to delete the specified ATM-Class.
An ATM-Class is a group of predefined parameters that can be used for ATM interface
or PVC.
Related command: atm-class.
Example
7.1.3 atm-ctt
Syntax
atm-ctt
undo atm-ctt
View
Parameter
None
Description
Use the atm-ctt command to set all interfaces on a board to transparent transmission.
Use the undo atm-ctt command to set all interfaces on a board to non transparent
transmission state.
By default, all interfaces on all boards are in non transparent transmission state.
Note:
This command is only valid on the first ATM interface on a board.
Example
7-2
Command Manual – Link Layer Protocol
Comware V3 Chapter 7 ATM Configuration Commands
[H3C-Atm1/0/0] atm-ctt
Syntax
atm-link check
undo atm-link check
View
Parameter
None
Description
Use the atm-link check command to have the protocol state of the ATM P2P
subinterface changes depending on whether the physical interface is up and whether a
PVC is configured on the subinterface. The protocol of the subinterface, which comes
down otherwise, goes up when the physical interface is up and a PVC is configured on
the subinterface.
Use the undo atm-link check command to restore the default protocol state on the
ATM P2P subinterface.
By default, the protocol of the ATM P2P subinterface goes up or comes down
depending on whether the physical interface is up or down.
This command applies only to ATM P2P subinterfaces.
Example
# Enable the protocol sate of ATM P2P subinterface 4/0/0.1 to change depending on
whether the physical interface is up and whether a PVC is configured on the
subinterface.
[H3C-Atm4/0/0.1] atm-link check
7.1.5 bump
Syntax
View
7-3
Command Manual – Link Layer Protocol
Comware V3 Chapter 7 ATM Configuration Commands
Parameter
Description
Use the bump command to configure the standby PVC that will take over when a
specified PVC goes down.
Use the undo bump command to remove the backup configuration.
The standby PVC configured using this command must be in the same PVC group as
the PVC to be backed up.
By default, a PVC has no standby PVC configured. When a PVC goes down, the
packets for the PVC to carry will be carried by the PVC specified with the default
keyword. If no PVC is specified with the default keyword, the fundamental PVC (that is,
the PVC used to construct the PVC group) will take over.
Related command: pvc-group, pvc.
Example
# For PVC group 1/100, configure the PVC carrying packets of priority level 3 to take
over when PVC 1/200 goes down.
<H3C> system-view
[H3C] interface atm1/0/0
[H3C-Atm1/0/0] pvc-group 1/100
[H3C-atm-pvc-group-Atm1/0/0-1/100] bump 1/200 3
7.1.6 cell-packing
Syntax
cell-packing cell-number
undo cell-packing
7-4
Command Manual – Link Layer Protocol
Comware V3 Chapter 7 ATM Configuration Commands
View
PVC view
Parameter
Description
Use the cell-packing command to set the maximum number of cells to be packed in
one PVC.
Use the undo cell-packing command to restore to the default value.
By default, the maximum number of packet is one.
If the number of cells in a buffer reaches the maximum number of cells to be packed,
the cells in the buffer will be packed together with those in a PVC and sent.
Example
7.1.7 clock
Syntax
View
Parameter
master: Specify ATM interface to use the internal transmission clock signal.
slave: Restore the line clock signal.
Description
Use the clock command to specify ATM interface to use internal transmission clock
signal.
Use the undo clock command to restore the usage of network clock signal.
7-5
Command Manual – Link Layer Protocol
Comware V3 Chapter 7 ATM Configuration Commands
By default, ATM interface uses the network clock signal. This clock signal is usually
provided by the device which provides ATM interfaces.
When two network devices are directly connected in the back-to-back method through
the ATM interfaces, this command is used to set the internal transmission clock at the
ATM interface of one device.
Note:
Although this command is valid on both ATM main interface and sub-interface, it can
only be used in ATM main interface view and there is not this command in ATM
sub-interface view.
Example
Syntax
View
User view
Parameter
None
Description
Use the debugging atm all command to enable all the debugging switches of ATM.
Use the undo debugging atm all command to disable the debugging.
By default, all the ATM debugging switches are disabled.
7-6
Command Manual – Link Layer Protocol
Comware V3 Chapter 7 ATM Configuration Commands
Note:
Because the use of this command can lead to a mass of output information, this may
cause that users cannot control network devices through terminals and the efficiency of
packet transmitting and receiving may be greatly damaged.
Related command: debugging atm error, debugging atm event, debugging atm
packet.
Example
# Refer to the examples for the commands debugging atm error, debugging atm
event, and debugging atm packet.
Syntax
View
User view
Parameter
Description
Use the debugging atm error command to enable the error debugging of ATM.
Use the undo debugging atm error command to disable the debugging.
By default, all ATM error debugging switches are disabled.
If no interface is specified, all ATM error debugging, global, interface level, or PVC level,
is enabled.
7-7
Command Manual – Link Layer Protocol
Comware V3 Chapter 7 ATM Configuration Commands
Example
Syntax
View
User view
Parameter
Description
Use the debugging atm event command to enable the event debugging of ATM.
Use the undo debugging atm event command to disable the debugging.
By default, all ATM event debugging is disabled.
If no interface is specified, all ATM event debugging, global, interface level, or PVC
level, is enabled.
This command is used to enable all the debugging of events that happen at the ATM
interface or a PVC, which can be used to trace some essential events of the system.
Such information may be helpful for detecting network faults.
Example
The example is a case to enable the debugging of ATM events and display the results.
# Enable all ATM event debugging.
<H3C> debugging atm event
7-8
Command Manual – Link Layer Protocol
Comware V3 Chapter 7 ATM Configuration Commands
Syntax
View
User view
Parameter
Description
Use the debugging atm packet command to enable the packet debugging of ATM.
Use the undo debugging atm packet command to disable the debugging.
By default, all the debugging of ATM packet is disabled.
If no interface is specified, all ATM packet debugging, global, interface level, or PVC
level, is enabled.
After the packet switch is enabled, the detailed information about receiving/sending
packets at the ATM interface or PVC will be displayed. This will be very helpful for
system troubleshooting.
The received packets will display all the information about received frames , which can
indicate whether the sending side correctly encapsulates these frames. This will be
greatly helpful for the network device detection.
Packet debug information displays the PDU byte information in hex, through which
technical support personnel or engineers can locate some system errors.
7-9
Command Manual – Link Layer Protocol
Comware V3 Chapter 7 ATM Configuration Commands
Note:
Since the use of this command can lead to a mass of output information during each
packet receiving and transmitting, this may cause that users cannot control network
devices through their terminals, and thus greatly affect the efficiency of packet
transmitting and receiving.
Example
The example is a case to enable the debugging of ATM packet and display the results.
# Enable all the packet debugging of ATM.
<H3C> debugging atm packet
It indicates that PPP packets are being output from PVC 1/32 of Atm1/0/0.
Syntax
View
Any view
Parameter
Description
Use the display atm class command to view the information about ATM-Class. By
default, if no ATM-Class name is specified, the information of all ATM-Class is
displayed.
7-10
Command Manual – Link Layer Protocol
Comware V3 Chapter 7 ATM Configuration Commands
Example
Table 7-1 Description on the fields of the display atm class command
Field Description
ATM CLASS : main ATM class name
Service ubr 8000 Commands configured in the ATM class. The contents
encapsulation aal5snap vary depending on your actual configuration
Syntax
View
Any view
Parameter
Description
Use the display atm interface command to locate the problems efficiently and get
detailed information related to ATM configuration.
If no interface is specified, information on all ATM interfaces is displayed by default.
Related command: display atm.
Example
7-11
Command Manual – Link Layer Protocol
Comware V3 Chapter 7 ATM Configuration Commands
Table 7-2 Description on the fields of the display atm interface command
Field Description
ATM interface Atm6/0/0, State
Name and state of the interface
UP
Maximum VCs Maximum number of VCs on the ATM interface
Syntax
View
Any view
Parameter
7-12
Command Manual – Link Layer Protocol
Comware V3 Chapter 7 ATM Configuration Commands
pvc-name: PVC name, optional parameter. If no PVC name and no VPI/VCI pair are
specified, the information of the higher layer protocol mapping table about all PVCs
within specified ATM interface will be displayed by default.
vpi/vci: VPI/VCI pair, optional. For more details, please refer to “Parameter Description”
in the pvc command.
Description
Use the display atm map-info command to view the information about the upper layer
protocol mapping table of ATM.
If no interface is specified, information about the upper layer protocol maps on all ATM
interfaces is displayed by default.
Related command: map ip, map ppp, map bridge.
Example
# Display information about the upper layer protocol mapping table on all ATM
interfaces.
<H3C> display atm map-info
Atm1/0/0, PVC 1/32, PPP, Virtual-Template10, UP
Atm1/0/0, PVC 1/33, IP & Mask, State UP
100.11.1.1, mask 255.255.0.0, vlink 1
Atm1/0/0, PVC 2/101, ETH, Virtual-Ethernet1/1/1, MAC 00E0.FC01.0203, UP
Table 7-3 Description on the fields of the display atm map-info command
Field Description
Atm1/0/0 Interface type and interface number
PVC 1/32 PVC identifier
PPP Protocol type
Virtual-Template10 Associated virtual template
State UP Map entry state
100.11.1.1, mask 255.255.0.0 Protocol address
Vlink 1 Virtual link number
Syntax
7-13
Command Manual – Link Layer Protocol
Comware V3 Chapter 7 ATM Configuration Commands
View
Any view
Parameter
Description
Use the display atm pvc-group command to view the information about PVC-Group.
If no interface is specified, information about the PVC-groups on all ATM interfaces is
displayed by default.
Related command: pvc-group.
Example
Table 7-4 Description on the fields of the display atm pvc-group command
Field Description
VPI/VCI PVC identifier
PVC-NAME PVC name
STATE PVC state
ENCAP Encapsulation of the PVC
PROT Protocol running on the PVC
Interface to which the PVC belongs and physical layer state of the
INTERFACE
interface
7-14
Command Manual – Link Layer Protocol
Comware V3 Chapter 7 ATM Configuration Commands
Field Description
GROUP PVC group to which the PVC belongs and the status of the group
Syntax
View
Any view
Parameter
Description
Use the display atm pvc-info command to view the information about PVC.
If no interface is specified, information about PVCs on all ATM interfaces is displayed
by default.
Related command: pvc.
Example
7-15
Command Manual – Link Layer Protocol
Comware V3 Chapter 7 ATM Configuration Commands
Table 7-5 Description on the fields of the display atm pvc-info command
Field Description
VPI/VCI PVC identifier
STATE PVC state
PVC-NAME PVC name
INDEX Internal index of the PVC
ENCAP Encapsulation of the PVC
7-16
Command Manual – Link Layer Protocol
Comware V3 Chapter 7 ATM Configuration Commands
7.1.17 encapsulation
Syntax
encapsulation aal5-encap
undo encapsulation
View
PVC view
Parameter
Description
Use the encapsulation command to specify ATM AAL5 encapsulation type for PVC.
Use the undo encapsulation command to restore the default encapsulation.
By default, aal5snap encapsulation is adopted.
An ATM PVC may carry multiple protocols at the same time, but some types of
encapsulations may not support some applications (one or more of IPoA, IPoEoA,
PPPoA and PPPoEoA). When such cases occur, the system gives a prompt.
The following table gives the relationship between ATM PVC encapsulation and carried
protocol.
EoA Multi-
Encapsu- (IPoEoA/
IPoA PPPoA InARP protocol
lation
PPPoEoA) support
Example
The two examples can both specify AAL5 encapsulation type of PVC as aal5snap.
# Display how to specify AAL5 encapsulation type of PVC 1/32 as aal5snap.
[H3C-atm-pvc-Atm1/0/0-1/32] encapsulation aal5snap
7-17
Command Manual – Link Layer Protocol
Comware V3 Chapter 7 ATM Configuration Commands
7.1.18 ip-dscp
Syntax
View
Parameter
Description
Use the ip-dscp command to configure the PVC to carry packets of the specified
priority levels when the DSCP identifier in the IP packet is used to identify the priority
levels of packets.
Use the undo ip-dscp command to remove the configuration.
Note that:
z If you do not configure the ip-dscp command, IP packets of all priorities are
carried by the fundamental PVC of the PVC group, that is, the PVC used to
construct the PVC group.
z If you configure the ip-dscp command with the default keyword, IP packets of the
definitely specified priority levels are carried by the specified PVC, while IP
packets of priority levels that are not specified are carried by the PVC specified
with the default keyword. If no PVC is specified by the ip-dscp command with the
7-18
Command Manual – Link Layer Protocol
Comware V3 Chapter 7 ATM Configuration Commands
default keyword, those IP packets of priority levels that are not specified are
carried by the fundamental PVC.
z The specified PVC must be in the current PVC group, and the lowest priority level
(min) must be less than or equal to the highest priority level (max).
z PVC service mapping does not change the priority of an IP packet. To change the
priority of an IP packet, you can configure CAR.
Related command: pvc-group, pvc.
Example
# Configure PVC 1/100 in the PVC group to carry IP packets of priority levels from 0 to
20.
<H3C> system-view
[H3C] interface Atm1/0/0
[H3C-Atm1/0/0] pvc-group 1/100
[H3C-pvc-group-Atm1/0/0-1/100] match dscp
[H3C-pvc-group-Serial1/0/0-123] ip-dscp 1/100 0 20
7.1.19 ip-precedence
Syntax
View
Parameter
7-19
Command Manual – Link Layer Protocol
Comware V3 Chapter 7 ATM Configuration Commands
Description
Use the ip-precedence command to set the precedence of IP packets carried over
PVC.
Use the undo ip-precedence command to delete the precedence configuration of IP
packets carried over PVC.
z If the ip-precedence command is not configured, all IP packets, regardless of
their precedence levels, are transmitted over the primary PVC in the PVC-group.
This primary PVC is the one used when the PVC-group is created.
z The IP packets carrying certain priorities are transmitted over the PVCs specified
for them using the ip-precedence { pvc-name [ vpi/vci ] | vpi/vci } min [ max ]
command. If no PVC is specified for the IP packets with certain priorities, they are
transmitted over the PVC specified using the ip-precedence { pvc-name [ vpi/vci ]
| vpi/vci } default command if there is any. If no default PVC is specified, the
primary PVC is used.
z This command is only for setting the PVCs within the PVC-Group. The specified
minimum preference min must be less than or equal to the specified maximum
preference max.
Note that setting PVC service map does not change the precedence levels of IP
packets. To change the precedence levels of IP packets, you may configure CAR.
Related command: pvc-group and pvc.
Example
# Display how to set an IP packet named "h3c" whose VPI/VCI is 1/32 and the PVC
carrying preference is 0 to 3.
[H3C-atm-pvc-group-Atm1/0/0-1/32-h3c] ip-precedence h3c 1/32 0 3
Syntax
View
PVC view
Parameter
7-20
Command Manual – Link Layer Protocol
Comware V3 Chapter 7 ATM Configuration Commands
Description
Use the map bridge command to establish the IPoEoA mapping or PPPoEoA mapping
on the PVC.
Use the undo map bridge command to delete the mapping.
By default, no mapping is configured.
Before using this command, make sure that VE has been created.
Note:
As the upper layer of the link layer on the VE interface is Ethernet and the lower layer is
carried by AAL5, the MAC address used by VE is not the actual MAC address and it
cannot be obtained from the hardware and must be configured manually. Users need to
configure the correct MAC address by themselves.
Example
# Establish the IPoE mapping using the established VE interface in PVC view.
[H3C-atm-pvc-Atm2/0/0-1/102] map bridge virtual-ethernet2
Syntax
View
PVC view
7-21
Command Manual – Link Layer Protocol
Comware V3 Chapter 7 ATM Configuration Commands
Parameter
None
Description
Use the map bridge-group broadcast command to enable the PVC to transmit and
receive BPDUs.
Use the undo map bridge-group command to disable the PVC to transmit or receive
BPDUs.
By default, no bridge-group broadcast map is configured, and thus ATM interfaces are
disabled to transmit BPDUs.
Example
7.1.22 map ip
Syntax
View
PVC view
Parameter
7-22
Command Manual – Link Layer Protocol
Comware V3 Chapter 7 ATM Configuration Commands
broadcast packet that it sends out the interface to which the PVC belongs. You must
configure the broadcast keyword on an ATM PVC where broadcast or multicast
packets must be sent, for example, to allow PIM multicast to create neighbor
relationship with the router connected using the ATM interface.
Description
Example
The two examples are the cases creating IPoA mapping for PVC.
# Display how to create a static mapping at PVC 1/32, specify the opposite IP address
to 61.123.30.169 and support pseudobroadcast.
[H3C-atm-pvc-Atm1/0/0-1/32] map ip 61.123.30.169 broadcast
# Display how to enable InARP at PVC 1/33 to automatically obtain the opposite
address and send InARP packets every 10 minutes.
[H3C-atm-pvc-Atm1/0/0.1-1/33] map ip inarp 10
Syntax
View
PVC view
Parameter
Description
Use the map ppp command to create a PPPoA map on the PVC.
7-23
Command Manual – Link Layer Protocol
Comware V3 Chapter 7 ATM Configuration Commands
Example
# Create a PPPoA map in common PPPoA mode associating virtual template 10 with
PVC 1/101.
[H3C-atm-pvc-Atm1/0/0-1/101] map ppp virtual-template 10
Syntax
View
7-24
Command Manual – Link Layer Protocol
Comware V3 Chapter 7 ATM Configuration Commands
Parameter
Description
Use the map routed-bridge command to configure routed bridge encapsulation on the
PVC.
Use the undo map routed-bridge command to remove routed bridge encapsulation
on the PVC.
Upon execution of the map routed-bridge command, the support of routed bridge
encapsulation to IP is enabled by default.
When using the map routed-bridge command, note the following:
z It can be configured only on point-to-point PVCs.
z The bound VE interface must be an idle interface not used by any other service.
Example
# Bind a VE interface with PVC 1/101 to create a routed bridge map entry.
[H3C-atm-pvc-Atm1/0/0.1-1/101] map routed-bridge virtual-ethernet 1
7.1.25 match
Syntax
View
Parameter
dscp: Specifies to differentiate IP packets by the 6-bit DSCP identifier in the TOS field
of the IP header.
precedence: Specifies to differentiate IP packets by the 3-bit Precedence identifier in
the TOS field of the IP header.
7-25
Command Manual – Link Layer Protocol
Comware V3 Chapter 7 ATM Configuration Commands
Description
Use the match command to configure a PVC group to differentiate traffic by the
Precedence or DSCP identifier in the TOS field of the IP header.
Use the undo match command to restore the default.
By default, a PVC group uses the 3-bit Precedence identifier to differentiate IP packets.
Example
# Configure the PVC group to differentiate traffic by the 6-bit DSCP identifier in the TOS
field of the IP header.
<H3C> system-view
[H3C] interface Atm1/0/0
[H3C-Atm1/0/0] pvc-group 1/100
[H3C-pvc-group-Atm1/0/0-1/100] match dscp
7.1.26 mpls-exp
Syntax
View
Parameter
7-26
Command Manual – Link Layer Protocol
Comware V3 Chapter 7 ATM Configuration Commands
Description
Use the mpls-exp command to configure the PVC to carry packets of the specified
priority levels when the EXP identifier in the MPLS packet is used to identify the priority
levels of packets.
Use the undo mpls-exp command to remove the configuration.
Note that:
z If you do not configure the mpls-exp command, MPLS packets of all priorities are
carried by the fundamental PVC of the PVC group, that is, the PVC used to
construct the PVC group.
z If you configure the mpls-exp command with the default keyword, MPLS packets
of the definitely specified priority levels are carried by the specified PVC, while
MPLS packets of priority levels that are not specified are carried by the PVC
specified with the default keyword. If no PVC is specified by the mpls-exp
command with the default keyword, those packets of priority levels that are not
specified are carried by the fundamental PVC.
z The specified PVC must be in the current PVC group, and the lowest priority level
(min) must be less than or equal to the highest priority level (max).
Related command: pvc-group, pvc.
Example
# Configure PVC 1/100 in the PVC group to carry MPLS packets of priority levels from
0 to 2.
<H3C> system-view
[H3C] interface Atm1/0/0
[H3C-Atm1/0/0] mpls
[H3C-Atm1/0/0] pvc-group 1/100
[H3C-pvc-group-Serial1/0/0-123] mpls-exp 1/100 0 2
7.1.27 mtu
Syntax
mtu mtu-number
undo mtu
View
Interface view
Parameter
mtu-number: MTU size of ATM interface in bytes; the range of the value is 128 to 2000.
7-27
Command Manual – Link Layer Protocol
Comware V3 Chapter 7 ATM Configuration Commands
Description
Use the mtu command to set the size of Maximum Transmission Unit (MTU) of the ATM
interface.
Use the undo mtu command to restore the default of the value.
By default, 1500 bytes.
MTU of ATM interface only influences the packet assembling and packet disassembling
of IP layer at the ATM interface. Because of the limit of the QoS queue length (for
example, the default length of the FIFO queue is 75), the too small MTU will lead to too
many fragments and will be dropped by the QoS queue. In this case, the length of the
QoS queue can be enlarged appropriately. FIFO is the queue dispatching mechanism
used by PVC by default, and its queue length can be changed by using the fifo
queue-length command in the PVC view.
Note:
This command can be used in ATM main interface and sub-interface at the same time.
Example
Syntax
View
Parameter
7-28
Command Manual – Link Layer Protocol
Comware V3 Chapter 7 ATM Configuration Commands
Description
Use the oam ais-rdi command to change the parameters related to AIS/RDI alarm cell
detection. If no argument is specified, the default value applies.
Use the undo oam ais-rdi command to restore the default.
By default, AIS/RDI alarm cell detection is enabled, allowing a PVC to come down after
receiving the number of AIS/RDI alarm cells specified by down-count and to go up if no
AIS/RDI alarm cell is present for contiguous seconds specified by up-count.
Example
# Modify the AIS/RDI alarm detection parameters on PVC1/32, setting both up-count
and down-count to 5.
[H3C-atm-pvc-Atm1/0/0-1/32] oam ais-rdi up 5 down 5
Syntax
View
Parameter
Description
Use the oam frequency command to enable the transmission of OAM F5 Loopback
cell so as to check the PVC status. You can also enable OAM F5 Loopback
retransmission check or modify the related parameters of the retransmission check.
Use the undo oam frequency command to disable the transmission and
retransmission check of the cell.
7-29
Command Manual – Link Layer Protocol
Comware V3 Chapter 7 ATM Configuration Commands
Example
# Display how to enable OAM F5 Loopback check at PVC 1/32, with the period of 12
seconds. And set the retransmission check up-count as 4, down-count as 4 and
retransmission period as 1 second.
[H3C-atm-pvc-Atm1/0/0-1/32] oam frequency 12 up 4 down 4 retry-frequency 1
Syntax
oamping interface atm interface-num pvc { pvc-name | vpi / vci } [ number ] timeout
View
Parameter
Description
Use the oamping interface command to enable the specified ATM interface to send
OAM cells on the specified PVC for checking link state. Receiving no response upon
expiration of the specified time indicates that the link is disconnected, busy, or prone to
packet loss.
Example
# Check the link state about PVC 1/32 on ATM interface 3/0/0, sending three cells and
setting timeout time to one second.
[H3C-Atm1/0/0] oamping interface atm 3/0/0 pvc 1/32 3 1
PING interface Atm3/0/0 pvc 1/32 with 3 of 53 bytes of oam F5 end-to-end
cell(s),
timeout is 1 second(s), press CTRL_C to break
Receive reply from pvc 1/32: time=1 ms
Receive reply from pvc 1/32: time=1 ms
Receive reply from pvc 1/32: time=1 ms
7-30
Command Manual – Link Layer Protocol
Comware V3 Chapter 7 ATM Configuration Commands
Syntax
packing-timer time
undo packing-timer
View
PVC view
Parameter
time: Maximum waiting time for PVC packing, ranging from 10 to 4095 milliseconds.
Description
Use the packing-timer command to set the maximum waiting time for one PVC.
Use the undo packing-timer command to restore the default.
By default, the maximum waiting time for PVC packing is 40 milliseconds.
If waiting time exceeds the maximum packing waiting time, the system packs the
packets in the buffer and sends them.
Example
# Configure the maximum waiting time for PVC packing on PVC1/32 to 22.
<H3C> system-view
[H3C] interface atm 1/0/0
7.1.32 pvc
Syntax
View
Parameter
7-31
Command Manual – Link Layer Protocol
Comware V3 Chapter 7 ATM Configuration Commands
table for reference. Usually, the vci values from 0 to 31 are reserved for special usage
and cannot be used.
ATMOC3 <0-1023>
ATM25 <0-511>
ATME3 <0-1023>
ATMT3 <0-1023>
IMA-E1/T1 <0-511>
Note:
z vpi and vci cannot both be 0.
z A PVC in certain PVC-Group cannot be deleted at ATM interface.
Description
Use the pvc command to create a PVC or enter the PVC view at ATM interface or in
PVC-Group view.
Use the undo pvc command to delete the specified PVC.
By default, no PVC is created.
This command is used to create a PVC with specified VPI/VCI.
Once pvc-name is specified for one PVC (e.g. "h3c"), it is possible to re-enter the PVC
view by inputting pvc pvc-name (e.g. " pvc h3c"). The deletion of the PVC can be done
by inputting undo pvc pvc-name (e.g. " undo pvc h3c") or through the undo pvc
vpi/vci (if the VPI/VCI of this PVC is 1/32, it is " undo pvc 1/32") command.
The VPI/VCI pair of each PVC is unique at an ATM interface (including main interface
and sub-interface).
The actual number of PVCs that can be created is determined by the pvc max-number
command.
Related command: display atm pvc-info and pvc max-number.
Example
7-32
Command Manual – Link Layer Protocol
Comware V3 Chapter 7 ATM Configuration Commands
7.1.33 pvc-group
Syntax
View
Parameter
Description
Use the pvc-group command to create a PVC-Group or enter the PVC-Group view at
ATM interface.
Use the undo pvc-group command to delete the specified PVC-Group.
Once pvc-name is specified for some PVC (e.g. "H3C"), it is possible to enter the
PVC-Group view by inputting pvc-group pvc-name (e.g. "pvc-group H3C"). The
deletion of the PVC-Group can be done by inputting undo pvc-group pvc-name (e.g.
"undo pvc-group H3C") or through the undo pvc-group vpi/vci (if the VPI/VCI of this
PVC is 1/32, it is " undo pvc-group 1/32") command.
Related command: ip-precedence and pvc.
Example
# Display how to create a PVC-Group based on the name "H3C" and the PVC with
VPI/VCI as 1/32.
[H3C-Atm1/0/0] pvc-group H3C 1/32.
Syntax
7-33
Command Manual – Link Layer Protocol
Comware V3 Chapter 7 ATM Configuration Commands
View
Parameter
max-number: Maximum number of supported VCs. The value range and default value
for this parameter depends on interface type, as shown in the following table:
Table 7-8 The maximum number of VCs allowed for each type of ATM interface
Description
Use the pvc max-number command to set the maximum number of ATM interface
virtual circuits (VC).
Use the undo pvc max-number command to restore the default value.
This command is used to set the maximum number of the total available VCs for ATM
main interfaces and sub-interfaces.
Note:
Although this command is valid on both ATM main interface and sub-interface, it can
only be used in ATM main interface view and there is not this command in ATM
sub-interface view.
Example
7-34
Command Manual – Link Layer Protocol
Comware V3 Chapter 7 ATM Configuration Commands
# Configure ATM interface Atm 1/0/0 to support the default maximum number of VCs
(1024).
[H3C-Atm1/0/0] undo pvc max-number
7.1.35 pvc-protect
Syntax
View
Parameter
Description
Use the pvc-protect command to configure the protection mode for a PVC in a PVC
group.
Use the undo pvc-protect command to remove protection of a PVC group member.
z When a PVC group member that is configured to be protected in individual mode
goes down, its standby PVC (if any) does not take over, while the PVC specified
with the default keyword does instead. If no PVC is specified with the default
keyword, the fundamental PVC takes over.
z With several PVCs in a PVC group configured to be protected in group mode,
when a protected PVC goes down, if its standby PVC (if any) is also a member of
the protected group, the standby PVC takes over for the failed PVC. Otherwise,
the standby PVC does not take over, while the PVC specified with the default
keyword does instead. If no PVC is specified with the default keyword, the
fundamental PVC takes over.
By default, the system does not protect any PVC in a PVC group.
7-35
Command Manual – Link Layer Protocol
Comware V3 Chapter 7 ATM Configuration Commands
Example
# Specify to protect PVC 1/101 in PVC group 1/100 in individual mode and protect PVC
1/101 and PVC 1/102 in the same PVC group in group mode.
<H3C> system-view
[H3C] interface Atm1/0/0
[H3C-Atm] pvc-group 1/100
[H3C-pvc-group-Atm1/0/0-1/100] pvc-protect 1/101 individual
[H3C-pvc-group-Atm1/0/0-1/100] pvc-protect 1/102 group
[H3C-pvc-group-Atm1/0/0-1/100] pvc-protect 1/103 group
Syntax
View
Interface view
Parameter
vpi: Virtual path identifier of ATM network, its value ranges from 0 to 4095.
Description
Example
7-36
Command Manual – Link Layer Protocol
Comware V3 Chapter 7 ATM Configuration Commands
Syntax
View
Parameter
vpi: Virtual path identifier of ATM network, its value ranges from 0 to 255.
peak-rate: Normal flow to be held. Value range of this parameter depends on interface
type, as shown in the following table:
ADSL2+ <64-1024>
GSHDSL <64-2312>
ATMOC3 <2000-155000>
ATM25 <64-25600>
ATME3 <64-34000>
ATMT3 <64-44000>
Description
Use the pvp limit command to set the parameters for VP policing.
Use the undo pvp limit command to delete the VP policing.
By default, the VP policing is not performed.
When applying VP policing, the parameters of PVC are still valid. Only when the
parameters of PVC and VP policing are satisfied, will the packets be transmitted. When
calculating the traffic, the LLC/SNAP, MUX and NLPID headers are included, but the
ATM cell head is not included.
Related command: pvc, service cbr, service vbr-nrt, service vbr-rt, service ubr.
Example
7-37
Command Manual – Link Layer Protocol
Comware V3 Chapter 7 ATM Configuration Commands
Syntax
View
Parameter
Description
Use the routed-bridge protocol command to enable the support of routed bridge
encapsulation to a network protocol.
Use the undo routed-bridge protocol command to disable the support of routed
bridge encapsulation to a network protocol.
At present the network protocols supported by routed bridge encapsulation are IP and
MPLS only. As IP is used more often than MPLS, the support to it is enabled upon
execution of the map routed-bridge command.
As IP is the basis of MPLS, you need enable the support of routed bridge encapsulation
to IP when enabling the support of routed bridge encapsulation to MPLS.
Example
# Bind a VE interface with PVC 1/101 to create a routed bridge map entry.
[H3C-atm-pvc-Atm1/0/0.1-1/101] map routed-bridge virtual-ethernet 1
Syntax
View
PVC view
7-38
Command Manual – Link Layer Protocol
Comware V3 Chapter 7 ATM Configuration Commands
Parameter
output-pcr: Output peak rate of ATM cell in kbps. Value range of this parameter
depends on interface type, as shown in the following table
IMA-E1/T1 64 to 1904
cdvt_value: cell delay variation tolerance, in μs, and the range of the value is 0 to 10000
μs.
Description
Use the service cbr command to specify PVC service type as constant bit rate (CBR).
By default, the service type is UBR after creating a PVC. When the value of cdvt is not
specified, it is 500μs by default.
This command is used to set the PVC service type and parameter. The newly specified
PVC service type will replace the existing service type. It is recommended that the PVC
with larger bandwidth be created first and then the one with smaller bandwidth. If the
creation fails, the cdvt_value can be adjusted larger to create the PVC once more. The
above case will be prompted in the command line, as follows:
“fail to set service parameter, please adjust cdvt value”
The command does not support ATM E1 interface and ATM E3 interface.
Related command: service vbr-nrt, service vbr-rt, and service ubr.
Example
# Specify the service type of the PVC as cbr and the peak rate of ATM cell as
50,000Kbits/s.Cell delay variation tolerance is 1000μs.
[H3C-atm-pvc-Atm1/0/0-1/101-h3c] service cbr 50000 cdvt 1000
7-39
Command Manual – Link Layer Protocol
Comware V3 Chapter 7 ATM Configuration Commands
Syntax
View
PVC view
Parameter
output-pcr: Output peak rate of ATM cell in kbps. For the value ranges of this parameter,
see Table 7-10.
Description
Use the service ubr command to specify the service type of PVC as Unspecified Bit
Rate (UBR) and specify the related rate parameters.
By default, the service type is UBR after creating a PVC.
This command as well as the service vbr-nrt, service vbr-rt and service cbr
commands can be used to set the service type and service parameters of PVC. The
newly specified PVC service type will supersede the existing service type.
Related command: service vbr-nrt, service vbr-rt, and service cbr.
Example
# Display how to create a PVC named " h3c " with VPI/VCI as 1/101.
[H3C-Atm1/0/0] pvc h3c 1/101
# Display how to specify the service type of the PVC as ubr and the peak cell rate of
ATM cell as 100,000Kbps.
[H3C-atm-pvc-Atm1/0/0-1/101- h3c] service ubr 100000
Syntax
View
PVC view
Parameter
output-pcr: Peak rate of ATM cell output in kbps. For the value ranges of this parameter,
see Table 7-10.
7-40
Command Manual – Link Layer Protocol
Comware V3 Chapter 7 ATM Configuration Commands
output-scr: Sustainable rate of ATM cell output in Kbps. Its value ranges are the same
as those of output-pcr.
output-mbs: Maximum burst size for ATM cell output, that is, the maximum number of
ATM cells that the output interface can cache. It ranges from 1 to 512.
Note:
When 64 < SCR <70 and 475 ≤ MBS ≤ 512 hold, chip limitation can result in
configuration failure.
Description
Use the service vbr-nrt command to specify the service type of PVC as Variable Bit
Rate-Non Real Time (VBR-NRT) and specify the related rate parameters.
By default, the service type is UBR after creating a PVC.
This command as well as the service ubr, service vbr-rt and service cbr commands
can be used to set the service type and service parameters of PVC. The newly
specified PVC service type will replace the existing service type.
Related command: service vbr-rt, service ubr, service cbr.
Example
# Display how to create a PVC named " h3c " with VPI/VCI as 1/101.
[H3C-Atm1/0/0] pvc h3c 1/101
# Display how to specify the service type of the PVC as VBR-NRT and set the peak bit
rate of ATM cell to 100,000kbps, sustainable bit rate to 50,000Kbps, the maximum
burst size to 320 cells.
[H3C-atm-pvc-Atm1/0/0-1/101- h3c] service vbr-nrt 100000 50000 320
Syntax
View
PVC view
Parameter
output-pcr: Peak cell rate of ATM output in Kbps. For the value ranges of this parameter,
see Table 7-10.
7-41
Command Manual – Link Layer Protocol
Comware V3 Chapter 7 ATM Configuration Commands
output-scr: Sustainable cell rate of ATM output in Kbps. Its value ranges are the same
as those of output-pcr.
output-mbs: Maximum burst size of ATM cell output, i.e., the maximum cache size of
ATM cell output at the interface in cell number. The range of the value is 1 to 512. When
it is used in ATM E3 interface, the range of the parameter is 1 to 512.
Description
Use the service vbr-rt command to set the service type of PVC to Variable Bit Rate -
Real Time (VBR-RT) and specify the related rate parameters in the PVC view.
By default, the service type is UBR after creating a PVC.
This command as well as the service ubr, service cbr and service vbr-nrt
commands can be used to set the service type and service parameters of PVC. The
newly specified PVC service type will replace the existing service type. The command
does not support ATM E1 interface.
Related command: service cbr, service ubr, and service vbr-nrt.
Example
# Display how to specify the service type of the PVC as VBR-NRT and set the peak cell
rate of ATM to 100,000kbps, sustainable cell rate to 50,000Kbps, the maximum burst
size to 320 cells.
[H3C-atm-pvc-Atm1/0/0-1/101-h3c] service vbr-rt 100000 50000 320
7.1.43 transmit-priority
Syntax
transmit-priority value
undo transmit-priority
View
Parameter
value: Priority in the range 0 to 9, with a higher value indicating a higher priority.
The transmit priority for the UBR service ranges from 0 to 4 and defaults to 0.
The transmit priority for the VBR-NRT service ranges from 5 to 7 and defaults to 5.
The transmit priority for the VBR-RT service ranges from 8 to 9 and defaults to 8.
7-42
Command Manual – Link Layer Protocol
Comware V3 Chapter 7 ATM Configuration Commands
Description
Use the transmit-priority command to assign a transmit priority to the ATM PVC
associated with the UBR, VBR-T, or VBR-NRT service. The higher priority PVC is
allocated bandwidth before any other PVCs.
Uses the undo transmit-priority command to restore the default transmit priority of
the PVC according to the associated service type.
After you change the service type of the PVC, its transmit priority changes to the default
for the current service.
Example
7-43
Command Manual – Link Layer Protocol
Comware V3 Chapter 8 LAPB and X.25 configuration commands
Syntax
View
Parameter
Description
Use the channel command to add X.25 interface or XOT channel of one serial port to
the current hunt group.
Use the undo channel command to delete the specified interface or XOT channel from
the current hunt group.
One interface may belong to six hunt groups at most at the same time.
Related command: X25 hunt-group.
Example
Syntax
debugging lapb { all | error [ interface type number ] | event [ interface type number ]
| packet { i-frame | us-frame } [ interface type number ] }
8-1
Command Manual – Link Layer Protocol
Comware V3 Chapter 8 LAPB and X.25 configuration commands
undo debugging lapb { all | error [ interface type number ] | event [ interface type
number ] | packet { i-frame | us-frame }[ interface type number ] }
View
User view
Parameter
Description
Example
Syntax
View
User view
Parameter
8-2
Command Manual – Link Layer Protocol
Comware V3 Chapter 8 LAPB and X.25 configuration commands
Description
Example
Syntax
View
User view
Parameter
Description
Example
Syntax
View
User view
8-3
Command Manual – Link Layer Protocol
Comware V3 Chapter 8 LAPB and X.25 configuration commands
Parameter
Description
Example
Syntax
View
System view
Parameter
Description
Example
8-4
Command Manual – Link Layer Protocol
Comware V3 Chapter 8 LAPB and X.25 configuration commands
Syntax
View
Any view
Parameter
Description
Use the display interface command to view the LAPB or X.25 interface information.
After configuring PVC of X.25, users can use the command to obtain the status
information on one interface.
Example
# Encapsulate Serial0/0/0 with LAPB protocol and view the encapsulated interface
information using the following commands.
<H3C> system-view
[H3C] interface Serial1/0/0
[H3C-Serial0/0/0] link-protocol lapb
[H3C-Serial0/0/0] display interface serial 0/0/0
Serial0/0/0 current state : UP
Line protocol current state : UP
Description : Serial0/0/0 Interface
The Maximum Transmit Unit is 1500, Holder timer is 10(sec)
Internet protocol processing : disabled
Link-protocol is X.25 DCE Ietf, address is , state R1, modulo 8
input/output: window sizes 7/7, packet sizes 256/256
Channels: Incoming-only 10-20, Two-way 30-40, Outgoing-only 50-60
Timers: T10 60, T11 180, T12 60, T13 60, Idle_Timer 0 (seconds)
New configuration(will be effective after restart): modulo 8
input/output: window sizes 7/7, packet sizes 256/256
Channels: Incoming-only 10-20, Two-way 30-40, Outgoing-only 50-60
Statistic: Restarts 0 (Restart Collisions 0)
Refused Incoming Call 0, Failing Outgoing Call 0
input/output: RESTART 1/1 CALL 9/2 DIAGNOSE 0/0
DATA 119/121 INTERRUPT 0/0 Bytes 2497/2731
8-5
Command Manual – Link Layer Protocol
Comware V3 Chapter 8 LAPB and X.25 configuration commands
The following table describes the description on the fields of the display interface
command.
Field Description
Current encapsulation protocol of this interface
Link-protocol is X.25 DCE Ietf is X.25 protocol that works in DCE mode, and
the data packet encapsulation format is IETF.
X.121 address of this X.25 interface; this field will
address is
be empty if there is no address.
state Current status of this X.25 interface.
Data packets and traffic control packets sent by
modulo this X.25 interface are numbered in modulo 8
mode.
8-6
Command Manual – Link Layer Protocol
Comware V3 Chapter 8 LAPB and X.25 configuration commands
Field Description
Delay values of various timers of this X.25
Timers
interface, in seconds.
New configuration of this X.25 interface taking
New Configuration effect after next restart; if this configuration is
wrong, the default value will be restored.
Statistics of this X.25 interface, including times of
Restarts 0 ( Restart Collision 0)
restart (including restart collision).
Statistics information of this X.25 interface: times
Refused Incoming Call
of call refusals. times of call failures.
Failing Outgoing Call Number of failed outgoing calls.
Statistics information of this X.25 interface:
input/output: RESTART 1/1 ...
quantities of received and sent packets, format:
REJ 0/0
received quantity/sent quantity.
Error statistics information of this X.25 interface:
total of received data packets and traffic control
Invalid Pr
packets carrying erroneous acknowledgement
numbers.
Error statistics information of this X.25 interface:
Invalid Ps total of received data packets carrying erroneous
sequence numbers.
Error statistics information of this X.25 interface:
Unknown
total of received irresolvable packets.
Current encapsulation protocol of this interface
Link-protocol is LAPB
is LAPB protocol.
LAPB DCE LAPB of this interface works in DCE mode.
Information frame and monitoring frame sent by
module 8 this interface LAPB are numbered in the modulo
8 view.
window-size 7 Window size of this interface LAPB is 7.
The maximum length of frame sent by the
max-frame 12056
interface LAPB is 12056 bits.
Maximum re-sending times of information frame
retry 10
of this interface LAPB is 10.
Delay value of timers of this interface LAPB, in
timer
milliseconds. The unit of T3 is second.
state Current status of this interface LAPB.
VS Sending variable of this interface LAPB.
VR Receiving variable of this interface LAPB.
Peer’s last acknowledgment on information
Remote VR
frame received by this interface LAPB.
8-7
Command Manual – Link Layer Protocol
Comware V3 Chapter 8 LAPB and X.25 configuration commands
Field Description
Statistics information of frames sent and
IFRAME 147/254 ... DISC 0/0 received by this interface LAPB, format: received
quantity/sent quantity.
Error statistics of this interface LAPB, including
Invalid ns total of received information frames carrying
erroneous sequence numbers.
Error statistics of this interface LAPB, including
total of received information frames and
Invalid nr
monitoring frames carrying erroneous
acknowledgment numbers.
Link resets Restarting times of this interface LAPB link.
Syntax
View
Any view
Parameter
Description
Use the display x25 alias-policy command to view X.25 alias table.
Related command: x25 alias-policy.
Example
The above information indicates: the interface Serial0/0/0 is set without alias, and the
interface Serial1/0/0 is set with 3 aliases, which are $20112405$ (in strict match mode),
8-8
Command Manual – Link Layer Protocol
Comware V3 Chapter 8 LAPB and X.25 configuration commands
$20112405 (in left alignment match mode) and 20112405$ (in right alignment match
mode).
Syntax
View
Any view
Parameter
None
Description
Use the display x25 cug command to view the CUG configuration on the router ports.
Example
Syntax
View
Any view
Parameter
Description
Use the display x25 hunt-group-info command to view the status information of X.25
hunt group.
You can use this command to learn the hunt group of the Router and the information
about the interfaces and XOT channel inside the hunt group.
8-9
Command Manual – Link Layer Protocol
Comware V3 Chapter 8 LAPB and X.25 configuration commands
Example
The following table introduces the meaning of each field in the displayed information.
Table 8-2 Description of each field in the command display x25 hunt-group-info
Field Description
hg1 Hunt group name
Syntax
View
Any view
Parameter
None
8-10
Command Manual – Link Layer Protocol
Comware V3 Chapter 8 LAPB and X.25 configuration commands
Description
Use the display x25 map command to view the X.25 address mapping table.
The X.25 address mapping can be configured in two methods: special configuration
(through the x25 map command) or implied configuration (through the x25 pvc
command). The display x25 map command can be used to show all the address
mappings.
Related command: x25 map, x25 pvc, x25 switch pvc, x25 xot pvc, and x25 fr pvc.
Example
Syntax
View
Any view
Parameter
pad-id: PAD ID, its value ranges from 0 to 255. If it is not specified, all PAD connection
information will be displayed.
Description
Use the display x25 pad command to view X.25 PAD connection information.
PAD is a kind of application similar to telnet. It can establish the connection between
two ends through X121 address, and then, to carry out configuration operations.
Related command: display x25 vc and x25 xot.
Example
8-11
Command Manual – Link Layer Protocol
Comware V3 Chapter 8 LAPB and X.25 configuration commands
UI-INDEX130:
From remote 22 connected to local 11, State: Normal
X.3Parameters(In):
1:1,2:0,3:2,4:1,5:0,6:0,7:21,8:0,9:0,10:0,11:14
12:0,13:0,14:0,15:0,16:127,17:21,18:18,19:0,20:0,21:0,22:0
X.3Parameters(Out):
1:1,2:0,3:2,4:1,5:0,6:0,7:21,8:0,9:0,10:0,11:14
12:0,13:0,14:0,15:0,16:127,17:21,18:18,19:0,20:0,21:0,22:0
Input:
Pkts(total/control): 13/2 bytes:12
queue(size/max) :0/200
Output:
Pkts(total/control): 15/2 bytes:320
Syntax
View
Any view
Parameter
None
Description
Use the display x25 switch-table pvc command to view X.25 switching virtual circuit
table.
Related command: x25 pvc, x25 switch pvc, x25 xot pvc, x25 fr pvc, and x25 switch
svc.
Example
Syntax
8-12
Command Manual – Link Layer Protocol
Comware V3 Chapter 8 LAPB and X.25 configuration commands
View
Any view
Parameter
None
Description
The command display x25 switch-table svc is used to display X.25 switching routing
table.
Related command: x25 switch svc.
Example
The following table introduces the meaning of each field in the displayed information.
Table 8-3 Description on each field in the command display x25 switch-table svc
Field Description
Number Sequence number of this route in the routing table
X.121 source address after substitution, if the content is
Substitute-src
blank, it means no substitution.
X.121 destination address after substitution, if the content is
Substitute-dst
blank, it means no substitution.
CUD Call User Data
Forwarding address of this route, including interface, XOT
SwitchTo
channel and hunt group
8-13
Command Manual – Link Layer Protocol
Comware V3 Chapter 8 LAPB and X.25 configuration commands
Syntax
View
Any view
Parameter
lci: Logical channel identifier, its value ranges from 1 to 4095. If the logical channel
identifier is not specified, all virtual circuits will be displayed.
Description
Use the display x25 vc command to view the information about the X.25 virtual circuit.
SVC (Switched Virtual Circuit) is set up temporarily by X.25 through call connection
when data transmission is required. PVC is configured manually and exists regardless
of the data transmission requirement. When the router works in X.25 switched mode,
virtual circuits will be set up in order to transfer the switched data. The information
about these virtual circuits can be shown via this command, and only some fields in the
displayed information differ.
Related command: x25 pvc, x25 switch pvc, x25 xot pvc, and x25 fr pvc.
Example
8-14
Command Manual – Link Layer Protocol
Comware V3 Chapter 8 LAPB and X.25 configuration commands
8-15
Command Manual – Link Layer Protocol
Comware V3 Chapter 8 LAPB and X.25 configuration commands
Syntax
View
Any view
Parameter
None
Description
Use the display x25 xot command to view XOT link information.
You can use the command display x25 xot to view the detailed information about all
XOT links, including peer ip and port, local ip and port, keepalive setting of socket and
come/go interface names.
Related command: x25 switch svc xot and x25 xot pvc.
Example
The above information indicates: there is one established XOT link via SVC, whose
peer IP is 10.1.1.1, peer port is 1998, local IP is 10.1.1.2, local port is 1024, keepalive
period of socket is 5 seconds, keepalive tries are 3, come interface name is
Serial0/0/0-10.1.1.1-1024 (XOT interface), and go interface name is Serial0/0/0.
8-16
Command Manual – Link Layer Protocol
Comware V3 Chapter 8 LAPB and X.25 configuration commands
Syntax
View
Any view
Parameter
None
Description
Use the display x25 x2t switch-table command to display the dynamic switching
routing table and static routing table.
You can view the switch entry from X25 to TCP dynamically established by router with
the display x25 x2t switch-table command. When a router sets up a connection, this
entry exists and when you close the connection, the entry is deleted.
Example
From the first entry in this table, we know that the router has established an X2T SVC
connection with one end connecting X.25 of Serial0/0/0 and the other a TCP
connection. The X.25 uses a virtual circuit (VC) whose LCD is 1024 and the TCP
connection whose port is 102, socket is 2 and the remote IP address is 20.1.1.1.
From the second entry in this table, we know that the router has established an X2T
PVC connection with one end connecting X.25 of Serial0/0/0 and the other a TCP
connection. The X.25 uses a virtual circuit (VC) whose LCD is 1 and the TCP
connection of which the Socket is 2, remote IP address is 20.1.1.1 and the port is 102.
Syntax
8-17
Command Manual – Link Layer Protocol
Comware V3 Chapter 8 LAPB and X.25 configuration commands
View
Interface view
Parameter
n1-value: Value of parameter N1, in bit, in the range 1096 to 12104. LAPB parameter
N1 defaults to 12032.
Description
Note:
The lapb max-frame command is configurable only when X.25 applies on the link layer.
If the LAPB applies on the link layer, you cannot configure the lapb max-frame
command. When the MTU value on the interface changes, however, you need to use
the undo lapb max-frame command to change the default value of LAPB parameter
N1 to the value after MTU changes since the default value was calculated according to
the previous MTU.
Example
Syntax
View
Interface view
Parameter
8-18
Command Manual – Link Layer Protocol
Comware V3 Chapter 8 LAPB and X.25 configuration commands
Description
Use the lapb modulo command to specify the LAPB frame numbering view (also
called modulo). Use the undo lapb modulo command to restore the default value.
By default, the LAPB frame protocol view is modulo 8.
There are two LAPB frame numbering views: modulo 8 and modulo 128. Each
information frame (I frame) is numbered in sequence, in the range 0 to the modulo
minus 1. In addition, sequential numbers will cycle within the range of modulo.
Modulo 8 is a basic view, LAPB can implement all the standards via the view. It is
sufficient for most links.
Related command: lapb window-size.
Note:
If the link is in congestion and you have used the lapb modulo command to configure
modulo 128, make sure that the length of the QoS queue is longer than or equal to the
length of the sliding window configured by the lapb window-size command; otherwise,
data loss and link jittering may occur.
Example
Syntax
lapb pollremote
undo lapb pollremote
View
Interface view
Parameter
None
Description
Use the lapb pollremote command to configure the link protocol to teardown the link in
use after receiving false packets.
Use the undo lapb pollremote command to restore the default.
8-19
Command Manual – Link Layer Protocol
Comware V3 Chapter 8 LAPB and X.25 configuration commands
In data transmission, false packets are always created, which may trigger link recovery
rules, thus making the link protocol teardown the link in use and the network fail. You
can use the undo lapb pollremote command to avoid the above situation.
By default, the link protocol does not teardown when receiving false packets, that is, no
lapb pollremote command is configured by default.
Example
Syntax
View
Interface view
Parameter
n2-value: The value of N2, its value ranges from 1 to 255.By default, the parameter N2
of LAPB is 10.
Description
Example
Syntax
8-20
Command Manual – Link Layer Protocol
Comware V3 Chapter 8 LAPB and X.25 configuration commands
View
Interface view
Parameter
t1-value: The value of timer T1 in the range 1 to 64000 milliseconds. It defaults to 3000
milliseconds.
t2-value: Value of the timer T2 in the range 1 to 32000 milliseconds. It defaults to 1500
milliseconds.
t3-value: Value of the timer T3 in the range 0 to 255 seconds. It defaults to 0 seconds.
Description
Use the lapb timer command to configure the LAPB timers T1, T2 and T3.
Use the undo lapb timer command to restore their default values.
T1 is a transmission timer. When T1 expires, DTE (DCE) will start retransmission. The
value of T1 shall be greater than the maximum time between the sending of a frame
and the receiving of its response frame.
T2 is a reception timer. When it expires, the DTE/DCE must send an acknowledgement
frame so that this frame can be received before the peer DTE/DCE T1 timer expires
(T2<T1).
T3 is an idle channel timer, when it expires, the DCE reports to the packet layer that the
channel stays idle for a long time. T3 should be greater than the timer T1 (T3>T1) on a
DCE. When T3 is 0, it indicates that it does not function yet.
Example
Syntax
View
Interface view
Parameter
8-21
Command Manual – Link Layer Protocol
Comware V3 Chapter 8 LAPB and X.25 configuration commands
7. If the modulus is 128, the value of the window parameter K ranges 1 to 127. By
default, the window parameter K is 7.
Description
Use the lapb window-size command to configure the LAPB window parameter K.
Use the undo lapb window-size command to restore the default value of the LAPB
window parameter K.
The value of the window parameter K is determined by the value of modulus.
Related command: lapb modulo.
Note:
If the link is in congestion and you have used the lapb modulo command to configure
modulo 128, make sure that the length of the QoS queue is longer than or equal to the
length of the sliding window configured by the lapb window-size command; otherwise,
data loss and link jittering may occur.
Example
Syntax
View
Interface view
Parameter
Description
Use the link-protocol lapb command to specify the link layer protocol of the interface
as LAPB.
8-22
Command Manual – Link Layer Protocol
Comware V3 Chapter 8 LAPB and X.25 configuration commands
By default, DTE is the default LAPB operating mode. IP is the default network layer
protocol.
Though LAPB is a layer-2 protocol of X.25, it can act as an independent link-layer
protocol for simple data transmission. Generally, LAPB can be used when two routers
are directly connected with a dedicated line. At that time one end works in the DTE
mode, and the other in the DCE mode.
Related command: display interface.
Example
# Configure LAPB as the link layer protocol of the interface Serial 0/0/0, and enable it to
work in DCE mode.
[H3C-Serial0/0/0] link-protocol lapb dce
Syntax
View
Interface view
Parameter
Description
Use the link-protocol x25 command to encapsulate X.25 protocol to the specified
interface.
By default, the link-layer protocol for interface is PPP. When the interface uses X.25
protocol, it works in DTE IETF mode by default.
If the X.25 switching function is not used, and two Routers are directly connected back
to back via the X.25 protocol, one Router shall work in DTE mode, while the other shall
work in DCE mode. When two Routers are connected via the X.25 public packet
network, they shall generally work in DTE mode. If the X.25 switching function is used,
the Router shall generally work in DCE mode.
In practice, select the IETF format of datagram if there is no special requirement.
8-23
Command Manual – Link Layer Protocol
Comware V3 Chapter 8 LAPB and X.25 configuration commands
Example
# Specify X.25 as the link layer protocol of the interface Serial 0/0/0 that works in DTE
IETF mode.
[H3C-Serial0/0/0] link-protocol x25 dte ietf
8.1.26 pad
Syntax
pad x121-address
View
User view
Parameter
Description
Use the pad command to establish a PAD connection with the remote site.
PAD is a kind of application similar to telnet. It can establish the connection between
two ends through X121 address, and then, to carry out configuration operations.
Example
Syntax
View
User view
Parameter
8-24
Command Manual – Link Layer Protocol
Comware V3 Chapter 8 LAPB and X.25 configuration commands
Description
For SVC, use the reset xot command to initiatively clear an XOT link.
For PVC, use the reset xot command to initiatively reset an XOT link.
You can initiatively clear or reset the XOT link using the command reset xot. When you
clear or reset the XOT link, you can obtain the required ports using the commands
display x25 xot or display tcp status.
Related command: display x25 vc, x25 switching, display x25 xot, and display tcp
status.
Example
Syntax
View
User view
Parameter
Description
Use the reset x25 command to reset statistics about X.25 on the specified interface or
to reset the specified X.25 VC.
Example
Syntax
8-25
Command Manual – Link Layer Protocol
Comware V3 Chapter 8 LAPB and X.25 configuration commands
View
Interface view
Parameter
None
Description
Use the reset lapb statistics command to clear the statistics about LAPB.
Example
8.1.30 translate ip
Syntax
View
System view
Parameter
Description
Use the translate ip command to configure an X2T forwarding route from IP network to
X.25 network.
Use the undo translate ip command to cancel a configured X2T forwarding route from
IP network to X.25 network.
When the host in IP network transmits packets to the specified IP address and port
number of the router, the router will translate these IP packets to X.25 ones and then
forward them to a specified X1.121 address or PVC in X.25 network.
8-26
Command Manual – Link Layer Protocol
Comware V3 Chapter 8 LAPB and X.25 configuration commands
x.121-address supports wildcard. For the details about how to use wildcard, refer to the
X25 route command.
Example
# Configure an X2T forwarding route to forward the packets that the local device
receives at 10.1.1.1:102 to the X.121 address 111.
[H3C] Translate ip 10.1.1.1 port 102 x25 111
# Configure an X2T forwarding route to forward the packets that the local device
receives at 10.1.1.1:102 to PVC 1 on the interface serial 0/0/0.
[H3C] Translate ip 10.1.1.1 port 102 pvc serial 0/0/0 1
Syntax
View
System view
Parameter
Description
Use the translate x25 command to configure an X2T forwarding route from X.25
network to IP network.
Use the undo translate x25 command to cancel this configuration.
Users can implement the packet forwarding between X25 and IP network. The program
compares the destination address in the X.25 call request packet with x.121-address,
then initiates a TCP connection to a specified IP address and port number according to
the configuration if the matching result describes it is an X2T application.
You can establish mapping between port numbers and X.121 addresses by multiple
commands.
x.121-address supports wildcard. For the details about how to use wildcard, refer to the
X25 route command.
8-27
Command Manual – Link Layer Protocol
Comware V3 Chapter 8 LAPB and X.25 configuration commands
Example
# Configure an X2T forwarding route to forward the packets that are received at the
X.121 address 111 to the IP address 10.1.1.1:102.
[H3C] Translate x25 1111 ip 10.1.1.1 port 102
Syntax
View
Interface view
Parameter
match-type: Match type of the alias. There are 9 optional match types:
z free: Free match
z free-ext: Extended free match
z left: Left alignment match
z left-ext: Extended left alignment match
z right: Right alignment match
z right-ext: Extended right alignment match
z strict: Strict match
z whole: Whole match
z whole-ext: Extended whole match
alias-string: String of the alias
Description
Use the x25 alias-policy command to configure the alias of an X.121 address.
Use the undo x25 alias-policy command to delete the alias of an X.121 address.
By default, no x.25 alias is configured.
When an X.25 call is forwarded between networks, different X.25 networks may
perform some operations on the destination addresses (that is, the called DTE address)
carried by this call packet, for example, regularly adding or deleting the prefix and suffix.
In this case, a user needs to set an interface alias for the router to adapt this change.
Please consult your ISP to learn if the network supports this function before deciding
whether the alias function is enabled or not.
For the details about the X.25 alias matching method, please see the chapter LAPB
and X.25 Configurations in Operation Manual.
Related command: display x25 alias-policy, x25 x121-address.
8-28
Command Manual – Link Layer Protocol
Comware V3 Chapter 8 LAPB and X.25 configuration commands
Example
# Configure the link-layer protocol on interface Serial0/0/0 as X.25 and its X.121
address to 20112451, and set two aliases with different match types for it.
[H3C] interface serial 0/0/0
[H3C-Serial0/0/0] link-protocol x25
[H3C-Serial0/0/0] x25 x121-address 20112451
[H3C-Serial0/0/0] x25 alias-policy right 20112451$
[H3C-Serial0/0/0] x25 alias-policy left $20112451
With the above configurations, a call whose destination address is 20112451 can be
accepted as long as it can reach the local X.25 interface Serial0/0/0, no matter whether
the network is performing the prefix adding operation or suffix adding operation.
Syntax
View
Interface view
Parameter
8-29
Command Manual – Link Layer Protocol
Comware V3 Chapter 8 LAPB and X.25 configuration commands
threshold in out: Specifies throughput negotiation while calling from X.25 interface.
The values of in/out are defined as 75, 150, 300, 600, 1200, 2400, 4800, 9600, 19200,
and 48000.
window-size input-window-size output-window-size: Specifies the window size
negotiation while calling from X.25 interface. Window size negotiation is a part of flow
control parameter negotiation. It needs two parameters: reception window size and
transmission window size, which must be in the range of 1 to modulo -1 (including 1
and modulo -1).The default values of the two parameters are 2.
Description
Use the x25 call-facility command to set user options for an X.25 interface. After an
option is set, all X.25 calls from the X.25 interface will carry the relevant information
field in call packet.
Use the undo x25 call-facility command to delete the set option.
By default, no facility is set.
The user facilities set via this command are available for all the calls originating from
this X.25 interface. You can set a user option for an X.25 call from a certain address
mapping through the command x25 map protocol-name protocol-address
x.121-address x.121-address [ option ].
Related command: x25 map.
Example
# Specify the flow control parameter negotiation with the peer end for the calls from the
X.25 interface serial0/0/0.
[H3C-Serial0/0/0] x25 call-facility packet-size 512 512
[H3C-Serial0/0/0] x25 call-facility window-size 5 5
Syntax
View
Interface view
Parameter
8-30
Command Manual – Link Layer Protocol
Comware V3 Chapter 8 LAPB and X.25 configuration commands
Description
Use the x25 cug-service command to enable CUG service and suppression policies.
Use the undo x25 cug-service command to disable CUG service.
By default, CUG service is disabled.
The command is used at DEC end. You can use the link-protocol x25 dce command
to set the interface operating in DCE mode.
After CUG service is enabled, the system suppresses those calls matching the preset
conditions. The details are:
If no parameter is set, the system suppresses all calls (including the calls with or
without CUG facilities).
If the incoming-access parameter is chosen, the system suppresses incoming calls.
That is, it suppresses the incoming calls with CUG facilities, but lets the incoming calls
without CUG facilities pass through.
If the outgoing-access parameter is chosen, the system suppresses outgoing calls.
That is, it suppresses the outgoing calls with CUG facilities, but lets the outgoing calls
without CUG facilities pass through.
If the suppress all parameter is chosen, the system removes CUG facilities for the
incoming calls with CUG facilities and makes call processing. This parameter is
ineffective to outgoing calls.
When the suppress preferential parameter, if an incoming call with CUG facilities and
the suppression rule is preferential, the system then removes its CUG facilities and
make call processing. If the suppression rule is not preferential, the system does not
remove its CUG facilities but lets it pass through. This parameter is ineffective to
outgoing calls.
Related command: x25 call-facility, x25 local-cug.
Example
Syntax
8-31
Command Manual – Link Layer Protocol
Comware V3 Chapter 8 LAPB and X.25 configuration commands
View
Interface view
Parameter
Description
Use the x25 default-protocol command to set the default upper-layer protocol carried
over X.25 for the X.25 interface.
Use the undo x25 default-protocol command to restore the default upper-layer
protocol.
By default, IP is carried over X.25.
During X.25 SVC setup, the called device will check the call user data field of X.25 call
request packet. If it is an unidentifiable one, the called device will deny the setup of the
call connection. However, a user can specify a default upper-layer protocol carried over
X.25. When X.25 receives a call with unknown CUD, the call can be treated based on
the default upper-layer protocol specified by a user.
Related command: x25 map.
Example
# Set the default upper-layer protocol over the X.25 interface Serial0/0/0 as IP.
[H3C-Serial0/0/0] x25 default-protocol ip
Syntax
View
System view
Parameter
Description
Use the x25 hunt-group command to create or enter an X.25 hunt group.
8-32
Command Manual – Link Layer Protocol
Comware V3 Chapter 8 LAPB and X.25 configuration commands
Use the undo x25 hunt-group command to delete the specified X.25 hunt group.
X.25 hunt group supports two call channel selection policies: round-robin mode and
vc-number mode, and a hunt group only uses one channel selection policy. The
round-robin mode will select next interface or XOT channel inside hunt group for each
call request using cyclic selection method. The vc-number mode will select the
interface with the most idle-logical channels in hunt group for each call request.
A hunt group can have 10 interfaces or XOT channels at most, and it may arbitrarily
select the available channels between interface and XOT channel.
XOT channel cannot join the hunt group that adopts the vc-number selection policy.
Related command: display x25 hunt-group.
Example
Syntax
View
Interface view
Parameter
None
Description
Use the x25 ignore called-address command to enable it to ignore the X.121 address
of the called DTE when X.25 initiates calls.
Use the undo x25 ignore called-address command to disable this function.
By default, this function is disabled.
According to X.25, the calling request packet must carry the address bits. However, on
some occasions, the X.25 calling request does not have to carry the called/calling DTE
address in a specific network environment or as is required by the application. This
command enables users to specify whether the call request packet sent by X.25 in the
H3C series routers carries the called DTE address.
Related command: x25 response called-address, x25 response calling-address, and
x25 ignore calling-address.
8-33
Command Manual – Link Layer Protocol
Comware V3 Chapter 8 LAPB and X.25 configuration commands
Example
# Specify the call request packet from the X.25 interface Serial0/0/0 not to carry the
called DTE address.
[H3C-Serial0/0/0] x25 ignore called-address
Syntax
View
Interface view
Parameter
None
Description
Use the x25 ignore calling-address command to enable it to ignore the X.121
address of the calling DTE when X.25 initiates calls.
Use the undo x25 ignore calling-address command to disable this function.
By default, this function is disabled.
According to X.25, the calling request packet must carry the address bits. However, on
some occasions, the X.25 calling request does not have to carry the called/calling DTE
address in a specific network environment or as is required by the application. This
command enables users to specify whether the call request packet sent by X.25 in the
H3C series routers carries the calling DTE address.
Related command: x25 response called-address, x25 response calling-address, and
x25 ignore called-address.
Example
# Specify the call request packet from the X.25 interface Serial0/0/0 not to carry the
calling DTE address.
[H3C-Serial0/0/0] x25 ignore calling-address
Syntax
8-34
Command Manual – Link Layer Protocol
Comware V3 Chapter 8 LAPB and X.25 configuration commands
View
Interface view
Parameter
Description
Use the x25 local-cug command to configure mapping from local CUG to network
CUG and define its suppression rule.
Use the undo x25 local-cug command to remove the mapping from local CUG to
network CUG.
Two types of CUG suppression policies are available. One it to suppress all incoming
calls, where the system removes the CUG facilities of all incoming calls with CUG
facilities. The other is to suppress the incoming calls matching the mapping specified
as preference rule, where the system removes the CUG facilities only of those
incoming calls matching the mapping specified as preference rule, but lets other
incoming calls with CUG facilities pass through.
By default, no suppress rule is defined.
Related command: x25 call-facility and x25 cug-service.
Example
# Define the rule on the serial interface Serial0/0/0: the incoming calls with 100 local
CUGs or 200 network CUGs are denied.
[H3C-Serial0/0/0] x25 cug-service
[H3C-Serial0/0/0] x25 local-cug 100 network-cug 200 no-incoming
Syntax
8-35
Command Manual – Link Layer Protocol
Comware V3 Chapter 8 LAPB and X.25 configuration commands
View
Interface view
Parameter
Description
Use the x25 map command to set the address mapping between IP address used by
LANs and X.121 address.
Use the undo x25 map command to delete one existing mapping.
By default, no address mapping is set.
Since X.25 protocol can multiplex more logical virtual circuits on a physical interface,
you need to manually specify the mapping relation between all network addresses and
X.121 address.
Once you have specified an address mapping, its contents (including protocol address,
X.121 address and all options) cannot be changed. To make modifications, you can first
delete this address mapping via the undo x25 map command, and then establish one
new address mapping.
Two or more address mappings with an identical protocol address shall not exist on the
same X.25 interface.
Detailed explanations are as follows:
broadcast: Sends any broadcasts of internetworking protocol and the multicast of IP to
the destination. This option provides powerful support for some routing protocols (such
as Routing Information Protocol).
closed-user-group group-number: Number of the closed user group corresponding to
this address mapping.
encapsulation-type: Encapsulation type, optional types include nonstandard, ietf,
multi-protocol and snap.
idle-timer minutes: Maximum idle time for the VC associated with the address
mapping. 0 means that the idle time is infinite.
no-callin: Disables accepting call to the address mapping.
no-callout: Disables call originating from the address mapping.
packet-size input-packet output-packet: When the address mapping is used to
originate a call, it will negotiate the maximum packet size in bytes with the peer end. Its
8-36
Command Manual – Link Layer Protocol
Comware V3 Chapter 8 LAPB and X.25 configuration commands
value must range from 16 to 4096 (including 16 and 4096), and must be the integer
power of 2.
reverse-charge-accept: If a call initiated by the address mapping carries reverse
charging request, to accept the call, this option must be configured in the address
mapping.
reverse-charge-request: Specifies reverse charging request while calling from the
address mapping.
roa-list name: Specifies an ROA list name configured by the command X25 roa-list in
system view for the X.25 interface.
send-delay milliseconds: When the address mapping is used to originate a call, it
carries the maximum transmission delay request.
threshold in out: When the address mapping is used to originate a call, it negotiates
throughput with the peer end. The values of in/out are defined to be 75, 150, 300, 600,
1200, 2400, 4800, 9600, 19200, and 48000.
vc-per-map count: Maximum number of VCs associated with the address mapping.
window-size input-window-size output-window-size: When the address mapping is
used to originate a call, it negotiates the window size with the peer end. The values of
input-window-size and output-window-size range between 1 and the number that is 1
less than the modulus of the X.25 interface where the address mapping exists
(including 1 and modulus minus 1).
Related command: display x25 map, x25 reverse-charge-accept, x25 call-facility, x25
timer idle, and x25 vc-per-map.
Example
# Set two address mappings on the X.25 interfaces Serial0/0/0 and Serial1/0/0,
respectively, and the four address mappings have different attributes.
[H3C] interface serial 0/0/0
[H3C-Serial0/0/0] x25 map ip 202.38.160.11 x121-address 20112451
reverse-charge-request reverse-charge-accept
[H3C-Serial0/0/0] x25 map ip 202.38.160.138 x121-address 20112450 packet-size
512 512 idle-timer 10
[H3C] interface serial1/0/0
[H3C-Serial1/0/0] x25 map ip 20.30.4.1 x121-address 25112451 window-size 4 4
broadcast
[H3C-Serial0/0/0] x25 map ip 20.30.4.8 x121-address 25112450 no-callin
Syntax
8-37
Command Manual – Link Layer Protocol
Comware V3 Chapter 8 LAPB and X.25 configuration commands
View
Interface view
Parameter
Description
Use the x25 modulo command to set the window modulus of an X.25 interface.
Use the undo x25 modulo command to restore its default window modulus.
By default, the window modulus of X.25 interface is modulus 8 mode.
The slip window is the basis for X.25 traffic control, and the key about the slip window is
that the sent packets are numbered cyclically in order and are to be acknowledged by
the peer end. The order in numbering refers to the ascending order, like “…2, 3, 4, 5,
6…” “Cyclically” means that the numbering starts again from the beginning when a
certain number (called modulus) is reached. For example, when the modulus is 8, the
numbering goes “…4, 5, 6, 7, 0, 1…”.
X.25 defines two numbering modulus: 8 (also called the basic numbering) and 128
(also called extended numbering), and the X.25 of the H3C series routers supports both
views.
Related command: display interface, x25 call-facility, x25 map, x25 pvc, x25 switch pvc,
x25 xot pvc, x25 fr pvc, and x25 window-size.
Example
Syntax
View
Interface view
8-38
Command Manual – Link Layer Protocol
Comware V3 Chapter 8 LAPB and X.25 configuration commands
Parameter
input-packet: Maximum input packet length in bytes, its value ranges from 16 (inclusive)
to 4096 (inclusive) and must be the integer power of 2.By default, the maximum input
packet length of X.25 interface is 128 bytes.
output-packet: Maximum output packet length in bytes, its value ranges from 16
(inclusive) to 4096 (inclusive) and must be the integer power of 2. By default, the
maximum output packet length of X.25 interface is 128 bytes.
Description
Use the x25 packet-size command to set the maximum input and output packet
lengths of X.25 interface.
Use the undo x25 packet-size command to restore their default values.
Usually, the X.25 packet-switching network has a limitation of the transmission packet
size, and the maximum size of a data packet sent by the DTE shall not exceed this size
(otherwise it will trigger the reset of the VC).In this way, the DTE devices at sending end
and receiving end are required to have datagram fragmentation and reassembly
functions. The DTE device at sending end fragments the datagram with a length
exceeding the maximum transmission packet length based on the maximum
transmission packet length, and sets M bit in other fragments besides the final fragment.
After receiving these fragments, the DTE at receiving end will reassemble them as a
datagram to submit the upper-layer protocol based on the M bit. Please consult users'
ISP about this maximum receiving packet length.
Normally, the maximum receiving packet length is equivalent to the maximum send
packet. Unless users' ISP allows, please do not set these two parameters to different
values.
Related command: x25 call-facility, x25 pvc, x25 switch pvc, x25 xot pvc and x25 fr pvc.
Example
# Set the maximum receiving packet length and maximum sending packet length on
X.25 interface Serial0/0/0 to 256 bytes.
[H3C-Serial0/0/0] x25 packet-size 256 256
Syntax
8-39
Command Manual – Link Layer Protocol
Comware V3 Chapter 8 LAPB and X.25 configuration commands
View
Interface view
Parameter
pvc-number: PVC number, which must range from 1 to 4094 (inclusive), and must be in
the PVC channel range.
protocol-type: Upper-layer protocol carried over the permanent virtual circuit, which
may be IP or compressedtcp.
protocol-address: Network protocol address of the peer end of the PVC.
compressedtcp: Enables TCP header compression.
x.121-address: X.121 address of the peer end of this PVC.
option: Attribute of the PVC.
Description
Use the x25 pvc command to configure one PVC route encapsulated with datagram.
Use the undo x25 pvc command to delete this route.
By default, no PVC encapsulated with datagram is created. When creating such a PVC,
you do not set the relevant attributes for the PVC, its flow control parameters will be the
same as that of the X.25 interface on which it resides (the flow control parameters on an
X.25 interface can be set by the x25 packet-size and x25 window-size commands).
As one corresponding address mapping is impliedly established while establishing the
PVC, it is unnecessary (or impossible) to establish an address mapping first before
establishing PVCs.
Before establishing PVCs, users should first enable the PVC channel section. The
section is between 1 and the latest unprohibited channel section PVC number minus 1
(including 1 and the lowest PVC number minus 1). Naturally, if the lowest PVC number
is 1, the PVC section will be disabled naturally. The following table shows some typical
PVC sections.
8-40
Command Manual – Link Layer Protocol
Comware V3 Chapter 8 LAPB and X.25 configuration commands
Example
# Configure the link layer protocol on the interface Serial0/0/0 to X.25, enable PVC
channel section, and set two VCs.
[H3C] interface serial 0/0/0
[H3C-Serial0/0/0] link-protocol x25
[H3C-Serial0/0/0] x25 vc-range bi-channel 8,102 4
[H3C-Serial0/0/0] x25 pvc 2 ip 202.38.168.1 x121-address 20112451 broadcast
packet-size 512 512
[H3C-Serial0/0/0] x25 pvc 6 ip 202.38.168.3 x121-address 20112453 broadcast
window-size 5 5
Syntax
View
Interface view
8-41
Command Manual – Link Layer Protocol
Comware V3 Chapter 8 LAPB and X.25 configuration commands
Parameter
queue-length: Queue length in packets. It ranges from 0 to 9999 for the AR 28/46
Series Routers and from 0 to 3000 for the AR 18 Series Routers. The default queue
length on X.25 VC is 200.
Description
Use the x25 queue-length command to set the data queue length on X.25 VC.
Use the undo x25 queue-length command to restore its default value.
When the data traffic is too heavy, you can use this command to extend the receiving
queue and sending queue of the X.25 VC to avoid data loss that may affect
transmission performance. It should be noted here that modifying this parameter would
not affect the existing data queue of VC.
Related command: x25 packet-size
Example
# Set the VC data queue length of the X.25 interface Serial0/0/0 to 75 datagrams.
[H3C-Serial0/0/0] x25 queue-length 75
Syntax
View
Interface view
Parameter
count: The number of data packets that can be received before previous
acknowledgement, in the range 0 to input window size. If it is set to 0 or the input
window size, this function will be disabled. If it is set to 1, X.25 of the H3C serial routers
will send an acknowledgement for each correct packet received. By default, the number
of data packets that can be received on X.25 before previous acknowledgement is 0.
Description
Use the x25 receive-threshold command to set the number of receivable maximum
packets before X.25 sends the acknowledged packet.
Use the undo x25 receive-threshold command to restore its default value.
After enabling this function, the H3C series routers can send acknowledgement to the
peer router upon the receipt of some correct packets, even if the input window is not yet
8-42
Command Manual – Link Layer Protocol
Comware V3 Chapter 8 LAPB and X.25 configuration commands
full. If there is not much data traffic in users' application environment and users pay
more attention to the response speed, they can appropriately adjust this parameter to
meet the requirement.
Related command: x25 window.
Example
# Specify that each VC on the X.25 interface Serial0/0/0 acknowledges each correctly
received data packet.
[H3C-Serial0/0/0] x25 receive-threshold 1
Syntax
View
Interface view
Parameter
None
Description
Use the x25 response called-address command to enable X.25 to carry the address
information of the called DTE in sending call reception packet.
Use the undo x25 response called-address command to disable the above function.
By default, this function is disabled.
According to X.25, the call receiving packet of a call may or may not carry an address
code group, depending on the specific network requirements. This command enables
users to easily specify whether the call receiving packet of a call sent by X.25 of the
H3C series routers carries the called DTE address.
Related command: x25 response calling-address, x25 ignore called-address, and x25
ignore calling-address.
Example
# Specify that the call receiving packet of a call sent from the X.25 interface Serial0/0/0
carries the called DTE address.
[H3C-Serial0/0/0] x25 response called-address
8-43
Command Manual – Link Layer Protocol
Comware V3 Chapter 8 LAPB and X.25 configuration commands
Syntax
View
Interface view
Parameter
None
Description
Use the x25 response calling-address command to enable X.25 to carry the address
information of the calling DTE in sending call reception packet.
Use the undo x25 response calling-address command to disable the above function.
By default, this function is disabled.
According to X.25, the call receiving packet of a call may or may not carry an address
code group, depending on the specific network requirements. This command enables
users to easily specify whether the call receiving packet of a call sent by X.25 of the
H3C series routers carries the calling DTE address.
Related command: x25 response called-address, x25 ignore called-address, and x25
ignore calling-address.
Example
# Specify that the call receiving packet of a call sent from the X.25 interface Serial0/0/0
carries the calling DTE address.
[H3C-Serial0/0/0] x25 response calling-address
Syntax
x25 reverse-charge-accept
undo x25 reverse-charge-accept
View
Interface view
Parameter
None
8-44
Command Manual – Link Layer Protocol
Comware V3 Chapter 8 LAPB and X.25 configuration commands
Description
Use the x25 reverse-charge-accept command to enable this interface to accept the
call with “reverse charging request”, the information added by some certain user
facilities.
Use the undo x25 reverse-charge-accept command to disable this above function.
By default, this function is disabled.
This function does not affect any call without “reverse charging request”.
If you enable this function on an X.25 interface, all these calls that reach the interface
will be accepted. If you enable this function for a certain address mapping by the option
reverse-charge-accept in the command x25 map, only such calls that reach the
interface and map this address will be accepted, while other calls (carrying reverse
charging request, and not mapping this address) will be cleared.
Related command: x25 map.
Example
# Set the “accepting calls with reverse charging request” function on interface
Serial0/0/0.
[H3C-Serial0/0/0] x25 reverse-charge-accept
Syntax
View
System view
Parameter
Description
8-45
Command Manual – Link Layer Protocol
Comware V3 Chapter 8 LAPB and X.25 configuration commands
You can configure multiple (0 to 20) ROAs, and each ROA can be specified with
multiple(1 to 10) IDs. After configuring ROA, you can cite it by its name in the
commands x25 call-facility or x25 map.
Related command: x25 call-facility, x25 map.
Example
# Define two ROA lists, and cite them on the interfaces Serial 0/0/0 and Serial 1/0/0.
[H3C] x25 roa-list list1 11 23 45
[H3C] x25 roa-list list2 345
[H3C] interface serial 0/0/0
[H3C-Serial0/0/0] x25 call-facility roa-size list1
[H3C] interface serial 1/0/0
[H3C-Serial0/0/0] x25 call-facility roa-list list2
Syntax
x25 switch pvc pvc-number1 interface serial number pvc pvc-number2 [ option ]
undo x25 switch pvc pvc-number1
View
Interface view
Parameter
pvc-number1: PVC number on the input interface, and its value ranges from 1 to 4095.
pvc-number2: PVC number on the output interface, and its value ranges from 1 to
4095.
number: Number of the output interface. It cannot be a subinterface.
option: Attribute of PVC.
Description
Use the x25 switch pvc (packet switching) command to configure one PVC route.
Use the undo x25 switch pvc command to delete one PVC route.
By default, no PVC route is defined.
Based on the X.25 switching configuration, you can use the H3C series Routers as a
simple X.25 switch. When PVC switching is configured, the link layer protocols on the
input and output interfaces must be X.25. Moreover, the specified PVCs on the two
interfaces have been presented and enabled. Note that PVC switching cannot be
configured on the X.25 sub-interface.
Detailed explanations of PVC options are follows:
8-46
Command Manual – Link Layer Protocol
Comware V3 Chapter 8 LAPB and X.25 configuration commands
Example
# Perform the packet switching between PVC1 on the Serial0/0/0 and PVC1 on the
Serial1/0/0.
[H3C-Serial0/0/0] link-protocol x25 dce ietf
[H3C-Serial0/0/0] interface serial1/0/0
[H3C-Serial0/0/0] link-protocol x25 dce ietf
[H3C-Serial1/0/0] x25 switch pvc 1 interface serial 0/0/0 pvc 1
Syntax
View
System view
Parameter
8-47
Command Manual – Link Layer Protocol
Comware V3 Chapter 8 LAPB and X.25 configuration commands
Description
Use the x25 switch svc interface command to add an X.25 switching route whose
forwarding address is a serial interface or Annex G DLCI.
Use the undo x25 switch svc xot command to delete the specified X.25 switching
route.
By default, no X.25 switching route is configured.
You can configure the router with X.25 switching to have it function as a simple X.25
switch. Note that on X.25 subinterfaces, you cannot configure SVCs.
Before using this command, enable X.25 switching with the x25 switching command.
Related command: x25 switch svc xot, display x25 switch-table, x25 switching.
Example
# Switch SVC 1 to interface Serial 0/0/0 and SVC 2 to interface Serial 1/0/0.
[H3C] interface serial 0/0/0
[H3C-Serial0/0/0] link-protocol x25 dce ietf
[H3C-Serial0/0/0] interface serial 1/0/0
[H3C-Serial1/0/0] link-protocol x25 dce ietf
[H3C-Serial1/0/0] quit
[H3C] x25 switch svc 1 interface serial 0/0/0
[H3C] x25 switch svc 2 interface serial 1/0/0
Syntax
View
System view
Parameter
8-48
Command Manual – Link Layer Protocol
Comware V3 Chapter 8 LAPB and X.25 configuration commands
Description
Use the x25 switch svc hunt-group command to add an X.25 switching route whose
forwarding address is a hunt group.
Use the undo x25 switch svc hunt-group command to delete the specified X.25
switching route.
By default, no X.25 switching route is configured.
After the X.25 switching route whose forwarding address is a hunt group is configured,
the relevant X.25 call request packet will be forwarded to different interfaces or XOT
channels in the specified hunt group, so as to implement the load sharing under X.25
protocol.
Note that you cannot configure SVCs on X.25 subinterfaces.
Matchable
Wildcard
Matching rules Example character
characters
string
Matching zero or more previous
* fo* fo, foo, fooo
characters
Matching zero or more previous
+ fo+ fo, foo, fooo
characters
Matching the beginning of the entered hell, hello,
^ ^hell
characters hellaaa
Matching the end of the entered
$ ar$ ar, car, hear
characters
Matching a single character specified
\char b\+ b+
by char.
. Matching arbitrary single character l.st last, lbst, lost
Matching arbitrary zero or more
.* fo.* fo, foo, fot
characters.
Matching arbitrary one or more
.+ fo.+ foo, fot, foot
characters.
8-49
Command Manual – Link Layer Protocol
Comware V3 Chapter 8 LAPB and X.25 configuration commands
Example
# Add an X.25 switching route, whose destination address is 8888 and forwarding
address is the hunt group hg1, and substitute the destination address with 9999.
[H3C] x25 switch svc 111 sub-dest 9999 sub-source 8888 hunt-group hg1
Syntax
View
System view
Parameter
Description
Use the x25 switch svc xot command to add an X.25 switching route whose
forwarding address is XOT channel.
8-50
Command Manual – Link Layer Protocol
Comware V3 Chapter 8 LAPB and X.25 configuration commands
Use the undo x25 switch svc xot command to delete the specified X.25 switching
route.
By default, no X.25 switching route is configured.
After configuring the XOT switching command of X.25 SVC, a user can cross IP
network from the local X.25 network to implement the interconnection with the remote
X.25 network. If a user configures the keepalive attribute, the link detection for XOT will
be supported.
Option Description
Keepalive timer delay of XOT connection. The timer sends
timer seconds the keepalive packet upon timeout to detect the connection
availability. Its value ranges from 1 to 3600.
Number of maximum retries of sending keepalive. If the
retry times number exceeds times, the XOT connection will be
disconnected. Its value ranges from 3 to 3600.
source interface-type Type and number of the interface that initiates the XOT
interface-number connection.
Related command: x25 switch svc interface, display x25 switch-table svc, x25
switching.
Example
Syntax
x25 switching
undo x25 switching
View
System view
Parameter
None
Description
Use the x25 switching command to enable the X.25 switching function.
8-51
Command Manual – Link Layer Protocol
Comware V3 Chapter 8 LAPB and X.25 configuration commands
Use the undo x25 switching command to disable this function, which will not affect the
established VC switching function.
By default, X.25 packet switching function is disabled.
X.25 packet switching is used to accept packets from an X.25 interface and send them
to a certain interface based on the destination information contained in the packets.
The Router can be used as a small-sized packet switch by the packet layer switching
function.
Related command: x25 pvc, x25 switch pvc, x25 xot pvc, x25 fr pvc, x25 switch
svc, display x25 vc, display x25 switch-table svc.
Example
Syntax
View
Interface view
Parameter
minutes: Value of delay time in minutes, and its value ranges from 0 to 1000. If the
previous call failed at one destination, the X.25 would not send calls to such a
destination again within the time set by this command.
By default, the delay time is 0.
Description
Use the x25 timer hold command to set the delay to send calls to a destination with
failed calls.
Use the undo x25 timer hold command to restore its default value.
Frequently sending call requests to a wrong destination (which does not exist or is
faulty) will deteriorate the operating efficiency of the H3C series router. The use of this
function can avoid this problem to a certain extent. If this parameter is set to 0, it is
equal to disabling the function. In addition, this function is only effective to the calls
originated from the local. That is to say, this parameter is meaningless when the X.25
operates in the switching mode.
Related command: display interface.
8-52
Command Manual – Link Layer Protocol
Comware V3 Chapter 8 LAPB and X.25 configuration commands
Example
Syntax
View
Interface view
Parameter
minutes: Maximum idle time of SVC in minutes, and its value ranges from 0 to 255.By
default, this value is 0.
Description
Use the x25 timer idle command to set the maximum idle time of the SVC on the
interface.
Use the undo x25 timer idle command to restore its default value.
When a SVC stays idle (no data transmission) for a period (the period length is decided
by the parameter), the router will clear this SVC automatically. If this parameter is set to
0, this SVC will be reserved no matter how long it stays idle.
The configuration of this parameter will affect all the SVCs on this X.25 interface. Also
users can set the maximum idle time for a SVC attached to this address mapping
through the option in the command x25 map.
For PVC or the established SVC for X.25 switching, the command will be disabled.
Related command: x25 map.
Example
# Set the maximum idle time of the SVC on the interface Serial 0/0/0 to 10 minutes.
[H3C-Serial0/0/0] x25 timer idle 10
Syntax
8-53
Command Manual – Link Layer Protocol
Comware V3 Chapter 8 LAPB and X.25 configuration commands
View
Interface view
Parameter
seconds: Delay time for the X.25 restarting timer in seconds. It ranges 0 to 1000. By
default, the delay on the X.25 DTE restarting timer is 180 seconds and that on the DCE
timer is 60 seconds.
Description
Use the x25 timer tx0 command to set the restart/retransmission timer delay for DTE
(or DCE).
Use the undo x25 timer tx0 command to restore their default values.
According to X.25, a timer should be started when a DTE sends a restart request (or a
DCE sends a restart indication). If no peer acknowledgement is received after this timer
is timeout, the sending end will take some measures to guarantee the normal
proceeding of the local procedure. This parameter specifies the delay time of this timer
before the timeout.
Related command: x25 timer tx1, x25 timer tx2, and x25 timer tx3.
Example
# Set the restarting timer delay on the X.25 interface Serial0/0/0 to 120 seconds.
[H3C-Serial0/0/0] x25 timer tx0 120
Syntax
View
Interface view
Parameter
seconds: Delay time of calling request (indication) transmission timer in seconds, and
its value ranges from 0 to 1000. By default, the delay time on a DTE call timer is 200
seconds; that on a DCE call sending timer is 180 seconds.
Description
Use the x25 timer tx1 command to set calling request (indication) transmission timer
delay for DTE (or DCE).
8-54
Command Manual – Link Layer Protocol
Comware V3 Chapter 8 LAPB and X.25 configuration commands
Use the undo x25 timer tx1 command to restore its default value.
According to X.25, a timer should be started when a DTE sends a call request (or a
DCE sends a call indication). If no peer acknowledgement is received after this timer is
timeout, the sending end will take some measures to guarantee the normal proceeding
of the local procedure. This parameter specifies the delay time of this timer before the
timeout.
Related command: x25 timer tx0, x25 timer tx2, and x25 timer tx3.
Example
# Set the timer delay on the X.25 interface Serial0/0/0 to 100 seconds.
[H3C-Serial0/0/0] x25 tx1 100
Syntax
View
Interface view
Parameter
seconds: Delay time of resetting request (indication) timer in seconds, and its value
ranges from 0 to 1000. By default, the delay time on a DTE reset timer is 180 seconds;
that on a DCE reset timer is 60 seconds.
Description
Use the x25 timer tx2 command to set resetting request (indication) transmission timer
delay for DTE (or DCE).
Use the undo x25 timer tx2 command to restore its default value.
According to X.25, a timer should be started when a DTE sends a reset request (or a
DCE sends a reset indication). If no peer acknowledgement is received after this timer
is timeout, the sending end will take some measures to guarantee the normal
proceeding of the local procedure. This parameter specifies the delay time of this timer
before the timeout.
Related command: x25 timer tx0, x25 timer tx1, and x25 timer tx3.
Example
# Set the reset timer delay on the X.25 interface Serial0/0/0 to 120 seconds.
[H3C-Serial0/0/0] x25 tx2 120
8-55
Command Manual – Link Layer Protocol
Comware V3 Chapter 8 LAPB and X.25 configuration commands
Syntax
View
Interface view
Parameter
seconds: Delay time of clearing request (indication) transmission timer in seconds, and
its value ranges from 0 to 1000. By default, the delay time on a DTE clearing timer is
180 seconds; that on a DCE clearing timer is 60 seconds.
Description
Use the x25 timer tx3 command to set clearing request (indication) transmission timer
delay for DTE (or DCE).
Use the undo x25 timer tx3 command to restore its default value.
According to X.25, a timer should be started when a DTE sends a clear request (or a
DCE sends a clear indication). If no peer acknowledgement is received after this timer
is timeout, the sending end will take some measures to guarantee the normal
proceeding of the local procedure. This parameter specifies the delay time of this timer
before the timeout.
Related command: x25 timer tx0, x25 timer tx1, and x25 timer tx2.
Example
# Set the delay time of clearing timer on the X.25 interface Serial0/0/0 to 100 seconds.
[H3C-Serial0/0/0] x25 timer tx3 100
Syntax
View
Interface view
8-56
Command Manual – Link Layer Protocol
Comware V3 Chapter 8 LAPB and X.25 configuration commands
Parameter
count: Maximum number of VCs, and its value ranges from 1 to 8.By default, its value is
1.
Description
Use the x25 vc-per-map command to set the maximum number of VCs for
connections with the same destination device.
Use the undo x25 vc-per-map command to restore their default values.
If the parameter is greater than 1, and the sending window and the sending queue of
VC are filled full, the system will create a new VC to the same destination. If the new VC
cannot be created, the datagram will be discarded.
Related command: display interface and x25 map.
Example
# Set the maximum value of VCs on the X.25 interface Serial 0/0/0 to 3.
[H3C-Serial0/0/0] x25 vc-per-map 3
Syntax
x25 vc-range { in-channel lic hic | bi-channel ltc htc | out-channel loc hoc }
undo x25 vc-range
View
Interface view
Parameter
lic hic: Lowest and highest incoming-only channels of X.25 VC, and its value ranges
from 0 to 4095. If hic (highest incoming-only channel) is set to 0, lic (lowest
incoming-only channel) must also be set to 0, which indicates that the incoming-only
channel section is disabled. By default, the hic in X.25 VC range is 0.
ltc htc: Lowest and highest two-way channels of X.25 VC, and its value ranges from 0 to
4095. If htc (highest two-way channel) is set to 0, ltc (lowest two-way channel) must
also be set to 0, which indicates that the two-way channel section is disabled. By
default, the htc of X.25 VC is 1024.
loc hoc: Lowest and highest outgoing-only channels of X.25 VC, and its value ranges
from 0 to 4095. If hoc (highest outgoing-only channel) is set to 0, loc (lowest
outgoing-only channel) must also be set to 0, which indicates that the outgoing-only
channel section is disabled. By default, the hoc in X.25 VC range is 0.
8-57
Command Manual – Link Layer Protocol
Comware V3 Chapter 8 LAPB and X.25 configuration commands
Description
Use the x25 vc-range command to set highest and lowest values of X.25 VC range.
Use the undo x25 vc-range command to restore their default values.
By default, Comware X.25 disables incoming-only channel range and outgoing-only
channel, and only the two-way channel range (1-1024) is reserved for use. Please set
the VC range correctly according to the requirements of the ISP.
Example
# Configure the link layer protocol on the interface Serial 0/0/0 to X.25, enable
incoming-only channel section and two-way channel section and disable outgoing
–only channel section. After executing a series of commands, the three sections are [1,
7], [8, 1024] and [0, 0], respectively.
[H3C] interface serial 0/0/0
[H3C-Serial0/0/0] link-protocol x25
[H3C-Serial0/0/0] x25 vc-range in-channel 1 7 bi-channel 8 1024
Syntax
View
Interface view
Parameter
input-window-size: Size of input window. When X.25 window modulus is 8, its value
ranges from 1 to 7. When X.25 window modulus is 128, its value ranges from 1 to
127.By default, its value is 2.
output-window-size: Size of output window. When X.25 window modulus is 8, its value
ranges from 1 to 7. When X.25 window modulus is 128, its value ranges from 1 to 127.
By default, its value is 2.
Description
Use the x25 window-size command to set the sizes of input and output windows on
the interface X.25.
Use the undo x25 window-size command to restore their default values.
This parameter in-packets determines the maximum number of correctly received
packets before X.25 sends the acknowledgement information. As long as the
bandwidth allows, the greater the window size, the higher the transmission efficiency.
8-58
Command Manual – Link Layer Protocol
Comware V3 Chapter 8 LAPB and X.25 configuration commands
Out-packets determines the maximum number of data packets sent by X.25 before it
receives the correct acknowledgment information. As long as the bandwidth allows, the
greater the window size, the higher the transmission efficiency.
Please consult users' ISP about the sending and receiving window sizes. Unless
supported by the network, do not set these two parameters to different values.
Related command: display interface, x25 map, x25 pvc, x25 switch pvc, x25 xot pvc,
x25 fr pvc, and x25 receive-threshold.
Example
# Set the receiving and sending window sizes on the X.25 interface Serial0/0/0 to 5.
[H3C-Serial0/0/0] x25 window-size 5 5
Syntax
View
Interface view
Parameter
Description
Use the x25 x121-address command to set the X.121 address of an X.25 interface.
Use the undo x25 x121-address command to delete the address.
If the Router is accessed to X.25 public packet network, the ISP must assign a valid
X.121 address to it. If two Routers are only directly connected back to back, a user can
randomly specify the valid X.121 address. If you only wants the Router to work in
switching mode, the X.121 address needs not to be configured.
When you reconfigure an X.121 address for an X.25 interface, you need not delete the
original X.121 address, because the new address will overwrite the old one. After an
X.25 interface is re-configured, the original X.121 address will be deleted. So the X.121
address must be re-configured to work properly.
Note: For the format of the X.121 address and the dynamic conversion between IP
address and X.121 address, please refer to ITU-T Recommendation X.121 and the
relative RFC document.
Related command: display interface.
8-59
Command Manual – Link Layer Protocol
Comware V3 Chapter 8 LAPB and X.25 configuration commands
Example
# Configure the link layer protocol on the interface Serial 0/0/0 as X.25, and X.121
address as 20112451.
[H3C] interface serial 0/0/0
[H3C-Serial0/0/0] link-protocol x25
[H3C-Serial0/0/0] x25 x121-address 20112451
Syntax
x25 xot pvc pvc-number1 ip-address interface type number pvc pvc-number2
[ xot-option ] [ packet-size input-packet output-packet window-size input-window-size
output-window-size ]
undo x25 pvc pvc-number1
View
Interface view
Parameter
Option Description
Keepalive timer delay of XOT connection. The timer
timer seconds sends the keepalive packet upon timeout to detect the
connection availability. Its value ranges from 1 to 3600.
Number of maximum retries of sending keepalive. If the
retry times number exceeds times, the XOT connection will be
disconnected. Its value ranges from 3 to 3600.
source interface-type Type and number of the interface that initiates the XOT
interface-number connection.
8-60
Command Manual – Link Layer Protocol
Comware V3 Chapter 8 LAPB and X.25 configuration commands
Description
Use the x25 xot pvc command to add a PVC route of XOT. Use the undo x25 pvc
command to delete the specified PVC route of XOT.
By default, no PVC route is configured.
After configuring the XOT switching command of X.25 PVC, a user can cross IP
network from the local X.25 network to implement the interconnection with the remote
X.25 network. If a user configures the keepalive attribute, the link detection for XOT will
be supported.
Related command: display x25 vc and x25 switching.
Example
# Connect PVC1 on the interface Serial0/0/0(10.1.1.1) of Router RTA with PVC2 on the
interface Serial1/0/0(10.1.1.2) of Router RTB via XOT tunnel, and then perform packet
switching.
# Perform the configurations on the Router RTA.
[H3C-Serial0/0/0] ip address 10.1.1.1 255.255.255.0
[H3C-Serial0/0/0] link-protocol x25 dce ietf
[H3C-Serial0/0/0] x25 xot pvc 1 10.1.1.2 interface serial 1/0/0 pvc 2
Syntax
View
System view
Parameter
seconds: Delay time in seconds, in the range 5 to 2147483. The delay of waiting for
response after inviting PAD clear procedure, its default value is 5.
8-61
Command Manual – Link Layer Protocol
Comware V3 Chapter 8 LAPB and X.25 configuration commands
Description
Use the x29 timer inviteclear-time command to set the delay waiting for response
after the PAD clear procedure is initiated. Upon expiration of this timer, the server
aborts the connection by force and starts X.25 clear procedures.
Use the undo x29 timer inviteclear-time command to restore the default.
The server of X.25 PAD may send an Invite Clear message to the client, for example,
after receiving an exit request from client or in order to release the link. At the same
time, a timer is started. If no response is received upon expiration of the timer, the
server clears the link.
Example
8-62
Command Manual – Link Layer Protocol
Comware V3 Chapter 9 Bridge Configuration Commands
Syntax
View
System view
Parameter
seconds: Aging time of the dynamic address table, in the range 10 to 1,000,000
seconds. By default, the aging time of a dynamic address table is 300 seconds.
Description
Use the bridge aging-time command to configure the aging time of the dynamic
address table.
Use the undo bridge aging-time command to restore the default aging time of the
dynamic address table.
Upon the timeout of the timer, the dynamic address entries will be deleted.
Example
# Configure the aging time of the dynamic address table to 500 seconds.
[H3C] bridge aging-time 500
Syntax
View
System view
9-1
Command Manual – Link Layer Protocol
Comware V3 Chapter 9 Bridge Configuration Commands
Parameter
Description
Use the bridge bridging command to enable the bridging function of a network layer
protocol on a specified bridge set.
Use the undo bridge bridging command to disable the bridging function of a network
layer protocol on specified bridge set.
By default, the bridging function is enabled.
The packets that cannot be routed will be discarded when the bridging function of the IP,
IPX or other protocols is disabled on a bridge set.
Example
Syntax
bridge enable
undo bridge enable
View
System view
Parameter
None
Description
9-2
Command Manual – Link Layer Protocol
Comware V3 Chapter 9 Bridge Configuration Commands
Example
Syntax
View
System view
Parameter
bridge-set: Bridge set number which the interface belongs to; an integer in the range 1
to 255.
Description
Use the bridge learning command to enable forwarding by dynamic address table.
Use the undo bridge learning command to disable forwarding by dynamic address
table and forward by static address table only.
By default, the dynamic address table is used in forwarding.
The dynamic address table does not require manual maintenance, as it is automatically
refreshed whenever the network topology changes.
Example
9-3
Command Manual – Link Layer Protocol
Comware V3 Chapter 9 Bridge Configuration Commands
Syntax
View
System view
Parameter
bridge-set: Bridge set number which the interface belongs to; an integer in the range 1
to 255.
mac-address: Ethernet MAC address in the xxxx-xxxx-xxxx format, which is used to
match the destination addresses in an Ethernet.
deny: Discard the frames whose destination address is the specified address on the
specified interface.
permit: Forward the frames whose destination address is the specified address on the
specified interface.
interface: Specify an outbound interface.
interface-type: Interface type.
interface-number: Interface number.
dlsw: The output interface is DLSW module.
Description
Use the bridge mac-address command to manually configure a static address table
entry of bridge.
Use the undo bridge mac-address command to delete the static address entry.
Normally, a bridge can automatically create dynamic address map entry after obtaining
associations between MAC addresses and interfaces. You can however
administratively create static address map entries, which will never age out.
If the deny argument is configured in the above command, the configuration after that
of the deny argument does not take effect.
Example
# Enable the interface Ethernet 0/0/0 to forward the frames with MAC address
0000-0000-0111.
[H3C] bridge 1 mac-address 0000-0000-0111 permit interface ethernet 0/0/0
9-4
Command Manual – Link Layer Protocol
Comware V3 Chapter 9 Bridge Configuration Commands
Syntax
View
Interface view
Parmeter
None
Description
Example
Syntax
View
System view
Parameter
9-5
Command Manual – Link Layer Protocol
Comware V3 Chapter 9 Bridge Configuration Commands
ip: IP
ipx: IPX
Description
Use the bridge routing command to enable the routing function of a specified
bridge-set for the specified network protocol.
Use the undo bridge routing command to disable the routing function of the
bridge-set for the specified network protocol.
By default, the routing function is disabled.
When a bridge is configured to route for a particular network protocol, the PDUs of the
protocol are routed if needed.
Example
Syntax
bridge routing-enable
undo bridge routing-enable
View
System view
Parameter
None
Description
Use the bridge routing-enable command to enable the routing function of the bridge.
Use the undo bridge routing-enable command to disable the routing function of the
bridge.
By default, the routing function of the bridge is disabled.
The routing function for a protocol can be implemented only when routing is enabled on
the bridge.
Example
9-6
Command Manual – Link Layer Protocol
Comware V3 Chapter 9 Bridge Configuration Commands
Syntax
View
System view
Parameter
Description
Use the bridge stp ieee command to specify a bridge set to support IEEE STP.
Use the undo bridge stp ieee command to disable a bridge set to support STP.
The default STP standard supported on a bridge set is IEEE.
STP has multiple standards, which are not compatible. To prevent bridging loops, the
communicating parties must use the same STP standard.
Example
Syntax
View
System view
Parameter
seconds: Value for the Max Age timer on the bridge, in the range 6 to 40 seconds. It
defaults to 20 seconds.
Description
Use the bridge stp max-age command to set the Max Age timer on the bridge.
Use the undo bridge stp max-age command to restore the default.
9-7
Command Manual – Link Layer Protocol
Comware V3 Chapter 9 Bridge Configuration Commands
A Max Age timer is used to limit the lifetime of BPDUs. Enabling STP on a port starts a
Max Age timer. If the interface receives no BPDU before the timer expires, its link is
considered faulty and STP starts to recalculate its topology.
When configuring a Max Age timer, consider the following:
z On a spanning tree, all bridges use the Max Age timer of the root instead of their
own.
z Set the timer appropriately. A small timer may result in undesired spanning tree
calculation frequency and have the bridge mistake congestions for link failures. A
large timer, on the contrary, may decrease the self-tuning capability of the network
preventing the bridge from discovering link failures quickly.
You are recommended to use the default Max Age timer setting in normal cases.
Example
Syntax
View
System view
Parameter
value: Bridge priority, in the range 0 to 65,535. The default value is 32,768.
Description
Use the bridge stp priority command to assign a priority to the bridge.
Use the undo bridge stp priority command to restore the default priority of the bridge.
The ID of a bridge consists of two parts: bridge priority and bridge MAC address. During
a spanning tree calculation in a network, the bridge with the lowest ID is elected as the
root. The process is as follows:
z Compare the priorities of the bridges in the network. The one with the lowest
bridge priority is elected as the root.
z In case multiple bridges in the network have the same priority, compare their MAC
addresses and elect the bridge with the lowest MAC address as the root.
When STP is enabled, changing the priority of a bridge may cause spanning tree
recalculation.
9-8
Command Manual – Link Layer Protocol
Comware V3 Chapter 9 Bridge Configuration Commands
Example
Syntax
View
System view
Parameter
seconds: Value for the Forward Delay timer on the bridge, in the range 4 to 200
seconds. The default value is 15 seconds.
Description
Use the bridge stp timer forward-delay command to set the Forward Delay timer on
the bridge.
Use the undo bridge stp timer forward-delay command to restore the default.
A link fault on the network may cause a spanning-tree recalculation immediately;
however, it takes time for the new BPDU to propagate throughout the entire network. If
new root ports and designated ports start forwarding frames immediately after they are
elected, a temporary loop may occur.
To resolve the problem, STP adopts a state transition mechanism, where a root or
designated port must undergo a transitional state before it enters the forwarding state
to forward frames. The duration of this transitional state depends on the setting of a
timer called Forward Delay timer. It ensures that the new BPDU has been propagated
throughout the network before frames are forwarded according to the latest topology.
When configuring a Forward Delay timer, consider the following:
z On a spanning tree, all bridges must use the Forward Delay timer of the root
bridge instead of their own.
z Use the default Forward Delay timer setting if possible. A small forward delay may
create temporary path redundancy; while a large forward delay may increase the
time required for the topology of the spanning tree to converge. In the latter case,
network connectivity recovery may take a long time.
Example
9-9
Command Manual – Link Layer Protocol
Comware V3 Chapter 9 Bridge Configuration Commands
Syntax
View
System view
Parameter
seconds: Value for the Hello Time timer on the bridge, in the range 1 to 10 seconds.
The default value is 2 seconds.
Description
Use the bridge stp timer hello command to set the Hello Time timer on the bridge.
Use the undo bridge stp timer hello command to restore the default.
A Hello Time timer is used to control the interval for sending BPDUs. Enabling STP on a
port starts a Hello Time timer. An appropriately set Hello Time timer allows the bridge to
discover link faults on the network without occupying many resources.
When configuring a Hello Time timer, consider the following:
z On a spanning tree, all bridges must use the Hello Time timer of the root bridge
instead of their own.
z Set the Hello Time timer appropriately. A small Hello time timer may increase the
frequency of BPDU sending, increasing undesired CPU load. A large Hello Time
timer, on the contrary, may cause the bridge to take a frame loss for a link failure,
and then to recalculate the spanning tree. You are recommended to use the
default timer setting if possible.
Example
9.1.14 bridge-set
Syntax
bridge-set bridge-set
undo bridge-set bridge-set
9-10
Command Manual – Link Layer Protocol
Comware V3 Chapter 9 Bridge Configuration Commands
View
Parameter
Description
Example
Syntax
View
Interface view
Parameter
Description
Use the bridge-set stp enable command to enable STP on the port.
Use the undo bridge-set stp enable command to disable STP on the port.
9-11
Command Manual – Link Layer Protocol
Comware V3 Chapter 9 Bridge Configuration Commands
Example
Syntax
View
Interface view
Parameter
Description
Use the bridge-set stp port pathcost command to configure the path cost of the
bridge port.
Use the undo bridge-set stp port pathcost command to restore the default.
Assign a path cost to a bridge port depending on its link speed. The higher the link
speed is, the lower the path cost should be configured.
When a bridge port uses the default path cost, STP can automatically identify the type
of the port and get the corresponding default path cost value.
Example
Syntax
9-12
Command Manual – Link Layer Protocol
Comware V3 Chapter 9 Bridge Configuration Commands
View
Interface view
Parameter
Description
Use the bridge-set stp port priority command to configure the priority of the bridge
port.
Use the undo bridge-set stp port priority command to restore the default priority of
the bridge port.
The ID of a bridge port comprises port priority and port number.
When the path costs of all ports on a bridge are the same, the one with the lowest port
ID is more likely to be elected as the designated port. The process is as follows:
z Compare the priorities of the ports on the bridge. The one with the lowest port
priority is elected as the designated port.
z In case multiple ports on the bridge have the same priority, compare their port
numbers and elect the port with the lowest number as the designated port.
To identify the number of each port, execute the display bridge spanning tree
command.
Example
Syntax
View
System view
Parameter
Description
Use the bridge bridge-set enable command to enable the specified bridge set.
9-13
Command Manual – Link Layer Protocol
Comware V3 Chapter 9 Bridge Configuration Commands
Use the undo bridge bridge-set enable command to disable the specified bridge set.
When there is an interface in the bridge set, it cannot be deleted.
Example
# Enable bridge-set 1.
[H3C] bridge 1 enable
Syntax
View
User view
Parameter
Description
Use the debugging bridge command to enable the debugging function of a bridge set.
Use the undo debugging bridge command to disable the debugging function.
Example
Syntax
View
User view
9-14
Command Manual – Link Layer Protocol
Comware V3 Chapter 9 Bridge Configuration Commands
Parameter
Description
Example
Table 9-1 Description on the fields of the debugging stp packet command
Field Description
STP PACKET: Send Configuration A configuration BPDU is sent to port
BPDU to Ethernet1/0/1 Ethernet1/0/1.
Both topology change bit and topology
TopologyChange:0,
change acknowledgement bit are zero,
TopologyChangeAcknowledgment:0
meaning the topology does not change.
ID of the bridge root on the spanning
RootID:8000.00e0.fc04.9dc2
tree
RootCost:0,
Cost of the root port, ID of this bridge,
BridgeID:8000.00e0.fc04.9dc2,
and ID of this port
PortID:8003
MessageAge is the current age of the
packet, MaxAge is the aging timer. If the
message age of the packet equals the
MessageAge:0, MaxAge:20, Max Age timer, the packet is dropped.
HelloTime:2, Forward:15
HelloTime is the hello interval.
Forward is the time that the port must
wait before changing its states.
STP PACKET: Send TCN BPDU to
A TCN packet is sent to Ethernet 1/0/0
Ethernet1/0/0
9-15
Command Manual – Link Layer Protocol
Comware V3 Chapter 9 Bridge Configuration Commands
Table 9-2 Description on the fields of the debugging stp event command
Field Description
A BPDU is sent when the HoldTicks
STP : HoldTicks is run on port 3
timer running on port 3 expires.
A Hello packet is sent when the
STP : HelloTicks is run
HelloTicks timer expires.
STP : Port 0 id is 1,port state is The ID of port 0 is 1, its state is
Forwarding,designatedport is Yes forwarding, and it is the designated port.
A TCN timer set to two seconds is
STP : Creat TcnTimer ,timeout is 2
created.
STP : Delete tcn timer id 5413032 The timer with ID 5413032 is deleted.
Table 9-3 Description on the fields of the debugging stp error command
Field Description
STP: Received BPDU is corrupted. The received BPDU is corrupted.
9-16
Command Manual – Link Layer Protocol
Comware V3 Chapter 9 Bridge Configuration Commands
Field Description
The request for the memory for a
STP: Fail to create MBuf.
transmitted BPDU is denied.
The transmission of a configuration
STP: Fail to send Configuration BPDU.
BPDU failed.
STP: Fail to send TCN BPDU. The transmission of a TCN BPDU failed.
A BPDU is received on the port where it
STP: Received BPDU sent by myself.
was sent.
A port index that does not exist is
STP: Get a wrong port index.
obtained.
Syntax
View
Any view
Parameter
Description
Use the display bridge address-table command to view the information of MAC
address forwarding table.
Example
9-17
Command Manual – Link Layer Protocol
Comware V3 Chapter 9 Bridge Configuration Commands
Table 9-4 Description on the fields of the display bridge address-table command
Field Description
Mac-Address MAC address
Set Bridge set number
Four options available: P--PERMIT, N--DENY, D--DYNAMIC
and S--STATIC
P refers to the "permit" rule in the MAC address filtering;
Flag
N refers to the "deny" rule in the MAC address filtering;
D refers to an dynamic entry;
S refers to a static entry.
Aging-time Time a forwarding table entry has existed.
Number of Packets number received with this destination
Receive
MAC address
Send Number of Packets sent to this destination MAC address
Interface-name Name of the outbound interface
Syntax
View
Any view
Parameter
Description
Use the display bridge information command to view the information of one or all the
enabled bridge sets in bridge module.
Example
9-18
Command Manual – Link Layer Protocol
Comware V3 Chapter 9 Bridge Configuration Commands
Bridge set 2:
Configure: bridge ip;
undo bridge ipx;
undo bridge 2 learning ;
From the output information to see that the two bridge sets (bridge sets 1 and 2) are
active. Each comprises configure- and interface-related information.
For description of the information, see:
Table 9-5 Description on the fields of the display bridge information command
Field Description
This section records the configuration attributes of the bridge set.
For example, the configure section of bridge set 1 tells that it can
Configure
bridge IP packet but not IPX packet, and can perform dynamic
MAC address learning.
This section records the interfaces contained in the bridge set
and their statuses. For example, the interface section of bridge
set 1 tells that there are two interfaces in bridging: Ethernet4/2/0
Interface and Ethernet5/2/0, both in up status. Here, UP indicates the
activated status of an interface and DOWN the inactivated. Only
when the interface is in up status, can a bridge set implement
bridging function.
9-19
Command Manual – Link Layer Protocol
Comware V3 Chapter 9 Bridge Configuration Commands
Syntax
View
Any view
Parameter
None
Description
Use the display bridge spanning-tree command to view STP state and statistics for
traffic analysis and control.
The command displays these global STP parameters: Root ID, Root Cost, Root Port,
Priority, Max Age, Hello, Hold, Forward Delay, Bridge Address, and Root Bridge
Address.
Example
9-20
Command Manual – Link Layer Protocol
Comware V3 Chapter 9 Bridge Configuration Commands
Received BPDU: 0
Port 2:
Port name: Ethernet4/0/0 State: Forwarding
Port path cost: 1000 Port priority: 128
Designated root's priority: 32768 address: 00-e0-fc-0c-a2-91
Designated bridge's priority: 32768 address: 00-e0-fc-0c-a2-91
Designated port: 2 Designated path cost: 0
Timers: message age: 0 forward delay: 0
hold: 0 Sent BPDU: 33051
Received BPDU: 0
Table 9-6 Description on the fields of the display bridge spanning-tree command
Field Description
Bridge Identifier's priority: Bridge priority
address: MAC address of the bridge
Configured timer Hello The Hello timer configured on the bridge
Max Aging time Max Age timer
Port 2 Port 2
Port name Port names
State States
Port path cost Port path cost
9-21
Command Manual – Link Layer Protocol
Comware V3 Chapter 9 Bridge Configuration Commands
Field Description
Port priority Port priority
Designated root's priority Designated port's priority
address Port addresses
Designated bridge's priority Designated bridge's priority
Designated port Designated ports
Designated path cost Designated path cost
Timers Timers
message age Message age
Delay time for port's state to be turned
forward delay
into forward
hold Port hold-in time
Sent BPDU Count of sent BPDU packets
Syntax
View
Any view
Parameter
Description
Use the display bridge traffic command to view the traffic statistics on an interface.
Example
9-22
Command Manual – Link Layer Protocol
Comware V3 Chapter 9 Bridge Configuration Commands
Discard:
0 by inport state,
0 for local frame ,
0 by mac table,
0 by inport filter,
0 by outport filter,
0 by ip filter ,
0 other
Table 9-7 Description on the fields of the display bridge traffic command
Field Description
Type and quantity of input packets on the interface. “10
total,1bpdu, 2 single” indicates there are totally 10 data
Input
packets input, with 1 BPDU packet and 2 single broadcast
packets.
Output Type and quantity of output packets on the interface.
Send way Way of data transmission.
Discard Reason for discarding and quantity of discarded packets.
0 by inport state Frames discarded due to the abnormal in-port state.
0 for local frame Frames discarded as the out-port is also the in-port.
Frames discarded due to the "deny" entry configured in MAC
0 by mac table
forwarding table.
9-23
Command Manual – Link Layer Protocol
Comware V3 Chapter 9 Bridge Configuration Commands
Field Description
Frames discarded due to the filter rule configured on the
0 by inport filter
in-port.
Frames discarded due to the filter rule configured on the
0 by outport filter
out-port.
Frames discarded due to the filter rule configured at the IP
0 by ip filter
layer.
0 other Frames discarded due to other reasons.
Syntax
View
Any view
Parameter
Description
Use the display firewall ethernet-frame-filter command to view the filtering statistics
by ACL on the interface, namely, the detailed filtering information based on the ACL
configured via the firewall ethernet-frame-filter { acl-number | acl-name } { inbound |
outbound } command.
Example
9-24
Command Manual – Link Layer Protocol
Comware V3 Chapter 9 Bridge Configuration Commands
Field Description
Interface: Ethernet0/0/0 Interface name.
It indicates that In-bound ACL rules are configured on
In-bound Policy the interface. Behind the colon is the ACL number or
name.
It indicates that Out-bound ACL rules are configured on
Out-bound Policy the interface, Behind the colon is the ACL number or
name.
Syntax
View
System view
Parameter
Description
Use the dlsw ethernet-frame-filter command to apply an ACL in the transmitting and
receiving directions of DLSW module towards bridge module so that it can transmit and
receive only the Ethernet frames with permitted source MAC addresses.
9-25
Command Manual – Link Layer Protocol
Comware V3 Chapter 9 Bridge Configuration Commands
Example
# Configure filtering rule (ACL 4000) in the receiving direction of DLSW module.
[H3C] dlsw ethernet-frame-filter 4000 inbound
Syntax
View
Interface view
Parameter
Description
Example
# Configure filtering rule (ACL 4000) in the receiving direction on the interface
Ethernet0/0/0.
[H3C-Etherhet0/0/0] firewall ethernet-frame-filter 4000 inbound
9-26
Command Manual – Link Layer Protocol
Comware V3 Chapter 9 Bridge Configuration Commands
Syntax
View
Interface view
Parameter
Description
Use the fr map bridge command to add a bridge-set to frame relay map entry.
Use the undo fr map bridge command to delete a bridge-set to frame relay map entry.
By default, no bridge-set to frame relay map is configured.
Related command: display fr map.
Example
# On the interface Serial1/0/0, configure a bridge-set to frame relay map entry on the
VC with DLCI 50.
[H3C-Serial1/0/0] fr map bridge 50 broadcast
Syntax
View
System view
Parameter
Description
9-27
Command Manual – Link Layer Protocol
Comware V3 Chapter 9 Bridge Configuration Commands
Use the undo interface bridge-template command to delete the bridge template
interface.
Each bridge set can have only one bridge template interface.
Related command: bridge routing-enable.
Example
9.1.30 mac-address
Syntax
mac-address H-H-H
undo mac-address
View
Parameter
Description
Use the mac-address command to manually configure the MAC address of the
bridge-template interface.
Use the undo mac-address command to clear the manually configured MAC address
of the bridge-template interface.
By default, the bridge-template interface uses the automatically created MAC address.
Example
Syntax
9-28
Command Manual – Link Layer Protocol
Comware V3 Chapter 9 Bridge Configuration Commands
View
User view
Parameter
Description
Use the reset bridge command to clear all the dynamic address entries or the entries
of a specified bridge set or a specified interface in the forwarding table.
Example
# Clear all the dynamic address entries pf bridge set 1 in the forwarding table.
<H3C> reset bridge address-table bridge-set 1
Syntax
View
User view
Parameter
Description
Use the reset bridge traffic command to clear the traffic statistics of a bridge set on a
interface.
Example
9-29
Command Manual – Link Layer Protocol
Comware V3 Chapter 9 Bridge Configuration Commands
Syntax
View
User view
Parameter
Description
Use the reset firewall ethernet-frame-filter command to clear the ACL-based firewall
statistics.
Example
Syntax
View
User view
Parameter
None
Description
Use the reset stp statistics command to clear statistics about the spanning tree.
Example
9-30
Command Manual – Link Layer Protocol
Comware V3 Chapter 9 Bridge Configuration Commands
Syntax
View
Interface view
Parameter
Description
Use the x25 map bridge command to map an X.121 address to a bridge-set.
Use the undo x25 map bridge command to delete the configured map entry.
By default, no bridge-set to X.25 map is configured.
Related command: display x25 map.
Example
9-31
Network Protocol
Command Manual – Network Protocol
Comware V3 Table of Contents
Table of Contents
i
Command Manual – Network Protocol
Comware V3 Table of Contents
ii
Command Manual – Network Protocol
Comware V3 Table of Contents
iii
Command Manual – Network Protocol
Comware V3 Table of Contents
iv
Command Manual – Network Protocol
Comware V3 Table of Contents
v
Command Manual – Network Protocol
Comware V3 Table of Contents
vi
Command Manual – Network Protocol
Comware V3 Table of Contents
vii
Command Manual – Network Protocol
Comware V3 Table of Contents
viii
Command Manual – Network Protocol
Comware V3 Chapter 1 IP Address Configuration Commands
Syntax
View
Interface view
Parameter
Description
1-1
Command Manual – Network Protocol
Comware V3 Chapter 1 IP Address Configuration Commands
Example
# Configure the interface Serial 0/0/0 with the master IP address as 129.102.0.1, the
slave IP address is 202.38.160.1, and the subnet mask of both is 255.255.255.0.
[H3C-Serial1/0/0] ip address 129.102.0.1 255.255.255.0
[H3C-Serial1/0/0] ip address 202.38.160.1 255.255.255.0 sub
Syntax
ip address ppp-negotiate
undo ip address ppp-negotiate
View
Interface view
Parameter
None
Description
1-2
Command Manual – Network Protocol
Comware V3 Chapter 1 IP Address Configuration Commands
Example
# Display how to set IP address of interface Serial 0/0/0 to be allocated by peer through
negotiation.
[H3C-Serial0/0/0] ip address ppp-negotiate
Syntax
View
Interface view
Parameter
Description
Example
# Display how to make the serial interface 0/0/0 encapsulated with PPP borrow the
unnumbered IP address from Ethernet interface 0/0/0.
[H3C-Serial0/0/0] ip address unnumbered Ethernet 0/0/0
1-3
Command Manual – Network Protocol
Comware V3 Chapter 1 IP Address Configuration Commands
Syntax
View
Interface view
Parameter
ip-address: IP address.
pool-number: Global address pool number in the range 0 to 99. It defaults to 0. One
address picked from the specified address pool is to be assigned to the peer interface.
Description
Use the remote address command to configure to assign IP address for the peer
interface.
Use the undo remote address command to disable to assign IP address for the peer
interface.
By default, the interface does not assign address for the peer interface.
When an interface is encapsulated with PPP, but not configured with authentication and
IP address, perform the following task to configure the negotiable attribute of IP
address for this interface (configuring the ip address ppp-negotiate command on
local router), and configure the remote address command on the peer router, so that
the local interface can accept the IP address originated from PPP negotiation. This IP
address is assigned by the opposite end. This configuration is mainly used to obtain IP
address assigned by ISP when accessing Internet via ISP.
Caution:
This command does not forbid the peer to configure IP address itself. To forbid the peer
to configure IP address itself, you must configure the ppp ipcp remote-address
forced command.
Use this command only when PPP authentication is not configured, and be sure to
specify a global address pool.
1-4
Command Manual – Network Protocol
Comware V3 Chapter 1 IP Address Configuration Commands
Example
# The serial interface encapsulated with PPP assigns an IP address 10.0.0.1 for the
peer.
[H3C-Serial0/0/0] remote address 10.0.0.1
1-5
Command Manual – Network Protocol
Comware V3 Chapter 2 ARP Configuration Commands
Syntax
View
System view
Parameter
Description
Example
2-1
Command Manual – Network Protocol
Comware V3 Chapter 2 ARP Configuration Commands
Syntax
View
System view
Parameter
None
Description
Use the arp check enable command to enable ARP entry check to have the device not
learn the ARP entries with broadcast MAC addresses.
Use the undo arp check enable command to disable ARP entry check to have the
system learn the ARP entries with broadcast MAC addresses.
By default, ARP entry check is enabled. The device does not learn the ARP entries with
broadcast MAC addresses.
Example
Syntax
View
System view
Parameter
minutes: Sets the aging timer for dynamic ARP entries, in the range 1 to 1440 minutes.
The default is 20 minutes.
Description
Use the arp timer aging command to set the aging timer for dynamic ARP entries.
Use the undo arp timer aging command to restore the default.
2-2
Command Manual – Network Protocol
Comware V3 Chapter 2 ARP Configuration Commands
Example
Syntax
View
User view
Parameter
None
Description
Use the debugging arp packet command to enable ARP packets debugging.
Use the undo debugging arp packet command to disable the function.
Example
Syntax
display arp [ static | dynamic | all ] [ { begin text | exclude text | include text } ]
View
Any view
Parameter
2-3
Command Manual – Network Protocol
Comware V3 Chapter 2 ARP Configuration Commands
Description
Use the display arp command to view the ARP mapping table.
Related command: arp static, reset arp.
Example
2.1.6 display arp timer aging (only for the AR46 Series)
Syntax
View
Any view
Parameter
None
Description
Use the display arp timer aging command to display the aging timer for dynamic ARP
entries.
2-4
Command Manual – Network Protocol
Comware V3 Chapter 2 ARP Configuration Commands
Example
2.1.7 naturemask-arp
Syntax
naturemask-arp enable
undo naturemask-arp enable
View
System view
Parameter
None
Description
Use the naturemask-arp enable command to support ARP within natural network
segments rather than subnets.
Use the undo naturemask-arp enable command to disable the support to ARP within
natural network segments.
Example
Syntax
View
User view
2-5
Command Manual – Network Protocol
Comware V3 Chapter 2 ARP Configuration Commands
Parameter
Description
Use the reset arp command to clear the ARP entries in the ARP mapping table.
When operation is performed to the interface with specified interface, the interface
type can only be Ethernet, GE or virtual Ethernet and only the dynamic entries can be
deleted on the interface.
Related command: arp static and display arp.
Example
# The following example shows how to delete the dynamic entries in the ARP mapping
table on Ethernet 0/0/0.
<H3C> reset arp interface Ethernet 0/0/0
Syntax
arp-proxy enable
undo arp-proxy enable
View
Parameter
None
Description
2-6
Command Manual – Network Protocol
Comware V3 Chapter 2 ARP Configuration Commands
This command is applied on Ethernet interface. As for the hosts in the same hop but on
different physical networks, the proxy ARP function hides the fact that the physical
network are separated, and makes the user feel like he is on the same and one physical
network.
Example
Syntax
View
Ethernet interface view, Ethernet subinterface view, Gigabit Ethernet interface view,
Gigabit Ethernet subinterface view, bridge template view, VLAN interface view or virtual
Ethernet interface view
Parameter
Description
Use the arp send-gratuitous-arp command to enable sending gratuitous ARP packet
on this interface periodically and set the sending period.
Use the undo arp send-gratuitous-arp command to disable the function,
By default, the function is disabled.
Note that:
z The gratuitous ARP packet sent is that of the host address of this interface. The
host address can be configured with the command, or obtained through
negotiation or other ways;
z The gratuitous ARP packet of host address is not sent;
z The gratuitous ARP packet is not sent when the interface link layer is not up.
Example
2-7
Command Manual – Network Protocol
Comware V3 Chapter 2 ARP Configuration Commands
Syntax
gratuitous-arp-learning enable
undo gratuitous-arp-learning enable
View
System view
Parameter
None
Description
Example
Syntax
gratuitous-arp-sending enable
undo gratuitous-arp-sending enable
View
System view
2-8
Command Manual – Network Protocol
Comware V3 Chapter 2 ARP Configuration Commands
Parameter
None
Description
Example
# Configure the system to return ARP responses when receiving gratuitous ARP
packets from different network segments.
[H3C] gratuitous-arp-sending enable
Syntax
arp security
undo arp security
View
Parameter
None
Description
Use the arp security command to disable dynamic ARP learning on an Ethernet
interface.
Use the undo arp security command to restore dynamic ARP learning on an Ethernet
interface.
The commands for disabling/enabling dynamic ARP learning are configured on an
interface; all other interfaces are not affected.
2-9
Command Manual – Network Protocol
Comware V3 Chapter 2 ARP Configuration Commands
If you disable dynamic ARP learning and then enable the function again, the ARP
entries left in the ARP table are not affected; each of the left entries continues with its
own aging process.
By default, dynamic ARP learning is enabled on an Ethernet interface.
Example
Syntax
View
Parameter
seconds: Aging time of the authorized ARP entries in seconds. It ranges from 30 to
86,400 and defaults to 90.
Description
Use the arp security time-out command to configure the aging time of the authorized
ARP entries.
Use the undo arp security time-out command to restore the default aging time of the
authorized ARP entries.
This command takes effect only when you have configured the arp security command.
The aging of an authorized ARP entry is implemented by the mechanism of ARP ping.
The default aging time of an authorized ARP entry is the time that three ARP ping
operations takes when no responses are received. Since the ARP ping interval is 30
seconds, the default aging time of an authorized ARP entry is 90 seconds. If no
response is received for an authorized ARP entry or if the DHCP server fails to update
the entry by re-adding the entry for example, after 90 seconds elapse, the entry ages
out. The DHCP server is then notified of this.
Example
# Configure an aging time of 120 seconds for the authorized ARP entries on interface
Ethernet1/0/0.
[H3C-Ethernet1/0/0] arp security time-out 120
2-10
Command Manual – Network Protocol
Comware V3 Chapter 2 ARP Configuration Commands
Syntax
View
Interface view
Parameter
None
Description
Use the dhcp server synchronize arp command to enable authorized ARP for a
DHCP interface address pool.
Use the undo dhcp server synchronize arp command to disable authorized ARP for
a DHCP interface address pool.
By default, authorized ARP is disabled.
After you enable authorized ARP for a DHCP interface address pool, the system
permits IP addresses allocated from the interface address pool to be resolved
dynamically using ARP, and allows the corresponding authorized ARP entries to be
added to the ARP table.
Related command: dhcp select interface, dhcp server synchronize arp interface,
and synchronize arp.
Example
Syntax
View
System view
2-11
Command Manual – Network Protocol
Comware V3 Chapter 2 ARP Configuration Commands
Parameter
Description
Use the dhcp server synchronize arp interface command to enable authorized ARP
for specified DHCP interface address pools.
Use the undo dhcp server domain-name interface command to disable authorized
ARP for specified DHCP interface address pools.
By default, authorized ARP is disabled.
After you enable authorized ARP for the specified DHCP interface address pools, the
system permits IP addresses allocated from the interface address pools to be resolved
dynamically using ARP, and allows the corresponding authorized ARP entries to be
added to the ARP table.
Note that you cannot use the display current-configuration command to verify the
configuration made by using the dhcp server synchronize arp interface command,
which is implemented by executing the dhcp server synchronize arp command
repeatedly.
Related command: dhcp server ip-pool.
Example
Syntax
synchronize arp
undo synchronize arp
View
Parameter
None
2-12
Command Manual – Network Protocol
Comware V3 Chapter 2 ARP Configuration Commands
Description
Use the synchronize arp command to enable authorized ARP for global DHCP
address pools.
Use the undo synchronize arp command to disable authorized ARP that has been
enabled for global DHCP address pools.
By default, authorized ARP is disabled.
After you enable authorized ARP for global DHCP address pools, the system permits IP
addresses allocated from the global address pools to be resolved dynamically using
ARP, and allows the corresponding authorized ARP entries to be added to the ARP
table.
Example
2-13
Command Manual – Network Protocol
Comware V3 Chapter 3 DNS Configuration Commands
Syntax
display ip host
View
Any view
Parameter
None
Description
Use the display ip host command to display all the host names and their
corresponding IP addresses.
Example
Field Description
Host Host name
Age Life time. It is 0 for a static entry.
Flags Domain name resolution type, for example, static
Address Host address
3.1.2 ip host
Syntax
3-1
Command Manual – Network Protocol
Comware V3 Chapter 3 DNS Configuration Commands
View
System view
Parameter
hostname: The name of a host, a character string with its length from 1 to 20. It can be
a digit from 0 to 9, a capital letter from A to Z or a small letter from a to z. Other
characters are invalid. At least one letter must be contained in the host name.
ip-address: The IP address corresponding to a host name.
Description
Use the ip host command to configure the IP address corresponding to a host name.
Use the undo ip host command to remove the IP address corresponding to a host
name.
A hostname can be mapped to one IP address only.
By default, the static domain name table is empty, that is, no hostname-to-IP map.
Example
Syntax
debugging dns
undo debugging dns
View
User view
3-2
Command Manual – Network Protocol
Comware V3 Chapter 3 DNS Configuration Commands
Parameter
None
Description
Example
Syntax
dns resolve
undo dns resolve
View
System view
Parameter
None
Description
Example
Syntax
3-3
Command Manual – Network Protocol
Comware V3 Chapter 3 DNS Configuration Commands
View
System view
Parameter
Description
Example
Syntax
View
System view
Parameter
Description
Example
3-4
Command Manual – Network Protocol
Comware V3 Chapter 3 DNS Configuration Commands
Syntax
View
Any view
Parameter
dynamic: displays DNS domain names that are dynamically obtained using DHCP.
Description
Use the display dns domain command to view the DNS domain names that are
manually configured.
Use the display dns domain dynamic command to view the DNS domain names that
are dynamically obtained through DHCP or other protocols.
Example
Syntax
View
Any view
3-5
Command Manual – Network Protocol
Comware V3 Chapter 3 DNS Configuration Commands
Parameter
dynamic: displays DNS server addresses that are dynamically obtained through
DHCP or other protocols.
Description
Use the display dns server command to view the DNS server addresses manually
configured.
Use the display dns server dynamic command to view the DNS server addresses
that are dynamically obtained through DHCP or other protocols.
Example
Syntax
View
Any view
Parameter
None
Description
Use the display dns dynamic-host command to view the current contents in the
domain name cache of the DNS client.
The DNS client retains the result of each successful domain name resolution in its
cache. If it receives the same resolving request later, it first looks up the cache for a
match. And if no match is found, it sends a domain name resolving request to the DNS
server. You can use this command to view the current contents in the buffer.
3-6
Command Manual – Network Protocol
Comware V3 Chapter 3 DNS Configuration Commands
Example
# Display the current contents in the domain name cache of the DNS client.
[H3C]display dns dynamic-host
No Host --Æ Ipaddress TTL Alias
1 www.sohu.com 91.1.1.1 3521
2 www.sina.com.cn 87.1.1.1 3000
Note:
The first part of the output is the result of Class A query, or the result queried by host;
the second part of the output is the result of PTR class query, or the result queried by IP
address.
Syntax
View
Any view
Parameter
Description
Use the nslookup type command to resolve the specified IP address or domain name
to a domain name or IP address.
Example
3-7
Command Manual – Network Protocol
Comware V3 Chapter 3 DNS Configuration Commands
Name: www.huawei-3com.com
Address: 192.168.3.2
Syntax
View
User view
Parameter
None
Description
Use the reset dns dynamic-host command to clear the current contents in the domain
name cache of the DNS client.
Example
# Clear the current contents in the domain name cache of the DNS client.
<H3C> reset dns dynamic-host
Syntax
dns-proxy enable
undo dns-proxy enable
View
System view
Parameter
None
3-8
Command Manual – Network Protocol
Comware V3 Chapter 3 DNS Configuration Commands
Description
Example
3-9
Command Manual – Network Protocol
Comware V3 Chapter 4 DDNS Configuration Commands
Syntax
ddns-server 3322.org
undo ddns-server
View
System view
Parameter
Description
Use the ddns-server command to specify a DDNS service provider and enter its view.
At present, only 3322.org is available.
Use the undo ddns-server command to delete the configured DDNS service provider.
By default, no DDNS service provider is configured.
Example
Command
View
Parameter
name: User name used for accessing the DDNS service provider. It is a string of 1 to 30
characters.
4-1
Command Manual – Network Protocol
Comware V3 Chapter 4 DDNS Configuration Commands
Description
Use the ddns username command to configure a user name for accessing the DDNS
service provider.
Use the undo ddns username command to delete the user name used for accessing
the DDNS service provider.
By default, no user name is specified for accessing the DDNS service provider.
Example
# Set the user name used for accessing the DDNS service provider to 3322.org.
[H3C-ddns-3322.org] ddns username admin
Syntax
View
Parameter
password: Password used to access the DDNS service provider. The length of
character string is 1 to 30.
Description
Use the ddns password command to configure a password for accessing the DDNS
service provider.
Use the undo ddns password command to delete the password used for accessing
the DDNS service provider.
By default, no password is configured for accessing the DDNS service provider.
Example
# Set the password used to access the DDNS service provider to h3c.
[H3C-ddns-3322.org] ddns password h3c
Syntax
4-2
Command Manual – Network Protocol
Comware V3 Chapter 4 DDNS Configuration Commands
View
Parameter
name: Domain name whose domain name-to-IP address mapping can be updated on
DNS by using the service of the DDNS service provider. It is a string of 1 to 30
characters.
Description
Use the ddns domain name command to configure a domain name whose domain
name-to-IP address mapping on DNS needs update by using the service of the DDNS
service provider.
Use the undo ddns domainname to delete the configured domain name.
By default, no domain name is configured.
Related command: ddns refresh.
Example
Syntax
View
Parameter
interface-type: Type of the interface used for accessing the DDNS service provider.
interface-number: Number of the interface used for accessing the DDNS service
provider.
Description
Use the ddns source-interface command to configure the interface used for
accessing the DDNS service provider.
Use the undo ddns source-interface to delete the interface used for accessing the
DDNS service provider.
4-3
Command Manual – Network Protocol
Comware V3 Chapter 4 DDNS Configuration Commands
Example
# Set the interface used for accessing DDNS service provider 3322.org to Ethernet
1/0/0.
[H3C-ddns-3322.org] ddns source-interface ethernet1/0/0
Syntax
ddns refresh
View
Parameter
None
Description
Use the ddns refresh command to request the DDNS service provider to notify the
DNS server that the bound IP address of the domain name specified by the ddns
domainname command has changed.
Related command: ddns domainname.
Example
# Request DDNS service provider 3322.org to notify the DNS server that the bound IP
address of the domain name specified by the ddns domainname command has
changed.
[H3C-ddns-3322.org] ddns refresh
4-4
Command Manual – Network Protocol
Comware V3 Chapter 5 URPF Configuration Commands
Syntax
View
Interface view
Parameter
strict: Strict check. The packet’s source address must be in the router’s FIB table. It
searches reversely for outgoing interfaces for the packet. At least one outgoing address
must match the packet’s incoming interface; otherwise URPF rejects the packet.
loose: Loose check. The only requirement is that the packet’s source address is in the
router’s FIB table; otherwise URPF rejects the packet.
allow-default-route: Allows special treatment for the default route. When the default
route and the allow-default-route parameters are both configured, the principles of
strict check and loose check change.
acl-number: ACL number, ranges from 2000 to 3999.
Description
Example
# Enable strict URPF check on Ethernet2/2/0, allow special treatment for the default
route, and set ACL number to 2999.
[H3C-Ethernet2/2/0] ip urpf strict allow-default-route acl 2999
Syntax
5-1
Command Manual – Network Protocol
Comware V3 Chapter 5 URPF Configuration Commands
View
User view
Parameter
Description
Use the debugging ip urpf command to display the information on the discarded
packets by URPF debugging. .
Use the undo debugging ip urpf command to disable the function.
Example
5-2
Command Manual – Network Protocol
Comware V3 Chapter 6 IP Accounting Configuration Commands
Syntax
View
User view
Parameter
Description
Use the debugging ip count command to enable debugging for the IP Accounting
module (the IP Accounting).
Use the undo debugging ip count command to disable debugging for the IP
Accounting.
By default, debugging for the IP Accounting is disabled.
Table 6-1 Description on the fields of the debugging ip count data command
Field Description
IPA_In: Begin processing of IPA is enabled on the router. An IP
inbound-packet. packet arrived at the router.
Protocol:1 Direction: 10.153.72.1 --> IPA is enabled on the router. An IP
10.153.72.150 From:Ethernet0/0/0 packet arrived at the router.
IPA is enabled on the router. An IP
packet arrived at the router and passed
Dealing with the inbound-packet the firewall on the inbound interface.
permitted by the firewall.
Counting of inbound packets is enabled
on the interface.
6-1
Command Manual – Network Protocol
Comware V3 Chapter 6 IP Accounting Configuration Commands
Field Description
IPA is enabled on the router. An IP
packet arrived at the router and denied
Dealing with the packet denied by the by the firewall on the inbound interface.
firewall.
Counting of denied inbound packets is
enabled on the interface.
IPA is enabled on the router.
IPA_In: Finish processing of
inbound-packet. The inbound IP packet was counted
correctly.
Table 6-2 Description on the fields of the debugging ip count error command
Field Description
Failed to allocate memory Memory allocation failed.
Null parameter inputted while clearing
Delete a null protocol entry.
protocol hash list.
Error: Deleting address node failed The system failed to delete an address
because of giving a NULL pointer! node because of a null pointer.
6-2
Command Manual – Network Protocol
Comware V3 Chapter 6 IP Accounting Configuration Commands
Field Description
Error(IPA_In): Failed to get ip control No IP control block pointer available on
block pointer! the incoming interface.
When counting a legitimate inbound IP
Error(IPA_In): Failed to create address
packet, the system failed to create an
hash node and protocol hash node.
address node and a protocol node for it.
When counting a legitimate inbound IP
Error(IPA_In): Failed to create protocol
packet, the system failed to create a
hash node.
protocol node for it.
When counting an illegitimate inbound
Error(IPA_In): Failed to create firewall
IP packet, the system failed to create a
hash node and its sub-node.
counting node for it.
Error(IPA_In): No inbound statistic Counting of inbound IP packets is not
function available on this interface! enabled on the inbound interface.
Error(IPA_Out): Failed to get ip control No IP control block is available with the
block pointer! outbound interface.
When counting an illegitimate inbound
Error(IPA_Out): Failed to create address
IP packet, the system failed to create an
hash node and protocol hash node.
address node and a protocol node for it.
When counting an illegitimate inbound
Error(IPA_Out): Failed to create protocol
IP packet, the system failed to create a
hash node.
protocol node for it.
When counting an illegitimate outbound
Error(IPA_Out): Failed to create firewall
IP packet, the system failed to create a
hash node and its sub-node.
counting node for it.
Error(IPA_Out): No outbound statistic Counting of outbound IP packets is not
function available on this interface! enabled on the inbound interface.
An improper rule is configured. The
Improper rule,the result of (IPAddress &
result of anding the input IP address with
Mask) is equal to zero!
its mask is zero.
The rule-list is full! The rule list is full.
Example
6-3
Command Manual – Network Protocol
Comware V3 Chapter 6 IP Accounting Configuration Commands
Syntax
View
Any view
Parameter
Description
Use the display ip count command to display IP packet statistics gathered by the IP
Accounting.
Example
# Display information about the legitimate inbound IP packets not matching any IP
accounting rule.
[H3C] display ip count inbound-packets exterior
Inbound packets information in exterior list:
SrcIP DstIP Protocol Pkts Bytes
0.0.0.0 255.255.255.255 UDP 28 9502
10.153.72.181 10.153.73.255 UDP 174 38034
10.153.72.137 239.255.255.250 UDP 4 644
10.153.72.141 224.0.0.2 IGMP 4 128
10.153.72.141 224.0.0.9 UDP 4 208
10.153.72.141 224.0.0.9 IGMP 4 128
Field Description
SrcIP: The source address of a packet
DstIP: The destination address of a packet
Pkts The number of packets
6-4
Command Manual – Network Protocol
Comware V3 Chapter 6 IP Accounting Configuration Commands
Field Description
Bytes The number of bytes
Protocol The protocol type of a packet
Syntax
View
Any view
Parameter
None
Description
Example
Syntax
ip count enable
undo ip count enable
View
System view
Parameter
None
6-5
Command Manual – Network Protocol
Comware V3 Chapter 6 IP Accounting Configuration Commands
Description
Example
# Enable IP accounting.
[H3C] ip count enable
Syntax
View
System view
Parameter
number: Maximum number of entries in the exterior hash table, in the range 0 to 8192.
Description
Example
# Restore the default maximum number of entries in the exterior hash table.
[H3C] undo ip count exterior-threshold
6-6
Command Manual – Network Protocol
Comware V3 Chapter 6 IP Accounting Configuration Commands
Syntax
View
Interface view
Parameter
inbound-packets: Counts the inbound IP packets denied by the firewall on the current
interface.
outbound-packets: Counts the outbound IP packets denied by the firewall on the
current interface.
Description
Use the ip count firewall-denied command to configure the IP Accounting to count the
IP packets denied by the firewall on the current interface.
Use the undo ip count firewall-denied command to restore the default.
By default, IP packets denied by the firewall are not counted on the current interface.
Information about counted IP packets is stored in the firewall-list table.
Example
# Configure the IP Accounting to count the outbound IP packets denied by the firewall
on the current interface.
[H3C-Ethernet0/0/0] ip count firewall-denied outbound-packets
# Configure the IP Accounting not to count the outbound IP packets denied by the
firewall on the current interface.
[H3C-Ethernet0/0/0] undo ip count firewall-denied outbound-packets
Syntax
ip count inbound-packets
undo ip count inbound-packets
View
Interface view
6-7
Command Manual – Network Protocol
Comware V3 Chapter 6 IP Accounting Configuration Commands
Parameter
None
Description
Example
Syntax
View
System view
Parameter
number: Maximum number of entries in the interior hash table, in the range 0 to 16,384.
Description
6-8
Command Manual – Network Protocol
Comware V3 Chapter 6 IP Accounting Configuration Commands
Example
# Restore the default maximum number of entries in the interior hash table.
[H3C] undo ip count interior-threshold
Syntax
ip count outbound-packets
undo ip count outbound-packets
View
Interface view
Parameter
None
Description
Example
Syntax
6-9
Command Manual – Network Protocol
Comware V3 Chapter 6 IP Accounting Configuration Commands
View
System view
Parameter
Description
Example
Syntax
View
System view
6-10
Command Manual – Network Protocol
Comware V3 Chapter 6 IP Accounting Configuration Commands
Parameter
Description
Use the ip count timeout command to configure the aging time of IP accounting
entries.
Use the undo ip count timeout command to restore the default aging time, that is, 720
minutes or 12 hours.
If an IP accounting entry does not receive a new IP packet before its aging time expires,
the entry is considered expired and then deleted.
Example
Syntax
View
User view
Parameter
Description
Use the reset ip count command to clear information that the IP Accounting retained
about IP packets.
Example
6-11
Command Manual – Network Protocol
Comware V3 Chapter 7 UDP Helper Configuration Commands
Syntax
View
User view
Parameter
Description
Example
Syntax
View
Any view
Parameter
7-1
Command Manual – Network Protocol
Comware V3 Chapter 7 UDP Helper Configuration Commands
Description
Use the display udp-helper server command to display the information about the
destination servers associated with the specified or all Ethernet interfaces.
Example
# Display the information about the destination servers associated with Ethernet
interface 0/0/0.
<H3C> display udp-helper server interface ethernet 0/0/0
interface name server address packets send
ethernet0/0/0 192.1.1.2 0
Syntax
udp-helper enable
undo udp-helper enable
View
System view
Parameter
None
Description
Example
Syntax
View
System view
7-2
Command Manual – Network Protocol
Comware V3 Chapter 7 UDP Helper Configuration Commands
Parameter
port: UDP port number in the UDP broadcasts to be forwarded. It ranges from 1 to
65,535.
dns: Domain name service, corresponding to UDP port 53.
netbios-ds: NetBIOS datagram service, corresponding to UDP port 138.
netbios-ns: NetBIOS name service, corresponding to UDP port 137.
tacacs: TACACS, corresponding to UDP port 49.
tftp: Trivial file transfer protocol, corresponding to UDP port 69.
time: Time service, corresponding to UDP port 37.
Description
Use the udp-helper port command to specify the UDP port number in the UDP
broadcasts to be forwarded.
Use the undo udp-helper port command to disable the system to forward the UDP
broadcasts with the specified UDP port number.
Example
# Configure the system to forward the UDP broadcasts with the UDP port number of
DNS.
[H3C] udp-helper port dns
Syntax
View
Parameter
Description
Use the udp-helper server command to configure the destination server to which the
UDP broadcasts received on the interface are forwarded.
Use the undo udp-helper server command to remove the configured destination
server.
By default, no destination server is configured.
7-3
Command Manual – Network Protocol
Comware V3 Chapter 7 UDP Helper Configuration Commands
Example
# Configure the system to forward all UDP broadcasts received on interface Ethernet
0/0/0 to 192.1.1.2.
[H3C-ethernet 0/0/0] udp-helper server 192.1.1.2
7-4
Command Manual – Network Protocol
Comware V3 Chapter 8 BOOTP Client Configuration Commands
Syntax
View
Any view
Parameter
Description
Use the display bootp client command to display information about the BOOTP client,
such as MAC address and IP address.
Example
Table 8-1 Description on the fields of the display bootp client command
Field Description
Ethernet 0/0/0 interface is configured to obtain IP
Interface ethernet0/0/0
address from a BOOTP server.
Allocated IP IP address obtained from the BOOTP server
Transaction ID XID field in the BOOTP packet
Mac Address MAC address of the BOOTP client
8-1
Command Manual – Network Protocol
Comware V3 Chapter 8 BOOTP Client Configuration Commands
Syntax
ip address bootp-alloc
undo ip address bootp-alloc
View
Parameter
None
Description
Use the ip address bootp-alloc command to configure the Ethernet interface to obtain
IP address using BOOTP.
Use the undo ip address bootp-alloc command to disable the Ethernet interface to
obtain IP address using BOOTP.
By default, the Ethernet interface does not obtain IP address using BOOTP.
Example
8-2
Command Manual – Network Protocol
Comware V3 Chapter 9 DHCP Configuration Commands
Syntax
dhcp enable
undo dhcp enable
View
System view
Parameter
None
Description
Note:
DHCP can operate normally only after you correctly set the system clock.
Example
Syntax
9-1
Command Manual – Network Protocol
Comware V3 Chapter 9 DHCP Configuration Commands
View
Interface view
Parameter
global: The address DHCP client gets is the one selected by the local DHCP server
from a global address pool upon the receipt of the DHCP request from the client.
subaddress: Enables subaddress allocation, allowing the DHCP server to assign a
DHCP client an IP address belonging to a subaddress segment for the Ethernet
interface. This IP address is selected from the global address pool corresponding to the
subaddress segment. When subaddress allocation is enabled, the Ethernet interface
on the DHCP server must be assigned a subaddress and the specified global address
pool must reside in the same segment with the subaddress, otherwise the IP address is
assigned to the client from the primary address segment of the Ethernet interface.
Currently, subaddress allocation is available only on Ethernet interface and Virtual
Ethernet interface.
interface: The address DHCP client gets is the one selected by the local DHCP server
from an interface address pool upon the receipt of the DHCP request from the client.
relay: The address DHCP client gets is allocated by an external DHCP server.
Description
Use the dhcp select command in interface view to select a method for disposing the
DHCP packets destined to the local device.
Use the undo dhcp select command in interface view to restore the default setting.
By default, DHCP packets destined to the local device will be sent to the internal server
and the clients sending them will be allocated with addresses selected from a global
address pool (in global approach).
Currently, DHCP is available only on the following interfaces:
z Ethernet interface or subinterface
z Virtual Ethernet interface
z Synchronous/asynchronous serial interface encapsulated with PPP, HDLC, or
frame relay
z E/T interfaces
Related command: dhcp select (in system view).
Example
# Allocate addresses selected from an interface address pool on the internal DHCP
server to the clients sending DHCP packets destined to the local device.
[H3C-Ethernet1/0/0] dhcp select interface
9-2
Command Manual – Network Protocol
Comware V3 Chapter 9 DHCP Configuration Commands
Syntax
View
System view
Parameter
global: The address DHCP client gets is the one selected by the local DHCP server
from a global address pool upon the receipt of the DHCP request from the client.
subaddress: Enables subaddress allocation, allowing the DHCP server to assign a
DHCP client an IP address belonging to a subaddress segment for the Ethernet
interface. This IP address is selected from the global address pool corresponding to the
subaddress segment. When subaddress allocation is enabled, the Ethernet interface
on the DHCP server must be assigned a subaddress located in the subaddress
segment from which subaddresses are selected for DHCP clients. This is to ensure that
the main address and the subaddress assigned to a DHCP client are located in
different network segments.
interface: The address DHCP client gets is the one selected by the local DHCP server
from an interface address pool upon the receipt of the DHCP request from the client.
relay: The address DHCP client gets is allocated by an external DHCP server.
interface-type interface-number [ to interface-type interface-number ]: Indicates all
subinterfaces from the first specified subinterface to the second. Note that the
interfaces can be Ethernet interfaces, virtual Ethernet interfaces,
synchronous/asynchronous serial interfaces encapsulated with PPP, HDCL, or frame
relay, or E/T interfaces.
all: All the interfaces.
Description
Use the dhcp select command in system view to select a method for multiple
interfaces in a specified range to dispose the DHCP packets destined to the local
device.
Use the undo dhcp select command in system view to restore the default setting.
By default, DHCP packets destined to the local device will be sent to the internal server
and the clients sending them will be allocated with addresses selected from a global
address pool (in global approach).
9-3
Command Manual – Network Protocol
Comware V3 Chapter 9 DHCP Configuration Commands
Example
Syntax
View
System view
Parameter
None
Description
Example
Syntax
9-4
Command Manual – Network Protocol
Comware V3 Chapter 9 DHCP Configuration Commands
View
Parameter
domain-name: Domain for DHCP accounting. For this domain, a RADIUS scheme must
be configured.
Description
Use the accounting domain command to enable DHCP server accounting for
addresses from the global DHCP address pools and configure a domain for DHCP
accounting.
Use the undo accounting domain command to disable DHCP accounting for
addresses from the DHCP address pools.
By default, DHCP accounting is not enabled.
When DHCP accounting is enabled, the DHCP server sends accounting packets to the
RADIUS accounting server in the specific domain when issuing and releasing leases.
The RADIUS server then records information about use of IP addresses, but does not
really perform accounting.
After configuring a DHCP server to use the RADIUS server in the specified domain for
accounting, you must associate RADIUS with the domain name. Otherwise, your
configuration does not take effect.
Without being configured with the accounting domain command, a DHCP server
does not send any accounting request to any RADIUS server when allocating a lease.
When configured with the accounting domain command, a DHCP server sends an
accounting start request to the RADIUS server whenever allocating a new lease; it
does not send any accounting start request to the RADIUS server for any existing lease.
When receiving a lease renewal request, the DHCP server sends an accounting start
request to the RADIUS server again.
When configured with the undo accounting domain command, a DHCP server does
not send any accounting stop request to the RADIUS server when releasing an existing
lease. If you modify the RADIUS domain, the DHCP server will send accounting start
and stop requests to the new RADIUS server for subsequent lease allocation and
releasing events.
Example
9-5
Command Manual – Network Protocol
Comware V3 Chapter 9 DHCP Configuration Commands
9.2.2 bims-server
Syntax
View
Parameter
Description
Use the bims-server command to enable and configure BIMS option for a global
address pool on the DHCP server.
Use the undo bims-server command to disable BIMS option for a global address pool
on the DHCP server.
After you configure BIMS option for a global address pool, the DHCP server
encapsulates the BIMS option information in the DHCP_OFFER and DHCP_ACK
packets when assigning an IP address from the global address pool to a DHCP client.
By default, BIMS option is not configured on the DHCP server.
Example
# Configure BIMS option in global address pool view, setting the IP address of the BIMS
server to 192.168.1.1, the protocol port to 80, and the shared key to abcdefg.
<H3C> system-view
[H3C] dhcp server ip-pool 123
[H3C-dhcp-pool-123] bims-server ip 192.168.1.1 port 80 sharekey abcdefg
Syntax
View
User view
9-6
Command Manual – Network Protocol
Comware V3 Chapter 9 DHCP Configuration Commands
Parameter
Description
Use the debugging dhcp server command to enable debugging on the DHCP server.
Use the undo debugging dhcp server command to disable debugging.
By default, debugging is disabled on the DHCP server.
Example
9-7
Command Manual – Network Protocol
Comware V3 Chapter 9 DHCP Configuration Commands
*0.62083233-DHCP SER-8-DHCPS_DEBUG_COMMON:
DhcpServer: Send DHCPOFFER to MAC=> 00.05.5D.85.D5.45. Offer IP=> 5.5.5.2
*0.62083366-DHCP SER-8-DHCPS_DEBUG_COMMON:
DhcpServer: receive DHCPREQUEST from 00.05.5D.85.D5.45.
*0.62083483-DHCP SER-8-DHCPS_DEBUG_COMMON:
DhcpServer: Send DHCPACK to MAC=> 00.05.5D.85.D5.45. Offer IP=> 5.5.5.2
Syntax
View
System view
Parameter
domain-name: Domain for DHCP accounting. For this domain, a RADIUS scheme must
be configured.
interface-type interface-number [ to interface-type interface-number ]: Indicates all
subinterfaces from the first specified subinterface to the second. Note that the
interfaces must be Ethernet interfaces or virtual Ethernet interfaces.
all: Indicates all interfaces.
Description
Use the dhcp server accounting domain interface command to enable DHCP
accounting for addresses from the address pools of the specified interfaces and
configure a domain for DHCP accounting.
Use the undo dhcp server accounting domain interface command to disable DHCP
accounting for addresses from the address pools of the specified interfaces.
By default, DHCP accounting is not enabled.
Note that you cannot use the display current-configuration command to verify the
configuration made by using the dhcp server accounting domain interface
9-8
Command Manual – Network Protocol
Comware V3 Chapter 9 DHCP Configuration Commands
Example
# Enable DHCP accounting for addresses from the address pools of Ethernet2/0/0.1 to
Ethernet2/0/0.5, and specify radius_domain as the domain for accounting.
[H3C] dhcp server accounting domain radius_domain interface ethernet 2/0/0.1
to ethernet 2/0/0.5
Syntax
View
Interface view
Parameter
domain-name: Domain for DHCP accounting. For this domain, a RADIUS scheme must
be configured.
all: Indicates all interfaces.
Description
Use the dhcp server accounting domain command to enable DHCP accounting for
addresses from the interface address pool and configure a domain for DHCP
accounting.
Use the undo dhcp server accounting domain command to disable DHCP
accounting for addresses from the interface address pool.
By default, DHCP accounting is not enabled.
Related command: accounting domain.
Example
# Enable DHCP accounting for addresses from the interface address pool, and specify
radius_domain as the domain for accounting.
[H3C-Ethernet0/0/0] dhcp server accounting domain radius_domain
9-9
Command Manual – Network Protocol
Comware V3 Chapter 9 DHCP Configuration Commands
Syntax
View
Parameter
Description
Use the dhcp server bims-server command to enable and configure BIMS option
support on the current interface.
Use the undo dhcp server bims-server command to disable BIMS option support on
the current interface.
After you configure BIMS option support on the DHCP server, the DHCP server
encapsulates the BIMS option information in the DHCP_OFFER and DHCP_ACK
packets sent to the DHCP clients according to these rules:
If BIMS option support is enabled on the current interface, the DHCP server sends the
BIMS option information together with the lease when assigning an IP address from the
interface address pool to a DHCP client.
By default, BIMS option is not configured on the DHCP server.
Example
9-10
Command Manual – Network Protocol
Comware V3 Chapter 9 DHCP Configuration Commands
Syntax
View
System view
Parameter
Description
Use the dhcp server bims-server interface command to enable and configure BIMS
option support for an interface or all interfaces configured with interface address pools.
Use the undo dhcp server bims-server command to disable BIMS option support for
an interface or all interfaces configured with interface address pools.
After you configure BIMS option support on the DHCP server, the DHCP server
encapsulates the BIMS option information in the DHCP_OFFER and DHCP_ACK
packets sent to the DHCP clients according to these rules:
z If you configure BIMS option support for an interface, the DHCP server sends the
BIMS option information together with the lease when assigning an IP address
from the interface address pool to a DHCP client.
z If you specify the all keyword in the dhcp server bims-server command, the
DHCP server sends the BIMS option information together with the lease when
assigning an IP address from any of the interface address pools to a DHCP client.
By default, BIMS option is not configured on the DHCP server.
9-11
Command Manual – Network Protocol
Comware V3 Chapter 9 DHCP Configuration Commands
Example
Syntax
View
Parameter
Description
Use the dhcp server dns-list command in interface view to configure DNS IP
addresses for an interface configured with a DHCP address pool.
Use the undo dhcp server dns-list command in interface view to delete the
configuration.
By default, no DNS address is configured.
By far, only up to eight DNS server addresses can be set in each DHCP address pool.
Related command: dhcp server dns-list (in system view), dhcp server ip-pool, and
dns-list.
Example
# Configure the DNS server address 1.1.1.254 for the DHCP address pool of the
interface Ethernet1/0/0.
[H3C] interface ethernet 1/0/0
[H3C-Ethernet 1/0/0] dhcp server dns-list 1.1.1.254
9-12
Command Manual – Network Protocol
Comware V3 Chapter 9 DHCP Configuration Commands
Syntax
View
System view
Parameter
Description
Use the dhcp server dns-list interface command to specify DNS server IP addresses
in the specified interface DHCP address pool.
Use the undo dhcp server dns-list interface command to delete the specified DNS
server IP addresses.
By default, no DNS address is configured.
Only up to eight DNS server addresses, by far, can be set in each DHCP address pool.
Related command: dhcp server dns-list, dhcp server ip-pool, dns-list.
Example
# Assign the DNS server address 1.1.1.254 to the DHCP address pool of the interfaces
in the range of Ethernet1/0/0.0 to Ethernet2/0/0.5.
[H3C] dhcp server dns-list 1.1.1.254 interface ethernet 2/0/0.0 to ethernet
2/0/0.5
Syntax
9-13
Command Manual – Network Protocol
Comware V3 Chapter 9 DHCP Configuration Commands
View
Parameter
domain-name: Domain name that the DHCP server allocates to clients, which is a
string comprising at least three characters and at most 50 characters.
interface-type interface-number [ to interface-type interface-number ]: Indicates all
subinterfaces from the first specified subinterface to the second. Note that the
interfaces must be Ethernet interfaces or virtual Ethernet interfaces.
Description
Use the dhcp server domain-name command in interface view to configure the
domain name that the DHCP address pool of the current interface allocates to clients.
Use the undo dhcp server domain-name command in interface view to delete the
configured domain name.
By default, no domain name has been allocated to DHCP clients and domain name is
null.
Related command: dhcp server ip-pool, dhcp server domain-name (in system view),
and domain-name.
Example
Syntax
View
System view
Parameter
domain-name: Domain name that the DHCP server allocates to clients, which is a
string comprising 3 to 50 characters.
9-14
Command Manual – Network Protocol
Comware V3 Chapter 9 DHCP Configuration Commands
Description
Use the dhcp server domain-name interface command in system view to configure
the domain name that the DHCP address pool of the interfaces in a specified range
allocates to DHCP clients.
Use the undo dhcp server domain-name interface command in system view to
delete the configured domain name.
By default, no domain name is configured for clients.
After configuring this command, you cannot view the configuration of this command by
executing the display current-configuration command. By executing the dhcp
server domain-name command respectively on the specified interfaces, you can fulfill
the batch configurations of the command.
Related command: dhcp server ip-pool.
Example
# Configure eth2_1_5.com.cn as the domain name in the interface DHCP address pool
of the interfaces Ethernet2/0/0.1 through Ethernet2/0/0.5.
[H3C] dhcp server domain-name eth1_0_0.com.cn interface ethernet 2/0/0.1 to
ethernet 2/0/0.5
Syntax
dhcp server expired { day day [ hour hour [ minute minute ] ] | unlimited }
undo dhcp server expired
View
Parameter
9-15
Command Manual – Network Protocol
Comware V3 Chapter 9 DHCP Configuration Commands
Description
Use the dhcp server expired command in interface view to configure a valid period
allowed for leasing IP addresses in the current interface DHCP address pool.
Use the undo dhcp server expired command in interface view to restore the default
setting.
By default, the leasing valid period is one day.
Currently, the leasing valid period specified by this command cannot exceed the year of
2106.
Related command: dhcp server ip-pool, dhcp server expired (in system view), and
expired.
Example
# Set the valid period for leasing IP addresses in the interface address pool maintained
by Ethernet1/0/0 to unlimited.
[H3C] interface ethernet 1/0/0
[H3C-Ethernet 1/0/0] dhcp server expired unlimited
Syntax
dhcp server expired { day day [ hour hour [ minute minute ] ] | unlimited } { interface
interface-type interface-number [ to interface-type interface-number ] | all }
undo dhcp server expired { interface interface-type interface-number [ to
interface-type interface-number ] | all }
View
System view
Parameter
9-16
Command Manual – Network Protocol
Comware V3 Chapter 9 DHCP Configuration Commands
Description
Use the dhcp server expired interface command in system view to configure a valid
period allowed for leasing IP addresses in the interface DHCP address pool of the
interfaces in a specified range.
Use the undo dhcp server expired interface command in system view to restore the
default setting.
By default, the leasing valid period is one day.
Currently, the leasing valid period specified by this command cannot exceed the year of
2106.
After configuring this command, you cannot view the configuration by executing the
display current-configuration command. By calling the dhcp server expired
command respectively on the specified interfaces, you can fulfill the batch
configurations of the command.
Related command: dhcp server ip-pool, dhcp server expired (in interface view),
expired.
Example
# Set the valid period for leasing IP addresses in the interface address pool of the
interfaces in the range of Ethernet2/0/0.1 to Ethernet2/0/0.5 to unlimited.
[H3C] dhcp server expired unlimited interface ethernet 2/0/0.1 to ethernet
2/0/0.5
Syntax
View
System view
Parameter
low-ip-address: The low IP address that does not participate in the auto-allocation.
high-ip-address: The high IP address that does not participate in the auto-allocation. It
must belong to the same segment to which the low-ip-address belongs as well and
must not be smaller than the low-ip-address. If this parameter is not specified, there will
be only one IP address, that is, low-ip-address.
9-17
Command Manual – Network Protocol
Comware V3 Chapter 9 DHCP Configuration Commands
Description
Example
Syntax
View
System view
Parameter
pool-name: Address pool name uniquely identifying an address pool, which is a string
comprising at least one character and 35 characters at most.
Description
Use the dhcp server ip-pool command to create a DHCP address pool and access
the DHCP address pool view.
Use the undo dhcp server ip-pool command to delete the specified address pool.
By default, no DHCP address pool is created.
If the specified address pool has existed, executing the dhcp server ip-pool command
will directly access the DHCP address pool view. If the address pool does not exist, the
DHCP server will create it before accessing the DHCP address pool view. Each DHCP
server is allowed to configure multiple address pools. So far, you may configure up to
128 global address pools on each DHCP server.
The subnet addresses and subnet broadcast addresses on the DHCP server do not
participate in address allocation.
Related command: dhcp enable, expired, and network.
9-18
Command Manual – Network Protocol
Comware V3 Chapter 9 DHCP Configuration Commands
Example
Syntax
View
Parameter
Description
Use the dhcp server nbns-list command in interface view to configure NetBIOS
server addresses in the DHCP address pool of current interface.
Use the undo dns-list command in interface view to delete the configuration.
By default, no NetBIOS server address is configured.
By far, only up to eight NetBIOS addresses can be configured in each DHCP address
pool.
Related command: dhcp server ip-pool, dhcp server nbns-list (in system view),
nbns-list, and netbios-type.
Example
Syntax
9-19
Command Manual – Network Protocol
Comware V3 Chapter 9 DHCP Configuration Commands
View
System view
Parameter
Description
Use the dhcp server nbns-list interface command in system view to configure
NetBIOS server addresses for the clients that get ip address from the DHCP address
pool of the interfaces in a specified range.
Use the undo dhcp server nbns-list interface command in system view to delete the
configuration.
By default, no NetBIOS server address is configured.
By far, only up to eight NetBIOS addresses can be configured in each DHCP address
pool.
After configuring this command, you cannot view the configuration by executing the
display current-configuration command. By calling the dhcp server nbns-list
command respectively on the specified interfaces, you can fulfill the batch
configurations of the command.
Related command: dhcp server ip-pool, dhcp server nbns-list (in interface view),
nbns-list, and netbios-type.
Example
9-20
Command Manual – Network Protocol
Comware V3 Chapter 9 DHCP Configuration Commands
Syntax
View
System view
Parameter
b-node: Broadcast mode, that is, hostname-IP maps are obtained by means of
broadcast.
p-node: Peer-to-peer mode, that is, maps are obtained by means of communicating
with the NetBIOS server.
m-node: Mixed (m) mode, that is, the mode of type b nodes running “peer-to-peer”
communications mechanism.
h-node: Hybrid (h) mode, that is, the mode of type p nodes possessing some of the
broadcast features.
interface-type interface-number [ to interface-type interface-number ]: Indicates all
subinterfaces from the first specified subinterface to the second. Note that the
interfaces must be Ethernet interfaces or virtual Ethernet interfaces.
all: All interfaces.
Description
Use the dhcp server netbios-type interface command in system view to configure a
NetBIOS node type for the DHCP clients of the address pool of the interfaces in a
specified range.
Use the undo dhcp server netbios-type interface command in system view to
restore the default setting.
By default, clients adopt type h node (h-node).
Hostname-IP maps are required in the event that DHCP clients use the NetBIOS
protocol on a WAN.
After configuring this command, you cannot view the configuration by executing the
display current-configuration command. By calling dhcp server netbios-type
respectively on the specified interfaces, you can fulfill the batch configurations of the
command.
9-21
Command Manual – Network Protocol
Comware V3 Chapter 9 DHCP Configuration Commands
Example
Syntax
View
Parameter
b-node: Broadcast mode, that is, hostname-IP maps are obtained by means of
broadcast.
p-node: Peer-to-peer mode, that is, maps are obtained by means of communicating
with the NetBIOS server.
m-node: Mixed (m) mode, that is, the mode of type b nodes running “peer-to-peer”
communications mechanism.
h-node: Hybrid (h) mode, that is, the mode of type p nodes possessing some of the
broadcast features.
Description
Use the dhcp server netbios-type command in interface view to configure the
NetBIOS node type of the DHCP clients of the current interface.
Use the undo dhcp server netbios-type command in interface view to restore the
default setting.
By default, clients adopt type h node (h-node).
Hostname-IP maps are required in the event that DHCP clients use the NetBIOS
protocol on a WAN.
Related command: dhcp server ip-pool, netbios-type, dhcp server netbios-type (in
system view), and nbns-list.
9-22
Command Manual – Network Protocol
Comware V3 Chapter 9 DHCP Configuration Commands
Example
# In the DHCP address pool of Ethernet1/0/0, set the NetBIOS node type of its clients to
p-node.
[H3C] interface ethernet 1/0/0
[H3C-Ethernet 1/0/0] dhcp server netbios-type p-node
Syntax
dhcp server option code { ascii ascii-string | hex hex-string | ip-address ip-address }
{ interface interface-type interface-number [ to interface-type interface-number ] | all }
undo dhcp server option code { interface interface-type interface-number [ to
interface-type interface-number ] | all }
View
System view
Parameter
code: Option value that needs to be assigned by the user, in the range 2 to 254, among
which 3, 6, 15, 44, 46, 50 to 55, 57 to 61, 184 and 127 are reserved for the system.
ascii ascii-string: ASCII string.
hex hex-string: 2-digit or 4-digit hexadecimal string, such as hh or hhhh.
ip-address ip-address: IP address.
interface-type interface-number [ to interface-type interface-number ]: Indicates all
subinterfaces from the first specified subinterface to the second. Note that the
interfaces must be Ethernet interfaces or virtual Ethernet interfaces.
all: All the interfaces.
Description
Use the dhcp server option command in system view to configure a DHCP
self-defined option for the interfaces in a specified range.
Use the undo dhcp server option command in system view to delete the
configuration.
After you configure this command, you cannot view the configuration by executing the
display current-configuration command. By calling the dhcp server option
cyclically, you can fulfill the batch configurations of the command.
Related command: dhcp server option (in interface view) and option.
9-23
Command Manual – Network Protocol
Comware V3 Chapter 9 DHCP Configuration Commands
Example
# Define the hexadecimal strings of the option code 100 to 0x11 and 0x22 for the
interface DHCP address pool of the interfaces in the range of Ethernet2/0/0.1 to
Ethernet2/0/0.5.
[H3C] dhcp server option 100 hex 11 22 interface ethernet 2/0/0.1 to ethernet
2/0/0.5
Syntax
dhcp server option code { ascii ascii-string | hex hex-string | ip-address ip-address }
undo dhcp server option code
View
Parameter
code: Option value that needs to be assigned by the user in the range 2 to 254, among
which 3, 6, 15, 44, 46, 50 to 55, 57 to 61, 184 and 127 are reserved for the system.
ascii ascii-string: ASCII string.
hex hex-string: 2-digit or 4-digit hexadecimal string, such as hh or hhhh.
ip-address ip-address: IP address.
Description
Use the dhcp server option command in interface view to configure a DHCP
self-defined option for the DHCP address pool of the current interface.
Use the undo dhcp server option command in interface view to delete the
configuration.
Related command: option, dhcp server option (in system view).
Example
# Define the hexadecimal strings of the option code 100 to 0x11 and 0x22 for the DHCP
address pool of the interface Ethernet1/0/0.
[H3C] interface ethernet 1/0/0
[H3C-Ethernet 1/0/0] dhcp server option 100 hex 11 22
Syntax
9-24
Command Manual – Network Protocol
Comware V3 Chapter 9 DHCP Configuration Commands
View
System view
Parameter
packets number: The maximum number of ping packets allowed to be sent, which is in
the range of 0 to 10 and defaults to 2, with 0 indicating that no ping operation will be
performed.
timeout milliseconds: The longest time period that the DHCP server waits for the
response to each ping packet, which is in the range of 0 to 10000 milliseconds and
defaults to 500 milliseconds.
Description
Use the dhcp server ping command to configure the maximum number of ping
packets that the DHCP server is allowed to send and the longest time period that the
DHCP server should wait for the response to each ping packet.
Use the undo dhcp server ping command to restore the default settings.
To prevent the address collision resulted from repeated IP address allocation, DHCP
server sends ping packets to detect that an address is available.
Example
# Allow the DHCP server to send up to ten ping packets and wait 500 milliseconds (the
default setting) for the response to each packet.
[H3C] dhcp server ping packets 10
Syntax
View
System view
Parameter
None
Description
Use the dhcp server relay information enable command to enable the DHCP server
to support option 82.
9-25
Command Manual – Network Protocol
Comware V3 Chapter 9 DHCP Configuration Commands
Use the undo dhcp server relay information enable command to disable the DHCP
server to support option 82.
When enabled to support option 82, the DHCP server can recognize DHCP requests
carrying option 82 and handle the packets according to their sub-options.
At present, the DHCP server can recognize sub-option 5 of option 82 and assign the
client an IP address in the same network segment where the IP address specified by
sub-option 5 is located.
By default, the DHCP server supports option 82.
Example
Syntax
View
Parameter
Description
Use the dhcp server static-bind command to configure a static address binding in the
DHCP address pool of the current interface.
Use the undo dhcp server static-bind command to delete the configuration.
By default, static address binding is not configured in any interface address pool.
Among all the static bindings on an interface, each IP address, MAC address, and
client identifier must be unique. In addition, an IP address can be bound with a MAC
address or client identifier, but not with both.
9-26
Command Manual – Network Protocol
Comware V3 Chapter 9 DHCP Configuration Commands
Example
# Statically bind the MAC address 0000-e03f-0305 with the IP address 10.1.1.1.
[H3C-Ethernet1/0/0] dhcp server static-bind ip-address 10.1.1.1 mac-address
0000-e03f-0305
Syntax
View
Interface view
Parameter
ncp-ip ip-address: Specifies the IP address of the network call processor (NCP).
as-ip ip-address: Specifies the IP address of the alternate NCP server.
voice-vlan: Voice VLAN.
vlan-id: Voice VLAN ID, in the range 1 to 4094.
enable: Voice VLAN is in the enabled state.
disable: Voice VLAN is in the disabled state.
fail-over: Failover call routing.
ip-address: IP address for failover call routing.
dialer-string: Dial string for failover call routing, comprising digits in the range 0 to 9 and
wildcard asterisk (*).
Description
Use the dhcp server voice-config command to enable the DHCP server to send
option 184 and suboptions of 184 when it assigns addresses from the current interface
address pool.
Use the undo dhcp server voice-config command to disable the DHCP server to
send option 184 and suboptions of 184 when it assigns addresses from the current
interface address pool.
The DHCP server sends option 184 and suboptions of 184 only when thus required by
the DHCP client.
Configure the NCP-IP suboption before configuring other suboptions; otherwise, they
cannot take effect.
9-27
Command Manual – Network Protocol
Comware V3 Chapter 9 DHCP Configuration Commands
By default, the DHCP server does not support option 184 and its suboptions.
Related command: voice-config.
Example
# Enable the DHCP server to support option 184 and its suboptions, setting IP address
of NCP to 1.1.1.1, IP address of the alternate NCP server to 2.2.2.2, state of voice
VLAN to enable, ID of voice VLAN to 1, IP address for failover call routing to 3.3.3.3,
and dial string for failover call routing to 99*.
<H3C> system-view
[H3C] interface Ethernet 0/0/1
[H3C-Ethernet0/0/1] dhcp select interface
[H3C-Ethernet0/0/1] dhcp server voice-config ncp-ip 1.1.1.1
[H3C-Ethernet0/0/1] dhcp server voice-config as-ip 2.2.2.2
[H3C-Ethernet0/0/1] dhcp server voice-config voice-vlan 1 enable
[H3C-Ethernet0/0/1]dhcp server voice-config fail-over 3.3.3.3 99*
Syntax
View
System view
Parameter
ncp-ip ip-address: Specifies the IP address of the network call processor (NCP).
as-ip ip-address: Specifies the IP address of the alternate NCP server.
voice-vlan: Voice VLAN.
vlan-id: Voice VLAN ID, in the range 1 to 4094.
enable: Voice VLAN is in the enabled state.
disable: Voice VLAN is in the disabled state.
fail-over: Failover call routing.
ip-address: IP address for failover call routing.
dialer-string: Dial string for failover call routing, comprising digits in the range 0 to 9 and
wildcard asterisk (*).
9-28
Command Manual – Network Protocol
Comware V3 Chapter 9 DHCP Configuration Commands
Description
Use the dhcp server voice-config interface command to enable the DHCP server to
send option 184 and suboptions of 184 when it assigns addresses from the specified
interface address pool.
Use the undo dhcp server voice-config command to disable the DHCP server to
send option 184 and suboptions of 184 when it assigns addresses from the specified
interface address pool.
The DHCP server sends option 184 and suboptions of 184 only when thus required by
the DHCP client.
Configure the NCP-IP suboption before configuring other suboptions; otherwise, they
cannot take effect.
By default, the DHCP server does not support option 184 and its suboptions.
Related command: voice-config.
Example
# Enable the DHCP server to send option 184 and its suboptions when assigning
addresses from interface Ethernet 0/0/1, setting IP address of NCP to 1.1.1.1, IP
address of the alternate NCP server to 2.2.2.2, state of voice VLAN to enable, ID of
voice VLAN to 1, IP address for failover call routing to 3.3.3.3, and dial string for failover
call routing to 99*.
<H3C> system-view
[H3C] dhcp select interface ethernet 0/0/1
[H3C] dhcp server voice-config ncp-ip 1.1.1.1 interface ethernet 0/0/1
[H3C] dhcp server voice-config as-ip 2.2.2.2 interface ethernet 0/0/1
[H3C] dhcp server voice-config voice-vlan 1 enable interface ethernet 0/0/1
[H3C] dhcp server voice-config fail-over 3.3.3.3 99* interface ethernet 0/0/1
Syntax
View
Any view
9-29
Command Manual – Network Protocol
Comware V3 Chapter 9 DHCP Configuration Commands
Parameter
Description
Use the display dhcp server conflict command to view the DHCP address conflict
statistics, including the information in conflicted IP address, conflict detection type, and
conflict time.
Related command: reset dhcp server conflict.
Example
Table 9-1 Description on fields of the display dhcp server conflict command
Field Description
Address The conflicted IP address
Discover Time Time when the conflict is discovered
Syntax
View
Any view
Parameter
9-30
Command Manual – Network Protocol
Comware V3 Chapter 9 DHCP Configuration Commands
Description
Use the display dhcp server expired command to view the expired address leases in
a DHCP address pool. In certain conditions, the addresses of the expired leases will be
allocated to other DHCP clients.
Example
Interface pool:
IP address Client-identifier/ Lease expiration Type
Hardware address
Table 9-2 Description of the information displayed by executing display dhcp server
expired
Syntax
View
Any view
9-31
Command Manual – Network Protocol
Comware V3 Chapter 9 DHCP Configuration Commands
Parameter
None
Description
Use the display dhcp server free-ip command to view the free address ranges in
DHCP address pools, that is, information about IP addresses that have not been
allocated yet.
Example
Syntax
View
Any view
Parameter
Description
Use the display dhcp server ip-in-use command to view the address binding
information of DHCP clients, such as the information in hardware address, IP address,
and address lease expiration.
9-32
Command Manual – Network Protocol
Comware V3 Chapter 9 DHCP Configuration Commands
Example
Interface pool:
IP address Client-identifier/ Lease expiration Type
Hardware address
5.5.5.1 0050-ba28-930a Jun 5 2004 10:56: 7 AM Auto:COMMITED
Table 9-3 Description on the fields of the display dhcp server ip-in-use command
Field Description
Global pool Address binding information of global address pools
Interface pool Address binding information of interface address pools
IP address The bound IP address
Client identifier/Hardware
The bound MAC address or identifier
address
VlanId Identifies a user uniquely together with a MAC address
Lease expiration The lease expiration time
Type Address binding type
Syntax
View
Any view
Parameter
None
9-33
Command Manual – Network Protocol
Comware V3 Chapter 9 DHCP Configuration Commands
Description
Use the display dhcp server statistics command to view the statistics on the DHCP
server, including such information as number of DHCP address pools, automatically or
manually bound address and expired addresses, number of unknown packets, number
of DHCP request packets, and number of response packets.
Related command: reset dhcp server statistics.
Example
Table 9-4 Description of the information output by executing display dhcp server
statistics
9-34
Command Manual – Network Protocol
Comware V3 Chapter 9 DHCP Configuration Commands
Syntax
View
Any view
Parameter
pool-name: Name of a global address pool. All the global address pools will apply if no
address pool has been specified.
interface-type interface-number: Interface address pool. All the interface address pools
will apply if no interface has been specified.
all: All the DHCP address pools.
Description
Use the display dhcp server tree command to view the tree-structure information of
DHCP address pools, including the address pool at each node, option, address lease
period, and DNS server information.
Example
9-35
Command Manual – Network Protocol
Comware V3 Chapter 9 DHCP Configuration Commands
Pool name: 6
static-bind ip-address 10.10.1.2 255.0.0.0
static-bind mac-address 1111.2222.3333
Parent node:5
option 1 ip-address 255.255.0.0
expired 1 0 0
option 58 hex 00 00 A8 C0
option 59 hex 00 00 00 3C
9-36
Command Manual – Network Protocol
Comware V3 Chapter 9 DHCP Configuration Commands
option 58 hex 00 01 51 80
option 59 hex 00 00 00 3C
Interface pool:
Pool name: Ethernet11/2/0
network 5.5.5.0 mask 255.255.255.0
option 1 ip-address 255.255.255.0
gateway-list 5.5.5.5
expired 1 0 0
option 58 hex 00 00 A8 C0
option 59 hex 00 00 00 3C
Table 9-5 Description on the fields of the display dhcp server tree command
Field Description
Global pool: Global address pool information
Interface pool: Interface address pool information
Pool Name: Address pool name
network Address ranges available for allocation
static-bind ip-address
10.10.1.2 255.0.0.0
Statically bound IP address and MAC address
static-bind mac-address
1111.2222.3333
The child node of the current node is address pool 6.
The node in this position can be:
Child node, which is the child node (subnet) address
pool of the current address pool
Parent node, which is the father node (natural
child node:6 network segment) address pool of the current node
Sibling node, which is the next sibling node (another
subnet on the same natural network segment)
address pool. The order of sibling nodes depends on
the order in which they are configured.
PrevSibling node, which is the previous sibling node
of the current node
option Self-definable DHCP option
The address lease period that is indicated by days,
expired
hours, and minutes
gateway-list The egress GW router allocated to DHCP clients
dns-list The DNS servers allocated to DHCP clients
domain-name Domain name specified for DHCP clients
9-37
Command Manual – Network Protocol
Comware V3 Chapter 9 DHCP Configuration Commands
Field Description
nbns-list The NetBIOS server allocated to DHCP clients
netbios-type NetBIOS node type specified for DHCP clients
9.2.33 dns-list
Syntax
View
Parameter
Description
Use the dns-list command to configure DNS server IP addresses in a global DHCP
address pool.
Use the undo dns-list command to delete the configuration.
By default, no DNS server address is configured.
By far, only up to eight DNS server addresses can be set in each DHCP address pool.
Related command: dhcp server dns-list interface, dhcp server dns-list, and dhcp
server ip-pool.
Example
9.2.34 domain-name
Syntax
domain-name domain-name
undo domain-name domain-name
9-38
Command Manual – Network Protocol
Comware V3 Chapter 9 DHCP Configuration Commands
View
Parameter
domain-name: Domain name that the DHCP server allocates to clients, which is a
string comprising at least three characters and at most 50 characters.
Description
Use the domain-name command to configure the domain name that a global address
pool of the DHCP server allocates to clients.
Use the undo domain-name command to delete the configured domain name.
By default, no domain name has been allocated to DHCP clients and domain name is
null.
Related command: dhcp server ip-pool, dhcp server domain-name interface, and
dhcp server domain-name.
Example
9.2.35 expired
Syntax
View
Parameter
Description
Use the expired command to configure a valid period allowed for leasing IP addresses
in a global DHCP address pool.
9-39
Command Manual – Network Protocol
Comware V3 Chapter 9 DHCP Configuration Commands
Example
# Set the IP address lease period of global address pool 0 to three minutes, two hours,
and one day.
[H3C] dhcp server ip-pool 0
[H3C-dhcp-0] day 1 hour 2 minute 3
9.2.36 gateway-list
Syntax
View
Parameter
Description
Example
9-40
Command Manual – Network Protocol
Comware V3 Chapter 9 DHCP Configuration Commands
9.2.37 nbns-list
Syntax
View
Parameter
Description
Use the nbns-list command to configure NetBIOS server addresses in a global DHCP
address pool for the clients.
Use the undo nbns-list command to remove the configured NetBIOS server
addresses.
By default, no NetBIOS address is configured.
By far, only up to eight NetBIOS addresses can be configured in each DHCP address
pool.
Related command: dhcp server ip-pool, dhcp server nbns-list, dhcp server
nbns-list interface, and netbios-type.
Example
# In the DHCP address pool 0, allocate the NetBIOS server at 10.12.1.99 to the clients.
[H3C] dhcp server ip-pool 0
[H3C-dhcp-0] nbns-list 10.12.1.99
9.2.38 netbios-type
Syntax
View
9-41
Command Manual – Network Protocol
Comware V3 Chapter 9 DHCP Configuration Commands
Parameter
b-node: Broadcast mode, that is, hostname-IP maps are obtained by means of
broadcast.
p-node: Peer-to-peer mode, that is, maps are obtained by means of communicating
with the NetBIOS server.
m-node: Mixed (m) mode, that is, the mode of type b nodes running “peer-to-peer”
communications mechanism.
h-node: Hybrid (h) mode, that is, the mode of type p nodes possessing some of the
broadcast features.
Description
Use the netbios-type command to configure the NetBIOS node type of the clients of a
global DHCP address pool.
Use the undo netbios-type command to restore the default setting.
By default, clients adopt type h node (h-node).
Related command: dhcp server ip-pool, dhcp server netbios-type (in interface
view), dhcp server netbios-type (in system view), and nbns-list.
Example
# Specify b-node as the NetBIOS node type of clients of DHCP address pool 0.
[H3C] dhcp server ip-pool 0
[H3C-dhcp-0] netbios-type b-node
9.2.39 network
Syntax
View
Parameter
ip-address: The subnet address of an IP address pool used for dynamic allocation.
mask netmask: Network mask of the IP address pool. Natural mask will be adopted if
the parameter is not specified.
9-42
Command Manual – Network Protocol
Comware V3 Chapter 9 DHCP Configuration Commands
Description
Use the network command to configure an IP address range used for dynamic
allocation.
Use the undo network command to delete the configuration.
By default, no IP address range has been configured for dynamic allocation.
Each DHCP address pool can be configured with a network segment and the new
configuration will replace the old one. If the system requires several such address
segments, you should configure them in multiple address pools.
Related command: dhcp server ip-pool and dhcp server forbidden-ip.
Example
9.2.40 option
Syntax
View
Parameter
code: Option value that needs to be assigned by the user, in the range 2 to 254, among
which 3, 6, 15, 44, 46, 50 to 55, 57 to 61, 184 and 217 are reserved for the system.
ascii ascii-string: ASCII string.
hex hex-string: 2-digit or 4-digit hexadecimal string, such as hh or hhhh.
ip-address ip-address: IP address.
Description
Use the option command to configure the self-defined options for a DHCP global
address pool.
Use the undo option command to delete the DHCP self-defined options.
New options are emerging along with the development of DHCP. In order to
accommodate these options, manual option addition is supported so that they can be
added into the attribute list maintained by the DHCP server.
Related command: dhcp server option (in interface view) and dhcp server option
interface (in system view).
9-43
Command Manual – Network Protocol
Comware V3 Chapter 9 DHCP Configuration Commands
Example
# Define the hexadecimal strings of the option code 100 to 0x11 and 0x22.
[H3C-dhcp-0] option 100 hex 11 22
Syntax
View
User view
Parameter
Description
Use the reset dhcp server conflict command to clear the statistics about DHCP
address collision.
Related command: display dhcp server conflict.
Example
Syntax
View
User view
Parameter
9-44
Command Manual – Network Protocol
Comware V3 Chapter 9 DHCP Configuration Commands
Description
Use the reset dhcp server ip-in-use command to clear the DHCP dynamic address
binding information, outdated or not.
Related command: display dhcp server ip-in-use.
Example
Syntax
View
User view
Parameter
None
Description
Use the reset dhcp server statistics command to clear the statistics on the DHCP
server, including such information as number of DHCP address pools, automatically
and manually bound addresses and expired addresses, number of unknown packets,
number of DHCP request packets, and number of response packets.
Related command: display dhcp server statistics.
Example
Syntax
View
9-45
Command Manual – Network Protocol
Comware V3 Chapter 9 DHCP Configuration Commands
Parameter
Description
Example
# Bind the PC at the MAC address 0000-e03f-0305 with the IP address 10.1.1.1 using
the mask 255.255.255.0.
[H3C-dhcp-0] static-bind ip-address 10.1.1.1 mask 255.255.255.0
[H3C-dhcp-0] static-bind mac-address 0000-e03f-0305
Syntax
View
Parameter
mac-address: The host MAC address to be bound, which is in the format of H-H-H.
client-identifier: Host ID to be bound.
Description
9-46
Command Manual – Network Protocol
Comware V3 Chapter 9 DHCP Configuration Commands
Example
# Bind the PC at the MAC address 0000-e03f-0305 with the IP address 10.1.1.1 using
the mask 255.255.255.0.
[H3C-dhcp-0] static-bind ip-address 10.1.1.1 mask 255.255.255.0
[H3C-dhcp-0] static-bind mac-address 0000-e03f-0305
9.2.46 voice-config
Syntax
View
Parameter
ncp-ip ip-address: Specifies the IP address of the network call processor (NCP).
as-ip ip-address: Specifies the IP address of the alternate NCP server.
voice-vlan: Voice VLAN.
vlan-id: Voice VLAN ID, in the range 1 to 4094.
disable: Voice VLAN is in the disabled state.
enable: Voice VLAN is in the enabled state.
fail-over: Failover call routing.
ip-address: IP address for failover call routing.
dialer-string: Dial string for failover call routing, comprising digits in the range 0 to 9 and
wildcard asterisk (*).
Description
Use the voice-config command to enable the DHCP server to send option 184 and
suboptions of 184 when it assigns addresses from the global address pool.
9-47
Command Manual – Network Protocol
Comware V3 Chapter 9 DHCP Configuration Commands
Use the undo dhcp server voice-config command to disable the DHCP server to
send option 184 and suboptions of 184 when it assigns addresses from the global
address pool.
The DHCP server sends option 184 and suboptions of 184 only when thus required by
the DHCP client.
Configure the NCP-IP suboption before configuring other suboptions; otherwise, they
cannot take effect.
By default, the DHCP server does not support option 184 and its suboptions.
Related command: dhcp server voice-config.
Example
# Enable the DHCP server to support option 184 and its suboptions in the view of global
address pool 123, setting IP address of NCP to 1.1.1.1, IP address of the alternate NCP
server to 2.2.2.2, state of voice VLAN to enable, ID of voice VLAN to 1, IP address for
failover call routing to 3.3.3.3, and dial string for failover call routing to 99*.
<H3C> system-view
[H3C] dhcp select global all
[H3C] dhcp server ip-pool 123
[H3C-dhcp-pool-123]voice-config ncp-ip 1.1.1.1
[H3C-dhcp-pool-123]voice-config as-ip 2.2.2.2
[H3C-dhcp-pool-123]voice-config voice-vlan 1 enable
[H3C-dhcp-pool-123]voice-config fail-over 3.3.3.3 99*
Syntax
debugging dhcp relay { all | error | event | packet [ client mac mac-address ] }
undo debugging dhcp relay { all | error | event | packet [ client mac mac-address ] }
View
User view
Parameter
9-48
Command Manual – Network Protocol
Comware V3 Chapter 9 DHCP Configuration Commands
client mac: MAC address of the DHCP client and only displays the information of the
specified DHCP client.
Description
Use the debugging dhcp relay command to enable debugging on the DHCP-relay
module.
Use the undo debugging dhcp relay command to disable DHCP-relay module
debugging.
Example
Syntax
View
System view
Parameter
None
Description
Use the dhcp relay information enable command to enable the DHCP relay to
support option 82 globally.
Use the undo dhcp relay information enable command to disable the DHCP relay to
support option 82.
Option 82 supported by the DHCP relay can provide up to 255 sub-options. Among
them, only sub-option 1 and sub-option 2 are available at present, allowing the DHCP
relay to insert into a DHCP packet the MAC address and VLAN ID of the switch port
connected to the DHCP client, and the MAC address of the DHCP relay.
By default, DHCP relay is disabled to support option 82.
Example
9-49
Command Manual – Network Protocol
Comware V3 Chapter 9 DHCP Configuration Commands
Syntax
View
System view
Parameter
Description
Use the dhcp relay information strategy command to configure a strategy for
handling packets with option 82 on the DHCP relay.
Use the undo dhcp relay information strategy command to restore the default
strategy for handling packets with option 82.
When receiving a packet with option 82, the DHCP relay replaces the information in the
option 82 field with the option 82 information of itself.
Example
# Configure the DHCP replay to leave the option 82 information carried in requests
intact.
[H3C] dhcp relay information strategy keep
Syntax
View
Parameter
9-50
Command Manual – Network Protocol
Comware V3 Chapter 9 DHCP Configuration Commands
Description
Use the dhcp relay release command to send an IP address releasing request to a
DHCP server via the DHCP relay.
In the event no IP address of DHCP server has been specified, release packets would
be sent either to all the DHCP servers if this command is configured in system view or
to all the relay addresses configured on an interface if this command is configured in
interface view.
After receiving an IP address release request from the DHCP relay, the DHCP server
releases the IP address from the IP-in-use address pool and moves it to the
lease-expired queue. Normally, this address will experience some time before
participating in allocation again. For the client, however, this address is not released
and will be used until its lease really expires.
A release request takes effect only when the server uses MAC address to identify users.
The DHCP server function of a Comware router uses MAC address to identify users,
while those from most manufactures uses ID.
No debugging information is printed upon execution of this command.
Example
Syntax
View
Any view
Parameter
Description
Use the display dhcp relay address command to view the DHCP relay address
configuration of an interface.
Related command: ip relay address and ip relay address interface.
9-51
Command Manual – Network Protocol
Comware V3 Chapter 9 DHCP Configuration Commands
Example
Syntax
View
Any view
Parameter
None
Description
Use the display dhcp relay statistics command to view the statistics of DHCP relay in
packet errors, DHCP packets received from clients, DHCP packets received from and
sent to servers, and DHCP packets sent to clients (including unicast and broadcast
packets).
Example
9-52
Command Manual – Network Protocol
Comware V3 Chapter 9 DHCP Configuration Commands
Syntax
display dhcprelay-security
View
Any view
Parameter
None
Description
Example
Syntax
View
Interface view
Parameter
Description
Use the ip relay address command to specify the exact location of a DHCP server by
configuring an IP relay address for it on the current interface.
9-53
Command Manual – Network Protocol
Comware V3 Chapter 9 DHCP Configuration Commands
Use the undo ip relay address command to delete one or all relay IP addresses used
by an interface.
By default, no relay IP address has been configured.
Note:
As the packets sent by DHCP client machines in some phases of DHCP are broadcast
packets, the interfaces configured with relay IP addresses must support broadcast. In
other words, this command can be used on the broadcast-supported network
interfaces, Ethernet interfaces for example.
Example
Syntax
View
System view
Parameter
None
Description
Use the ip relay address cycle command to enable the DHCP relay to allocate
servers using the load sharing approach, where the HASH algorithm applies allowing
different clients to use different DHCP servers and the same client to use the same
DHCP server so long as it is possible.
Use the undo ip relay address cycle command to enable the DHCP relay to relay
client requests to all the DHCP servers by broadcasting.
A user is assigned to a server by the DHCP relay based on its MAC address and only
when this MAC address changes may this server be different. That means, a user is
associated with only one DHCP server, but one DHCP server can be associated with
9-54
Command Manual – Network Protocol
Comware V3 Chapter 9 DHCP Configuration Commands
multiple users. With this mechanism, the users of a server may be unable to obtain
addresses after the server fails because they are not assigned to other servers. Two
solutions are available for addressing this problem: recover the server, or delete the
configuration of the server from the DHCP Relay to allow the Relay to assign the users
to other servers.
By default, broadcast applies.
Related command: ip relay address.
Example
# Enable the DHCP Relay to assign servers in the load sharing approach.
[H3C] ip relay address cycle
Syntax
View
System view
Parameter
Description
Use the ip relay address interface command to configure a relay address for the
Ethernet interfaces in a specified range for the purpose of transparent forwarding.
Use the undo ip relay address interface command to delete the configured relay
address.
By default, no relay IP address has been configured.
Related command: ip relay address.
9-55
Command Manual – Network Protocol
Comware V3 Chapter 9 DHCP Configuration Commands
Example
Syntax
View
User view
Parameter
None
Description
Use the reset dhcp relay statistics command to clear the DHCP relay statistics.
Related command: display dhcp relay statistics.
Example
Syntax
View
User view
Parameter
event: Protocol events of the DHCP client, which include address allocation and data
updating.
packet: DHCP packets received and sent by the DHCP client.
9-56
Command Manual – Network Protocol
Comware V3 Chapter 9 DHCP Configuration Commands
Description
Use the debugging dhcp client command to enable debugging on the DHCP client.
Use the undo debugging dhcp client command to disable debugging on the DHCP
client. By default, DHCP client debugging is disabled.
Example
Syntax
View
Any view
Parameter
Description
Use the display dhcp client command to display the statistic information of the DHCP
client. Executing the command attached without the keyword parameter verbose will
display only the brief address allocation information on the DHCP client.
Example
9-57
Command Manual – Network Protocol
Comware V3 Chapter 9 DHCP Configuration Commands
Ethernet2/0:
Current machine state: HALT
The statistic information shows that two interfaces, that is, Ethernet0/0 and Ethernet2/0,
have been configured to be DHCP clients.
Ethernet0/0 has been assigned with the address 169.254.0.2/16 subject to the lease
expiration of 86400 seconds and the current machine state is BOUND. The renewal
timer is set to 43200 seconds, the rebinding timer to 75600 seconds, and the lease
expiration to the period since 2004.09.20 01:05:03 to 2004.09.21 01:05:03. The
selected DHCP server is at 169.254.0.1, the GW at 2.2.2.2, and the DNS server at
1.1.1.1, given the domain name is huawei-3com.com. In addition, the next timeout will
happen 1 second, 56 minutes, and 11 hours later.
The allocation process has not been started at Ethernet2/0 yet. The current machine
state is HALT, which is normally as a result of the DOWN state of the interface.
Note that if more than one default router or DNS server is specified in the response
packet from the server, a DHCP client resolves only the first one.
# Display more details of the DHCP client.
[H3C] display dhcp client verbose
DHCP client statistic information:
Ethernet0/0:
Current machine state: BOUND
Alloced IP: 169.254.0.2 255.255.0.0
Alloced lease: 300 seconds, T1: 150 seconds, T2: 262 seconds
Lease from 2004.09.15 07:11:55 to 2004.09.15 07:16:55
Server IP: 169.254.0.1
Transaction ID = 0x3d8432b1
Client ID: huawei-3com-00e0.fc0a.c3ef-Ethernet0/0
Next timeout will happen after 0 days 0 hours 1 minutes 36 seconds.
Field Description
Interface where the client is allowed to
Ethernet0/0
dynamically obtain an IP address
Current machine state State of the client state machine
Alloced IP IP address allocated to the client
lease Lease period
9-58
Command Manual – Network Protocol
Comware V3 Chapter 9 DHCP Configuration Commands
Field Description
T1 Duration of the renewal timer
T2 Duration of the rebinding timer
Lease from….to…. The starting time and the end time of the lease
Server IP The selected DHCP server address
Transaction ID Transaction ID
Client ID User ID
Default router GW address
DNS server DNS server address
Domain name Domain name
Requested IP The requested IP address
Offered IP The provided IP address
Syntax
ip address dhcp-alloc
undo ip address dhcp-alloc
View
Parameter
None
Description
Use the ip address dhcp-alloc command to enable DHCP client on the Ethernet or
WAN interface for obtaining local IP address.
Use the undo ip address dhcp-alloc command to disable DHCP client.
By default, DHCP client is disabled.
Currently this command is available on following interfaces:
z Ethernet interface (subinterface)
z Synchronous/asynchronous serial interface encapsulated with PPP, HDLC, or
frame relay
z E1 interface.
9-59
Command Manual – Network Protocol
Comware V3 Chapter 9 DHCP Configuration Commands
Example
9-60
Command Manual – Network Protocol
Comware V3 Chapter 10 IP Performance Configuration Commands
Syntax
View
User view
Parameter
Description
Example
*0.129680-IP-8-debug_case:
10-1
Command Manual – Network Protocol
Comware V3 Chapter 10 IP Performance Configuration Commands
*0.157090-IP-8-debug_icmp:
ICMP Send: echo-reply(Type=0, Code=0), Src = 1.1.1.2, Dst = 127.0.0.1
*0.157090-IP-8-debug_icmp:
ICMP Receive: echo-reply(Type=0, Code=0), Src = 1.1.1.2, Dst = 127.0.0.1
Syntax
View
User view
Parameter
Description
Use the debugging tcp event command to enable TCP events debugging.
Use the undo debugging tcp event command to disable TCP events debugging.
There is limitation for the number of debugging switches enabled, that is, only a fixed
number of debugging switches can be enabled at one time (combination of task ID and
socket ID). In addition, when TCP is enabled to receive connection request reactively, a
new socket will be created to establish that connection, and some programs will create
a new task to process the connection, like Telnet server. So to view information about
connection, such parameters as task_id and socket_id cannot be used for filtering.
Example
10-2
Command Manual – Network Protocol
Comware V3 Chapter 10 IP Performance Configuration Commands
*0.630270-SOCKET-8-TCP EVENT:
1043494683: task = Co0(2), socketid = 1,
state CLOSED changed to SYN_SENT
*0.630270-SOCKET-8-TCP EVENT:
1043494683: task = Co0(2), socketid = 1,
sending SYN, seq = 74249530,
LA = 127.0.0.1:1025, FA = 1.1.1.1:23
*0.630270-SOCKET-8-TCP EVENT:
1043494683: task = Co0(2), socketid = 1,
advertising MSS = 512,
LA = 127.0.0.1:1025, FA = 1.1.1.1:23
*0.630270-SOCKET-8-TCP EVENT:
1043494683: task = VTYD(9), socketid = 0,
received MSS = 512,
LA = 1.1.1.1:23, FA = 127.0.0.1:1025
*0.50959090-SOCKET-8-TCP EVENT:
733759463: sending RST to 2.2.2.1:11022
*0.1293330-SOCKET-8-TCP EVENT:
1043495346: task = Co0(2), socketid = 1,
connection refused because remote sent RST!
LA = 1.1.1.1:1026, FA = 1.1.1.2:21
<H3C> display debugging
TCP:
TCP event debugging is on for task any socket any
Syntax
View
User view
10-3
Command Manual – Network Protocol
Comware V3 Chapter 10 IP Performance Configuration Commands
Parameter
None
Description
Use the debugging tcp md5 command to enable the MD5 authentication debugging of
the TCP connection.
Use the undo debugging tcp md5 command to disable the MD5 authentication
debugging of the TCP connection.
Example
Syntax
View
User view
Parameter
Description
Use the debugging tcp packet command to enable the debugging of TCP packet. The
number of debugging switches users can enable is limited, that is, at the same time
only a fixed number of debugging switches can be enabled (combination of task ID and
socket ID).
Use the undo debugging tcp packet command to disable the debugging of TCP
packet.
Example
10-4
Command Manual – Network Protocol
Comware V3 Chapter 10 IP Performance Configuration Commands
Syntax
View
User view
Parameter
Description
Use the debugging udp packet command to enable the debugging of UDP packet.
The number of debugging switches users can enable is limited, that is, at the same time
only a fixed number of debugging switches can be enabled (combination of task ID and
socket ID).
Use the undo debugging udp packet command to disable the debugging of UDP
packet.
Example
10-5
Command Manual – Network Protocol
Comware V3 Chapter 10 IP Performance Configuration Commands
Syntax
display fib
View
Any view
Parameter
None
Description
Use the display fib command to view the summary of the Forwarding Information
Base.
This command outputs the Forwarding Information Base in a list, in which each line
represents one route. The following points are included:
z Destination address/mask length
z Next hop
z The current flag, which is expressed in the combination of G, H and U. G
represents Gateway, H is Host (host route), and U is UP (available).
z Time stamp
z Outbound interface
Example
10-6
Command Manual – Network Protocol
Comware V3 Chapter 10 IP Performance Configuration Commands
Syntax
View
Any view
Parameter
Description
Use the display fib acl command to filter and display FIB information.
According to ACL number, you can view the FIB table entries matching the filtering
rules in a format.
When an ACL number in the range 2000 to 2999 is entered, the corresponding ACL will
be searched. If no ACL is found, all FIB table entries information will be displayed; and
if such an ACL is found, the FIB table entries information will be output in a format.
If the number of FIB table entries matching the filtering rules is 0, the following
information will be output:
Route entry matched by access-list 2000:
Summary count: 0
If the number of FIB table entries matching the filtering rules is not 0, the FIB table entry
information will be output in the following format:
Route entry matched by access-list 2000:
Summary count: 1
Destination/Mask Nexthop Flag TimeStamp Interface
127.0.0.0/8 127.0.0.1 U t[0] InLoopBack0
Example
10-7
Command Manual – Network Protocol
Comware V3 Chapter 10 IP Performance Configuration Commands
Syntax
View
Any view
Parameter
text: Character.
Description
Use the display fib command to output the lines related to the line containing the
character string text in the buffer according to the regular expression.
Use the display fib | begin text command to view the lines beginning from the line
containing the character string text to the end line of the buffer.
Use the display fib | include text command to just view the lines containing the
character string text.
Use the display fib | exclude text command to view the lines not containing the
character string text.
Example
# Display the lines beginning from the line containing the character string “169.254.0.0”
to the end line of the buffer:
<H3C> display fib | begin 169.254.0.0
Destination/Mask Nexthop Flag TimeStamp Interface
169.254.0.0/16 2.1.1.1 U t[0] Ethernet0/0/0
2.0.0.0/16 2.1.1.1 U t[0] Ethernet0/0/0
127.0.0.0/8 127.0.0.1 U t[0] InLoopBack0
# Display all the lines not containing the character string ”169.254.0.0”:
<H3C> display fib | exclude 169.254.0.0
Destination/Mask Nexthop Flag TimeStamp Interface
2.0.0.0/16 2.1.1.1 U t[0] Ethernet0/0/0
127.0.0.0/8 127.0.0.1 U t[0] InLoopBack0
10-8
Command Manual – Network Protocol
Comware V3 Chapter 10 IP Performance Configuration Commands
Syntax
View
Any view
Parameter
Description
Use the display fib ip-prefix command to filter and display FIB information by
prefix-list name in certain format.
If no FIB entry matches the specified prefix-list, the system displays the prompt
indicating that the number of FIB entry matches is 0; if the specified prefix-list name
cannot be found, no FIB entry is displayed; if the FIB table entries after filtering is not 0,
they are output in certain format.
If no FIB table entry matching the prefix list, the following information will be output:
Route entry matched by prefix-list abc1:
Summary count: 0
If the number of FIB table entries after filtering is not 0, FIB table entry information will
be output in the following format:
Route entry matched by prefix-list abc2:
Summary count: 1
Destination/Mask Nexthop Flag TimeStamp Interface
127.0.0.0/8 127.0.0.1 U t[0] InLoopBack0
Example
# Display the FIB table entries matched by the prefix list abc0.
<H3C> display fib ip-prefix abc0
Route Entry matched by prefix-list abc0:
Summary count: 4
Destination/Mask Nexthop Flag TimeStamp Interface
127.0.0.0/8 127.0.0.1 U t[0] InLoopBack0
127.0.0.1/32 127.0.0.1 U t[0] InLoopBack0
169.0.0.0/8 2.1.1.1 SU t[0] Ethernet 0/0/0
169.0.0.0/15 2.1.1.1 SU t[0] Ethernet 0/0/0
10-9
Command Manual – Network Protocol
Comware V3 Chapter 10 IP Performance Configuration Commands
Syntax
View
Any view
Parameter
Description
Example
# Display the FIB table entries whose destination address matches169.253.0.0 longest
with the natural mask range.
<H3C> display fib 169.253.0.0 longer
Destination/Mask Nexthop Flag TimeStamp Interface
169.0.0.0/16 2.1.1.1 U t[0] Ethernet0/0/0
10-10
Command Manual – Network Protocol
Comware V3 Chapter 10 IP Performance Configuration Commands
# Display the FIB entries whose destination address is within the range from
69.254.0.0/16 to 169.254.0.6/16.
<H3C> display fib 169.254.0.0 255.255.0.0 169.254.0.6 255.255.0.0
Destination/Mask Nexthop Flag TimeStamp Interface
169.254.0.1/16 2.1.1.1 U t[0] Ethernet0/0/0
Syntax
View
Any view
Parameter
None
Description
Use the display fib statistics command to display the total numbers of FIB table
entries.
Example
Syntax
View
Any view
Parameter
None
Description
Use the display icmp statistics command to view statistics about ICMP messages.
Related command: display interface.
10-11
Command Manual – Network Protocol
Comware V3 Chapter 10 IP Performance Configuration Commands
Example
Table 10-1 Description of the output information of the display icmp statistics
command
Field Description
Input: bad formats Number of input packets in bad format
10-12
Command Manual – Network Protocol
Comware V3 Chapter 10 IP Performance Configuration Commands
Syntax
View
Any view
Parameter
Description
Example
The above information indicates that the latest cache contains the data flow from port
1463 at 1.1.3.149 to port 23 at 10.10.26.30, with a protocol number 6, that is, the TCP
data, ingress is Ethernet0/0/0 and the egress is Ethernet1/0/0.
Syntax
View
Any view
Parameter
Description
Use the display ip interface command to view IP-related information about the
specified or all interfaces.
10-13
Command Manual – Network Protocol
Comware V3 Chapter 10 IP Performance Configuration Commands
Example
Syntax
10-14
Command Manual – Network Protocol
Comware V3 Chapter 10 IP Performance Configuration Commands
View
Any view
Parameter
Description
Use the display ip interface brief command to view IP-related summary about the
specified or all interfaces.
By default, if no interface is specified, the IP-related summary about all interfaces is
displayed.
Related command: display interface, display ip interface.
Example
Syntax
View
Any view
Parameter
10-15
Command Manual – Network Protocol
Comware V3 Chapter 10 IP Performance Configuration Commands
Description
Use the display ip socket command to display the information about all sockets in the
current system.
Example
10-16
Command Manual – Network Protocol
Comware V3 Chapter 10 IP Performance Configuration Commands
Syntax
display ip statistics
View
Any view
Parameter
None
Description
Use the display ip statistics command to view IP traffic statistics information. This
command is used to display such statistics information as IP packet transmit/receive,
packet assembly/disassembly, which is helpful to fault diagnosis.
Related command: display interface, display ip interface, and reset ip statistics.
Example
Field Description
Input: sum Sum of input packets
Number of received packets whose destination is the
local
local device
bad protocol Number of packets with wrong protocol number
10-17
Command Manual – Network Protocol
Comware V3 Chapter 10 IP Performance Configuration Commands
Field Description
bad format Number of packets in bad format
bad checksum Number of packets with wrong checksum
bad options Number of packets that has wrong options
Output: forwarding Number of forwarded packets
local Number of packets that are sent by the local device
dropped Number of dropped packets during transmission
no route Number of packets that cannot be routed
compress fails Number of packets that cannot be compressed
Fragment: input Number of input fragments
output Number of output fragments
dropped Number of dropped fragments
fragmented Number of packets that are fragmented
couldn't fragment Number of packets that cannot be fragmented
Note:
When fast forwarding is functioning, the sum of input packets and the number of
forwarded packets only count in unicast packets. The likelihood exists that some other
types of packets are counted in, for example, broadcast packets sent/received before
fast forwarding is enabled and/or other types of packets sent/received after fast
forwarding fails.
Syntax
View
Any view
Parameter
None
10-18
Command Manual – Network Protocol
Comware V3 Chapter 10 IP Performance Configuration Commands
Description
Use the display tcp statistics command to view TCP traffic statistic information.
The command is used to display the traffic statistic information of all the active TCP
connections. Statistics information is classified into two parts: receiving and sending,
and each part is further classified according to different types of packets. For example,
for receiving packets, there are retransmission packets number, keep-alive detection
packets number, etc. Also the statistics closely related to connection are displayed,
such as connection number received, retransmission packets number and keep-alive
detection packets number. The unit of statistics results is packet, and sometimes is
byte.
Related command: display tcp status.
Example
10-19
Command Manual – Network Protocol
Comware V3 Chapter 10 IP Performance Configuration Commands
10-20
Command Manual – Network Protocol
Comware V3 Chapter 10 IP Performance Configuration Commands
Syntax
View
Any view
Parameter
None
Description
Use the display tcp status command to monitor TCP connection any time.
Related command: display local-user.
Example
Syntax
View
Any view
Parameter
None
Description
Use the display udp statistics command to view TCP traffic statistic information.
The command is used to display the traffic statistic information of all the active TCP
connections. Statistics information is classified into two parts: receiving and sending,
and each part can be further classified according to different types of packets, as
checksum packets and error packets, for example. Moreover there are statistics closely
10-21
Command Manual – Network Protocol
Comware V3 Chapter 10 IP Performance Configuration Commands
Example
Table 10-3 Description on the fields of the display udp statistics command
Field Description
Received packet: Statistics about the received packets
10-22
Command Manual – Network Protocol
Comware V3 Chapter 10 IP Performance Configuration Commands
Field Description
Sent packet: Statistics about the transmitted packets
Total: 0 Total number of the transmitted packets
Syntax
View
System view
Parameter
None
Description
Use the icmp redirect send command to enable the sending of ICMP Redirect
messages.
Use the undo icmp redirect send command to disable the sending of ICMP
messages.
By default, the system can send ICMP Redirect messages.
Example
10.1.22 ip fast-forwarding
Syntax
View
Interface view
Parameter
10-23
Command Manual – Network Protocol
Comware V3 Chapter 10 IP Performance Configuration Commands
Description
Example
Syntax
View
User view
Parameter
None
Description
Use the reset ip fast-forwarding cache command to reset the unicast fast forwarding
cache.
After being cleared, the fast forwarding table does not contain any fast forwarding entry.
Example
10-24
Command Manual – Network Protocol
Comware V3 Chapter 10 IP Performance Configuration Commands
Syntax
reset ip statistics
View
User view
Parameter
None
Description
Use the reset ip statistics command to clear the IP statistics information. In some
special cases, it is necessary to clear the IP statistics information and perform new
statistics.
Related command: display ip interface and display ip statistics.
Example
Syntax
View
User view
Parameter
None
Description
Use the reset tcp statistics command to clear TCP traffic statistic information.
Related command: display tcp statistics.
10-25
Command Manual – Network Protocol
Comware V3 Chapter 10 IP Performance Configuration Commands
Example
Syntax
View
User view
Parameter
None
Description
Use the reset udp statistics command to clear the UDP statistics information.
Example
Syntax
View
Interface view
Parameter
Value: The threshold for the TCP packet to be fragmented, with the value ranging from
128 to 2048.
Description
Use the tcp mss command to designate a value as a threshold for TCP packets to be
fragmented. The undo tcp mss command is used to prevent TCP packets from being
fragmented. As the default MTU of the interface being 1500 bytes, this restricts the total
length of encryption packet head + data link expenditure + IP packet head + TCP
10-26
Command Manual – Network Protocol
Comware V3 Chapter 10 IP Performance Configuration Commands
packet to 1500 bytes. So the dear length of TCP packets to fragment may be about
1200 bytes.
By default, TCP packets are not fragmented.
Example
Syntax
View
System view
Parameter
time-value: TCP finwait timer value, in second, with the value range of 76 to 3600.
Description
Use the tcp timer fin-timeout command to configure the TCP finwait timer.
Use the undo tcp timer fin-timeout command to restore the default value of the timer.
By default, TCP finwait timer value is 675 seconds.
When the TCP connection status changes from FIN_WATI_1 to FIN_WAIT_2, the
finwait timer is enabled. If FIN packet is not received before the timeout of finwait timer,
the TCP connection will be closed.
The configuration of this parameter needs to be implemented under the guidance of the
technical support engineers.
Related command: tcp timer syn-timeout and tcp window.
Example
Syntax
10-27
Command Manual – Network Protocol
Comware V3 Chapter 10 IP Performance Configuration Commands
View
System view
Parameter
time-value: TCP synwait timer value in second, with the value range of 2 to 600.
Description
Use the tcp timer syn-timeout command to configure the TCP synwait timer.
Use the undo tcp timer syn-timeout command to restore the default value of the
timer.
By default, TCP synwait timer value is 75 seconds.
When a syn packet is sent, TCP enables the synwait timer. If the response packet is not
received before synwait timeout, the TCP connection will be disabled.
The configuration of this parameter needs to be implemented under the guidance of the
technical support engineers.
Related command: tcp timer fin-timeout and tcp window.
Example
Syntax
View
System view
Parameter
Description
Use the tcp window command to configure the size of the transceiving buffer of the
connection-oriented Socket.
Use the undo tcp window command to restore the default size of the buffer, or 8 KB.
10-28
Command Manual – Network Protocol
Comware V3 Chapter 10 IP Performance Configuration Commands
The configuration of this parameter needs to be implemented under the guidance of the
technical support engineers.
Related command: tcp timer fin-timeout, tcp timer syn-timeout.
Example
Syntax
ip forward-broadcast [ acl-number ]
undo ip forward-broadcast
View
Interface view
Parameter
Description
Example
10-29
Command Manual – Network Protocol
Comware V3 Chapter 10 IP Performance Configuration Commands
Syntax
ip multicast-fast-forwarding
undo ip multicast-fast-forwarding
View
Interface view
Parameter
None
Description
Example
Syntax
View
User view
Parameter
None
10-30
Command Manual – Network Protocol
Comware V3 Chapter 10 IP Performance Configuration Commands
Description
Example
Syntax
View
Any view
Parameter
Description
Example
# Display summary information about all fast forwarding table entries related to a
specified multicast address in the cache.
<H3C> display ip multicast-fast-forwarding cache 225.1.2.3
Multicasting fast-forwarding cache: total 120 items
Multicasting fast-Forwarding cache by selected group: 10 items
----------------------------------------------------------------------
10-31
Command Manual – Network Protocol
Comware V3 Chapter 10 IP Performance Configuration Commands
Field Description
Total number of fast forwarding table entries in
Multicasting fast-forwarding cache
the multicast fast forwarding cache
Number of fast forwarding table entries related
Multicasting fast-Forwarding
to the specified multicast group in the
cache by selected group
multicast fast forwarding cache
Source Address:Port Source address and source port number
Group Address:Port Multicast address and destination port number
Protocol number, which is usually 0x11 for the
Prot
UDP protocol.
RecvInterface Inbound interface
SendInterface Outbound interface
Status of the outbound interface, that is,
L2H
whether the link layer header is present.
10-32
Command Manual – Network Protocol
Comware V3 Chapter 11 NAT Configuration Commands
Syntax
View
System view
Parameter
permit: Performs limit, with the upper limit and lower limit being the default value.
deny: Does not limit.
Description
Use the connection-limit default command to configure the action when the limit
policy is not available.
Use the undo connection-limit default command to delete the action.
The connection-limit default command can be configured repeatedly. The new one
overwrites the previous one.
Example
Syntax
View
System view
11-1
Command Manual – Network Protocol
Comware V3 Chapter 11 NAT Configuration Commands
Parameter
Description
Use the connection-limit default amount command to set default threshold for
connection limit.
Use the undo connection-limit default amount command to delete the threshold.
By default, the upper limit is 50 and the lower limit is 20.
Example
# Set the default threshold of connection limit, with the upper limit being 100 and lower
limit being 20.
<H3C> system-view
[H3C] connection-limit default amount upper-limit 100 lower-limit 20
Syntax
connection-limit enable
undo connection-limit enable
View
System view
Parameter
None
Description
Use the connection-limit enable command to enable the connection limit function.
Use the undo connection-limit enable command to disable the function.
By default, the function is disabled.
Example
11-2
Command Manual – Network Protocol
Comware V3 Chapter 11 NAT Configuration Commands
Syntax
View
System view
Parameter
Description
Use the connection-limit policy command to create connection limit policy and enter
its view.
Use the undo connection-limit policy command to delete the policy.
Example
Syntax
debugging connection-limit
undo debugging connection-limit
View
User view
Parameter
None
Description
11-3
Command Manual – Network Protocol
Comware V3 Chapter 11 NAT Configuration Commands
Example
Syntax
View
User view
Parameter
Description
Use the debugging nat command to enable the NAT debugging function.
Use the undo debugging nat command to disable the NAT debugging function.
Example
None
Syntax
View
Any view
Parameter
11-4
Command Manual – Network Protocol
Comware V3 Chapter 11 NAT Configuration Commands
Description
Use the display connection-limit policy command to display connection limit policy.
Example
Syntax
View
Any view
Parameter
11-5
Command Manual – Network Protocol
Comware V3 Chapter 11 NAT Configuration Commands
Description
Use the display connection-limit statistics command to display the connection limit
statistics.
Users can view the desired connection limit statistics flexibly by executing this
command. Statistics of all connections will be displayed when no other parameters are
followed with this command.
Example
Syntax
View
Any view
Parameter
11-6
Command Manual – Network Protocol
Comware V3 Chapter 11 NAT Configuration Commands
source global global-addr: Only displays the NAT entry with address as global-addr
after NAT.
source inside inside-addr: Only displays the NAT entry with internal address as
inside-addr.
destination ip-addr: Displays the NAT table items of a special IP destination.
Description
Use the display nat command to display the configuration of address translation.
Users can verify if the configuration of address translation is correct according to the
output information after execution of this command. When address translation
connection information is displayed, the parameters of global-addr and inside-addr can
be specified for the display nat session command simultaneously.
Example
Field Description
Protocol number. VPN indicates that the entry corresponds to
Protocol
a MPLS VPN virtual route forwarding instance.
Translated external address (source address) and port (source
port).
GlobalAddr Port Note: Since a nat session entry is dynamically generated for
packets sent from the internal network to external networks,
the naming and meaning of the fields is from the perspective of
the internal network.
Internal address (source address) and port (source port) to be
InsideAddr Port
translated.
DestAddr Destination address of the packet.
Port Destination port of the packet.
11-7
Command Manual – Network Protocol
Comware V3 Chapter 11 NAT Configuration Commands
Field Description
Time after which the entry expires from now on, in the format of
Left
hh:mm:ss.
Note:
When you use NOPAT to translate address, two NAT entries can be seen using the
display nat command, NOPAT entry and PAT entry. By doing this, the address
translation for access to the external network only happens when the address and port
number are matched, thus enhancing network security.
Syntax
View
Any view
Parameter
11-8
Command Manual – Network Protocol
Comware V3 Chapter 11 NAT Configuration Commands
Description
Use the display nat connection-limit command to display the NAT-related connection
limit statistics.
Users can view the desired connection limit statistics flexibly by executing this
command. Statistics of all NAT-related connections will be displayed when no other
parameters are followed with this command.
Example
11.1.11 limit
Syntax
View
11-9
Command Manual – Network Protocol
Comware V3 Chapter 11 NAT Configuration Commands
Parameter
Description
Use the limit command to create rule under corresponding connection limit policy.
Use the undo limit command to delete the rule under corresponding connection limit
policy.
When a rule is bound with NAT, it cannot be modified or deleted. To modify or delete it
needs to first unbind the rule from NAT.
Example
# Create a rule under policy 1 to use ACL3000 to limit the source address, with the
upper limit being 100 and lower limit being 10.
<H3C> system-view
[H3C] connection-limit policy 1
[H3C-connection-limit-policy-1] limit 0 acl 3000 per-source amount 100 10
Syntax
11-10
Command Manual – Network Protocol
Comware V3 Chapter 11 NAT Configuration Commands
View
System view
Parameter
Description
Caution:
Example
# Configure an address pool from 202.110.10.10 to 202.110.10.15, with its NAT pool ID
being 1.
[H3C] nat address-group 1 202.110.10.10 202.110.10.15
Syntax
nat aging-time { default | { dns | ftp-ctrl | ftp-data | icmp | pptp | tcp | tcp-fin |
tcp-syn | udp } seconds }
View
System view
Parameter
11-11
Command Manual – Network Protocol
Comware V3 Chapter 11 NAT Configuration Commands
dns: Sets the address translation lifetime for DNS to 60 seconds (default).
ftp-ctrl: Sets the address translation lifetime for FTP control links to 7200 seconds
(default).
ftp-data: Sets the address translation lifetime for FTP data links to 240 seconds
(default).
icmp: Sets the address translation lifetime for ICMP to 60 seconds (default).
pptp: Sets the address translation lifetime for PPTP to 86400 seconds (default).
tcp: Sets the address translation lifetime for TCP to 86400 seconds (default).
tcp-fin: Sets the address translation lifetime for TCP FIN or TCP RST connections to
60 seconds (default).
tcp-syn: Sets the address translation lifetime for TCP SYN connections to 60 seconds
(default).
udp: Sets the address translation lifetime for UDP to 300 seconds (default).
seconds: Time value in the range 10 to 86400 (24 hours).
Description
Use the nat aging-time command to set the lifetime of NAT connections.
This command is used to set the lifetime of address translation connection in seconds,
and different time values are set for different types of protocols.
Example
Syntax
View
System view
Parameter
11-12
Command Manual – Network Protocol
Comware V3 Chapter 11 NAT Configuration Commands
Description
Use the nat alg command to enable the application gateway function of NAT.
Use the undo nat alg command to disable the application gateway function of NAT.
By default, the application gateway function of NAT is enabled.
Example
Syntax
View
System view
Parameter
domain-name: Valid domain name that can be correctly translated by external DNS
servers.
global-addr: Public IP address that outside hosts can access.
global-port: Service port number that outside hosts can access.
tcp: Sets the transport protocol to TCP.
udp: Sets the transport protocol to UDP.
Description
Use the nat dns-map command to configure a NAT entry, mapping a domain name to a
triplet of external IP address, port number, and protocol type.
Use the undo nat dns-map command to remove the NAT entry for a domain name.
You may configure your internal hosts to access internal servers by domain name. In
case your intranet has no DNS server, an external DNS server will be involved to
provide domain name resolution service.
When an internal host attempts to access an internal server by domain name, its DNS
request is first forwarded to an external DNS server where the domain name is resolved
11-13
Command Manual – Network Protocol
Comware V3 Chapter 11 NAT Configuration Commands
to a public IP address. The NAT server, however, could not identify the desired internal
server with this public IP address only. To allow it to correctly identify an internal server
by domain name, you must create a NAT entry for the domain name of the internal
server. This entry must include a service port number in addition to the public IP
address.
By default, no map entry exists for any domain name.
You may create up to 16 NAT entries for domain names.
Example
# Map a domain name to a triplet of public IP address, port number, and protocol type.
[H3C] nat dns-map www.abc.com 202.112.0.1 80 tcp
Syntax
View
Interface view
Parameter
Description
Use the nat outbound command to associate an ACL with an address pool, indicating
that the address specified in the acl-number can be translated by using address pool
group-number.
Use the undo nat outbound command to remove the corresponding address
translation.
Translation of the source address of the packet that conforms to the ACL is
accomplished by configuring the association between the ACL and the address pool.
The system performs address translation by selecting one address in the address pool
or by directly using the IP address of the interface. Users can configure different
11-14
Command Manual – Network Protocol
Comware V3 Chapter 11 NAT Configuration Commands
address translation associations at the same interface. The corresponding undo form
of the command can be used to delete the related address translation association.
Normally, this interface is connected to ISP, and serves as the exit interface of the
inside network.
The command without the address-group parameter implements the "easy-ip" feature.
When performing address translation, the IP address of the interface is used as the
translated address and the ACL can be used to control which addresses can be
translated.
Example
# Allow address translation and use the addresses of address pool 1 for address
translation. During translation, the information of TCP/UDP port is used.
[H3C-Serial0/0/0] nat outbound 2001 address-group 1
# Configuration of simple address translation (Not using the TCP/UDP port information
to perform the address translation)
[H3C-Serial1/0/0] nat outbound 2001 address-group 1 no-pat
# The configuration that can be used when performing address translation by using the
IP address of interface Serial0/0/0 directly.
[H3C-Serial0/0/0] nat outbound 2001
Syntax
11-15
Command Manual – Network Protocol
Comware V3 Chapter 11 NAT Configuration Commands
View
Interface view
Parameter
Description
Use the nat outbound interface command to associate an ACL with an interface and
to use the address of the interface as the target address in the translations for the
packets matching the ACL. After that, this address substitutes for the source addresses
of the packets matching the ACL.
Use the undo nat outbound interface command to remove an ACL to interface
association.
Currently, the interface specified in this command can only be a loopback interface.
Example
# Use the address of interface loopback 0 as the target address for address translation.
[H3C] interface loopback0
[H3C-LoopBack0] ip address 202.38.160.106
[H3C-LoopBack0] quit
[H3C] acl number 2000
[H3C-acl-basic-2000] rule permit source 10.110.12.0 0.0.0.255
[H3C-acl-basic-2000] quit
[H3C] interface serial3/0/0
[H3C-Serial3/0/0] nat outbound 2 interface loopback 0
Syntax
View
Interface view
Parameter
None
11-16
Command Manual – Network Protocol
Comware V3 Chapter 11 NAT Configuration Commands
Description
Use the nat outbound static command to apply on the interface one-to-one address
translation configured using the nat static command.
Example
Syntax
View
System view
Parameter
Description
11-17
Command Manual – Network Protocol
Comware V3 Chapter 11 NAT Configuration Commands
Note:
Overlapping address pools and temporary address pools come in pairs. When
converting an overlapping address to a temporary address, the following conventions
are followed:
z Temporary address = Start address of the temporary address pool + (overlapping
address – start address of the overlapping address pool)
z Overlapping address = Start address of the overlapping address pool + (temporary
address – start address of the temporary address pool)
Example
# Configure an overlapping address pool map entry, setting address pool pair number
to 0, start address of the overlapping address pool to 171.69.100.0, start address of the
temporary address pool to 192.168.0.0, and subnet mask to 24.
[H3C] nat overlapaddress 0 171.69.100.0 192.168.0.0 address-mask 24
Syntax
View
Interface view
Parameter
acl-number: ACL in the range 2000 to 3999. When configured with an ACL, the nat
server command allows the NAT server to translate addresses for packets sent by
internal servers only when the source and destination addressses in the packets are
permitted by the ACL.
11-18
Command Manual – Network Protocol
Comware V3 Chapter 11 NAT Configuration Commands
vpn-instance-name: The virtual route forwarding instance of the VPN the internal server
belongs to. If the parameter is not configured, it represents that the internal server
belongs to an ordinary private network, other than one MPLS VPN.
global-addr: An IP address provided for the outside to access (a legal IP address).
global-port: A service port number provided for the outside to access. If ignored, its
value shall be the same with the host-port’s value.
current-interface: Uses the address of the current public network interface of the
router as the public network address of NAT server.
interface interface-type interface-number: Uses the address of other interfaces as the
public network address of the NAT server. Currently, only Loopback interface is
supported and must be configured on a router.
host-addr: IP address of the server in internal LAN.
host-port: Service port number provided for a server in the range of 0 to 65535, and the
common used port numbers are replaced by key words. For example, www service port
number is 80, which can also be represented by www. ftp service port number is 21,
and ftp can also stands for it. If the inside-port is 0, it indicates that all the types of
services can be provided and the key word any can be used to stand for it in this
situation. If the parameter is not configured, it is considered as the case of any, which is
the same as that there is a static connection between global-addr and host-addr. When
the host-port is configured as any, the global-port also should be any, otherwise the
configuration is illegal.
global-port1, global-port2: Specifies a port range through two port numbers, forming a
corresponding relation with the internal host address range. global-port2 must be larger
than global-port1.
host-addr1, host-addr2: Defines a group of consecutive address ranges, which
respectively one-to-one matches the port ranges defined above. host-addr2 must be
bigger than host-addr1. The number of the address ranges should be the same as the
number of ports defined by global-port1 and global-port2.
pro-type: The protocol type carried by IP, possibly being a protocol ID, or a key word as
a substitution. For example: icmp (its protocol ID is 1), tcp (its protocol ID is 6), udp (its
protocol ID is 17).
Description
Use the nat server command to define a mapping table for internal servers. Users can
access the internal server with the address and port as host-addr and host-port
respectively through the address port defined by global-addr and global-port.
Use the undo nat server command to remove the mapping table.
Through this command, you can configure some internal network servers for outside
use. The internal server can locate in the ordinary private network or in MPLS VPN. For
example, www, ftp, telnet, kpop3, dns and so on.
11-19
Command Manual – Network Protocol
Comware V3 Chapter 11 NAT Configuration Commands
Example
# Specify the IP address of the interior www server of the LAN as 10.110.10.10, the IP
address of the interior ftp server as 10.110.10.11. It is expected that the outside can
access WEB through http:// 202.110.10.10:8080 and connect FTP web site through
ftp://202.110.10.10. Suppose that Serial0/0/0 is connected to ISP.
[H3C-Serial0/0/0] nat server protocol tcp global 202.110.10.10 8080 inside
10.110.10.10 www
[H3C] ip vpn-instance vrf10
[H3C-vpn-instance] route-distinguisher 100:001
[H3C-Serial0/0/0] nat server protocol tcp global 202.110.10.10 inside
10.110.10.11 ftp
# Specify one interior host 10.110.10.12, expecting that the host of the exterior network
can ping it with ping 202.110.10.11 command.
[H3C-Serial0/0/0] nat server protocol icmp global 202.110.10.11 inside
10.110.10.12
# By the command below, the internal ftp server of VPN vrf10 can be removed.
[H3C-Serial0/0/0] undo nat server protocol tcp global 202.110.10.11 8070
inside 10.110.10.11 ftp
# Specify an outside address as 202.110.10.10, and map the ports ranging from 1001
to 1100 to the addresses of 10.110.10.1 to 10.110.10.100 respectively to access ftp
service inside VPN vrf10. 202.110.10.10:1001 accesses 10.110.10.1 and
202.110.10:1002 accesses 10.110.10.2, etc.
[H3C-Serial0/0/0] nat server protocol tcp global 202.110.10.10 1001 1100
inside 10.110.10.1 10.110.10.100 telnet
11-20
Command Manual – Network Protocol
Comware V3 Chapter 11 NAT Configuration Commands
# Specify the address of the current public network interface of the router as the public
network address of NAT server. Configure FTP interface mapping of an internal server
with the IP address of 1.0.0.1 to provide service for public network users.
[H3C-Ethernet0/0/0] nat server protocol tcp global current-interface ftp
inside 1.0.0.1 ftp
# Specify the IP address obtained by Dialer 0 interface as the public network address of
NAT server.
[H3C-Dialer0] nat server protocol tcp global current-interface 5000 inside
10.0.0.10 5000
Syntax
View
System view
Parameter
Description
Example
# Bind an internal private IP address with a public IP address for one-to-one address
translation.
[H3C] nat static 192.168.1.1 2.2.2.2
11-21
Command Manual – Network Protocol
Comware V3 Chapter 11 NAT Configuration Commands
Syntax
View
System view
Parameter
Description
Use the nat static inside command to create a static net-to-net NAT entry. When the
router translates addresses based on this type of NAT entry, it translates the network
address portion without touching the host address portion.
Use the undo nat static inside command to delete a static net-to-net NAT entry.
The global-address can be any address. Then it will be calculated by combining with
the mask and the length of the mask.
The static NAT entries configured using the nat static inside command must not
conflict with those configured using the nat static command.
By default, no static net-to-net NAT entry is configured.
Note:
When you use the nat static inside command, ensure that the translated global
address does not include the IP address used by the network devices.
11-22
Command Manual – Network Protocol
Comware V3 Chapter 11 NAT Configuration Commands
Example
# Configure a static net-to-net NAT entry, allowing the addresses in the range 10.1.1.1
to 10.1.1.100 to be translated into addresses on the segment 211.1.1.0 with their host
addresses unchanged.
[H3C] nat static inside ip 10.1.1.1 10.1.1.100 global 211.1.1.0 255.255.255.0
Syntax
View
System view
Parameter
policy-number: The policy number of NAT connection limit, in the range 0 to 19.
Description
Use the nat connection-limit-policy command to specify the NAT connection limit
policy.
Use the undo nat connection-limit-policy command to delete the policy.
By default, the policy is not bound with NAT.
The nat connection-limit-policy command can be configured repeatedly. The new
configuration overwrites the previous one.
Example
Syntax
View
User view
11-23
Command Manual – Network Protocol
Comware V3 Chapter 11 NAT Configuration Commands
Parameter
slot slot-number: Number of the interface card, which only exists in the distributed
environment.
session: Clears the information of the address translation table.
Description
Use the reset nat command to clear up the mapping tables of address translation in the
memory and release all the memory dynamically allocated to store the mapping tables.
Example
11-24
Command Manual – Network Protocol Chapter 12 IP Unicast Policy Routing Configuration
Comware V3 Commands
Syntax
View
Route-policy view
Parameter
Description
Use the apply default output-interface command to set default forwarding interface
for packets.
Use the undo apply default output-interface command to cancel the configuration of
the default forwarding interface of packets.
This command is used to set default forwarding interface for the matched IP packet and
you can set up to two default forwarding interfaces. The clause is valid for the packet
whose route has not been found.
Related command: apply ip-precedence, apply ip-address next-hop, apply
output-interface, apply ip-address default next-hop.
Example
12-1
Command Manual – Network Protocol Chapter 12 IP Unicast Policy Routing Configuration
Comware V3 Commands
Syntax
View
Route-policy view
Parameter
Description
Use the apply ip-address default next-hop command to set the default next hop of a
packet.
Use the undo apply ip-address default next-hop command to cancel the configured
default packet next hop.
This command is only valid for the packet whose route has not been found.
Use this command to set the next hop where the matched IP packets are to be
forwarded. You can set at most two next hop interfaces.
Related command: apply ip-precedence, apply output-interface, apply default
output-interface, and apply ip-address next-hop.
Example
Syntax
View
Route-policy view
Parameter
12-2
Command Manual – Network Protocol Chapter 12 IP Unicast Policy Routing Configuration
Comware V3 Commands
Description
Use the apply ip-address next-hop command to set the packet next hop.
Use the undo apply ip-address next-hop command to cancel the configuration about
the next hop.
This command is used to set the next hop for the matched IP packet and at most two
next hops can be specified. The next hop should be adjacent to this device.
Related command: apply ip-precedence, apply output-interface, apply default
output-interface, apply ip-address default next-hop.
Example
Syntax
apply ip-dscp { value | af11 | af12 | af13 | af21 | af22 | af23 | af31 | af32 | af33 | af41 |
af42 | af43 | be | cs1 | cs2 | cs3 | cs4 | cs5 | cs6 | cs7 | ef }
undo apply ip-dscp
View
Route-policy view
Parameter
Description
Use the apply ip-dscp command to configure to modify the packet DSCP value
matching the policy.
Use the undo ip-dscp command to delete the configuration.
Example
12-3
Command Manual – Network Protocol Chapter 12 IP Unicast Policy Routing Configuration
Comware V3 Commands
Syntax
View
Route-policy view
Parameter
value: The preference value. There are totally 8 (in the range 0 to 7) preferences:
0 routine
1 priority
2 immediate
3 flash
4 flash-override
5 critical
6 internet
7 network
Description
Example
Syntax
12-4
Command Manual – Network Protocol Chapter 12 IP Unicast Policy Routing Configuration
Comware V3 Commands
View
Route-policy view
Parameter
Description
Example
Syntax
display ip policy
View
Any view
Parameter
None
Description
Use the display ip policy command to view the routing policies of local and configured
interface policy routings.
This command is used to display the routing policies of local and configured interface
policy routings.
12-5
Command Manual – Network Protocol Chapter 12 IP Unicast Policy Routing Configuration
Comware V3 Commands
Example
# Display the routing policies of the local and configured interface policy routings.
<H3C> display ip policy
Route-policy Interface
pr02 Local
pr02 Virtual-Template0
pr01 Ethernet 0/0/0
The first line is prompt information. The first row shows where is used the routing policy
indicated in the second row. Take the first line as an example, "local" indicates that the
policy routing is used on the local router, that is, all packets sent from the local router
(not forward through it) using the policy routing "pr02". The second and third lines
represent that the interfaces virtual-template0 and Ethernet0/0/0 use route policy pr02
and pr01 respectively.
Syntax
View
Any view
Parameter
Description
Use the display ip policy setup command to view the setting information of policy
routings.
Example
12-6
Command Manual – Network Protocol Chapter 12 IP Unicast Policy Routing Configuration
Comware V3 Commands
This command displays the configurations of the policy routing named pr01 on
interface Ethernet 0/0/0. As shown above, the policy routing has one 0 node and
includes an if-match clause and an apply clause. For the accurate meanings of the
if-match clause and the apply clause, refer to the description on the command.
The output of the display ip policy setup local command is the same as that of the
display ip policy setup interface command, except that it displays the policy routing
enabled on this router.
Syntax
View
Any view
Parameter
Description
Use the display ip policy statistic command to view the statistics of policy routings.
Example
The above information shows the forwarding success and failure times for all the
forwarding policies (that is, the apply clause) of policy routing on interface
ethernet0/0/0.
12-7
Command Manual – Network Protocol Chapter 12 IP Unicast Policy Routing Configuration
Comware V3 Commands
Syntax
View
Route-policy view
Parameter
Description
Use the if-match acl command to set the match condition for IP address.
Use the undo if-match acl command to delete the IP address match condition.
An acl-number can be basic ACL or advanced ACL.
Related command: if-match packet-length.
Example
# Set packets that accord with the access list 2010 to be matched.
[H3C] route-policy map1 permit node 2010
[H3C-route-policy] if-match acl 2010
Syntax
View
Route-policy view
Parameter
Description
12-8
Command Manual – Network Protocol Chapter 12 IP Unicast Policy Routing Configuration
Comware V3 Commands
Use the undo if-match packet-length command to delete the configuration about IP
packet length match conditions.
Related command: if-match acl.
Example
Syntax
View
System view
Parameter
Description
Use the ip local policy route-policy command to enable local policy routing.
Use the undo ip local policy route-policy command to delete the existing setting of
the policy routing.
By default, interface local policy routing is disabled.
This command is used to enable or disable the local policy routing for the packets sent
by the local device. If there is no special demand, it is recommended that users do not
configure local policy routing.
Related command: ip policy route-policy.
Example
Syntax
12-9
Command Manual – Network Protocol Chapter 12 IP Unicast Policy Routing Configuration
Comware V3 Commands
View
Interface view
Parameter
Description
Example
# Enable the policy routing specified by route-policy AAA at the interface Ethernet
0/0/0.
[H3C-ethernet0/0/0] ip policy route-policy AAA
12.1.14 route-policy
Syntax
View
System view
Parameter
12-10
Command Manual – Network Protocol Chapter 12 IP Unicast Policy Routing Configuration
Comware V3 Commands
Description
Example
# Configure route-policy policy 1, setting its node number to 10 and match mode to
permit; and enter the corresponding view.
[H3C] route-policy policy1 permit node 10
[H3C-route-policy]
12-11
Command Manual – Network Protocol Chapter 13 IP Multicast Policy Routing Configuration
Comware V3 Commands
Syntax
View
Route-policy view
Parameter
Description
Use the apply ip-address command to configure the next hop IP address list in a
route-node.
Use the undo apply ip-address command to remove the configuration.
By default, no apply clause is defined.
This command specifies the next hop address for packets that match the if-match acl
command. It specifies the next hop IP address list for multicast policy routing through
the ACL. This command is in juxtaposition relation with the apply output-interface
command. If both apply clauses are configured at the same time, in multicast policy
routing, the packets will be replicated and forwarded to all the interfaces and next hops
specified by the ACLs respectively. This is different from that only one apply clause
works in unicast policy routing.
For the next hop IP address, the specified ACL is the standard ACL.
Related command: if-match acl, apply output-interface, and display ip
multicast-policy.
Example
None
13-1
Command Manual – Network Protocol Chapter 13 IP Multicast Policy Routing Configuration
Comware V3 Commands
Syntax
View
Route-policy view
Parameter
Description
Example
None
Syntax
13-2
Command Manual – Network Protocol Chapter 13 IP Multicast Policy Routing Configuration
Comware V3 Commands
View
User view
Parameter
Description
Example
None
Syntax
View
Any view
Parameter
Description
Use the display ip multicast-policy command to view the multicast policy routing
information.
Example
# Display the information about the multicast policy routing configured on interface
Ethernet2/0/0.
13-3
Command Manual – Network Protocol Chapter 13 IP Multicast Policy Routing Configuration
Comware V3 Commands
# Display the statistic information about the multicast policy routing configured on
interface Ethernet2/0/0.
[H3C] display ip multicast-policy statistic interface ethernet2/0/0
interface Ethernet2/0/0 multicast-policy routing summary information:
Total packets matched: 5
Total packets forward : 20
Syntax
View
Route-policy view
Parameter
Description
Use the if-match acl command to set conditions that multicast packets should meet in
each policy node.
Use the undo if-match acl command to remove the match conditions set.
By default, no if-match clause is defined.
If a packet meets the if-match conditions specified in a policy node, actions specified by
the node will be performed. If a packet does not meet the if-match conditions specified
in a policy node, the next node will be detected. If a packet does not meet the conditions
of all policy nodes, the packet will return to the normal forwarding flow. The
configuration and use of this command are the same as those of the same command in
the unicast policy routing.
Related command: if-match ip-prefix.
Example
13-4
Command Manual – Network Protocol Chapter 13 IP Multicast Policy Routing Configuration
Comware V3 Commands
Syntax
View
Interface view
Parameter
Description
Example
13-5
Command Manual – Network Protocol Chapter 13 IP Multicast Policy Routing Configuration
Comware V3 Commands
13.1.7 route-policy
Syntax
View
System view
Parameter
Description
Use the route-policy command to configure a route-policy node and enter the
route-policy view.
Use the undo route-policy command to remove a route-policy or a node.
By default, no route-policy is defined.
The policy of IP multicast policy routing is implemented by configuring route-policies.
Multiple route-policies can be configured on the router. Each route-policy may contain
multiple route-nodes. Different route-nodes in a route-policy are identified by different
integer sequence-numbers. In each route-node, set the conditions that packets should
match (that is, the match rule) with the if-match command and configure the forwarding
actions to be executed to packets that meet the match conditions with the apply
command.
The logical relation that filter the if-match clauses is “and”. This means that any if-match
clause passing the filter will cause others to be ignored.
13-6
Command Manual – Network Protocol Chapter 13 IP Multicast Policy Routing Configuration
Comware V3 Commands
Only the if-match acl clause is effective for multicast policy routing. The logical relation
between route-policy nodes is “or”. That is, one packet forwarded in one policy node
results in all the following nodes being ignored. If all permit nodes can not succeed in
matching with the features of packet or any deny node is matched, the packet will then
be forwarded or discarded normally, up to the route table.
When multicast policy routing is configured on an interface of a router, all multicast
packets entering the router on the interface will be filtered. The filter method is that all
policy nodes of the route-policy are applied in the ascending sequence of their ID(a
number).
Related command: if-match, apply output-interface, apply ip-address next-hop,
display ip multicast-policy.
Example
# Configure a route-policy named map1 with the node ID of 10 and with the match
mode of permit and enter the route-policy view.
[H3C] route-policy map1 permit node 10
[H3C-route-policy]
13-7
Command Manual – Network Protocol
Comware V3 Chapter 14 QLLC Configuration Commands
Syntax
View
User view
Parameter
Description
Example
Syntax
View
Parameter
14-1
Command Manual – Network Protocol
Comware V3 Chapter 14 QLLC Configuration Commands
Description
Use the X25 qllc-switch command to create a QLLC switching map entry, an
association of X.121 address, MAC address of the SNA device, and local virtual MAC
address.
Use the undo X25 qllc-switch command to delete the QLLC switching map entry.
By default, no QLLC switching map entry exists.
Each asynchronous serial interface can have only one QLLC link, meaning you can
configure only one QLLC switching map entry for a physical interface.
Example
14-2
Command Manual – Network Protocol
Comware V3 Chapter 15 SOT Configuration Commands
Syntax
display sot
View
Any view
Parameter
None
Description
Use the display sot command to display the current state about SOT connections.
Example
Field Description
This peer IP address of the local SOT entity
The Serial0/0/0 interface is added to SOT protocol
Serial0/0/0 group 1 (simple)
group 1, which is operating in simple SOT mode.
sdlc-addr SDLC address of the terminal
ip-address Peer IP address
state SOT connection state
frame_s Number of sent SDLC information frames
15-1
Command Manual – Network Protocol
Comware V3 Chapter 15 SOT Configuration Commands
Field Description
disc-frames Number of discarded SDLC frames
SOT connection
When…
state is…
TCP connection has been set up or is being set up.
open Normally, the TCP connection is set up several seconds after
the send all tcp/sot send address command is configured in
non-local mode on the serial interfaces at the two ends.
close No TCP connection is present
z In SOT local acknowledgement mode, seven SOT states exist: NULL, Link_up,
N-xid_sent, Connecting, Awaiting_connect, Connected, and Awaiting_release.
SOT connection
When…
state is…
The interface to be used is shut down or its physical state or
NULL
protocol state is down
The physical layer and protocol state of the interface are up,
Link_up
but no connection is being set up
N-xid_sent One end of the link sends an XID frame
Connecting Connection is being set up
Syntax
link-protocol sot
View
15-2
Command Manual – Network Protocol
Comware V3 Chapter 15 SOT Configuration Commands
Parameter
None
Description
Use the link-protocol sot command to encapsulate the serial interface with SOT.
By default, the serial interface is encapsulated with PPP.
Before you can configure SOT on a synchronous serial interface, you must encapsulate
the interface with SOT.
Example
Syntax
View
System view
Parameter
count: Maximum number of keepalive checks before disconnecting from the peer SOT
entity, in the range 1 to 10.
Description
Use the sot counter keepalive command to specify the number of keepalive checks
before disconnecting from the peer SOT entity.
Use the undo sot counter keepalive command to disable keepalive check before
disconnection. The peer SOT entity is disconnected without keepalive check.
By default, SOT connection is disconnected without keepalive check.
The command is used only in SOT local acknowledgement mode.
Example
# Set maximum number of keepalive checks to four before disconnecting from the peer
SOT entity.
[H3C] sot counter keepalive 4
15-3
Command Manual – Network Protocol
Comware V3 Chapter 15 SOT Configuration Commands
Syntax
View
Parameter
Description
Use the sot gather command to assign the serial interface to an existing SOT protocol
group.
Use the undo sot gather command to remove the serial interface from its SOT
protocol group.
You can assign a serial interface to only one SOT protocol group. If this group is
operating in simple SOT mode, the interface will operate in simple SOT mode providing
only point-to-point data transmission. If this group is operating in SDLC mode, the
interface operates in pass-through mode or local acknowledgement mode providing
point to multipoint data transmission.
Note:
The configuration of the sot gather group-number command will replace the original
one, if there is any.
When the type of the SOT protocol group changes, from simple to SDLC for example,
the SOT configuration on the interface is removed.
Example
Syntax
15-4
Command Manual – Network Protocol
Comware V3 Chapter 15 SOT Configuration Commands
View
System view
Parameter
Description
Example
Syntax
View
System view
Parameter
Description
Use the sot peer command to assign an IP address to the local SOT entity.
Use the undo sot peer command to remove the local SOT entity.
15-5
Command Manual – Network Protocol
Comware V3 Chapter 15 SOT Configuration Commands
The IP address provided in this command must belong to an interface that is always up,
a loopback interface for example. Or, the tunnel cannot be established and the system
prompts that the IP address is not a local address.
Example
Syntax
View
Parameter
None
Description
Use the sot sdlc broadcast command to configure the broadcast address FF for the
connected SDLC terminals, allowing them to receive broadcast frames.
Use the undo sot sdlc broadcast command to disable SDLC broadcast.
By default, SDLC broadcast is disabled.
Related command: sot send address.
Example
Syntax
View
15-6
Command Manual – Network Protocol
Comware V3 Chapter 15 SOT Configuration Commands
Parameter
Description
Use the sot sdlc controller command to configure the SDLC address of a connected
terminal.
Use the undo sot sdlc controller command to remove the SDLC address of a
connected terminal.
By default, no terminal is specified.
This command allows the router to implement point-to-multipoint transmission in SDLC
mode, sending packets to multiple connected terminals. This command is used to have
an IBM controller or front end processor to communicate with specified terminals.
Before you can configure the sdlc controller command on the interface, you must
assign the interface to a SOT protocol group. In addition, multiple terminals can be
configured.
Example
Syntax
View
Parameter
None
Description
Use the sot sdlc-status primary command to set the role of the router to SDLC
primary node.
Use the undo sot sdlc-status command to delete the role setting.
By default, no role is assigned to the router.
In SOT local acknowledgement mode, you must assign a role to the router, depending
on the position of the router in the sequence of primary (IBM host), secondary (router),
15-7
Command Manual – Network Protocol
Comware V3 Chapter 15 SOT Configuration Commands
primary (router), and secondary (terminal). If the router is connected to terminals, its
role is SDLC primary node. Other SOT modes however, do not involve the role of
primary node.
Example
Syntax
View
Parameter
None
Description
Use the sot sdlc-status secondary command to set the role of the router to SDLC
secondary node.
Use the undo sot sdlc-status command to delete the role setting.
By default, no role is assigned to the router.
In SOT local acknowledgement mode, you must assign a role to the router, depending
on the position of the router in the sequence of primary (IBM host), secondary (router),
primary (router), and secondary (terminal). If the router is connected to an IBM host, its
role is SDLC secondary node. In broadcast mode, you must set the role of the router to
secondary, regardless of whether it is connected to an IBM host or to a terminal. Other
SOT modes however, do not involve the role of secondary node.
Related command: ip route, display ip interface, display interface.
Example
15-8
Command Manual – Network Protocol
Comware V3 Chapter 15 SOT Configuration Commands
Syntax
View
Parameter
Description
Use the sot send address command to configure the route for sending SDLC frames
to the specified specific terminal.
Use the undo sot send address command to remove the specified route.
This command is applicable to the following two SDLC modes:
z In non-local mode or pass-through mode, the sdlc-address argument ranges from
1 to FF. When the sdlc-address argument is set to FF, the router sends SDLC
frames to all SDLC terminals connected to it.
z In local acknowledgement mode (specified by the local keyword), the
sdlc-address argument ranges from 1 to fe and cannot be the broadcast address
FF.
Related command: sot sdlc broadcast.
Example
# Send the SDLC frames destined for SDLC terminal 10 to the peer device (in non-local
mode) with the IP address of 131.108.8.1.
[H3C-Serial0/0/0] sot send address 10 tcp 131.108.8.1
# Send the SDLC frames destined for SDLC terminal 10 to the peer device (in local
acknowledgement mode) with the IP address of 131.108.8.1.
[H3C-Serial0/0/0] sot send address 10 tcp 131.108.8.1 local
15-9
Command Manual – Network Protocol
Comware V3 Chapter 15 SOT Configuration Commands
Syntax
View
Parameter
Description
Use the send all tcp command to forward all received SDLC frames to the specified
address.
Use the undo send all tcp command to disable the router to forward the SDLC frames
received on the interface.
By default, the received SDLC frames are not forwarded.
This command is only applicable to simple SOT mode.
Example
# Forward all SDLC frames received on interface Serial 0/0/0 to the specified IP
address 131.108.8.1.
[H3C-Serial0/0/0] sot send all tcp 131.108.8.1
Syntax
View
System view
Parameter
Description
Use the sot timer keepalive command to configure the keepalive timer.
Use the undo sot timer keepalive command to restore the default.
15-10
Command Manual – Network Protocol
Comware V3 Chapter 15 SOT Configuration Commands
Use this command in SOT local acknowledgement mode and in conjunction with the
sot counter keepalive command.
Example
15-11
Command Manual – Network Protocol
Comware V3 Chapter 16 MIP Configuration Commands
Syntax
View
User view
Parameter
None
Description
Use the debugging mobile-ip advertise command to enable debugging for mobility
agent advertisements.
Use the undo debugging mobile-ip advertise command to disable the debugging.
By default, debugging is disabled for mobility agent advertisements.
Example
Syntax
View
User view
Parameter
None
16-1
Command Manual – Network Protocol
Comware V3 Chapter 16 MIP Configuration Commands
Description
Use the debugging mobile-ip node command to enable debugging for MIP packets
and events.
Use the undo debugging mobile-ip node command to disable the debugging.
By default, this function is disabled.
Example
Syntax
View
Any view
Parameter
Description
Use the display mobile-ip interface command to display the MIP information of an
interface. With the interface-number argument not specified, MIP information of all
interfaces is displayed.
Example
16-2
Command Manual – Network Protocol
Comware V3 Chapter 16 MIP Configuration Commands
Ethernet0/0/0
IRDP (includes agent advertisement) disabled
No Prefix Length advertised
Lifetime is 36000 seconds
Home Agent service provided
Foreign Agent service provided
No reverse tunnel supported
No registration required
Not busy
No Home Agent access list
Maximum number of visitors allowed: 50
Current number of visitors: 0
Ethernet0/0/1
IRDP (includes agent advertisement) disabled
No Prefix Length advertised
Lifetime is 36000 seconds
Home Agent service provided
No Foreign Agent service provided
Table 16-1 Description on the fields of the display mobile-ip interface command
Field Description
Ethernet0/0/0 Interface name
IRDP (includes agent advertisement) Whether IRDP is enabled on the
disabled interface
Whether the agent advertisement
No Prefix Length advertised
includes prefix-length extension
Lifetime is 36000 seconds Registration lifetime for the MNs
Home Agent service provided Whether HA is enabled on the interface
Foreign Agent service provided Whether FA is enabled on the interface
Whether the interface provides reverse
No reverse tunnel supported
tunneling
Whether an MN with a co-located
No registration required care-of address is required to register by
FA
Whether the FA function of the interface
Not busy
is busy
HA addresses granted or denied by the
No Home Agent access list
FA configured on the interface
16-3
Command Manual – Network Protocol
Comware V3 Chapter 16 MIP Configuration Commands
Field Description
Maximum number of visitors the
Maximum number of visitors allowed: 50 interface is configured to support. It
ranges from 1 to 100 and defaults to 50.
Number of current visitors on the
Current number of visitors: 0 interface (that is, number of visiting
MNs)
Syntax
View
Any view
Parameter
None
Description
Use the display mobile-ip globals command to display global information about
mobility agents.
Information about an HA includes: the default lifetime of all MNs, list of all nodes
permitted to roam, list of authorized care-of addresses, list of virtual networks serviced
by the HA, and whether broadcast forwarding and reverse tunneling are enabled.
Information about an FA includes: the aging time of the pending table entries, list of
care-of addresses, and number of interfaces providing services.
Information about all MAs includes: the supported encapsulation mode, whether PMTU
discovery is enabled and the PMTU aging time.
Example
16-4
Command Manual – Network Protocol
Comware V3 Chapter 16 MIP Configuration Commands
Table 16-2 Description on the fields of the display mobile-ip globals command
Field Description
Home Agent is enabled Whether HA is enabled.
The default lifetime of all MNs, in
Registration lifetime: 36000 seconds
seconds.
ACL that indicates the mobile nodes of
Roaming access list: 2001 the HA permitted to roam. Not displayed
if not specified.
ACL that indicates the FAs supporting
Care-of access list: 2000 mobile nodes of HA to roam. Not
displayed if not specified.
Whether broadcast forwarding is
Broadcast disabled
enabled.
Replay protection time, 30 seconds by
Replay protection time: 30 seconds
default.
Reverse tunnel enabled Whether reverse tunneling is enabled.
HA Address for virtual networks, which
must be the address of an existing
Virtual networks HA address : 11.1.1.1
interface, generally the Loopback
interface.
Virtual networks: List of virtual networks serviced by the
11.1.1.0/24 HA address : 11.1.1.1 HA. Not displayed if not specified.
16-5
Command Manual – Network Protocol
Comware V3 Chapter 16 MIP Configuration Commands
Field Description
Number of interfaces providing FA
1 interface providing service
service
Information about all mobility agents.
Mobility Agent Both the HA service and the FA service
on the device share this information.
Encapsulations supported: IPIP and
Supported encapsulation mode
GRE
PMTU aging time. PMTU is not aged by
Discovered tunnel MTU aged timer: 600
default, and if aged, the default aging
seconds
time is 600 seconds.
Syntax
View
Any view
Parameter
None
Description
Use the display mobile-ip statistics command to display statistics collected by the
mobility agents.
Example
16-6
Command Manual – Network Protocol
Comware V3 Chapter 16 MIP Configuration Commands
Authentication failed MN 0, FA 0
Bad identification 0, Bad request form 0
Unavailable encap 0, Too many bindings 0
Reverse tunnel Unavailable 0, Mandatory 0
Gratuitous 0, Proxy 0 ARPs sent
Foreign Agent Registrations:
Request in 0,
Forwarded 0, Denied 0, Ignored 0
Unspecified 0, HA unreachable 0
Administrative prohibited 0, No resource 0
Bad lifetime 0, Bad request form 0
Unavailable encapsulation 0, Compression 0
Reverse tunnel Unavailable 0, Mandatory 0
MN too far 0
Unavailable COA 0, Pending expired 0
Replies in 0
Forwarded 0, Bad 0, Ignored 0
Authentication failed MN 0, HA 0
Table 16-3 Description on the fields of the display mobile-ip statistics command
Field Description
Total number of agent solicitations
Solicitations received
received by the mobility agents
Total number of agent advertisements
Advertisements sent
sent by the mobility agents
Total number of agent advertisements
Response to solicitation sent in response to agent solicitations
from MNs
Home Agent Registrations: HA registration statistics
Total number of registration requests
Register requests
received by the HA
Total number of deregistration requests
Deregister requests
received by the HA
Total number of registration replies sent
Register replied
by the HA
Total number of deregistration replies
Deregister replied
sent by the HA
Total number of registration requests
Accepted
accepted by the HA
16-7
Command Manual – Network Protocol
Comware V3 Chapter 16 MIP Configuration Commands
Field Description
Total number of registration requests
No simultaneous binding accepted by the HA when simultaneous
binding is not supported
Total number of registration requests
Denied
denied by the HA
Total number of registration requests
Ignored
ignored by the HA
Total number of registration requests
Unspecified denied by the HA based on unknown
reasons
Total number of registration requests
Unknown HA denied by the HA because no HA
address was specified in the packets
Total number of registration requests
Administrative prohibited denied by the HA due to unauthorized
MNs
Total number of registration requests
No resource denied by the HA due to lack of
resources
Total number of registration requests
Authentication failed MN denied by the HA due to failed MN
authentication
Total number of registration requests
Authentication failed FA denied by the HA due to failed FA
authentication
Total number of registration requests
denied by the HA due to failed
Bad identification
timestamp authentication for replay
protection
Total number of registration requests
Bad request form denied by the HA due to incorrect packet
format
Total number of registration requests
Unavailable encap denied by the HA due to unsupported
encapsulation mode requested by MNs
Total number of registration requests
Too many bindings denied by the HA due to over-limit
bindings
Total number of registration requests
Unavailable reverse tunnel denied by the HA due to unavailable
reverse tunneling
Total number of registration requests
denied by the HA because reverse
Mandatory
tunneling is mandatory on it but not set
in the registration request
16-8
Command Manual – Network Protocol
Comware V3 Chapter 16 MIP Configuration Commands
Field Description
Total number of gratuitous ARP packets
Gratuitous ARP
sent to MNs by the HA
Total number of proxy ARP packets sent
Proxy ARPs sent
to MNs by the HA
Foreign Agent Registrations: FA registration statistics
Total number of registration requests
Request in
received by the FA
Total number of registration requests
Forwarded
relayed by the FA
Total number of registration requests
Denied
denied by the FA
Total number of registration requests
Ignored
ignored by the FA
Total number of registration requests
Unspecified denied by the FA due to unknown
reasons
Total number of registration requests
HA unreachable denied by the FA due to unreachable
HAs
Total number of registration requests
Administrative prohibited denied by the FA due to unauthorized
MNs
Total number of registration requests
No resource denied by the FA due to lack of
resources
Total number of registration requests
Bad lifetime denied by the FA due to too long lifetime
settings in the registration requests
Total number of registration requests
Bad request form denied by the FA due to incorrect packet
format
Total number of registration requests
Unavailable encapsulation denied by the FA due to unsupported
encapsulation mode requested by MNs
Total number of registration requests
Unavailable compression denied by the FA due to unavailable Van
Jacobson header compression
Total number of registration requests
Reverse tunnel Unavailable denied by the FA due to unavailable
reverse tunneling
16-9
Command Manual – Network Protocol
Comware V3 Chapter 16 MIP Configuration Commands
Field Description
Total number of registration requests
denied by the FA because reverse
Mandatory
tunneling is mandatory but not set in the
registration request
Total number of registration requests
denied by the FA because reverse
MN too far
tunneling was used but the TTL was not
255
Total number of registration requests
denied by the FA because the HA did not
Unavailable COA
treat the FA as a valid care-of address
holder
Total number of registration requests
denied by the FA because the pending
Pending expired
time expired but no registration reply
was received from the HA
Total number of valid registration replies
Replies in
received by the FA
Total number of valid registration replies
Forwarded
forwarded to MNs by the FA
Total number of registration replies
Bad denied by the FA due to incorrect packet
format
Total number of registration replies
Ignored
ignored by the FA
Total number of registration requests
Authentication failed MN denied by the FA due to failed MN
authentication at HAs
Total number of registration replies
Authentication failed HA denied by the FA due to failed HA
authentication
16.1.6 mobile-ip
Syntax
mobile-ip
undo mobile-ip
View
System view
16-10
Command Manual – Network Protocol
Comware V3 Chapter 16 MIP Configuration Commands
Parameter
None
Description
Example
Syntax
View
System view
Parameter
seconds: PMTU aging time in seconds. It ranges from 30 to 1,800, and defaults to 600.
infinite: Specifies never to age out the PMTU.
Description
Use the mobile-ip tunnel path-mtu-discovery command to set the PMTU update
policy.
Use the undo mobile-ip tunnel path-mtu-discovery command to specify not to
perform PMTU discovery.
16-11
Command Manual – Network Protocol
Comware V3 Chapter 16 MIP Configuration Commands
Example
Syntax
View
User view
Parameter
None
Description
Use the reset mobile-ip statistics command to clear all MIP counters.
Example
Syntax
View
System view
Parameter
None
16-12
Command Manual – Network Protocol
Comware V3 Chapter 16 MIP Configuration Commands
Description
Use the snmp-agent trap enable mobile-ip command to enable the MIP SNMP trap
function. With the function enabled, a trap packet is sent to the network management
software whenever a security violation event occurs.
Use the undo snmp-agent trap enable mobile-ip command to disable the MIP SNMP
trap function.
By default, MIP SNMP trap is disabled.
Example
Syntax
View
Any view
Parameter
Description
Use the display mobile-ip binding command to display information about the HA
binding table. A binding table maintains mainly the corresponding relations between HA
addresses and the care-of addresses of MNs. An HA updates the binding table based
on MN registration events.
With no parameters specified, information about the whole binding table is displayed.
Example
16-13
Command Manual – Network Protocol
Comware V3 Chapter 16 MIP Configuration Commands
Table 16-4 Description on the fields of the display mobile-ip binding command
Field Description
Total 1 Total number of entries in the binding table
20.0.0.1 Home address of the MN
Care-of Addr 68.0.0.31 Care-of address of the MN
Source IP address of the registration request
that the HA received. It might be the
Src Addr 68.0.0.31
co-located care-of address of the MN or the
address of the FA.
Registration lifetime that the HA granted to
Lifetime granted 02:46:40 (10000)
the MN (in seconds)
Remaining time before the registration
expires. Its initial value equals to the granted
remaining 02:46:32
lifetime and the HA decreases it by 1 every
second.
Flags sent by the MN. A capital letter means
Flags SbdmGvt that the bit is set to 1, a lower-case letter
means that the bit is set to 0.
A 64-bit value for matching registration
Identification
requests with registration replies to avoid
B750FAC4.C28F56A8
replay attacks by registration requests
16-14
Command Manual – Network Protocol
Comware V3 Chapter 16 MIP Configuration Commands
Syntax
View
System view
Parameter
care-of-acl number: ACL that indicates the care-of addresses that MNs can register.
Use this ACL to control where MNs can roam. By default, all addresses are allowed.
The number argument ranges from 2000 to 2999.
ha-virtual-net ip-address: HA address of the virtual network when MIP supports virtual
network.
lifetime seconds: Registration lifetime for all MNs, which can be overwritten by that set
for a single MN (using the mobile-node low-addr [ up-addr ] { interface ethernet
interface-number | virtual-network network_address mask} [ lifetime lifetime ]
command). It ranges from 3 to 65,535 seconds and defaults to 36,000 seconds. If the
lifetime of a registration request is longer than seconds, the registration request is
accepted with the longer as its lifetime.
replay seconds: Replay protection interval, in which registration is valid. It ranges from
1 to 600 seconds and defaults to 30 seconds.
reverse-tunnel {mandatory | off }: The mandatory keyword enables reverse
tunneling and forces MNs to use reverse tunneling. The off keyword cancels reverse
tunneling. By default, an HA supports reverse tunneling.
roam-acl number: ACL that indicates which nodes can roam. The number argument
ranges from 2000 to 2999.
Description
16-15
Command Manual – Network Protocol
Comware V3 Chapter 16 MIP Configuration Commands
Example
# Add ACL 2000 as the roam-acl to specify the MNs, and ACL 2001 as the care-of-acl
to specify the FAs for MNs.
[H3C] acl number 2000
[H3C-acl-basic-2000] rule permit source 200.1.1.8 0.0.0.0
[H3C] acl number 2001
[H3C-acl-basic-2001] rule permit source 201.168.1.1 0.0.0.0
16-16
Command Manual – Network Protocol
Comware V3 Chapter 16 MIP Configuration Commands
Syntax
View
System view
Parameter
Description
Example
# Add virtual network 20.0.0.0, using the address of loopback interface loopback0 as
the HA address.
[H3C] mobile-ip virtual-network 20.0.0.0 255.255.0.0
[H3C] interface loopback 0
[H3C-loopback0] ip address 20.0.0.1 255.255.255.255
[H3C-loopback0] quit
[H3C] mobile-ip virtual-network 20.0.0.0 255.255.0.0 ha-address 20.0.0.1
16-17
Command Manual – Network Protocol
Comware V3 Chapter 16 MIP Configuration Commands
Syntax
View
User view
Parameter
Description
Use the reset mobile-ip binding command to remove mobility bindings. With neither
the ip-address argument nor the interface-number argument specified, all mobility
bindings are removed.
An HA maintains a mobility binding for each roaming MN. The mobility binding
mechanism allows MNs to exchange packets with their respective CNs. When a
mobility binding is removed, routing information about the MN will be removed from the
routing table. If the MN still needs to roam, it must register again.
Use this command with caution. This command can terminate an ongoing session.
Example
16-18
Command Manual – Network Protocol
Comware V3 Chapter 16 MIP Configuration Commands
Syntax
View
Any view
Parameter
Description
Use the display mobile-ip visitor command to display information in the visitor table
and pending table of an FA. An FA updates its visitor table and pending table based on
registration events of MNs. If not specify the ip-address argument, all contents of the
tables are displayed.
Example
Table 16-5 Description on the fields of the display mobile-ip visitor command
Field Description
Total 1 Total number of visiting MNs on the FA
20.0.0.1 Home address of the MN
Interface Ethernet0/0/1 FA interface used by the MN
16-19
Command Manual – Network Protocol
Comware V3 Chapter 16 MIP Configuration Commands
Field Description
MAC addr 00-60-83-7b-95-ec MAC address of the MN
Source IP address in the registration
IP src 20.0.0.1
request of the MN
Destination IP address in the
registration request of the MN, which is
dest 67.0.0.31
the IP address of the FA interface
connecting to the MN
Source UDP port in the registration
UDP src port 434
request of the MN
HA addr 66.0.0.5 HA address of the MN
A 64-bit value for matching registration
requests with registration replies to
Identification B7510E60.64436B38
avoid replay attacks by registration
messages
Registration lifetime granted by HA to
Lifetime 3000
the MN (in seconds)
Remaining time before the registration
expires. Its initial value equals to the
Remaining 2996
granted lifetime and the FA decreases it
by 1 every second.
Syntax
16-20
Command Manual – Network Protocol
Comware V3 Chapter 16 MIP Configuration Commands
View
System view
Parameter
Description
Use the mobile-ip foreign-agent command to set foreign agent care-of addresses and
the pending time.
Use the undo mobile-ip foreign-agent command to disable FA service or, with said
arguments specified, remove a foreign agent care-of address and restore the default
pending time setting.
With at least one care-of address specified, the mobile-ip foreign-agent service
command enables FA service. An FA sends agent advertisements on interfaces with FA
service enabled.
An FA relays registration requests to the HAs, establishes tunnels to the HAs, and
forwards packets to the MNs. Any requests that arrive at an interface without care-of
address or with FA service not enabled are ignored.
If a security association between a visiting MN and the FA exists, the FA authenticates
the registration request from the MN. If the registration request passes the
authentication, the FA relays the request to the HA. If a security association exists
between the FA and the HA, the FA also adds the FA-HA authentication extension,
when the pending timer will be started (set to 7 seconds by default). Each MN can send
up to five pending registration requests. If the registration request fails the
authentication, the FA sends an error code to the MN, and logs the event as a security
exception.
When a registration reply arrives at the FA, if a security association exists between the
HA and the FA, the FA will authenticate the reply. If the authentication is successful, the
FA relays the registration reply to the MN, and creates or updates its visitor table,
including the aging timer. A visitor binding will be removed If the registration lifetime
expires or a deregistration request is accepted.
An FA must advertise its care-of address, which an MN uses to register with its HA. The
HA and FA use the care-of address as the endpoint of the tunnel and the starting point
of the reverse tunnel respectively. When packets destined for an MN reach the FA, the
FA detunnels and forwards the packets to the MN. When an MN uses a reverse tunnel
16-21
Command Manual – Network Protocol
Comware V3 Chapter 16 MIP Configuration Commands
to send packets, the FA uses the care-of address as the starting point of the reverse
tunnel, tunneling the packets from the MN to the HA.
By default, the FA function is not enabled.
Example
# Enable FA service on interface Ethernet 0/0/1, setting the IP address of the interface
1.0.0.1 as the care-of address for advertisements.
<H3C> system-view
[H3C] mobile-ip foreign-agent care-of Ethernet 0/0/1
Syntax
View
Interface view
Parameter
home-acl acl: ACL that controls which HA address can be used by MNs to register. The
acl argument ranges from 2000 to 2999.
registration-required: Forces MNs to register through the FA even if they are using
co-located care-of addresses. Meanwhile, the R bit in the agent advertisement of the
interface must be set to 1.
restrict number: Maximum number of visitors permitted on the interface. When the
number of registered visitors reaches this threshold, the agent advertisement of the
interface will have the B bit set to 1. This argument ranges from 1 to 100 and defaults to
50.
reverse-tunnel [ mandatory ]: Supports reverse tunneling. With the mandatory
keyword specified, it forces MNs to use reverse tunneling. When an interface supports
reverse tunneling, its agent advertisements have the T bit set to 1. By default, reverse
tunneling is not supported.
Description
16-22
Command Manual – Network Protocol
Comware V3 Chapter 16 MIP Configuration Commands
Example
Syntax
mobile-ip prefix-length
undo mobile-ip prefix-length
View
Interface view
Parameter
None
Description
Use the mobile-ip prefix-length command to add the prefix-length extension part in
the agent advertisement.
Use the undo mobile-ip prefix-length command to remove the prefix-length
extension part added in the agent advertisement.
After an MN registers, it uses the following two alternative methods to determine
whether it has moved to another network:
z Use the lifetime of the agent advertisement
An MN can know the agent advertisement lifetime from the Lifetime field in the received
agent advertisement. The agent advertisement lifetime indicates how long the FA is
valid. If an MN does not receive any more agent advertisement from the FA in this
period, it assumes that the FA is not present any more and that it has moved away from
the network where the FA resides.
z Use the network prefix
16-23
Command Manual – Network Protocol
Comware V3 Chapter 16 MIP Configuration Commands
This method is applicable to registered MNs. When an MN that has registered with an
FA receives the agent advertisement of another FA, it uses prefix-length extension to
determine whether the advertisement is from the same network. It checks whether the
network address in the Router Address field of the advertisement is the same as the
network address of the current care-of address. If they are not the same, the MN
assumes that it has moved to another network.
An MN moving to another network must register with the FA on the network.
By default, the prefix-length extension part is not added to the agent advertisement.
Example
Syntax
View
Interface view
Parameter
seconds: Registration lifetime of the MN. This argument specifies how long an MN is
valid after registration. Once the lifetime of an MN expires, the FA deletes the
registration information of the MN. Typically, an MN resends a registration request
when the registration lifetime is going to expire. This argument ranges from 3 to 65,535
seconds.
Description
Use the mobile-ip registration-lifetime command to set the registration lifetime of the
MN.
Use the undo mobile-ip registration-lifetime command to restore the default
registration lifetime.
An FA can use the MN registration lifetime to control how long an MN can stay with it. If
a visiting MN requests a lifetime longer than this registration lifetime, the FA will reject
the request.
By default, the registration lifetime is 36,000 seconds.
16-24
Command Manual – Network Protocol
Comware V3 Chapter 16 MIP Configuration Commands
Example
# Set the registration lifetime to 600 seconds on interface Ethernet0/0/0 and to 3,600
seconds on Ethernet0/0/1.
<H3C> system-view
[H3C]interface Ethernet 0/0/0
[H3C-Ethernet0/0/0] mobile-ip registration-lifetime 600
[H3C] interface Ethernet 0/0/1
[H3C-Ethernet0/0/1] mobile-ip registration-lifetime 3600
Syntax
View
User view
Parameter
Description
Use the reset mobile-ip visitor command to delete information in the visitor table and
the pending table on the FA, or with the pending keyword specified to delete
information in the pending table only. You can also restrict deletion to one MN or MNs
registered on an interface by specifying arguments ip-address and interface ethernet
interface-number respectively.
Upon receipt of a MN registration request, the FA authenticates the request. If the
request is valid, the FA relays the request to the HA and adds an entry in its pending
table.
Upon receipt of the registration request, the HA authenticates the request. If the
request is valid, the HA sends a reply to the FA, informing the FA of the successful
registration.
When the FA receives the reply, it authenticates the reply. If the reply is valid, the FA
adds for the MN a visitor entry in its visitor table, deletes the corresponding entry in the
pending table, and relays the reply to the MN.
16-25
Command Manual – Network Protocol
Comware V3 Chapter 16 MIP Configuration Commands
When visiting a foreign network, an MN can receive packets destined for it as long as it
has a visitor entry in the visitor table of the FA. Deleting a visitor entry will terminate an
ongoing session. Therefore, use this command with caution.
After you configure this command for an MN, the MN must register on the FA again for
roaming.
Example
Syntax
View
Any view
Parameter
Description
Use the display mobile-ip node command to display information about MNs. With no
parameters specified, information about all MNs is displayed.
Example
16-26
Command Manual – Network Protocol
Comware V3 Chapter 16 MIP Configuration Commands
Table 16-6 Description on the fields of the display mobile-ip node command
Field Description
11.1.1.2 Home address of the MN
Granted lifetime of the MN. The default
value is the global lifetime set by using
Allowed lifetime 36000 seconds
the mobile-ip home-agent lifetime
command.
Whether the MN is registered. It can be
Roaming status -Unregistered-
Registered or Unregistered.
Interface or virtual network to which the
Home link on interface Ethernet0/0/0
MN belongs
Number of MN service requests
Accepted 0
accepted by the HA
Time when the last MN registration
Last time -never-
request is accepted by HA
Service time of HA since the latest
Overall service time 0 seconds
reboot
Number of service requests denied by
Denied 0
the HA
Time when the latest MN registration
Last time -never-
request is denied by the HA
Error code for the latest MN registration
Last code 0
request denial by the HA
Total violations 0 Number of MN security violations
Number of packets and bytes tunneled
Tunnel to MN - pkts 0, bytes 0
to the MN
Number of packets and bytes sent by
Reverse tunnel from MN - pkts 0, bytes 0
the MN through the reverse tunnel
16.4.2 mobile-node
Syntax
16-27
Command Manual – Network Protocol
Comware V3 Chapter 16 MIP Configuration Commands
View
System view
Parameter
Description
Use the mobile-node command to set MN attributes, including the interface or virtual
network and the registration lifetime.
Use the undo mobile-node command to cancel the configuration.
You can set the MN registration lifetime in two ways: using the mobile-ip home-agent
lifetime number command to set the registration lifetime for all MNs, or using the
mobile-node low-addr [ up-addr ] { interface ethernet interface-number |
virtual-network network_address mask} [ lifetime lifetime ] command to set the
registration lifetime for a single MN.
Example
Syntax
View
User view
Parameter
ip-address: MN IP address. If not specified, statistics about all MNs are cleared.
16-28
Command Manual – Network Protocol
Comware V3 Chapter 16 MIP Configuration Commands
Description
Example
Syntax
View
System view
Parameter
Description
Example
16.4.5 ip address
Syntax
ip address ip-address
undo ip address
16-29
Command Manual – Network Protocol
Comware V3 Chapter 16 MIP Configuration Commands
View
HA-MR view
Parameter
Description
Example
# Configure an MR with the number of 3 and set its home address as 101.1.1.1.
<H3C> system-view
[H3C] mobile-ip home-agent mobile-router 3
[H3C-HA-MobileRouter-3] ip address 101.1.1.1
16.4.6 mobile-network
Syntax
View
HA-MR view
Parameter
Description
16-30
Command Manual – Network Protocol
Comware V3 Chapter 16 MIP Configuration Commands
After an MR registers with the HA, the HA adds a route to the mobile network connected
by the MR. Thus, the HA can forward all packets destined for the mobile network over
the route to the MR, which will then forward the packets to the respective destinations.
You can configure multiple mobile networks for an MR.
After an MR registers with its HA and the HA adds the route to a mobile network of the
MR, executing the undo mobile-network command on the HA will delete the route.
Caution:
A mobile network cannot be the network where the roaming interface of the MR resides.
Example
# Configure an MR with the number of 3 and set the address of its connected mobile
network as 101.1.2.0.
<H3C> system-view
[H3C] mobile-ip home-agent mobile-router 3
[H3C-HA-MobileRouter-3] mobile-network 101.1.2.0 255.255.255.0
Syntax
View
User view
Parameter
16-31
Command Manual – Network Protocol
Comware V3 Chapter 16 MIP Configuration Commands
Description
Example
Syntax
View
Any view
Parameter
Description
Example
16-32
Command Manual – Network Protocol
Comware V3 Chapter 16 MIP Configuration Commands
Table 16-7 Description on the fields of the display mobile-ip mobile-router command
Field Description
State of the MR:
Home: On the home network
Registered: Registered on a foreign
Status: Registered network
Pending: Registering
Isolated: Unreachable
Unknown: In an unknown state
Home Address IP: 1.1.1.3 Mask:
Home address and mask of the MR
255.0.0.0
Configured registration lifetime of the
Registration Lifetime: 36000 MR in seconds. Defaults to 36,000
seconds.
Registration retransmission parameters
configured for the MR:
z Init: Initial registration retransmission
interval in seconds. Defaults to 1
Registration Retransmit: Init 1, Max 128, second.
Retry 5 z Max: Maximum registration
retransmission interval in seconds.
Defaults to 128 seconds.
z Retry: Maximum number of
registration retransmission attempts.
Defaults to 5.
Encapsulation mode configured for the
MR, which can be IP in IP or GRE
Tunnel Mode: IPinIP
encapsulation. The default is IP in IP
encapsulation.
Whether reverse tunneling is enabled on
Reverse Tunnel: disable the MR. By default, reverse tunneling is
not enabled.
Whether simultaneous binding is
Simultaneous Bindings: disable enabled on the MR. By default,
simultaneous binding is not enabled.
Mobile Network:
IP address, mask and interface of the
IP: 11.0.0.0 Mask: 255.0.0.0
MR mobile network
Interface Name: Ethernet0/0/1
16-33
Command Manual – Network Protocol
Comware V3 Chapter 16 MIP Configuration Commands
Field Description
Number of mobility agents discovered
Mobile Router Agents: 1
by the MR
Agent IP: 5.5.5.5 IP address of the mobility agent
MAC: 00e0-fc06-aa5d MAC address of the mobility agent
16-34
Command Manual – Network Protocol
Comware V3 Chapter 16 MIP Configuration Commands
— Reserved
Field Description
Registered: Information about the registered MR
16-35
Command Manual – Network Protocol
Comware V3 Chapter 16 MIP Configuration Commands
Field Description
MR registration type, which can be:
16-36
Command Manual – Network Protocol
Comware V3 Chapter 16 MIP Configuration Commands
Accepted : 1
Denied : 0
Denied by foreign agent : 0
Denied by foreign agent due to authentication extension : 0
Denied by foreign agent due to reverse tunnel : 0
Denied by home agent : 0
Denied by home agent due to authentication extension : 0
Denied by home agent due to reverse tunnel : 0
Denied by home agent due to encapsulation : 0
Denied by home agent due to time stamps : 0
Field Description
Total number of agent solicitations sent
Sent Agent Solicitation : 30
by the MR
Total number of agent advertisements
Received Agent Advertisement : 30
received by the MR
Total number of registration requests
Sent Registration Request : 1 sent by the MR, using a foreign agent or
co-located care-of address
Sent Deregistration Request : 0 Total number of deregistration requests
Accepted: Total number of replies for
Accepted : 1 accepted registration requests
Denied : 0 Denied: Total number of replies for
denied registration requests
Total number of replies for registration
Denied by foreign agent : 0
requests denied by FA
Denied by foreign agent due to Total number of replies for registration
authentication extension : 0 requests denied by the FA due to failed
MN-FA SA authentication
Total number of replies for registration
Denied by foreign agent due to reverse
requests denied by the FA due to
tunnel
reverse tunneling
Total number of replies for registration
Denied by home agent
requests denied by the HA
Total number of replies for registration
Denied by home agent due to
requests denied by the HA due to failed
authentication extension
MN-HA SA authentication
Total number of replies for registration
Denied by home agent due to reverse
requests denied by the HA due to
tunnel
reverse tunneling
Total number of replies for registration
Denied by home agent due to
requests denied by the HA due to
encapsulation : 0
encapsulation
16-37
Command Manual – Network Protocol
Comware V3 Chapter 16 MIP Configuration Commands
Field Description
Total number of replies for registration
Denied by home agent due to time
requests denied by the HA due to
stamps : 0
incorrect time stamps
16.5.3 encapsulation
Syntax
encapsulation gre
undo encapsulation
View
MR view
Parameter
None
Description
Use the encapsulation gre command to set the MR encapsulation mode to GRE.
Use the undo encapsulation command to restore the default encapsulation mode IP
in IP.
Example
Syntax
View
MR view
Parameter
16-38
Command Manual – Network Protocol
Comware V3 Chapter 16 MIP Configuration Commands
Description
Use the home-agent ip-address command to configure the HA address of the MR.
Use the undo home-agent ip-address command to remove the configuration.
You cannot configure the undo home-agent ip-address command on a registered or
registering MR.
By default, an MR has no HA configured.
Example
16.5.5 ip address
Syntax
View
MR view
Parameter
Description
Example
16-39
Command Manual – Network Protocol
Comware V3 Chapter 16 MIP Configuration Commands
<H3C> system-view
[H3C] mobile-ip mobile-router
[H3C-MobileRouter] ip address 1.1.1.3 255.0.0.0
Syntax
mobile-ip mobile-router
undo mobile-ip mobile-router
View
System view
Parameter
None
Description
Use the mobile-ip mobile-router command to enable the MR function and enter MR
view.
Use the undo mobile-ip mobile-router command to disable the MR function.
By default, the MR function is disabled.
The MR function can be enabled only when the MIP function is enabled and the HA
function is disabled.
Example
Syntax
16-40
Command Manual – Network Protocol
Comware V3 Chapter 16 MIP Configuration Commands
View
Interface view
Parameter
Description
Use the mobile-ip mobile-router ccoa only command to specify that the interface can
only use a co-located care-of address to register.
Use the undo mobile-ip mobile-router ccoa only command to remove the
configuration.
Use the mobile-ip mobile-router ccoa only gateway command to configure the
default gateway for the interface using a co-located care-of address to register.
Use the undo mobile-ip mobile-router ccoa gateway command to remove the
configured default gateway address.
When an MR uses a co-located care-of address to register, it employs the default
gateway specified by the ip-address argument (if specified). If the co-located care-of
address is manually configured or is configured to be obtained through DHCP but no
DHCP gateway is available, you must configure the IP address of the default gateway.
By default, an interface is neither specified to use only a co-located care-of address to
register, nor configured with a default gateway address.
Example
Syntax
View
Interface view
16-41
Command Manual – Network Protocol
Comware V3 Chapter 16 MIP Configuration Commands
Parameter
value: Priority of the interface. It ranges from 1 to 255 and defaults to 100. A greater
value indicates a higher priority.
Description
Use the mobile-ip mobile-router roam command to enable the roaming function on
the interface, that is, to allow the interface to function as the roaming interface of the
MR.
Use the undo mobile-ip mobile-router roam command to remove the roaming
function of the interface.
When registering, an MR uses the roaming interface with the highest priority among
available ones. After registration, if a newly available roaming interface with a higher
priority than the previous one receives a new agent advertisement, the MR will use the
new roaming interface to re-register.
By default, the roaming function is not enabled on an interface.
Example
Syntax
View
Interface view
Parameter
interval-time: Agent solicitation transmission interval for the interface. It ranges from 1
to 65,535 seconds and defaults to 600 seconds.
initial-time: Initial agent solicitation retransmission interval for the interface. It ranges
from 10 to 20,000 ms and defaults to 1,000 ms.
max-time: Maximum agent solicitation retransmission interval for the interface. It
ranges from 10 to 20,000 ms and defaults to 4,000 ms.
16-42
Command Manual – Network Protocol
Comware V3 Chapter 16 MIP Configuration Commands
Description
Example
16.5.10 mobile-network
Syntax
View
MR view
Parameter
Description
Use the mobile-network command to configure a mobile network for the MR.
Use the undo mobile-network command to remove a mobile network of the MR.
16-43
Command Manual – Network Protocol
Comware V3 Chapter 16 MIP Configuration Commands
An MR adds NVSE in its registration requests. The NVSE includes information about
the mobile network. If the HA supports NVSE, it adds a route to the mobile network in its
routing table, enabling the mobile network of the MR to communicate.
After you remove a mobile network of an MR, the HA deletes the route to the mobile
network only after the MR re-registers with it.
By default, an MR has no mobile network configured.
Example
Syntax
View
MR view
Parameter
Description
Use the register lifetime command to configure the registration lifetime of an MR.
Use the undo register lifetime command to restore the default.
By default, the registration lifetime of an MR is 36,000 seconds.
Example
Syntax
16-44
Command Manual – Network Protocol
Comware V3 Chapter 16 MIP Configuration Commands
View
MR view
Parameter
initial-time: Initial registration retransmission interval for the MR. It ranges from 1 to 16
seconds and defaults to 1 second.
max-time: Maximum registration retransmission interval for the MR. It ranges from 1 to
1,800 seconds and defaults to 128 seconds.
number: Maximum number of registration retransmission attempts for the MR. It ranges
from 1 to 64 and defaults to 5.
Description
Example
16-45
Command Manual – Network Protocol
Comware V3 Chapter 16 MIP Configuration Commands
Syntax
View
User view
Parameter
Description
Use the reset mobile-ip mobile-router agent command to clear agent information
discovered by the MR, MR registration information, and MR statistics.
reg-address refers to the destination address of the registration requests. You can view
the corresponding information by using the display mobile-ip mobile-router
command.
Once information about an agent in use or registration successful is cleared, the MR
moves to the state of Isolated and resends registration requests.
Example
# Clear MR statistics.
<H3C> reset mobile-ip mobile-router statistics
16.5.14 reverse-tunnel
Syntax
reverse-tunnel enable
undo reverse-tunnel enable
View
MR view
16-46
Command Manual – Network Protocol
Comware V3 Chapter 16 MIP Configuration Commands
Parameter
None
Description
Use the reverse-tunnel command to enable the reverse tunneling function for an MR.
Use the undo reverse-tunnel command to disable the reverse tunneling function of an
MR.
An MR supports registration using reverse tunneling only when the following conditions
are satisfied:
z The MR uses an FA to register.
z The FA supports reverse tunneling.
z Reverse tunneling is enabled on the MR.
By default, reverse tunneling is not enabled.
Example
16.5.15 simultaneous-bindings
Syntax
simultaneous-bindings enable
undo simultaneous-bindings enable
View
MR view
Parameter
None
Description
16-47
Command Manual – Network Protocol
Comware V3 Chapter 16 MIP Configuration Commands
Example
Syntax
View
Any view
Parameter
16-48
Command Manual – Network Protocol
Comware V3 Chapter 16 MIP Configuration Commands
Description
Use the display mobile-ip secure command to display mobility security association
attributes. If not specify argument ip-address, information about all mobility security
association attributes of the specified mobility security associations is displayed.
Example
Table 16-12 Description on the fields of the display mobile-ip secure command
Field Description
IP address 11.1.1.2 IP address of the node or agent
Security parameter index for security
SPI(HEX): 100
authentication
MD5 MD5 encryption algorithm
Prefix-suffix Authentication mode
Syntax
View
Any view
Parameter
16-49
Command Manual – Network Protocol
Comware V3 Chapter 16 MIP Configuration Commands
Description
Example
Table 16-13 Description on the fields of the display mobile-ip violation command
Field Description
IP address of the MN with security
Mobile Hosts: 20.0.0.1
exceptions
Violations: 1 Security exception times of the MN
Latest time when the MN violated
Last time: 10/18/2004 19:16:47
security regulations
SPI of the latest violated security
context.
z If the violation is due to identification
mismatch, the SPI has a value from
the MN-HA authentication extension
domain.
SPI: 300 z If the violation is due to invalid
authenticator, the SPI has a value
from the authentication extension
domain of the invalid authentication
packet.
z In other cases, the SPI has a value
of 0.
A 64-bit value for matching registration
requests with registration replies to
Identification: B751B581.77FD0E40
avoid replay attacks by registration
messages
16-50
Command Manual – Network Protocol
Comware V3 Chapter 16 MIP Configuration Commands
Field Description
Error code in the request or reply,
indicating the reason for the latest
security exception. Possible reasons
are:
z No mobility security association
Error Code: MN failed authentication available
(131), Reason: Bad authenticator (2)
z Bad authenticator
z Bad flags
z Wrong SPI
z No security extension
z Others
Syntax
View
System view
Parameter
16-51
Command Manual – Network Protocol
Comware V3 Chapter 16 MIP Configuration Commands
Description
Use the mobile-ip secure command to configure mobility security associations on HAs,
FAs, and MRs.
Use the undo mobile-ip secure command to remove the configuration.
A security association indicates the address of the mobility agent or MN, SPI, and the
key.
By default, no security association is configured.
Example
Syntax
View
Any view
Parameter
None
16-52
Command Manual – Network Protocol
Comware V3 Chapter 16 MIP Configuration Commands
Description
Use the display mobile-ip irdp command to display ICMP router discovery protocol
(IRDP) configuration information, including the agent advertisement lifetime, the
maximum and minimum agent advertisement interval, and the agent advertisement
transmission mode (broadcast or multicast).
Example
Table 16-14 Description on the fields of the display mobile-ip irdp command
Field Description
Ethernet0/0/0 has router discovery IRDP is enabled on interface Ethernet
enabled 0/0/0.
Minimum and maximum agent
Advertisements min-interval : 450
advertisement intervals are 450 seconds
seconds, max-interval : 600 seconds
and 600 seconds respectively.
The lifetime of agent advertisements is
Advertisements lifetime : 1800 seconds
1,800 seconds.
Advertisements are sent with
Agent advertisements are broadcasted.
broadcasts
Ethernet0/0/1 has router discovery IRDP is not enabled on interface
disabled! Ethernet 0/0/1.
Syntax
View
Interface view
16-53
Command Manual – Network Protocol
Comware V3 Chapter 16 MIP Configuration Commands
Parameter
lifetime seconds: Agent advertisement lifetime. It ranges from 5 to 9,000 seconds and
defaults to 1,800 seconds. It must be greater than the maximum agent advertisement
interval.
max-interval seconds: Maximum agent advertisement interval. It ranges from 4 to
1,800 seconds and defaults to 600 seconds. It must be greater than the minimum agent
advertisement interval. A value of 0 specifies that the interface sends agent
advertisements only upon receiving agent solicitations.
min-Interval seconds: Minimum agent advertisement interval. It ranges from 3 to 1,800
seconds and defaults to 450 seconds. It must be less than the maximum agent
advertisement interval.
multicast: Changes the default broadcast address for agent advertisement to multicast
address 224.0.0.1.
Description
Use the mobile-ip irdp command to enable IRDP and configure the relevant attributes
on an interface.
Use the undo mobile-ip irdp command to disable IRDP or restore the default IRDP
attributes on an interface.
Without mobile-ip irdp configured, an FA or HA sends agent advertisements only upon
receiving agent solicitations from MNs. After it configured, however, an FA or HA
periodically sends agent advertisements on the attached network through IRDP to
advertise its presence.
By default, IRDP is not enabled.
Example
16-54
Routing Protocol
Command Manual – Routing Protocol
Comware V3 Table of Contents
Table of Contents
i
Command Manual – Routing Protocol
Comware V3 Table of Contents
ii
Command Manual – Routing Protocol
Comware V3 Table of Contents
iii
Command Manual – Routing Protocol
Comware V3 Table of Contents
iv
Command Manual – Routing Protocol
Comware V3 Table of Contents
v
Command Manual – Routing Protocol
Comware V3 Table of Contents
vi
Command Manual – Routing Protocol
Comware V3 Table of Contents
vii
Command Manual – Routing Protocol
Comware V3 Chapter 1 Static Route Configuration Commands
Note:
For the specific examples and parameter explanation of VPN instance, refer to the
“MPLS” module of this manual.
Syntax
display ip routing-table
View
Any view
Parameter
None
Description
Use the display ip routing-table command to view the routing table summary.
This command views routing table information in summary form. Each line represents
one route. The contents include destination address/mask length, protocol, preference,
cost, next hop and output interface.
Only current used route, i.e., best route, is displayed via the display ip routing-table
command.
Example
1-1
Command Manual – Routing Protocol
Comware V3 Chapter 1 Static Route Configuration Commands
Syntax
View
Any view
Parameter
acl_number: References a basic ACL by its number, which is in the range 2000 to 2999.
verbose: With the parameter, this command displays the verbose information of both
the active and inactive routes that passed filtering rules. Without the parameter, this
command only displays the summary of the active routes that passed filtering rules.
Description
Use the display ip routing-table acl command to view the route filtered through
specified basic access control list (ACL).
The command is used in tracking route policy to display the route that passed the
filtering rule according to the input basic ACL number.
The command is only applicable to view the route that passed basic ACL filtering rules.
Example
# View the summary of active routes that are filtered through basic ACL 2001.
<H3C> display ip routing-table acl 2001
Routes matched by access-list 2001:
Summary count: 4
Destination/Mask Proto Pre Cost Nexthop Interface
127.0.0.0/8 Direct 0 0 127.0.0.1 InLoopBack0
127.0.0.1/32 Direct 0 0 127.0.0.1 InLoopBack0
169.0.0.0/8 Static 60 0 2.1.1.1 LoopBack1
169.0.0.0/15 Static 60 0 2.1.1.1 LoopBack1
# Display the verbose information of the active and inactive routes that are filtered
through basic ACL2001.
1-2
Command Manual – Routing Protocol
Comware V3 Chapter 1 Static Route Configuration Commands
Syntax
1-3
Command Manual – Routing Protocol
Comware V3 Chapter 1 Static Route Configuration Commands
View
Any view
Parameter
Description
Use the display ip routing-table ip_address command to view the routing information
of the specified destination address.
With different optional parameters, the output of the command is different. The
following is the output description for different forms of this command:
z display ip routing-table ip_address
If destination address, ip_address, has corresponding routes in natural mask range,
this command will display all subnet routes. Or, only the route best matching the
destination address, ip_address, is displayed. And only the active matching route is
displayed.
z display ip routing-table ip_address mask,
This command only displays the route fully matching with specified destination address
and mask.
z display ip routing-table ip_address longer-match
This command displays all route destination addresses matching with destination
addresses in natural mask range.
Example
1-4
Command Manual – Routing Protocol
Comware V3 Chapter 1 Static Route Configuration Commands
# There are corresponding routes in the natural mask range. View the detailed
information.
<H3C> display ip routing-table 169.0.0.0 verbose
Routing Tables:
Generate Default: no
+ = Active Route, - = Last Active, # = Both * = Next hop in use
Summary count:2
**Destination: 169.0.0.0 Mask: 255.0.0.0
Protocol: #Static Preference: 60
*NextHop: 2.1.1.1 Interface: 2.1.1.1(LoopBack1)
Vlinkindex: 0
State: <Int ActiveU Static Unicast>
Age: 3:47 Metric: 0/0
**Destination: 169.0.0.0 Mask: 255.254.0.0
Protocol: #Static Preference: 60
*NextHop: 2.1.1.1 Interface: 2.1.1.1(LoopBack1)
Vlinkindex: 0
State: <Int ActiveU Static Unicast>
Age: 3:47 Metric: 0/0
# There are no corresponding routes in the natural mask range (only display the
longest matching route). View the detailed information.
<H3C> display ip routing-table 169.253.0.0 verbose
Routing Tables:
Generate Default: no
+ = Active Route, - = Last Active, # = Both * = Next hop in use
Summary count:1
**Destination: 169.0.0.0 Mask: 255.0.0.0
Protocol: #Static Preference: -60
*NextHop: 2.1.1.1
Vlinkindex: 0
State: <Int ActiveU Static Unicast>
Age: 3:47 Metric: 0/0
1-5
Command Manual – Routing Protocol
Comware V3 Chapter 1 Static Route Configuration Commands
Syntax
View
Any view
Parameter
Description
Example
# View the routing information of destination addresses ranging from 1.1.1.0 to 2.2.2.0.
<H3C> display ip routing-table 1.1.1.0 24 2.2.2.0 24
Routing tables:
Summary count: 3
Destination/Mask Proto Pre Cost Nexthop Interface
1.1.1.0/24 DIRECT 0 0 1.1.1.1 Interface serial1/0/0
1.1.1.1/32 DIRECT 0 0 127.0.0.1 InLoopBack0
2.2.2.0/24 DIRECT 0 0 2.2.2.1 Interface serial2/0/0
Syntax
View
Any view
Parameter
1-6
Command Manual – Routing Protocol
Comware V3 Chapter 1 Static Route Configuration Commands
verbose: With the parameter, this command displays the verbose information of both
the active and inactive routes that passed filtering rules. Without the parameter, this
command displays the summary of the active routes that passed filtering rules.
Description
Use the display ip routing-table ip-prefix command to view the route that passed the
filtering rule according to the specified ip prefix list.
If there is no specified prefix list, this command will display the verbose information of
all active and inactive routes with the parameter verbose and it will display the
summary of all active routes without the parameter verbose.
Example
# Display the summary of the active route that is filtered through ip prefix list abc2.
<H3C> display ip routing-table ip-prefix abc2
Routes matched by ip-prefix abc2:
Summary count: 4
Destination/Mask Proto Pre Cost Nexthop Interface
127.0.0.0/8 Direct 0 0 127.0.0.1 InLoopBack0
127.0.0.1/32 Direct 0 0 127.0.0.1 InLoopBack0
169.0.0.0/8 Static 60 0 2.1.1.1 LoopBack1
169.0.0.0/15 Static 60 0 2.1.1.1 LoopBack1
# Display the verbose information of the active and inactive routes that are filtered
through ip prefix list abc2.
<H3C> display ip routing-table ip-prefix abc2 verbose
Routes matched by ip-prefix abc2:
Generate Default: no
+ = Active Route, - = Last Active, # = Both * = Next hop in use
Summary count:4
**Destination: 127.0.0.0 Mask: 255.0.0.0
Protocol: #Direct Preference: 0
*NextHop: 127.0.0.1 Interface: 127.0.0.1(InLoopBack0)
Vlinkindex: 0
State: <NoAdvise Int ActiveU Retain Multicast Unicast>
Age: 3:47 Metric: 0/0
**Destination: 127.0.0.1 Mask: 255. 255. 255. 255
Protocol: #Direct Preference: 0
*NextHop: 127.0.0.1 Interface: 127.0.0.1(InLoopBack0)
Vlinkindex: 0
State: <NotInstall NoAdvise Int ActiveU Retain Gateway Multicast Unicast>
Age: 3:47 Metric: 0/0
**Destination: 179.0.0.0 Mask: 255.0.0.0
1-7
Command Manual – Routing Protocol
Comware V3 Chapter 1 Static Route Configuration Commands
Syntax
View
Any view
Parameter
1-8
Command Manual – Routing Protocol
Comware V3 Chapter 1 Static Route Configuration Commands
Description
Use the display ip routing-table protocol command to view the routing information of
specified protocol. If vpn-instance is not specified, the routing information of the public
network will be displayed; if vpn-instance is specified, the routing information of the
private network will be displayed.
Example
Syntax
View
Any view
1-9
Command Manual – Routing Protocol
Comware V3 Chapter 1 Static Route Configuration Commands
Parameter
None
Description
Use the display ip routing-table radix command to view the routing table information
in a tree structure.
Example
Syntax
View
Any view
Parameter
Description
Use the display ip routing-table statistics command to view the integrated routing
information.
If you do not specify vpn-instance in the display ip routing-table statistics command,
the system displays the routing information of public networks. If you specify
vpn-instance, the system displays the routing information of private networks.
The integrated routing information includes total route amount, the route amount added
or deleted by protocol, amount of the routes that are labeled deleted but not deleted,
the active route amount and inactive route amount.
1-10
Command Manual – Routing Protocol
Comware V3 Chapter 1 Static Route Configuration Commands
Example
Syntax
View
Any view
Parameter
None
Description
Use the display ip routing-table verbose command to view the verbose routing table
information.
With the verbose parameter, this command displays the verbose routing table
information. The descriptor describing the route state will be displayed first, then the
statistics of the entire routing table will be output and finally the verbose description of
each route will be output.
All current routes, including inactive routes and invalid routes, can be displayed using
the display ip routing-table verbose command.
Example
1-11
Command Manual – Routing Protocol
Comware V3 Chapter 1 Static Route Configuration Commands
The statistics of the entire routing table is displayed first, then the verbose description of
each route is output. The meanings of route state parameters are explained in the
following table:
Table 1-1 Description of the output information of the display ip routing-table verbose
command
Field Description
Number of currently hold down routes – Holddown refers to a route
advertising policy used by some distance vector (D-V) routing
protocols (such as RIP) in order to avoid expansion of error routes
and improve fast and correct transmission of unreachable routing
Holddown
information. It usually advertises a route fixedly at an interval no
matter what changes have happened to the routes to the same
destination, which have been learned actually. For details, refer to
the specific routing protocol.
Delete Number of routes that have been deleted currently.
Number of currently hidden routes -- Some routes are not available
Hidden at present for some reason (e.g., the interface is Down) but are not
expected to be deleted. They can be hidden for future restoration.
Syntax
View
Any view
1-12
Command Manual – Routing Protocol
Comware V3 Chapter 1 Static Route Configuration Commands
Parameter
Description
Example
1-13
Command Manual – Routing Protocol
Comware V3 Chapter 1 Static Route Configuration Commands
Syntax
View
User view
Parameter
Description
Example
# Remove the routing information of the private network whose VPN-instance name is
h3c11.
[H3C] reset ip routing-table vpn-instance h3c1
Routing tables:
Proto route active added deleted
DIRECT 2 2 0 0
STATIC 1 1 0 0
BGP 0 0 0 0
RIP 0 0 0 0
IS-IS 0 0 0 0
OSPF 0 0 0 0
O_ASE 0 0 0 0
O_NSSA 0 0 0 0
AGGRE 0 0 0 0
Total 3 3 0 0
1-14
Command Manual – Routing Protocol
Comware V3 Chapter 1 Static Route Configuration Commands
Syntax
View
System view
Parameter
None
Description
Use the delete static-routes all command to cancel all the static routes.
When this command is used to cancel static routes, the user should confirm the
settings before all the configured static routes are canceled.
Related command: display ip routing-table and ip route-static.
Example
1.2.2 ip route-static
Syntax
1-15
Command Manual – Routing Protocol
Comware V3 Chapter 1 Static Route Configuration Commands
View
System view
Parameter
Description
1-16
Command Manual – Routing Protocol
Comware V3 Chapter 1 Static Route Configuration Commands
Example
# Configure the static route, whose destination address is 100.1.1.1 and whose
next-hop address is 1.1.1.2.
[H3C] ip route-static vpn-instance vpn1 100.1.1.1 16 vpn-instance vpn1 1.1.1.2
1-17
Command Manual – Routing Protocol
Comware V3 Chapter 1 Static Route Configuration Commands
Syntax
band-based-sharing
undo band-based-sharing
View
System view
Parameter
None
Description
Example
Syntax
View
Any view
Parameter
1-18
Command Manual – Routing Protocol
Comware V3 Chapter 1 Static Route Configuration Commands
Description
Use the display loadsharing ip address command to view the statistics about the
unbalanced load sharing based on interface bandwidth, including the number and ratio
of the packets sent from the interfaces related to the equal-cost routes to a network
address.
You can view these equal-cost routes using the display fib command.
Related command: display fib.
Example
# Display information about load sharing on all the interfaces corresponding to the
equal-cost routes to the network 10.2.1.0/24.
[H3C] display loadsharing ip address 10.2.1.0 24
There are/is totally 3 route entry(s) to the same destination network.
Nexthop Packet(s) Bandwidth[KB] Flow(s) Interface
10.1.1.2 763851 100000 0 Ethernet0/0/0
10.1.2.2 1193501 155000 0 Atm1/0/0
10.1.3.2 15914 2048 0 Serial2/0/0
BandWidth:48:75:1
Packets:47:74:1
Flows:0:0:0
1.3.3 loadbandwidth
Syntax
loadbandwidth bandwidth
undo loadbandwidth
View
Parameter
Description
1-19
Command Manual – Routing Protocol
Comware V3 Chapter 1 Static Route Configuration Commands
Different from physical bandwidth, the configuration of load bandwidth does not affect
interface properties but load distribution. When you set the bandwidth argument to 0,
the current interface is shut down and do not participate in load sharing.
Example
Syntax
View
User view
Parameter
all: Clears the statistics about unbalanced load sharing for all interfaces.
ip-address mask: IP address and mask of destination network. The specified mask
takes the dotted decimal format or the form of length.
Description
Use the reset loadsharing command to reset statistics about unbalanced load sharing
for all interfaces or the interfaces related to the equal-cost routes to the specified
destination network.
Example
1-20
Command Manual – Routing Protocol
Comware V3 Chapter 2 RIP Configuration Commands
Note:
For the specific examples and parameter explanation of VPN instance, refer to “MPLS”
module of this manual.
Syntax
checkzero
undo checkzero
View
RIP view
Parameter
None
Description
Use the checkzero command to check the zero field of RIP-1 packet.
Use the undo checkzero command to cancel the check of the zero fields.
By default, RIP-1 performs the zero field check.
According to the protocol (RFC1058) specifications, some fields in RIP-1 packets must
be zero, called zero fields. With the checkzero command, the zero check operation for
RIP-1 packet can be enabled or disabled. During the zero check operation, if the RIP-1
packet in which the zero fields are not zeros is received, it will be rejected.
This command is ineffective to RIP-2 since RIP-2 packets have no zero fields.
Example
2-1
Command Manual – Routing Protocol
Comware V3 Chapter 2 RIP Configuration Commands
Syntax
View
User view
Parameter
Description
Example
Syntax
View
RIP view
Parameter
value: Default routing cost to be set, ranging from 1 to 16.The default value is 1.
Description
Use the default cost command to configure the default routing cost of a redistributed
route.
Use the undo default cost command to restore the default value.
2-2
Command Manual – Routing Protocol
Comware V3 Chapter 2 RIP Configuration Commands
If no specific routing cost is specified when redistributing routes from other protocols
with the import-route command, the redistributing will be performed with the default
routing cost specified by the default cost command.
Related command: import-route.
Example
# Set the default routing cost of redistributing other routing protocol routes as 3.
[H3C-rip] default cost 3
Syntax
display rip
View
Any view
Parameter
None
Description
Use the display rip command to view the current RIP running state and its
configuration information.
Example
# Display the current running state and configuration information of the RIP protocol.
<H3C> display rip
RIP is turned on
public net VPN-Instance
Checkzero is on Default cost : 1
Summary is on Preference : 100
Period update timer : 30
Timeout timer : 180
Garbage-collection timer : 120
No peer router
Table 2-1 Description of the output information of the display rip command
Field Description
RIP is turned on RIP is enabled.
public net VPN-Instance Public networks in the VPN-instance
2-3
Command Manual – Routing Protocol
Comware V3 Chapter 2 RIP Configuration Commands
Field Description
Checkzero is on Enables checkzero of RIP.
The default cost of the redistributed
Default cost : 1
route is 1.
Summary is on Enables route summary of RIP.
Preference : 100 The preference of RIP is 100.
Period update timer : 30
Timeout timer : 180 Setting on the three timers of RIP
Garbage-collection timer : 120
No peer router RIP has no peer router.
Syntax
View
Any view
Parameter
Description
Use the display rip interface command to display information about the specified RIP
interface or all RIP interface.
Example
2-4
Command Manual – Routing Protocol
Comware V3 Chapter 2 RIP Configuration Commands
Table 2-2 Description on the fields of the display rip interface command
Field Description
IP address of the RIP interface. You must enable the RIP interface
Address
using the network in RIP view
Name of the RIP interface. Its IP address is displayed in the Address
Interface
field
Pro RIP version running on the interface
MetrIn/Out The routing metric value added when receiving or sending routes
On indicates that the interface can receive RIP packets and off
Input
indicates the contrary.
On indicates that the interface can send RIP packets and off
Output
indicates the contrary.
On indicates that slit horizon is enabled and off indicates that slit
Split-horizon
horizon is disabled
Syntax
View
Any view
Parameter
Description
Use the display rip routing command to display the RIP routing table, including
normal routes and routes in garbage-collection status.
With vpn-instance not specified, RIP routes of the public network will be displayed;
with vpn-instance specified, RIP routes of the specified vpn-instance will be displayed.
Example
2-5
Command Manual – Routing Protocol
Comware V3 Chapter 2 RIP Configuration Commands
Table 2-3 Description on the fields of the display rip routing command
Field Description
Destination/Mask Destination address/mask length
Cost Routing metric
NextHop Address of the next hop
Age The lifetime of the route entry in the routing table (aging time)
SourceGateway Address of the source gateway from which the route is learnt
Route status, which could be one of the following:
A = Active
I = Inactive
Att
G = Garbage collection
C = Change
T = Trigger RIP
Syntax
View
Any view
Parameter
Description
Use the display rip vpn-instance command to view the related configuration of VPN
instance of RIP.
Example
None
2-6
Command Manual – Routing Protocol
Comware V3 Chapter 2 RIP Configuration Commands
Syntax
View
RIP view
Parameter
acl-number: Access control list number used for filtering the destination addresses of
the routing information.
ip-prefix-name: Name of address prefix list used for filtering the destination addresses
of the routing information.
route-policy-name: Name of the routing policy used for filtering routing information. It
allows RIP to decide which routes should be sent or received based on the fields acl,
cost, interface, ip, ip-prefix, and tag.
routing-protocol: Routing protocol whose routing information is to be filtered, including
direct, isis, bgp, ospf, ospf-ase, ospf-nssa, and static at present.
Description
Use the filter-policy export command to configure to filter the advertised routing
information by RIP.
Use the undo filter-policy export command to configure not to filter the advertised
routing information.
By default, RIP does not filter the advertised routing information.
Related command: acl, filter-policy import, and ip ip-prefix.
Example
Syntax
2-7
Command Manual – Routing Protocol
Comware V3 Chapter 2 RIP Configuration Commands
View
RIP view
Parameter
ip-prefix-name: Name of address prefix list used for filtering the destination addresses
of the routing information.
acl-number: Access control list number used for filtering the destination addresses of
the routing information.
gateway ip-prefix-name: Name of address prefix list used for filtering the addresses of
the neighboring routers advertising the routing information.
route-policy-name: Name of the routing policy used for filtering routing information. It
allows RIP to decide which routes should be sent or received based on the fields acl,
cost, interface, ip, ip-prefix, and tag.
Description
Use the filter-policy gateway command to configure to filter the received routing
information distributed from the specified address.
Use the undo filter-policy gateway command to configure not to filter the received
routing information distributed from the specified address.
Use the filter-policy import command to configure the filtering to the received global
routing information.
Use the undo filter-policy import command to disable filtering to the received global
routing information
By default, RIP does not filter the received routing information.
The range of the routes received by RIP can be controlled by specifying the access
control list and the address prefix list.
Related command: acl, filter-policy export, and ip ip-prefix.
Example
# Configure the filtering of the global routing information according to acl 2003.
[H3C-rip] filter-policy 2003 import
2-8
Command Manual – Routing Protocol
Comware V3 Chapter 2 RIP Configuration Commands
2.1.10 host-route
Syntax
host-route
undo host-route
View
RIP view
Parameter
None
Description
Use the host-route command to control the RIP to accept the host route.
Use the undo host-route command to reject the host route.
By default, router accepts the host route.
In some special cases, RIP receives a great number of host routes in the same network
segment. These routes cannot help the path searching much but occupy a lot of
resources. In this case, the undo host-route command can be used to reject host
routes.
Example
2.1.11 import-route
Syntax
View
RIP view
Parameter
2-9
Command Manual – Routing Protocol
Comware V3 Chapter 2 RIP Configuration Commands
allow-ibgp command redistributes IBGP routes in addition and as such, must be used
with cautions.
value: Cost value of the route to be redistributed, ranging from 1 to 16..
route-policy route-policy-name: Configured to redistribute the route matching the
condition of the specified Route-policy only.
Description
Use the import-route command to redistribute the routes of other protocols into RIP.
Use the undo import-route command to cancel the routes redistributed from other
protocols.
By default, RIP does not redistribute any other routes.
The import-route command is used to redistribute the route of another protocol by
using a certain value. RIP regards the redistributed route as its own route and transmits
it with the specified value. This command can greatly enhance the RIP capability of
obtaining routes, thus increasing the RIP performance.
If the cost value is not specified, routes will be redistributed according to the default
cost. It is in the range of 1 to 16. If it is larger than or equal to 16, it indicates an
unreachable route and the transmission will be stopped in 120 seconds.
Related command: default cost.
Example
# Set the default cost and redistribute an OSPF route with the default cost.
[H3C-rip] default cost 3
[H3C-rip] import-route ospf
Syntax
View
RIP view
Parameter
2-10
Command Manual – Routing Protocol
Comware V3 Chapter 2 RIP Configuration Commands
vpn-instance-name: Associates the specified VPN instance with the IPv4 address
family. Enter the MBGP address family view of RIP with this parameter.
Description
Use the ipv4-family command to enter MBGP address family view of RIP.
Use the undo ipv4-family command to cancel all configurations in extended address
family view.
ipv4-family command is used to enter the MBGP address family view. In this view,
parameters related to address family can be configured for RIP.
undo ipv4-family command is only used in RIP view.
The ipv4-family vpn-instance command is used for BGP/MPLS VPN. For related
description, refer to “MPLS VPN“ section in module “MPLS” chapter of this manual.
Related command: display rip vpn-instance.
2.1.13 network
Syntax
network network-address
undo network network-address
View
RIP view
Parameter
Note:
For AR 28 series routers, the network-address argument can be configured to 0.0.0.0
to enable all network segments; while for AR 18 series routers, the network-address
argument cannot be configured to 0.0.0.0.
Description
Use the network command to enable Routing Information Protocol (RIP) on the
interface.
Use the undo network command to cancel the RIP on the interface.
By default, RIP is disabled on any interface.
2-11
Command Manual – Routing Protocol
Comware V3 Chapter 2 RIP Configuration Commands
After enabling a RIP routing process, it is disabled on any interface by default. RIP at a
certain interface must be enabled with the network command.
Like the undo rip work command in interface view, the undo network command in
RIP view can disable an interface from receiving or transmitting RIP routes. They are
different in the sense that the undo rip work command does not prevent other
interfaces from forwarding the route of the interface while the undo network can
prevent RIP from advertising the route of the interface and as a result no route is
available for forwarding the packets intended for this interface.
When the network command is used on an address, the effect is that the interface on
the network segment at this address is enabled. For example, the results of viewing the
network 129.102.1.1 with both the display current-configuration command and the
display rip command are shown as the network 129.102.0.0.
Related command: rip work.
Example
# Enable the RIP on the interface with the network address as 129.102.0.0.
[H3C-rip] network 129.102.0.0
2.1.14 peer
Syntax
peer ip-address
undo peer ip-address
View
RIP view
Parameter
ip-address: IP address of the peer router with which information will be exchanged in
unicast mode, represented in the format of dotted decimal.
Description
Use the peer command to configure the destination address of the peer to which
information is sent in unicast mode.
Use the undo peer command to cancel the set destination address.
By default, do not send RIP packet to any destination.
This command specifies the sending destination address to fit some non-broadcast
networks. Usually, it is not recommended to use this command.
2-12
Command Manual – Routing Protocol
Comware V3 Chapter 2 RIP Configuration Commands
Example
2.1.15 preference
Syntax
preference value
undo preference
View
RIP view
Parameter
value: Preference level, ranging from 1 to 255. By default, the value is 100.
Description
Example
2.1.16 reset
Syntax
reset
View
RIP view
Parameter
None
2-13
Command Manual – Routing Protocol
Comware V3 Chapter 2 RIP Configuration Commands
Description
Example
2.1.17 rip
Syntax
rip
undo rip
View
system view
Parameter
None
Description
Use the rip command to enable the RIP and enter the RIP view.
Use the undo rip command to cancel RIP.
By default, the system does not run RIP.
To enter the RIP view to configure various RIP global parameters, RIP should be
enabled first. Whereas the configuration of parameters related to the interfaces is not
restricted by enabling/disabling RIP.
Caution:
You can execute the undo rip command in both system view and interface view, which
will lead to deletion of all RIP-related commands.
Example
2-14
Command Manual – Routing Protocol
Comware V3 Chapter 2 RIP Configuration Commands
[H3C-rip]
Syntax
View
Interface view
Parameter
Description
2-15
Command Manual – Routing Protocol
Comware V3 Chapter 2 RIP Configuration Commands
Example
# Specify Interface serial1/0/0 to use the simple text authentication with the key as aaa.
[H3C] interface serial1/0/0
[H3C-Serial1/0/0] rip version 2
[H3C-Serial1/0/0] rip authentication-mode simple aaa
Syntax
rip input
undo rip input
View
Interface view
Parameter
None
Description
Use the rip input command to allow an interface to receive RIP packets.
Use the undo rip input command to cancel an interface to receive RIP packets.
By default, RIP packets at all interfaces (except loopback interface) can be received..
This command is used in cooperation with the other two commands: rip output and rip
work. Functionally, rip work is equivalent to rip input & rip output. The latter two
control the receipt and the transmission of RIP packets respectively on an interface.
The former command equals the functional combination of the latter two commands.
Related command: rip output and rip work.
Example
Syntax
View
Interface view
2-16
Command Manual – Routing Protocol
Comware V3 Chapter 2 RIP Configuration Commands
Parameter
value: Additional route metric added when receiving a packet, ranging from 0 to 16. By
default, the value is 0.
Description
Use the rip metricin command to configure the additional route metric added to the
route when an interface receives RIP packets.
Use the undo rip metricin command to restore the default value of this additional route
metric.
This command is valid for the routes distributed by the local network and other routes
redistributed by other routes. This command is invalid for the routes redistributed by the
local router.
Related command: rip metricout.
Example
# Specify the additional route metric to 2 when the interface serial1/0/0 receives RIP
packets.
[H3C] interface serial1/0/0
[H3C-serial1/0/0] rip metricin 2
Syntax
View
Interface view
Parameter
value: Additional route metric added when transmitting a packet, ranging from 1 to 16.
By default, the value is 1.
all-route: Adds the additional route metric to all routes.
Description
Use the rip metricout value command to enable RIP to send routes out the interface
with an additional route metric added. This command applies to routes both locally
learned and learned from other routers.
2-17
Command Manual – Routing Protocol
Comware V3 Chapter 2 RIP Configuration Commands
Use the rip metricout value all-route command to enable RIP to send routes out the
interface with an additional route metric added. This command applies to locally
redistributed routes in addition to those locally learned and learned from other routers.
Use the undo rip metricout command to restore the default value of this additional
route metric.
The rip metricout value command will override the previously configured rip
metricout value all-route command, if there is any.
Related command: rip metricin.
Example
# Enable RIP to send routes out interface Serial 6/0/0 all with an additional route metric
added.
[H3C-Serial6/0/0] rip metricout 10 all-route
# When RIP sends routes out interface Serial 6/0/0, enable it to add an additional route
metric to the routes both locally learned and learned from other routers.
[H3C-Serial6/0/0] rip metricout 10
Syntax
rip output
undo rip output
View
Interface view
Parameter
None
Description
Use the rip output command to configure an interface to transmit RIP packets to the
external.
Use the undo rip output command to cancel an interface to transmit RIP packets to
the external.
By default, RIP packets at all interfaces (except loopback interface) can be transmitted.
This command is used in cooperation with the other two commands: rip input and rip
work. Functionally, rip work is equivalent to rip input & rip output. The latter two
2-18
Command Manual – Routing Protocol
Comware V3 Chapter 2 RIP Configuration Commands
control the receipt and the transmission of RIP packets respectively on an interface.
The former command equals the functional combination of the latter two commands.
Related command: rip input and rip work.
Example
Syntax
rip split-horizon
undo rip split-horizon
View
Interface view
Parameter
None
Description
Use the rip split-horizon command to configure an interface to use split horizon when
transmitting RIP packets.
Use the undo rip split-horizon command to configure an interface not to use split
horizon when transmitting RIP packets.
By default, an interface is enabled to use split horizon when transmitting RIP packets.
Normally, split horizon is necessary for reducing routing loops. Only in some special
cases should split horizon be disabled to ensure the correct execution of protocols. For
example, on an NBMA network, you need to disable split horizon on FR-encapsulated
main interfaces and point-to-multipoint subinterfaces to allow an interface to send the
routes learned from those interfaces.
Example
# Specify the interface serial1/0/0 not to use split horizon when processing RIP packets.
[H3C] interface serial1/0/0
[H3C-serial1/0/0] undo rip split-horizon
2-19
Command Manual – Routing Protocol
Comware V3 Chapter 2 RIP Configuration Commands
Syntax
rip triggered
undo rip triggered
View
Interface view
Parameter
None
Description
Example
# Enable TRIP.
[H3C] serial 6/0/0
[H3C-Serial6/0/0] rip triggered
Syntax
View
Interface view
2-20
Command Manual – Routing Protocol
Comware V3 Chapter 2 RIP Configuration Commands
Parameter
Description
Use the rip version command to configure the version of RIP packets on an interface.
Use the undo rip version command to restore the default value of RIP packet version
on the interface.
By default, the interface RIP version is RIP-1.
RIP-2 has 2 transmission modes: broadcast and multicast. Multicast is the default
mode. The multicast address in RIP-2 is 224.0.0.9. One of the advantages of multicast
mode is that the hosts that do not run RIP in this network will not receive the broadcast
packets. Additionally, hosts running RIP-1 will be prevented from receiving and
processing the RIP-2 routes with subnet masks.
When the interface specifies the use of RIP-1, only RIP-1 and RIP-2 broadcast packets
will be received. In this case, RIP-2 multicast packets will be rejected. When the
interface is specified to use RIP-2 multicast, only RIP-2 multicast packets and RIP-2
broadcast packets will be received. In this case, RIP-1 packets will be rejected.
Example
Syntax
rip work
undo rip work
View
Interface view
Parameter
None
2-21
Command Manual – Routing Protocol
Comware V3 Chapter 2 RIP Configuration Commands
Description
Use the rip work command to enable the running of RIP on an interface.
Use the undo rip work command to disable the running of RIP on an interface.
By default, RIP is run on an interface.
This command is used in cooperation with rip input, rip output and network
commands.
Related command: network, rip input, and rip output.
Example
2.1.27 summary
Syntax
summary
undo summary
View
RIP view
Parameter
None
Description
2-22
Command Manual – Routing Protocol
Comware V3 Chapter 2 RIP Configuration Commands
Example
# Set RIP version on the interface serial1/0/0 as RIP-2 and disable the route
summarization function.
[H3C] interface serial1/0/0
[H3C-serial1/0/0] rip version 2
[H3C-serial1/0/0] quit
[H3C] rip
[H3C-rip] undo summary
2.1.28 timers
Syntax
View
RIP view
Parameter
Description
Use the timers command to modify value for the three timers, Period update, Timeout
and Garbage-collection, of RIP.
Use the undo timers command to restore the default setting.
The default values of timer Period update, Timeout and Garbage-collection are
respectively 30s, 180s and 120s.
Usually, the timing length of timer Garbage-collection is fixedly 3 times longer than that
of timer Period update. However, in practice, an unreachable route will not be
completely deleted until the fourth update packet sent from the same neighbor is
received. So the actual timing length of timer Garbage-collection is as 3 to 4 times as
that of timer Period update. Additionally, the modification on timer Period update will
affect timer Garbage-collection.
The modified value of RIP timers will take effect immediately.
Related command: display rip.
2-23
Command Manual – Routing Protocol
Comware V3 Chapter 2 RIP Configuration Commands
Example
2.1.29 traffic-share-across-interface
Syntax
traffic-share-across-interface
undo traffic-share-across-interface
View
Parameter
None
Description
Example
2.1.30 validate-source-address
Syntax
validate-source-address
undo validate-source-address
View
Parameter
None
2-24
Command Manual – Routing Protocol
Comware V3 Chapter 2 RIP Configuration Commands
Description
Example
2-25
Command Manual – Routing Protocol
Comware V3 Chapter 3 OSPF Configuration Commands
Syntax
View
Parameter
Description
Use the abr-summary command to configure the route aggregation on the area border
router (ABR).
Use the undo abr-summary command to cancel the function of route aggregation on
the area border router.
By default, the area border router doesn’t aggregate routes.
This command is applicable only to the ABR and is used for the route aggregation in an
area. The ABR only transmits an aggregated route to other areas. Route aggregation
refers to that the routing information is processed in the ABR and for each network
segment configured with route aggregation, there is only one route transmitted to other
areas. An area can configure multiple aggregation network segments. Thus OSPF can
aggregate various network segments together.
Example
# Aggregate the routes in the two network segments, 36.42.10.0 and 36.42.110.0, of
OSPF area 1 into one route 36.42.0.0 and transmit it to other areas.
[H3C-ospf-1] area 1
[H3C-ospf-1-area-0.0.0.1] network 36.42.10.0 0.0.0.255
[H3C-ospf-1-area-0.0.0.1] network 36.42.110.0 0.0.0.255
3-1
Command Manual – Routing Protocol
Comware V3 Chapter 3 OSPF Configuration Commands
3.1.2 area
Syntax
area area-id
undo area area-id
View
Parameter
area-id: ID of the OSPF area, which can be a decimal integer (ranging from 0 to
4294967295) or in IP address format.
Description
Example
3.1.3 asbr-summary
Syntax
View
OSPF view
Parameter
3-2
Command Manual – Routing Protocol
Comware V3 Chapter 3 OSPF Configuration Commands
Description
Example
3.1.4 authentication-mode
Syntax
View
Parameter
Description
Use the authentication-mode command to configure one area of OSPF to support the
authentication attribute.
Use the undo authentication-mode command to cancel the authentication attribute of
this area.
By default, an area does not support authentication attribute.
3-3
Command Manual – Routing Protocol
Comware V3 Chapter 3 OSPF Configuration Commands
All the routers in one area must use the same authentication mode (no authentication,
supporting simple text authentication or MD5 cipher text authentication). If the mode of
supporting authentication is configured, all routers on the same segment must use the
same authentication key. To configure a simple text authentication key, use the ospf
authentication-mode simple command. And, use the ospf authentication-mode
md5 command to configure the MD5 cipher text authentication key if the area is
configured to support MD5 cipher text authentication mode.
Related command: ospf authentication-mode.
Example
Syntax
debugging ospf [ process-id ] { event | { packet [ ack | dd | hello | interface type num
| request | update ] } | lsa-generate | spf | te }
undo debugging ospf [ process-id ] { event | { packet [ ack | dd | hello | interface type
num | request | update ] } | lsa-generate | spf | te }
View
User view
Parameter
3-4
Command Manual – Routing Protocol
Comware V3 Chapter 3 OSPF Configuration Commands
spf: Enables the debugging of the calculation of the OSPF shortest-path tree.
te: Enables the debugging of OSPF TE.
Description
Example
Syntax
View
OSPF view
Parameter
value: Default routing cost of external route redistributed by OSPF, ranging from 0 to
16777214. By default, its value is 1.
3-5
Command Manual – Routing Protocol
Comware V3 Chapter 3 OSPF Configuration Commands
Description
Use the default cost command to configure the default cost for OSPF to redistribute
external routes.
Use the undo default cost command to restore the default value of the default routing
cost configured for OSPF to redistribute external routes.
Since OSPF can redistribute external routing information and propagate it to the entire
autonomous system, it is necessary to specify the default routing cost for the protocol
to redistribute external routes.
If multiple OSPFs are enabled, the command is valid to this process only.
Example
# Specify the default routing cost for OSPF to redistribute external routes as 10.
[H3C-ospf-1] default cost 10
Syntax
View
OSPF view
Parameter
seconds: Default interval for redistributing external routes. Its unit is second and the
value ranges from 1 to 2147483647. By default, the interval for OSPF to redistribute
external routes is 1 second.
Description
Use the default interval command to configure the default interval for OSPF to
redistribute external routes.
Use the undo default interval command to restore the default value of the default
interval of redistributing external routes.
Because OSPF can redistribute the external routing information and broadcast it to the
entire autonomous system, it is necessary to specify the default interval for the protocol
to redistribute external routes.
Example
# Specify the default interval for OSPF to redistribute external routes as 10 seconds.
[H3C-ospf-1] default interval 10
3-6
Command Manual – Routing Protocol
Comware V3 Chapter 3 OSPF Configuration Commands
Syntax
View
OSPF view
Parameter
routes: Default value to the redistributed external routes in a unit time, ranging from 200
to 2147483647. By default, the value is 1000.
Description
Use the default limit command to configure default value of maximum number of
redistributed routes.
Use the undo default limit command to restore the default value.
OSPF can redistribute external route information and broadcast them to the whole
autonomous system, so it is necessary to regulate the default value of external route
information redistributed in one process.
Related command: default interval.
Example
Syntax
View
OSPF view
Parameter
3-7
Command Manual – Routing Protocol
Comware V3 Chapter 3 OSPF Configuration Commands
Description
Use the default tag command to configure the default tag of OSPF when it
redistributes an external route.
Use the undo default tag command to restore the default tag of OSPF when it
redistributes the external route.
When OSPF redistributes a route found by other routing protocols in the router and
uses it as the external routing information of its own autonomous system, some
additional parameters are required, including the default cost and the default tag of the
route.
Related command: default type.
Example
# Set the default tag of OSPF redistributed external route of the autonomous system as
10.
[H3C-ospf-1] default tag 10
Syntax
default type { 1 | 2 }
undo default type
View
OSPF view
Parameter
Description
Use the default type command to configure the default type when OSPF redistributes
external routes.
Use the undo default type command to restore the default type when OSPF
redistributes external routes.
By default, the external routes of type 2 are redistributed.
OSPF specifies the two types of external routing information. The command described
in this section can be used to specify the default type when external routes are
redistributed.
Related command: default tag.
3-8
Command Manual – Routing Protocol
Comware V3 Chapter 3 OSPF Configuration Commands
Example
# Specify the default type as type 1 when OSPF redistributes an external route.
[H3C-ospf-1] default type 1
3.1.11 default-cost
Syntax
default-cost value
undo default-cost
View
Parameter
value: Specifies the cost value of the default route transmitted by OSPF to the STUB or
NSSA area, ranging from 0 to 16777214. The default value is 1.
Description
Use the default-cost command to configure the cost of the default route transmitted by
OSPF to the STUB or NSSA area.
Use the undo default-cost command to restore the cost of the default route
transmitted by OSPF to the STUB or NSSA area to the default value.
This command is applicable for the border routers connected to STUB or NSSA area.
The stub and default-cost commands are necessary in configuring STUB area. All the
routers connected to STUB area must use stub command to configure the stub
attribute to this area. Use the default-cost command to specify the cost of the default
route transmitted by ABR to STUB or NSSA area.
This command is only valid for this process if multiple OSPF processes are enabled.
Related command: stub and nssa.
Example
# Set the area 1 as the STUB area and the cost of the default route transmitted to this
STUB area to 60.
[H3C-ospf-1] area 1
[H3C-ospf-1-area-0.0.0.1] network 20.0.0.0 0.255.255.255
[H3C-ospf-1-area-0.0.0.1] stub
[H3C-ospf-1-area-0.0.0.1] default-cost 60
3-9
Command Manual – Routing Protocol
Comware V3 Chapter 3 OSPF Configuration Commands
3.1.12 default-route-advertise
Syntax
View
OSPF view
Parameter
always: If the parameter is selected, a default route which is advertised via LSAs will be
generated no matter whether there is a default route in the routing table. For the ASBR
in an general area, the default route is advertised via Type-5 LSA, while in NSSA, the
default route is advertised via Type-7 LSA.
cost-value: Cost value of this LSA. The cost-value ranges from 0 to 16777214. The
default value is 1.
type-value: Cost type of this LSA. It ranges from 1 to 2. The default value is 2.
route-policy-name: If the default route matches the route-policy specified by
route-policy-name, route-policy will affect the value in LSA. The length of
route-policy-name parameter ranges from 1 to 19 character.
Description
3-10
Command Manual – Routing Protocol
Comware V3 Chapter 3 OSPF Configuration Commands
Example
# If local route has default route, the LSA of default route will be generated, otherwise it
won’t be generated.
[H3C-ospf-1] default-route-advertise
# The LSA of default route will be generated and advertised to OSPF route area even
the local router has no default route.
[H3C-ospf-1] default-route-advertise always
Syntax
View
Any view
Description
Use the display debugging ospf command to view the state of the debug switches for
each OSPF process.
Related command: debugging ospf.
Example
# View the global OSPF debugging state and each process debugging state.
<H3C> display debugging ospf
OSPF process 1 debugging state:
OSPF SPF debugging switch is on
OSPF EVENT debugging switch is on
OSPF LSA debugging switch is on
Table 3-1 Description on the fields of the display debugging ospf command
Field Description
The state of the debug switches for
OSPF process 1 debugging state:
OSPF process 1 is displayed.
OSPF SPF debugging switch is on OSPF SPF debug switch is turned on.
OSPF EVENT debugging switch is on OSPF event debug switch is turned on.
OSPF LSA debugging switch is on OSPF LSA debug switch is turned on.
3-11
Command Manual – Routing Protocol
Comware V3 Chapter 3 OSPF Configuration Commands
Syntax
View
Any view
Parameter
process-id: OSPF process ID. If no process ID is specified, the command takes effect
on all OSPF processes.
Description
Use the display ospf abr-asbr command to view information on the routes to the Area
Border Router (ABR) and Autonomous System Border Router (ASBR) of OSPF.
Example
Table 3-2 Description on the fields of the display ospf abr-asbr command
Field Description
Destination Router ID of ABR or ASBR
The area to which both this router and the ABR or the
Area
ASBR is connected
Cost Route cost
Nexthop Next hop address
Interface Output interface of this router
Syntax
3-12
Command Manual – Routing Protocol
Comware V3 Chapter 3 OSPF Configuration Commands
View
Any view
Parameter
process-id: OSPF process ID. If no process ID is specified, the command takes effect
on all OSPF processes.
ip-address: Matched IP address, in dotted decimal notation.
mask: IP address mask in dotted decimal notation.
Description
Use the display ospf asbr-summary command to view summary about the
redistributed routes of OSPF.
If the parameters are not configured, the summary information of all redistributed routes
will be viewed.
Related command: asbr-summary.
Example
Summary Address
net : 168.10.0.0
mask : 255.254.0.0
tag : 1
status : Advertise
The Count of Route is 0
Summary Address
net : 1.1.0.0
mask : 255.255.0.0
tag : 100
status : DoNotAdvertise
The Count of Route is 0
3-13
Command Manual – Routing Protocol
Comware V3 Chapter 3 OSPF Configuration Commands
Table 3-3 Description on the fields of the display ospf asbr-summary command
Field Description
net Destination segment
mask Mask
tag Tag
State information. Two values are available:
DoNotAdvertise: The summary route destined to this network segment
status is not to be advertised.
Advertise: The summary route destined to this network segment is to
be advertised.
Syntax
View
Any view
Parameter
Description
Use the display ospf brief command to view the summary of OSPF.
Example
Area 0.0.0.0:
Authtype: none Flags: <>
3-14
Command Manual – Routing Protocol
Comware V3 Chapter 3 OSPF Configuration Commands
Table 3-4 Description on the fields of the display ospf brief command
Field Description
RouterID Router ID of this router
The knowledge that this router has about the ABRs
Border Router
and ASBRs connected to this area
spf-schedule-interval SPF calculation interval
Authtype OSPF authentication type
OSPF routing preference.
For OSPF internal routes (including intra-area and
Routing preference inter-area routes), the default routing preference is 10.
For OSPF external routes, the default routing
preference is 150.
The default metric, type, type and other parameter
Default ASE parameters
values for the redistributed external routes
SPF computation count Number of SPF calculations since OSPF is enabled
Area Count The areas connected to this router
Nssa Area Count Number of NSSA areas
3-15
Command Manual – Routing Protocol
Comware V3 Chapter 3 OSPF Configuration Commands
Field Description
OSPF timers:
Hello: specifies the hello interval.
Timers Dead: specifies the neighbor dead interval
Poll: specifies the polling interval
Retransmit: specifies LSA retransmission interval
Transmit Delay LSA transmission delay on the interface
Syntax
View
Any view
Parameter
process-id: OSPF process ID. If no process ID is specified, the command takes effect
on all OSPF processes.
Description
Use the display ospf cumulative command to view the OSPF cumulative information.
Example
3-16
Command Manual – Routing Protocol
Comware V3 Chapter 3 OSPF Configuration Commands
Neighbors: 1 Interfaces: 1
Spf: 54 Checksum Sum F020
rtr: 2 net: 0 sumasb: 0 sumnet: 1
Area 0.0.0.1:
Neighbors: 0 Interfaces: 1
Spf: 19 Checksum Sum 14EAD
rtr: 1 net: 0 sumasb: 1 sumnet: 1
Routing Table:
Intra Area: 2 Inter Area: 0 ASE: 1
Table 3-5 Description on the fields of the display ospf cumulative command
Field Description
Type Type of input and output OSPF packets
IO Statistics Input Number of the received packets
Output Number of the sent packets
ASE Sum of ASE LSAs
Syntax
3-17
Command Manual – Routing Protocol
Comware V3 Chapter 3 OSPF Configuration Commands
View
Any view
Parameter
process-id: OSPF process ID. If no process ID is specified, the command takes effect
on all OSPF processes.
Description
Use the display ospf error command to view the statistics of error information which
OSPF received.
Example
Table 3-6 Description on the fields of the display ospf error command
Field Description
IP: received my own packet The received packet was sent from myself.
3-18
Command Manual – Routing Protocol
Comware V3 Chapter 3 OSPF Configuration Commands
Field Description
OSPF: wrong version OSPF version error
OSPF: wrong checksum OSPF checksum error
OSPF: wrong area id OSPF area ID error
OSPF: area mismatch OSPF area mismatch
OSPF: wrong virtual link OSPF virtual link error
OSPF: wrong authentication type OSPF authentication type error
OSPF: wrong authentication key OSPF authentication key error
OSPF: too small packet OSPF packet too small
OSPF: packet size > ip length OSPF packet size exceeds IP packet length
OSPF: transmit error OSPF transmission error
OSPF: interface down OSPF interface is down and thus unavailable
OSPF: unknown neighbor The OSPF neighbor is unknown
HELLO: netmask mismatch Network mask mismatch
Interval for sending Hello packets is
HELLO: hello timer mismatch
mismatched
Interval for sending neighbor dead packets is
HELLO: dead timer mismatch
mismatched
The Extern option in the Hello packet is
HELLO: extern option mismatch
mismatched
Hello packet: the Router ID in the Hello
HELLO: router id confusion
packet is not unique
HELLO: virtual neighbor unknown Hello packet: unknown virtual neighbor
HELLO: NBMA neighbor unknown Hello packet: unknown NBMA neighbor
Database description (DD) packet: neighbor
DD: neighbor state low
state is not synchronized.
DD: unknown LSA type DD packet: unknown LSA type
Link state acknowledgment (LS ACK) packet:
LS ACK: neighbor state low
states of neighbors are not synchronized.
Link state acknowledgment packet: ACK
LS ACK: wrong ack
error
Link state acknowledgment packet:
LS ACK: duplicate ack
duplicated ACK
Link state acknowledgment packet: unknown
LS ACK: unknown LSA type
LSA type
LS REQ: neighbor state low Link state request (LS REQ) packet
LS REQ: empty request Link state request packet: empty request
3-19
Command Manual – Routing Protocol
Comware V3 Chapter 3 OSPF Configuration Commands
Field Description
LS REQ: wrong request Link state request packet: erroneous request
Link state update packet: The states of
LS UPD: neighbor state low
neighbors are synchronized.
Link state update packet: newer LSA
LS UPD: newer self-generate LSA
generated by itself
Link state update packet: LSA checksum
LS UPD: LSA checksum wrong
error
Link state update packet: received less
LS UPD: received less recent LSA
recent LSA
LS UPD: unknown LSA type Link state update packet: unknown LSA type
OSPF routing: next hop not exist Next hop of OSPF routing does not exist
DD: MTU option mismatch MTU option of DD packet is mismatched
ROUTETYPE: wrong type value Route type: the value of the type is wrong
Syntax
View
Any view
Parameter
process-id: OSPF process ID. If no process ID is specified, the command takes effect
on all OSPF processes.
interface-type interface-number: Specifies an interface by its type and number.
Description
Use the display ospf interface command to view the OSPF interface information.
Example
Area: 0.0.0.0
IP Address Type State Cost Pri DR BDR
3-20
Command Manual – Routing Protocol
Comware V3 Chapter 3 OSPF Configuration Commands
Table 3-7 Description on the fields of the display ospf interface command
Field Description
Cost Cost of the interface
Syntax
display ospf [ process-id ] [ area-id ] lsdb [ brief | asbr | ase | network | nssa |
opaque { area-local | as | link-local } | router | summary ] [ ip-address ]
[ originate-router ip-address ] [ self-originate ]
3-21
Command Manual – Routing Protocol
Comware V3 Chapter 3 OSPF Configuration Commands
View
Any view
Parameter
process-id: OSPF process ID. If no process ID is specified, the command takes effect
on all OSPF processes.
area-id: Area ID, a decimal integer in the range 0 to 4294967295, or an IP address.
brief: Brief database information.
asbr: Database information of Type-4 LSA (summary-Asbr-LSA).
ase: Database information of Type-5 LSA (AS-external-LSA).
network: Database information of Type-2 LSA (Network-LSA).
nssa: Database information of Type-7 LSA (NSSA-external-LSA)
opaque: Database information of Opaque LSA.
area-local: Database information of Type-10 Opaque-LSA.
as: Database information of Type-11 Opaque-LSA.
link-local: Database information of Type-9 Opaque-LSA.
router: Database information of Type-1 LSA (Router-LSA)
summary: Database information of Type-3 LSA (Summary-Net-LSA)
ip-address: Link state ID in IP address format.
originate-router ip-address: IP address of the router advertising LSA packet.
self-originate: Database information of self-originated LSA generated by local router..
Description
Use the display ospf lsdb command to view the database information about OSPF
connecting state.
Example
3-22
Command Manual – Routing Protocol
Comware V3 Chapter 3 OSPF Configuration Commands
Table 3-8 Description on the fields of the display ospf lsdb command
Field Description
Type Type of the LSA
3-23
Command Manual – Routing Protocol
Comware V3 Chapter 3 OSPF Configuration Commands
Table 3-9 Description on the fields of the display ospf lsdb ase command
Field Description
type Type of the LSA
ls id Link state ID of the LSA
adv rtr Router ID of the router originating the LSA
ls age Age of the LSA in seconds
len Length of the LSA
seq# Sequence number of the LSA
chksum Checksum of the LSA
Options Options of the LSA
Net mask Network mask
E type Type of external route
Forwarding Address Forwarding address
Tag Tag
Syntax
View
Any view
Parameter
None
Description
Use the display ospf memory command to view memory occupation status for LSAs.
Example
3-24
Command Manual – Routing Protocol
Comware V3 Chapter 3 OSPF Configuration Commands
Syntax
View
Any view
Parameter
process-id: OSPF process ID. If no process ID is specified, the command takes effect
on all OSPF processes.
Description
Use the display ospf nexthop command to view the information about the next-hop
Example
Next hops:
Address Type Refcount Intf Addr Intf Name
----------------------------------------------------------------------
10.0.0.2 Direct 3 10.0.0.2 Ethernet0/0/1
10.1.1.1 Neighbor 6 10.0.0.2 Ethernet0/0/1
60.0.0.1 Direct 3 60.0.0.1 Dialer0
80.0.0.1 Direct 3 80.0.0.1 Dialer1
90.0.0.1 Direct 3 90.0.0.1 Dialer3
3-25
Command Manual – Routing Protocol
Comware V3 Chapter 3 OSPF Configuration Commands
Table 3-10 Description on the fields of the display ospf nexthop command
Field Description
Address Next hop address
Type Type of the next hop
Reference count of the next hop, that is, the number of the
Refcount
routes using this address as the next hop
Intf Addr The IP address of the outgoing interface to the next hop
Intf Name The outgoing interface to the next hop
Syntax
View
Any view
Parameter
process-id: OSPF process ID. If no process ID is specified, the command takes effect
on all OSPF processes.
brief: Brief information of neighbors in areas.
Description
Use the display ospf peer command to view the information about the neighbors in
OSPF areas.
Use the display ospf peer brief command to view the brief information of neighbors in
OSPF, mainly the neighbor number at all states in every area.
The display format of OSPF neighbor valid time is different according to the length of
time. Description is as follows:
XXYXXMXXD: More than a year, namely year: month: day
XXXdXXhXXm: More than a day but less than a year, that is, day: hour: minute
XX: XX: XX: Less than a day, namely hour: minute: second
Example
3-26
Command Manual – Routing Protocol
Comware V3 Chapter 3 OSPF Configuration Commands
Table 3-11 Description on the fields of the display ospf peer command
Field Description
RouterID Router ID of the neighbor router
Address of the interface, through which the neighbor
Address
router communicates with the router
State State of adjacency
Master/slave mode formed through negotiation during
Mode
DD packet exchange
Priority Priority of the neighbor in DR/BDR election
DR IP address of the interface of elected DR
Table 3-12 Description on the fields of the display ospf peer brief command
Field Description
Area ID Area ID
Initial state of a neighbor conversation. It
Down indicates that there has been no recent information received from the
neighbor.
3-27
Command Manual – Routing Protocol
Comware V3 Chapter 3 OSPF Configuration Commands
Field Description
This state is only valid for neighbors attached to NBMA networks,
such as Frame Relay, X.25 and ATM.
Attempt It indicates that the OSPF router does not receive information from
the neighbor router recently, but that an effort should be made to
maintain the contact with the neighbor by sending Hello packets in a
low frequency.
It indicates that the OSPF router has received a Hello packet from the
neighbor router, but does not see the IP address of itself in the Hello
Init
packet. Therefore, a two-way communication has not been
established between the two routers yet.
It indicates that a two-way communication between the OSPF router
and its neighbor has been established.
2-Way
The DR and BDR are selected from the set of neighbors in 2-Way
state or greater.
In this state, the router needs to decide upon the initial DD sequence
ExStart number, ensuring that the link state information it obtains is always up
to date.
In this state, the OSPF router exchanges link state information with its
Exchange
neighbor by sending DD packets.
In this state, the OSPF router sends link state requests to the
Loading neighbor asking for the more recent LSAs that have been discovered
(but not yet received) in the Exchange state.
It indicates that the neighboring routers have synchronized their
Full
LSDBs.
Syntax
View
Any view
Parameter
process-id: OSPF process ID. If no process ID is specified, the command takes effect
on all OSPF processes.
Description
Use the display ospf request-queue command to view the information about the
OSPF request-queue.
3-28
Command Manual – Routing Protocol
Comware V3 Chapter 3 OSPF Configuration Commands
Example
Table 3-13 Description on the fields of the display ospf request-queue command
Field Description
RouterID Router ID of the neighbor router
Address of the interface, through which the neighbor router
Address
communicate with this router
Interface Address of the interface attached to the network segment
Area OSPF area ID
LSID:1.1.1.3 Link state ID of the LSA
Syntax
View
Any view
Parameter
process-id: OSPF process ID. If no process ID is specified, the command takes effect
on all OSPF processes.
3-29
Command Manual – Routing Protocol
Comware V3 Chapter 3 OSPF Configuration Commands
Description
Use the display ospf retrans-queue command to view the information about the
OSPF retransmission queue.
Example
Table 3-14 Description on the fields of the display ospf retrans-queue command
Field Description
RouterID Router ID of the neighbor router
Address of the interface, through which the neighbor router
Address
communicates with this router
Interface Address of the interface attached to the network segment
Syntax
View
Any view
Parameter
process-id: OSPF process ID. If no process ID is specified, the command takes effect
on all OSPF processes.
3-30
Command Manual – Routing Protocol
Comware V3 Chapter 3 OSPF Configuration Commands
Description
Use the display ospf routing command to view the information about OSPF routing
table.
Example
Total Nets: 2
Intra Area: 2 Inter Area: 0 ASE: 0 NSSA: 0
Table 3-15 Description on the fields of the display ospf routing command
Field Description
Destination Destination network segment
Cost Route cost
Syntax
View
Any view
3-31
Command Manual – Routing Protocol
Comware V3 Chapter 3 OSPF Configuration Commands
Parameter
process-id: OSPF process ID. If no process ID is specified, the command takes effect
on all OSPF processes.
Description
Use the display ospf vlink command to view the information about OSPF virtual links.
Example
Table 3-16 Description on the fields of the display ospf vlink command
Field Description
Virtual-link Router ID of the neighbor router at the other end of the virtual
Neighbor-id link
State State
Interface IP address of the local interface on the virtual link
Cost Route cost of the interface
Type Type of the link is virtual.
ID of the transit area that the virtual link passes through. This
Transit Area
area could not be a backbone, stub, or NSSA area
OSPF timers, defined as follows:
Hello Specifies the hello interval
Timers Dead Specifies the neighbor dead interval
Poll Specifies the polling interval
Retransmit Specifies the interval for LSA retransmission
Transmit Delay LSA transmission delay on the interface
3-32
Command Manual – Routing Protocol
Comware V3 Chapter 3 OSPF Configuration Commands
Syntax
View
OSPF view
Parameter
Description
Use the filter-policy export command to configure OSPF to filter the LSAs of
redistributed routes for advertisement.
Use the undo filter-policy export command to cancel the filtering rules that have been
set.
By default, no LSA filtering is performed for any type of route.
In some cases, it may be required that only the routing information meeting some
conditions be advertised. Then, the filter-policy command can be used to configure
the filtering conditions for the routing information to be advertised. Only the routing
information passing the filtration can be advertised.
Related command: acl and ip ip-prefix.
Example
# Configure OSPF to advertise only the routing information permitted by acl 2001.
[H3C] acl number 2001
[H3C-acl-basic-1] rule permit source 11.0.0.0 0.255.255.255
[H3C-acl-basic-1] rule deny source any
[H3C-ospf] filter-policy 2001 export
Syntax
3-33
Command Manual – Routing Protocol
Comware V3 Chapter 3 OSPF Configuration Commands
View
OSPF view
Parameter
acl-number: Access control list number used for filtering the destination addresses of
the routing information.
ip-prefix-name: Name of address prefix list used for filtering the destination addresses
of the routing information.
gateway ip-prefix-name: Name of address prefix list used for filtering the addresses of
the neighboring routers advertising the routing information.
Description
Use the filter-policy import command to configure the OSPF rules of filtering the
routing information received.
Use the undo filter-policy import command to cancel the filtering of the routing
information received.
By default, no filtering of the received routing information is performed.
In some cases, it may be required that only the routing information meeting some
conditions can be received. Then, the filter-policy command can be used to set the
filtering conditions for the routing information to be advertised. Only the routing
information passed the filtration can be received.
Use the filter-policy import command to filter the routes calculated by OSPF. Only the
filtered routes can be added to the routing table. The filtering can be performed
according to the next hop and destination of the route.
Since OSPF is a dynamic routing protocol based on link state, its routing information
hides in the link state, this command cannot filter the advertised/received routing
information in link state. There is more limitation when using this command in OSPF
than using it in distance vector routing protocol.
This command is valid for this process only if multiple OSPF processes are enabled.
Example
# Filter the received routing information according to the rule defined by the ACL 2002.
[H3C] acl number 2002
[H3C-acl-basic-2002] rule permit source 20.0.0.0 0.255.255.255
[H3C-acl-basic-2002] rule deny source any
[H3C-ospf-1] filter-policy 2002 import
3-34
Command Manual – Routing Protocol
Comware V3 Chapter 3 OSPF Configuration Commands
3.1.30 import-route
Syntax
View
OSPF view
Parameter
protocol: Specifies the source routing protocol that can be redistributed. At present, it
includes direct, rip, bgp, isis, static, ospf, ospf-ase, and ospf-nssa.
ospf process-id: Redistributes only the internal routes found by OSPF process-id as
external routing information. If no process number is specified, the OSPF default
process number 1 is used.
ospf-ase process-id: Redistributes only the ASE external routes found by OSPF
process-id as external routing information. If no process number is specified, the OSPF
default process number 1 is used.
ospf-nssa process-id: Redistributes only the NSSA external routes found by OSPF
process-id as external routing information. If no process number is specified, the OSPF
default process number 1 is used.
allow-ibgp: Optional when the protocol argument is set to BGP. Whereas the
import-route bgp command redistributes only EBGP routes, the import-route bgp
allow-ibgp command redistributes IBGP routes in addition and as such, must be used
with cautions.
cost value: Cost of the redistributed routes.
type value: Type of the routes to be redistributed by OSPF. value takes 1 or 2; type 1
represents class 1 external routes, and type 2 (default) represents class 2 external
routes.
tag value: Tags the redistributed routes.
route-policy route-policy-name: Redistributes only the routes matching the specified
Route-policy.
Description
3-35
Command Manual – Routing Protocol
Comware V3 Chapter 3 OSPF Configuration Commands
For an redistributed class 1 route, its metric equals the metric for this router to reach the
router where the route is advertised plus the cost assigned to the route. For an
redistributed class 2 route, its metric equals the cost assigned to it.
Set the arguments cost, type, and tag at a time instead of setting them using the
command for several times, because the latest configuration will overwrite the previous
one.
By default, the routing information of other protocols is not redistributed.
Example
# Specify an redistributed RIP route as the route of type 2, with the route tag as 33 and
the route cost as 50.
[H3C-ospf-1] import-route rip type 2 tag 33 cost 50
# Specify OSPF process 100 to redistribute the route found by OSPF 160.
[H3C-ospf-100] import-route ospf 160
3.1.31 log-peer-change
Syntax
log-peer-change
undo log-peer-change
View
OSPF view
Parameter
None
Description
Use the log-peer-change command to turn on the OSPF adjacency changes output
switch for the current OSPF process.
Use the undo log-peer-change command to turn off the OSPF adjacency changes
output switch.
By default, OSPF adjacency changes output switch is turned off.
After the OSPF adjacency changes output switch is turned on, OSPF adjacency
changes for the current OSPF process will be output to the configuration terminal until
the switch is turned off.
Example
3-36
Command Manual – Routing Protocol
Comware V3 Chapter 3 OSPF Configuration Commands
3.1.32 multi-path-number
Syntax
multi-path-number number
undo multi-path-number
View
OSPF view
Parameter
Description
Example
3.1.33 network
Syntax
View
3-37
Command Manual – Routing Protocol
Comware V3 Chapter 3 OSPF Configuration Commands
Parameter
Description
Caution:
z OSPF configuration can only enable the interfaces that belong to the same VPN
instance.
z After OSPF is configured multi-instance, if different VPN instances are bound in the
OSPF process, the network addresses between different processes can be the
same or included. But for the same VPN instance, the network addresses between
different OSPF processes cannot be the same or included.
Example
# Specify the interfaces whose master IP addresses are in the segment range of
10.110.36.0 to run the OSPF protocol and specify the number of the OSPF area (where
these interfaces are located) as 6.
3-38
Command Manual – Routing Protocol
Comware V3 Chapter 3 OSPF Configuration Commands
[H3C-ospf] area 6
[H3C-ospf-1-area-0.0.0.6] network 10.110.36.0.0 0.0.0.255
# Enable OSPF process 100 on the router and specify the number of the area where
the interface is located as 2.
[H3C] router id 10.110.1.9
[H3C] ospf 100
[H3C-ospf-100] area 2
[H3C-ospf-100-area-0.0.0.2] network 131.108.20.0 0.0.0.255
# Enable OSPF process 200 on the router and specify the number of the area where
the interface is located as 1.
3.1.34 nssa
Syntax
View
Parameter
default-route-advertise: Only available for the NSSA ABR or ASBR. When using the
parameter at NSSA ABR to generate Type-7 LSAs for the default route no matter
whether there exists the default route 0.0.0.0 in the routing table. When using the
parameter at NSSA ASBR to generate Type-7 LSAs for the default route only if there
exists the default route 0.0.0.0 in the routing table.
no-import-route: Forbids AS external routes to be redistributed in to the NSSA as
Type-7 LSAs. This parameter is available for the NSSA ABR and for the ASBR in OSPF
AS, to ensure all external route information is redistributed into the OSPF areas.
no-summary: Only available for the NSSA ABR. When the parameter is selected, the
NSSA ABR advertises a default route via the Summary-LSAs (Type-3) in the area, but
no other Summary-LSAs to other areas.
Description
3-39
Command Manual – Routing Protocol
Comware V3 Chapter 3 OSPF Configuration Commands
Example
3.1.35 opaque-capability
Syntax
opaque-capability enable
undo opaque-capability
View
OSPF view
Parameter
None
Description
Caution:
Example
3.1.36 ospf
Syntax
3-40
Command Manual – Routing Protocol
Comware V3 Chapter 3 OSPF Configuration Commands
View
System view
Parameter
Description
Example
Syntax
3-41
Command Manual – Routing Protocol
Comware V3 Chapter 3 OSPF Configuration Commands
View
Interface view
Parameter
simple password: Character string not exceeding 8 characters using simple text
authentication.
key-id: ID of the authentication key in MD5 cipher text authentication mode in the range
from 1 to 255.
key: MD5 authentication key. If it is input in a simple form, MD5 key is a character string
of 1 to 16 characters. And it will be displayed in a cipher text form in a length of 24
characters when display current-configuration command is executed. Inputting the
24-character MD5 key in a cipher text form is also supported.
Description
Example
# Set the area 1 where the network segment 131.119.0.0 of Interface serial1/0/0 is
located to support MD5 cipher text authentication. The authentication key identifier is
set to 15 and the authentication key is H3c.
[H3C-ospf-1] area 1
[H3C-ospf-1-area-0.0.0.1] network 131.119.0.0 0.0.255.255
[H3C-ospf-1-area-0.0.0.1] authentication-mode md5
[H3C-ospf-1-area-0.0.0.1] interface serial 1/0/0
[H3C-Serial1/0/0] ospf authentication-mode md5 15 H3c
Syntax
3-42
Command Manual – Routing Protocol
Comware V3 Chapter 3 OSPF Configuration Commands
View
Interface view
Parameter
Description
Use the ospf cost command to configure different packet sending costs so as to send
packets from different interfaces.
Use the undo ospf cost command to restore the default costs.
By default, the interface automatically calculates the costs required for running OSPF
protocol according to the current Baud rate.
Example
Syntax
View
Interface view
Parameter
value: Interface priority for electing the "designated router", ranging from 0 to 255. By
default, the value is 1.
Description
Use the ospf dr-priority command to configure the priority for electing the "designated
router" on an interface.
Use the undo ospf dr-priority command to restore the default value.
Interface priority determines the interface qualification when electing the “designated
router”. The interface with high priority is considered first when there is collision in
election.
3-43
Command Manual – Routing Protocol
Comware V3 Chapter 3 OSPF Configuration Commands
Example
# Set the priority of the interface Ethernet1/0/0 to 8, when electing the DR.
[H3C] interface Ethernet1/0/0
[H3C-Ethernet1/0/0] ospf dr-priority 8
Syntax
View
System view
Parameter
Description
Use the ospf mib-binding command, MIB operation can be bound on the specified
OSPF process.
Use the undo ospf mib-binding command to restore the default configuration.
MIB operation is always bound on the first process enabled by OSPF protocol. Use the
this command, MIB operation can be bound on other OSPF processes. Use the undo
ospf mib-binding command to cancel the binding configuration. MIB operation is
rebound automatically by OSPF protocol on the first enabled process.
By default, MIB operation is bound on the first enabled OSPF process.
Example
Syntax
ospf mtu-enable
undo ospf mtu-enable
3-44
Command Manual – Routing Protocol
Comware V3 Chapter 3 OSPF Configuration Commands
View
Interface view
Parameter
None
Description
Use the ospf mtu-enable command to enable the interface to write MTU value when
sending DD packets.
Use the undo ospf mtu-enable command to restore the default settings.
By default, the MTU value is 0 when sending DD packets, i.e. the actual MTU value of
the interface is not written.
Database Description Packets (DD packets) are used to describe its own LSDB when
the router running OSPF protocol is synchronizing the database.
The default MTU value of DD packet is 0. With this command, the specified interface
can be set manually to write the MTU value area in DD packets when sending DD
packets, i.e. the actual MTU value of the interface is written in.
Example
# Set interface Ethernet1/0/0 to write MTU value area when sending DD packets.
[H3C] interface Ethernet1/0/0
[H3C-Ethernet1/0/0] ospf mtu-enable
Syntax
View
Interface view
Parameter
3-45
Command Manual – Routing Protocol
Comware V3 Chapter 3 OSPF Configuration Commands
Description
Use the ospf network-type command to configure the network type of OSPF interface.
Use the undo ospf network-type command to restore the default network type of the
OSPF interface.
OSPF divides networks into four types by link layer protocol:
z Broadcast: If Ethernet is adopted, OSFP defaults the network type to broadcast.
z Non-Broadcast Multi-access (nbma): If Frame Relay, ATM, HDLC or X.25 is
adopted, OSPF defaults the network type to NBMA.
z Point-to-Multipoint (p2mp): OSPF will not default the network type of any link layer
protocol to p2mp. The general undertaking is to change a partially connected
NBMA network to p2mp network if the NBMA network is not fully-meshed.
z Point-to-point (p2p): If PPP or LAPB is adopted, OSPF defaults the network type
to p2p.
If there is a router not supporting multicast address on the broadcast network, the
interface network type can be changed to NBMA. The interface network type can also
be changed from NBMA to broadcast.
A network that can be called an NBMA network or can be changed to a broadcast
network should satisfy the following condition: there is a virtual circuit directly connects
any two routers on the network. In other words, the network is full-meshed. If the
network cannot satisfy this condition, the interface network type must be changed to
point-to-multipoint. In this way, these two routers can exchange routing information via
a router directly connected with the two routers.
If there are only two routers running OSPF protocol on the same network segment, the
interface network type can be changed to point-to-point.
Note: When the network type of an interface is NBMA or it is changed to NBMA
manually, the peer command must be used to configure the neighboring point.
Related command: ospf dr-priority.
Example
Syntax
3-46
Command Manual – Routing Protocol
Comware V3 Chapter 3 OSPF Configuration Commands
View
Interface view
Parameter
seconds: Dead interval of the OSPF neighbor. It is in second and ranges from 1 to
65535.
Description
Use the ospf timer dead command to configure the dead interval of the OSPF
neighbor.
Use the undo ospf timer dead command to restore the default value of the dead
interval of the neighbor.
By default, the dead interval for the OSPF neighbors of p2p and broadcast interfaces
is 40 seconds, and for those of p2mp and nbma interfaces is 120 seconds.
The dead interval of OSPF neighbors means that within this interval, if no Hello
message is received from the neighbor, the neighbor will be considered to be invalid.
The value of dead seconds should be at least four times the value of the Hello seconds.
The dead seconds for the routers on the same network segment must be identical.
Related command: ospf timer hello.
Example
Syntax
View
Interface view
Parameter
seconds: Interval in seconds for an interface to transmit hello message. It ranges from
1 to 255.
3-47
Command Manual – Routing Protocol
Comware V3 Chapter 3 OSPF Configuration Commands
Description
Use the ospf timer hello command to configure the interval for transmitting Hello
messages on an interface.
Use the undo ospf timer hello command to restore the default value.
By default, the interval is 10 seconds for an interface of p2p or broadcast type to
transmit Hello messages, and 30 seconds for an interface of nbma or p2mp type.
Related command: ospf timer dead.
Example
Syntax
View
Interface view
Parameter
seconds: Specifies the poll Hello messages interval, ranging from 1 to 65535 and
measured in seconds. By default, the value is 40 seconds.
Description
Use the ospf timer poll command to configure the poll Hello message interval on
nbma and p2mp network.
Use the undo ospf timer poll command to restore the default value.
On the nbma and p2mp network, if a neighbor is invalid, the Hello message will be
transmitted regularly according to the poll seconds. You can configure the poll
seconds to specify how often the interface transmits Hello messages before it
establishes adjacency with the adjacent router.
You are recommended to set the poll timer longer than the hello timer.
Example
# Configure to transmit poll Hello message from interface serial2/0/0 every 130
seconds.
3-48
Command Manual – Routing Protocol
Comware V3 Chapter 3 OSPF Configuration Commands
Syntax
View
Interface view
Parameter
Description
Use the ospf timer retransmit command to configure the interval for LSA
re-transmitting on an interface.
Use the undo ospf timer retransmit command to restore the default interval value for
LSA re-transmitting on the interface.
If a router running OSPF transmits a "link state advertisement"(LSA) to the peer, it
needs to wait for the acknowledgement packet from the peer. If no acknowledgement is
received from the peer within the LSA retransmission, this LSA will be re-transmitted.
According to RFC2328, the LSA retransmission between adjacent routers should not
be set too short. Otherwise, unexpected retransmission will be caused.
Example
# Specify the retransmission for LSA transmitting between the interface serial1/0/0 and
the adjacent routers to 12 seconds.
[H3C] interface serial1/0/0
[H3C-serial1/0/0] ospf timer retransmit 12
Syntax
View
Interface view
3-49
Command Manual – Routing Protocol
Comware V3 Chapter 3 OSPF Configuration Commands
Parameter
Description
Use the ospf trans-delay command to configure the LSA transmitting delay on an
interface.
Use the undo ospf trans-delay command to restore the default value of the LSA
transmitting delay on an interface.
LSA will age in the "link state database" (LSDB) of the router as time goes by (add 1 for
every second), but it will not age during network transmission. Therefore, it is
necessary to add a period of time set by this command to the aging time of LSA before
transmitting it.
Example
3.1.48 peer
Syntax
View
OSPF view
Parameter
Description
Use the peer command to configure the IP address of adjacent routers and specify a
DR priority on an NBMA network.
Use the undo peer command to cancel the configuration.
On the frame relay network, a full-meshed network (i.e. there is a VC directly
connecting any two routers on the network) can be implemented by configuring map.
Thus OSPF can perform in the same way in the frame relay network as in the broadcast
3-50
Command Manual – Routing Protocol
Comware V3 Chapter 3 OSPF Configuration Commands
network (such as electing DR and BDR). However, the IP address of adjacent routers
and their election rights must be configured manually for the interface because
adjacent routers cannot be found dynamically by advertising Hello messages.
Example
3.1.49 preference
Syntax
View
OSPF view
Parameter
Description
Use the preference command to configure the preference of an OSPF protocol route.
Use the undo preference command to restore the default value of the OSPF protocol
route.
By default, the preference of an OSPF protocol internal route is 10 and the preference
of an external route is 150.
Because multiple dynamic routing protocols could be running on a router, there is the
problem of routing information sharing among routing protocols and selection.
Therefore, a default preference is specified for each routing protocol. When multiple
routes to the same destination are found by different routing protocols, the route found
by high preference routing protocol will be selected to forward IP packets.
Example
3-51
Command Manual – Routing Protocol
Comware V3 Chapter 3 OSPF Configuration Commands
Syntax
View
User view
Parameter
Description
Use the reset ospf all command to reset all the OSPF processes. Use the parameter
of statistics to reset statistics about OSPF.
The reset ospf process-id command can be used to reset the specified process and
clear statistics data. Use the parameter of statistics to reset statistics about OSPF.
Use the reset ospf command to reset the OSPF process, the following results are
expected:
z Clear invalid LSA immediately without waiting for LSA timeout.
z If the Router ID changes, a new Router ID will take effect by executing the
command.
z Re-elect DR and BDR conveniently.
z OSPF configuration will not be lost if the system is restarted.
z Delete the original OSPF routes.
z After OSPF process is restarted, new routes and LSA will be generated
correspondingly and LSA will be advertised.
The system will require the user to confirm whether to re-enable the OSPF protocol
after execution of the command.
Example
3-52
Command Manual – Routing Protocol
Comware V3 Chapter 3 OSPF Configuration Commands
3.1.51 router id
Syntax
router id router-id
undo router id
View
System view
Parameter
Description
Use the router id command to configure the ID of a router running the OSPF protocol.
Use the undo router id command to cancel the router ID that has been configured.
By default, no router ID is configured.
Router ID is a 32-bit unsigned integer that uniquely identifies a router in an OSPF
autonomous system. If no router ID is specified, the system automatically selects one
as the router ID as follows:
z If the IP address of loopback interface is available, select the last configured one.
z If not available, select the IP address of the first configured physical interface that
is up.
z If none of the interfaces is configured with an IP address, then you must configure
the router ID in system view, otherwise, the OSPF cannot be operated.
When the router ID is configured manually, the IDs of any two routers cannot be
identical in the autonomous system. It is recommended that you choose the IP address
of the loopback interface as the router ID, because the interface is always up unless
you shut it down manually.
Note:
The modified router ID will not be valid unless OSPF is re-enabled.
The router ID configured using the router id command takes effect only on the OSPF on
public networks.
Example
3-53
Command Manual – Routing Protocol
Comware V3 Chapter 3 OSPF Configuration Commands
3.1.52 silent-interface
Syntax
View
OSPF view
Parameter
Description
Example
# Disable interface Ethernet2/0/0 to transmit OSPF packet in both OSPF process 100
and OSPF process 200.
[H3C] router id 10.110.1.9
[H3C] ospf 100
[H3C-ospf-100] silent-interface ethernet 2/0/0
[H3C-ospf-100] quit
[H3C] router id 20.18.0.7
[H3C] ospf 200
[H3C-ospf-200] silent-interface ethernet 2/0/0
3-54
Command Manual – Routing Protocol
Comware V3 Chapter 3 OSPF Configuration Commands
Syntax
View
System view
Parameter
Keywords Description
ifauthfail Enables the InterfaceAuthenticationFailure trap packets
3-55
Command Manual – Routing Protocol
Comware V3 Chapter 3 OSPF Configuration Commands
Description
Use the snmp-agent trap enable ospf command to enable the TRAP function of
OSPF.
Use the undo snmp-agent trap enable ospf command to disable the TRAP function.
This command takes no effect on the OSPF process enabled after its execution.
By default, no OSPF process is enabled to transmit TRAP packets.
For detailed configuration of SNMP TRAP, refer to “system management” section in this
manual.
Example
3.1.54 spf-schedule-interval
Syntax
spf-schedule-interval interval
undo spf-schedule-interval
View
OSPF view
Parameter
Interval: SPF calculation interval of OSPF, which is in seconds in the range of 1 to 10.
The default value is 5 seconds.
Description
Example
3-56
Command Manual – Routing Protocol
Comware V3 Chapter 3 OSPF Configuration Commands
3.1.55 stub
Syntax
stub [ no-summary ]
undo stub
View
Parameter
no-summary: Only available for the ABR in Stub area. When this parameter is
selected, the ABR only advertises the Summary-LSA for the default route, but no other
Summary-LSAs. The area is also called totally stub area.
Description
Use the stub command to configure the type of an OSPF area as the STUB area.
Use the undo stub command to cancel the settings.
By default, no area is set to be the STUB area.
All the routers in a Stub area must be configured with the corresponding attribute.
Related command: default-cost.
Example
3.1.56 vlink-peer
Syntax
View
Parameter
3-57
Command Manual – Routing Protocol
Comware V3 Chapter 3 OSPF Configuration Commands
hello seconds: Interval that router transmits hello message. It ranges from 1 to 8192
seconds. This value must equal the hello seconds value of the router virtually linked to
the interface. By default, the value is 10 seconds,
retransmit seconds: Specifes the interval for re-transmitting the LSA packets on an
interface. It ranges from 1 to 3600 seconds. By default, the value is 5 seconds.
trans-delay seconds: Specifes the interval for delaying transmitting LSA packets on an
interface. It ranges from 1 to 3600 seconds. By default, the value is 1 second.
dead seconds: Specifies the interval of death timer. It ranges from 1 to 8192 seconds.
This value must equal the dead seconds of the router virtually linked to it and must be
at least 4 times of the hello seconds. By default, the value is 40 seconds.
simple password: Specifies the simple text authentication key, not exceeding 8
characters, of the interface. This value must equal the authentication key of the virtually
linked neighbor.
keyid: Specifies the MD5 authentication key ID. Its value ranges from 1 to 255. It must
be equal to the authentication key ID of the virtually linked neighbor.
key: Specifies the authentication key on an interface. It is a character string not
exceeding 16 characters. This value must equal the authentication key of the virtually
linked neighbor. And the key will be displayed in a cipher text form in a length of 24
characters when display current-configuration command is executed. Inputting the
key in a cipher text form with 24 characters long is also supported.
Description
Example
# Create a virtual link to 10.110.0.3 and use the MD5 cipher text authentication mode.
[H3C-ospf] area 1
[H3C-ospf-area-1] vlink-peer 10.110.0.3 md5 3 345
3-58
Command Manual – Routing Protocol
Comware V3 Chapter 4 Integrated IS-IS Configuration Commands
Syntax
View
IS-IS view
Parameter
Description
4-1
Command Manual – Routing Protocol
Comware V3 Chapter 4 Integrated IS-IS Configuration Commands
Note:
After the area-authentication-mode command takes effect, the system does not
remove the local Isp immediately, which is aged out after its age time expires. If you
want to age out it right now, you can shutdown, undo shutdown related interfaces or
use the reset isis all or reset isis peer command.
Related command: reset isis all, reset isis peer, domain-authentication-mode, and
isis authentication-mode.
Example
# Set the area authentication password as "hello" and the authentication type as
simple.
[H3C] isis
[H3C-isis] area-authentication-mode simple hello
4.1.2 cost-style
Syntax
View
IS-IS view
Parameter
Description
Use the cost-style command to set the cost type of an IS-IS packet received/sent by
the router.
Use the undo cost-style command to restore the default setting.
4-2
Command Manual – Routing Protocol
Comware V3 Chapter 4 Integrated IS-IS Configuration Commands
Example
# Set IS-IS to receive packets whose cost type is narrow or wide, but only send packets
whose cost type is narrow.
[H3C] isis
[H3C-isis] cost-style narrow-compatible
Syntax
View
User view
Parameter
4-3
Command Manual – Routing Protocol
Comware V3 Chapter 4 Integrated IS-IS Configuration Commands
Description
Example
4.1.4 default-route-advertise
Syntax
View
IS-IS view
Parameter
Description
4-4
Command Manual – Routing Protocol
Comware V3 Chapter 4 Integrated IS-IS Configuration Commands
This command can be set on Level-1 router or Level-2 router. By default, the default
route is generated on L2 LSP. If apply isis level-1 is set in route-policy view, the default
route will be generated on L1 LSP. If apply isis level-2 command is used in
route-policy view, the default route will be generated on L2 LSP. If apply isis level-1-2
is set in route-policy view, the default route will be generated on both L1 LSP and L2
LSP.
Example
# Set the current router to generate the default route on the LSP of corresponding level.
[H3C-isis] default-route-advertise
Syntax
View
Any view
Parameter
None
Description
Use the display isis brief command to view the brief information of IS-IS.
Example
network-entity: 01.bbbb.bbbb.bbbb.00
is-level :Level-12
cost-style: wide
preference : 15
Timers:
spf-delay-interval : 5000
spf-slice-size: 0
lsp-max-age: 1200
lsp-refresh: 900
Interval between SPFs: level-1 10
level-2 10
4-5
Command Manual – Routing Protocol
Comware V3 Chapter 4 Integrated IS-IS Configuration Commands
Syntax
View
Any view
Parameter
verbose: If this parameter is used, the details of the interface will be displayed.
Description
Use the display isis interface command to view the information of the IS-IS enabled
interface.
This command views the information of the IS-IS enabled interface, including interface
name, IP address, link state of the interface and so on. Besides displaying all the
information shown by the display isis interface command, the display isis interface
verbose command displays such information about the IS-IS parameters of the
interface as CSNP packet broadcast interval, Hello message broadcast interval and
number of invalid Hello messages.
Example
4-6
Command Manual – Routing Protocol
Comware V3 Chapter 4 Integrated IS-IS Configuration Commands
Syntax
View
Any view
Parameter
Description
Use the display isis lsdb command to view the link state database of the IS-IS.
Example
Syntax
View
Any view
Parameter
None
Description
Use the display isis mesh-group command to view the IS-IS mesh group.
This command is used for displaying the configurations of the mesh-group of the
current router interface.
4-7
Command Manual – Routing Protocol
Comware V3 Chapter 4 Integrated IS-IS Configuration Commands
Example
# Add Interface serial1/0/0 and Interface serial2/0/0 running IS-IS into mesh group 100.
[H3C-Serial1/0/0] isis mesh-group 100
[H3C-Serial1/0/0] interface Interface serial2/0/0
[H3C-Serial2/0/0] isis mesh-group 100
Syntax
View
Any view
Parameter
verbose: When this parameter is configured, the area address carried in the Hello
message from the peer will be displayed. Otherwise, only the summary information will
be displayed.
Description
Use the display isis peer command to view IS-IS peer information.
The display isis peer verbose command yields not only all the outputs of the display
isis peer command, but also the area address, Up time and IP address of the directly
connected interface of the peer.
Example
Syntax
4-8
Command Manual – Routing Protocol
Comware V3 Chapter 4 Integrated IS-IS Configuration Commands
View
Any view
Parameter
None
Description
Use the display isis routing command to view IS-IS routing information.
Example
4-9
Command Manual – Routing Protocol
Comware V3 Chapter 4 Integrated IS-IS Configuration Commands
Syntax
View
Any view
Parameter
None
Description
Use the display isis spf-log command to view the SPF calculation log of the IS-IS.
Example
4-10
Command Manual – Routing Protocol
Comware V3 Chapter 4 Integrated IS-IS Configuration Commands
IS_SPFTRIG_ADJDOWN 4 0 23:10:54
4.1.12 domain-authentication-mode
Syntax
View
IS-IS view
Parameter
Description
Example
# When you need to authenticate the layer 2 routing packets, you can select the simple
mode, and the password is "h3c".
[H3C] isis
[H3C-isis] domain-authentication-mode simple h3c
4-11
Command Manual – Routing Protocol
Comware V3 Chapter 4 Integrated IS-IS Configuration Commands
Syntax
View
IS-IS view
Parameter
acl-number: Specifies the number of the access control list, ranging from 2000 to 3999.
protocol: Specifies a routing protocol, which could be direct, static, rip, bgp, ospf,
ospf-nssa, or ospf-ase. Without this parameter, filtering is performed on all
redistributed routes.
Description
Use the filter-policy export command to configure IS-IS to filter all redistributed routes
or routes redistributed from a specified routing protocol.
Use the undo filter-policy export command to disable IS-IS to filter all redistributed
routes or routes redistributed from a specified routing protocol.
By default, IS-IS does not filter any redistributed routing information.
In some cases, it may be required that only the routing information meeting some
conditions be advertised. You may use the filter-policy export command to set the
conditions for filtering redistributed routing information. Only the routing information
passing the filtering can be advertised.
Related command: filter-policy import.
Example
Syntax
View
IS-IS view
4-12
Command Manual – Routing Protocol
Comware V3 Chapter 4 Integrated IS-IS Configuration Commands
Parameter
acl-number: Specifies the number of the access control list, ranging from 2000 to 2999.
Description
Use the filter-policy import command to configure to filter the routes received by
IS-IS.
Use the undo filter-policy import command to configure not to filter the received
routes.
By default, IS-IS does not filter the received routing information.
In some cases, only the routing information meeting the specified conditions will be
accepted. You can configure the filter-policy to specify the filter conditions so as to
accept the desired routing information only.
Related command: filter-policy export.
Example
4.1.15 ignore-lsp-checksum-error
Syntax
ignore-lsp-checksum-error
undo ignore-lsp-checksum-error
View
IS-IS view
Parameter
None
Description
4-13
Command Manual – Routing Protocol
Comware V3 Chapter 4 Integrated IS-IS Configuration Commands
not in consistent with the calculated result, the LSP will be discarded without being
processed. Moreover, if ignoring checksum error is set with the
ignore-lsp-checksum-error command, the packet will be processed as a normal one
even if the checksum error is found.
Example
4.1.16 import-route
Syntax
View
IS-IS view
Parameter
protocol: Specifies source routing protocols which can be redistributed, including direct,
bgp, ospf, ospf-nssa , ospf-ase, rip and static at present.
allow-ibgp: Optional when the protocol argument is set to BGP. Whereas the
import-route bgp command redistributes only EBGP routes, the import-route bgp
allow-ibgp command redistributes IBGP routes in addition and as such, must be used
with cautions.
cost value: Specifies the route cost of the redistributed route, ranging from 0 to 63.
level-1: Redistributes the route into Level-1 routing table.
level-2: Redistributes the route into Level-2 routing table.
level-1-2: Redistributes the route into Level-1-2 routing table.
If the level for redistributing the route is not specified in the command, it defaults to
redistribute the routes into Level-1 and Level-2, i.e. Level-1-2 routing table.
route-policy route-policy-name: Redistributes only the routes matching the specified
route-policy.
Description
Use the import-route command to configure IS-IS to filter the redistributed routes.
Use the undo import-route command to configure IS-IS not to redistribute the routing
information of other protocols.
4-14
Command Manual – Routing Protocol
Comware V3 Chapter 4 Integrated IS-IS Configuration Commands
By default, IS-IS does not redistribute routing information from any other protocols.
For IS-IS, the routes discovered by other routing protocols are processed as the routes
outside the routing domain. When redistributing the routes of other protocols, you can
specify the default cost for them. If OSPF routes are redistributed, you can also specify
the cost type for them.
When IS-IS redistributes routes, you can specify to redistribute the routes to Level-1,
Level-2 or Level-1-2. If you do not specify the level, the system will redistribute the
routes to Level-2 routing table by default.
IS-IS regards all the routes redistributed into the routing domain as the external routes,
which describe the way how to select the routes to the destination outside the routing
domain.
Example
Syntax
View
IS-IS view
Parameter
number: ACL number. When configuring routing leak from Level-2 to Level-1, only the
routes that are permitted by ACL can be redistributed to Level-1 area if an ACL has
been specified.
Description
Use the import-route isis level-2 into level-1 command to enable routing information
in a Level-2 area to be redistributed to a Level-1 area.
Use the undo import-route isis level-2 into level-1 command to remove the function.
By default, routing information in a Level-2 area is not redistributed to a Level-1 area.
Example
4-15
Command Manual – Routing Protocol
Comware V3 Chapter 4 Integrated IS-IS Configuration Commands
4.1.18 isis
Syntax
isis [ tag ]
undo isis [ tag ]
View
System view
Parameter
tag: Name given to the IS-IS process. The name length should be no longer than 128
characters. It can be 0, which means null.
Description
Use the isis command to enable the corresponding IS-IS routing process and enter the
IS-IS view.
Use the undo isis command to cancel the specified IS-IS routing process.
By default, IS-IS routing process is not started
For the normal operation of the IS-IS protocol, the isis command must be used to
enable the IS-IS process. Then the network-entity command is used to set a Network
Entity Title (NET) for the router. And, at last, the isis enable command is used to
enable each interface on which the IS-IS process runs. The IS-IS protocol is actually
enabled upon the completion of these configurations.
Note:
Only one IS-IS routing process can be started on one router.
Example
# Start an IS-IS routing process, in which the system ID is 0000.0000.0002 and the
area ID is 01.0001.
[H3C] isis
[H3C-isis] network-entity 01.0001.0000.0000.0002.00
4-16
Command Manual – Routing Protocol
Comware V3 Chapter 4 Integrated IS-IS Configuration Commands
Syntax
View
Interface view
Parameter
Description
Use the isis authentication-mode command to configure the IS-IS to authenticate the
hello messages of the corresponding level, in the specified mode and with the specified
password on the IS-IS interface.
Use the undo isis authentication-mode command to cancel the authentication and
delete the password at the same time.
By default, the password is not set and no authentication is executed.
If the password is set, but no parameter is specified, the default settings are Level-1,
simple and osi.
Related command: area-authentication-mode and domain-authentication-mode.
Example
# Set the authentication password "tangshi" in simple text for the Level-1 neighboring
relationship on Interface serial1/0/0.
[H3C] interface serial1/0/0
[H3C-Serial1/0/0] isis authentication-mode simple tangshi level-1
4-17
Command Manual – Routing Protocol
Comware V3 Chapter 4 Integrated IS-IS Configuration Commands
Syntax
View
Interface view
Parameter
level-1: Configures only Level-1 adjacency instead of Level-2 one on the current
interface.
level-1-2: Configures both Level-1 and Level-2 adjacency on the current interface.
level-2: Configures only Level-2 adjacency on the current interface.
Description
Use the isis circuit-level command to configure the link adjacency relationship.
Use the undo isis circuit-level command to restore the default setting.
By default, you can configure both Level-1 and Level-2 adjacency on the interface.
If the local router is a Level-1-2 router and it is required to establish a correlation with
the peer router on a certain level (Level-1 or Level-2), this command can specify the
interface to send and receive hello messages of this level. Certainly, only one type of
hello message is sent and received on the point-to-point link. In this way, excessive
processing is avoided, and the bandwidth is saved.
Only when system type of IS-IS is Level-1-2, can the circuit level take effect. Otherwise,
take the level defined via is-level command as the standard.
Related command: is-level.
Example
# When interface serial1/0/0 is connected with a non-backbone router in the same area,
you can set this interface as Level-1, prohibiting the sending and receiving of Level-2
hello messages.
[H3C] interface serial1/0/0
[H3C-Serial1/0/0] isis enable
[H3C-Serial1/0/0] isis circuit-level level-1
Syntax
4-18
Command Manual – Routing Protocol
Comware V3 Chapter 4 Integrated IS-IS Configuration Commands
View
Interface view
Parameter
value: Specifies the link cost used in the SPF calculation of corresponding level. By
default, the value is 10. When the cost type is “narrow”, its range is 1 through 63; when
the cost type is wide, its range is 1 to 16777215.
level-1: Indicates that the link cost corresponds to Level-1
level-2: Indicates that the link cost corresponds to Level-2
Description
Use the isis cost command to configure the link cost of this interface when performing
SPF calculation.
Use the undo isis cost command to restore the default link cost.
If neither Level-1 nor Level-2 is specified in the configuration, Level-1 will be the default
value.
The link cost for interfaces will effect the calculation of IS-IS routes.
Related command: cost-style.
Example
Syntax
View
Interface view
Parameter
value: Specifies the priority when selecting DIS, ranging from 0 to 127. By default, the
value is 64.
level-1: Specifies the priority when selecting Level-1 DIS.
level-2: Specifies the priority when selecting Level-2 DIS.
4-19
Command Manual – Routing Protocol
Comware V3 Chapter 4 Integrated IS-IS Configuration Commands
Description
Use the isis dis-priority command to configure the priority of an interface for the
corresponding level DIS election.
Use the undo isis dis-priority command to restore the default priority.
If the level is not specified, it defaults to set the Level-2 priority.
The IS-IS does not concern the concept of backup DIS. The router with the priority 0
can also run for the DIS, which is different from the DR election of OSPF.
Related command: area-authentication-mode and domain-authentication-mode.
Example
Syntax
View
Interface view
Parameter
tag: Name given to an IS-IS routing process, when executing isis command in the
system view. If not specified, it is null.
Description
Use the isis enable command to configure this interface to activate the corresponding
IS-IS routing process.
Use the undo isis enable command to cancel this designation.
By default, the IS-IS routing process is not enabled on an interface.
For the normal operation of the IS-IS protocol, the isis command must be used to
enable the IS-IS process. Then the network-entity command is used to set a Network
Entity Title (NET) for the router. And, at last, the isis enable command is used to
enable each interface on which the IS-IS process runs. The IS-IS protocol will be
enabled upon the completion of these configurations.
Related command: isis and network-entity.
4-20
Command Manual – Routing Protocol
Comware V3 Chapter 4 Integrated IS-IS Configuration Commands
Note:
So far, a router can enable the IS-IS process on 255 interfaces at most, including logic
interfaces such as subinterfaces.
Example
# Create an IS-IS routing process named "h3c", and activate this routing process on
interface serial1/0/0.
[H3C] isis h3c
[H3C-isis] network-entity 10.0001.1010.1020.1030.00
[H3C-isis] quit
[H3C] interface serial1/0/0
[H3C-serial1/0/0] isis enable h3c
Syntax
View
Interface view
Parameter
Description
Use the isis mesh-group command to add an interface to a specified mesh group.
Use the undo isis mesh-group command to cancel this interface from the mesh
group.
By default, the interface does not belong to any mesh group and floods LSP normally.
The interface beyond the mesh group floods the received LSP to other interfaces,
following the normal procedure. This processing method applied to an NBMA network
with higher connectivity and several point-to-point links will cause repeated LSP
flooding and waste bandwidth.
4-21
Command Manual – Routing Protocol
Comware V3 Chapter 4 Integrated IS-IS Configuration Commands
The interface joining a mesh group only floods the received LSP to the interfaces
beyond the local mesh group.
Be sure to provide some redundancy when adding an interface to a mesh group or
blocking it, for avoiding the effect on the normal flooding of the LSP due to link failure.
Example
Syntax
isis small-hello
undo isis small-hello
View
Interface view
Parameter
None
Description
Use the isis small-hello command to disable IS-IS to stuff Hello packets to the size of
interface MTU if their data sizes are smaller.
Use the undo isis small-hello command to restore the default to have IS-IS stuff Hello
packets to the size of interface MTU if their data sizes are smaller.
You are recommended to configure the isis small-hello command on the interfaces
with an MTU greater than 1500 bytes, such as tunnel and GE interfaces.
Example
# Disable ISIS to stuff Hello packets to the size of interface MTU when their data sizes
are smaller.
[H3C-tunnel0/0/0] isis small-hello
Syntax
4-22
Command Manual – Routing Protocol
Comware V3 Chapter 4 Integrated IS-IS Configuration Commands
View
Interface view
Parameter
seconds: Specifies the CSNP packet interval on the broadcast network, ranging from 1
to 65535 and measured in seconds. By default, the value is 10 seconds.
level-1: Specifies the Level-1 CSNP packet interval.
level-2: Specifies the Level-2 CSNP packet interval.
If neither Level-1 nor Level-2 is specified, it defaults to set Level-1-2 Hello message
interval, that is, both Level-1 and Level-2 take effect.
Description
Use the isis timer csnp command to configure the interval of sending CSNP packets
on the broadcast network.
Use the undo isis timer csnp command to restore the default value, that is, 10
seconds.
Only DIS can periodically send CSNP packets, therefore, this command is valid only for
the router that is selected as the DIS. Furthermore, DIS is divided into Level-1 and
Level-2, and their intervals of sending CSNP packets must be set respectively.
Example
# Set the Level-2 CSNP packet to be transmitted every 15 seconds on the interface
Serial1/0/0.
[H3C] interface serial1/0/0
[H3C-Serial1/0/0] isis timer csnp 15 level-2
Syntax
View
Interface view
Parameter
seconds: Specifies the Hello message interval, ranging from 3 to 255 and measured in
seconds. The default value is 10 seconds.
level-1: Specifies the Level-1 Hello interval.
4-23
Command Manual – Routing Protocol
Comware V3 Chapter 4 Integrated IS-IS Configuration Commands
Description
Use the isis timer hello command to configure the interval of sending hello message
of corresponding level.
Use the undo isis timer hello command to restore the default value, that is, 10
seconds.
On a broadcast link, Level-1 and Level-2 hello messages will be sent respectively and
their intervals should also be set respectively. Such settings are unnecessary on
point-to-point links. The shorter the sending interval is, the more system resources are
occupied to send hello messages. Therefore, the interval should be set according to
actual conditions.
Related command: isis timer dead.
Example
Syntax
View
Interface view
Parameter
Description
Use the isis timer holding-multiplier command to configure the number of invalid
Hello messages for the interface.
Use the undo isis timer holding-multiplier command to restore the default settings.
The default number of invalid Hello messages is 3.
4-24
Command Manual – Routing Protocol
Comware V3 Chapter 4 Integrated IS-IS Configuration Commands
ISIS protocol maintains the adjacency between the adjacent routers by sending and
receiving Hello messages. If the local router does not receive a Hello message from the
peer within an interval, it regards the neighbor unavailable. The interval is the ISIS
holddown time.
In ISIS, the holddown time can be regulated by configuring the number of invalid Hello
messages. That is, the local router regards its neighbor unavailable if it has not
received the specific number of Hello messages consecutively.
If you do not specify Level-1 or Level-2 in the command, the system applies the number
of invalid Hello messages to Level-1 and Level-2.
Related command: isis timer hello.
Example
Syntax
View
Interface view
Parameter
time: Specifies the LSP interval, ranging from 1 to 1000 and measured in milliseconds.
The default value is 33 milliseconds.
Description
Use the isis timer lsp command to configure minimum IS-IS LSP interval on the
interface.
Use the undo isis timer lsp command to restore the default setting.
Related command: isis timer retransmit.
Example
4-25
Command Manual – Routing Protocol
Comware V3 Chapter 4 Integrated IS-IS Configuration Commands
Syntax
View
Interface view
Parameter
seconds: Specifies the retransmission interval of LSP packets, with the range from 0 to
300 and the default value is 5 seconds.
Description
Use the isis timer retransmit command to configure the LSP retransmission interval
over the point-to-point link.
Use the undo isis timer retransmit command to restore the default setting.
Use this parameter cautiously when setting this parameter to avoid unnecessary
retransmission.
The response is required when sending LSP packets on the p2p link, not the broadcast
link, and therefore this command is unnecessary for the broadcast link.
Related command: isis timer lsp.
Example
4.1.31 is-level
Syntax
View
IS-IS view
Parameter
level-1: Configures the router to operate at Level-1, only calculate the intra-area routes
and maintain the LSDB of L1.
4-26
Command Manual – Routing Protocol
Comware V3 Chapter 4 Integrated IS-IS Configuration Commands
level-1-2: Configures the router to operate at Level-1-2, calculate both the L1 and L2
routes and maintain the LSDB of Level-1 and Level-2.
level-2: Configures the router to operate at Level-2, only switch Level-2 LSP and
calculate the Level-2 routes and maintain the LSDB of Level-2.
Description
Note:
As described in ISIS protocol, there is only one type of PDU Hello message on a
point-to-point link, while there are two types of PDU Hello messages on a LAN interface,
namely, Level-1 and Level-2. If you have configured different Level-1 and Level-2
authentication passwords on a point-to-point link, the system will have to choose one
type of password, since only one type of Hello message exists on a point-to-point link.
Hence the system will choose one password from Level-1 and Level-2 and put it into
the Hello message.
As for sender:
z If the sender is of Level-1 or Level-1-2 interface, it encapsulates the
Level-1authenticator into Hello message.
z If the sender is of Level-2 interface, it encapsulates the Level-2 authenticator into
Hello message.
z As for receiver:
z Supposing that the receiver is of Level-1 interface, it uses the Level-1 authenticator.
z Supposing that the receiver is of Level-2 interface, it uses the Level-1 authenticator
if its neighbors are of Level-1-2; otherwise, it uses the Level-2 authenticator.
z Supposing that the receiver is of Level-1-2 interface, it uses the Level-1
authenticator if its neighbors are of Level-1-2 or Level-1; otherwise, it uses the
Level-2 authenticator.
4-27
Command Manual – Routing Protocol
Comware V3 Chapter 4 Integrated IS-IS Configuration Commands
Example
4.1.32 log-peer-change
Syntax
log-peer-change
undo log-peer-change
View
IS-IS view
Parameter
None
Description
Use the log-peer-change command to configure to log the IS-IS adjacency changes.
Use the undo log-peer-change command to configure not to log the IS-IS adjacency
changes.
By default, IS-IS adjacency changes log is disabled.
After IS-IS adjacency changes log is enabled, the IS-IS adjacency changes will be
output on the configuration terminal until the log is disabled.
Example
4.1.33 md5-compatible
Syntax
md5-compatible
undo md5-compatible
View
ISIS view
Parameter
None
4-28
Command Manual – Routing Protocol
Comware V3 Chapter 4 Integrated IS-IS Configuration Commands
Description
Use the md5-compatible command to configure ISIS to use the H3C-compatible MD5
algorithm. You need to use this command when MD5 authentication on ISIS is required
between your router and a H3C device.
Use the undo md5-compatible command to restore the default MD5 algorithm.
Example
4.1.34 network-entity
Syntax
network-entity net
undo network-entity net
View
IS-IS view
Parameter
net: Specifies the NET (Network Entity Title ) in the X…X.XXXX....XXXX.00 format, in
which the first "X…X" is the area address, the twelve Xs in the middle is the System ID
of the router, and the 00 in the end is SEL.
Description
Use the network-entity command to configure the name of Network Entity Title (NET)
of the IS-IS routing process.
Use the undo network-entity command to cancel a NET.
By default, the value is No NET.
NET means the Network Service Access Point (NSAP). The NET field of IS-IS is 8 to 20
bytes.
It consists of three parts. Part one is area ID, which is variable (1 to 13 bytes), and the
area IDs of the routers in the same area are identical. Part two is system ID (6 bytes) of
this router, which must be unique in the whole area and backbone area. Part three, the
last byte "SEL", whose value must be "00". Usually, one router can be configured with
one NET. When the area is redesigned by combination or separation, after
reconfiguration, the correctness and continuity of the routes must be ensured.
Related command: isis and isis enable.
4-29
Command Manual – Routing Protocol
Comware V3 Chapter 4 Integrated IS-IS Configuration Commands
Example
4.1.35 preference
Syntax
preference value
undo preference
View
IS-IS view
Parameter
value: Specifies the preference, ranging from1 to 255. By default, the value is 15.
Description
Example
Syntax
View
User view
4-30
Command Manual – Routing Protocol
Comware V3 Chapter 4 Integrated IS-IS Configuration Commands
Parameter
None
Description
Use the reset isis all command to reset all the IS-IS data.
This command is used when LSPs need refreshing immediately. For example, after
area-authentication-mode and domain-authentication-mode commands are
executed, the old LSP still remain on the router.
Related command: area-authentication-mode and domain-authentication-mode.
Example
Syntax
View
User view
Parameter
Description
Use the reset isis peer command to reset the IS-IS data of specified IS-IS neighbor.
This command is used when you want to reconfigure a certain neighbor.
Example
4.1.38 set-overload
Syntax
set-overload
undo set-overload
4-31
Command Manual – Routing Protocol
Comware V3 Chapter 4 Integrated IS-IS Configuration Commands
View
IS-IS view
Parameter
None
Description
Use the set-overload command to configure overload flag bit for the current router.
Use the undo set-overload command to reset the overload flag bit.
By default, no overload bit is set.
If a router is configured with the overload bit, it will be ignored by other routers in SPF
calculation. (However the directly connected routes will not be ignored.)
When the overload threshold is set, other routers should not send this router the
packets which should be forwarded by it.
Example
4.1.39 silent-interface
Syntax
View
IS-IS view
Parameter
Description
4-32
Command Manual – Routing Protocol
Comware V3 Chapter 4 Integrated IS-IS Configuration Commands
The silent-interface command is only used to restrain the IS-IS packets not to be sent
on the interface, but the interface routes still can be sent from other interfaces.
Example
4.1.40 spf-delay-interval
Syntax
spf-delay-interval number
undo spf-delay-interval
View
IS-IS view
Parameter
number: Interval for actively releasing CPU in route calculation. It is in pieces, ranging
from 1000 to 50000. By default, the value is 5000.
Description
Use the spf-delay-interval command to configure the interval for actively releasing
CPU in the SPF calculation.
Use the undo spf-delay-interval command to restore the default setting.
When there are a large number of routes in the routing table, this command can be
used to set that CPU resources are released automatically after a certain number of
routes are processed. The unprocessed routes will be processed in one second.
The value of the parameter number can be adjusted according to the capacity of the
routing table. If the spf-slice-size command is also configured, the SPF calculation will
be paused when any setting item is met.
By default, CPU is released once when every 5000 pieces of routes are processed.
Related command: spf-slice-size.
Example
# Set IS-IS to release CPU once after processing every 3000 pieces of routes.
[H3C-isis] spf-delay-interval 3000
4-33
Command Manual – Routing Protocol
Comware V3 Chapter 4 Integrated IS-IS Configuration Commands
4.1.41 spf-slice-size
Syntax
spf-slice-size seconds
undo spf-slice-size
View
IS-IS view
Parameter
seconds: Duration time in seconds for SPF calculation each time in the range from 0 to
120. When the calculation duration time reaches or exceeds the set value, the
calculation of this time ends. If seconds is set to 0, it indicates that SPF calculation is
not divided into slices and it will operate until the end. By default, the value is 0.
Description
Use the spf-slice-size command to configure whether to set slice and the duration time
each time when IS-IS performs SPF route calculation.
Use the undo spf-slice-size command to restore the default setting.
When there are a large number of routes in the routing table, this command can be
used to enable the SPF calculation in slices to prevent it from occupying the system
resources for a long time. Each time the router processes some route information, it will
free CPU to process other things, and process route information after 1 second.
The user is recommended to use the command when the number of routes reaches
150,000 or 200,000 and the value of seconds is recommended as 1. In other cases, the
default setting should be used, that is, SPF runs to the end with no slice.
If the spf-delay-interval command is also configured, when SPF calculation is run, the
SPF calculation will be paused if any setting item is met.
Related command: spf-delay-interval.
Example
4.1.42 summary
Syntax
4-34
Command Manual – Routing Protocol
Comware V3 Chapter 4 Integrated IS-IS Configuration Commands
View
IS-IS view
Parameter
Description
Example
Syntax
View
IS-IS view
Parameter
seconds: Specifies the maximum lifetime of LSP, measured in seconds. The range is 1
to 65535. The default value is 1200 seconds.
4-35
Command Manual – Routing Protocol
Comware V3 Chapter 4 Integrated IS-IS Configuration Commands
Description
Use the timer lsp-max-age command to configure the maximum lifetime of an LSP
generated by the current router.
Use the undo timer lsp-max-age command to restore the default value.
When a router generates the LSP of the system, it will fill in the maximum lifetime of this
LSP. When other routers receive this LSP, its lifetime will be reduced continuously as
the time goes by. If updated LSP has not been received before the old one times out,
this LSP will be deleted from the LSDB.
Related command: timer lsp-refresh.
Example
# Set the lifetime of an LSP generated by the current system to 25 minutes, i.e., 1500
seconds.
[H3C-isis] timer lsp-max-age 1500
Syntax
View
IS-IS view
Parameter
seconds: Specifies the LSP refresh interval, measured in seconds. The range is 1 to
65535. The default value is 900 seconds.
Description
Use the timer lsp-refresh command to configure the refresh interval of LSP.
Use the undo timer lsp-refresh command to restore the default value.
By this mechanism, synchronization of the LSPs within the entire area can be
maintained.
Related command: timer lsp-max-age.
Example
# Set the LSP refresh interval of the current system to 1500 seconds.
[H3C-isis] timer lsp-refresh 1500
4-36
Command Manual – Routing Protocol
Comware V3 Chapter 4 Integrated IS-IS Configuration Commands
Syntax
View
IS-IS view
Parameter
seconds: Specifies the SPF calculation interval, ranging from 1 to 120 and measured in
seconds. The default value is 5 seconds.
level-1: Sets Level-1 SPF calculation interval only.
level-2: Sets Level-2 SPF calculation interval only.
If the level is not specified, it defaults to SPF interval of Level-1.
Description
Use the timer spf command to configure the interval for the SPF calculation.
Use the undo timer spf command to restore the default setting.
In IS-IS protocol, when the LSDB of the corresponding level is changed, SPF
calculation is required. However, if the SPF calculation is performed too frequently, the
system efficiency will be lowered and a great number of resources on the network will
be occupied. SPF calculation interval can improve its calculation efficiency to some
degree. This setting can be made according to actual conditions.
Example
4-37
Command Manual – Routing Protocol
Comware V3 Chapter 5 BGP Configuration Commands
Note:
For the commands defining routing policies in BGP, refer to the next chapter “IP
Routing Policy Configuration Commands”.
For the configuration examples and parameter explanation of VPNv4 and VPN
instance in BGP, refer to the "Multicast" module and "MPLS" module of this manual.
5.1.1 aggregate
Syntax
View
BGP view
Parameter
5-1
Command Manual – Routing Protocol
Comware V3 Chapter 5 BGP Configuration Commands
Description
Use the aggregate command to establish an aggregated record in the BGP routing
table.
Use the undo aggregate command to cancel the function.
By default, there is no route aggregation.
The keywords are explained as follows:
Keywords Function
Used to create an aggregated route, whose AS path
information includes individual routes. Use this keyword
as-set carefully when many AS paths need to be aggregated, for
the frequent change of individual routes may lead to route
vibration.
This keyword does not suppress any aggregated route, but
it suppresses the advertisement of all the individual routes. If
detail-suppressed
only some individual routes are to be suppressed, use the
peer filter-policy command.
Used to create an aggregated route and suppress the
advertisement of the specified route. If you want to suppress
suppress-policy some specific routes selectively and leave other routes still
being advertised, use the if-match clause of the
route-policy command.
Selects only the individual routes that are in accordance with
origin-policy
route-policy to create an aggregated route.
Sets aggregated route attributes. The same work can be
attribute-policy
done by using the peer route-policy command, etc.
Example
5.1.2 balance
Syntax
balance num
undo balance
View
BGP view
5-2
Command Manual – Routing Protocol
Comware V3 Chapter 5 BGP Configuration Commands
Parameter
num: Number of the BGP routes participating in load balancing. It is in the range 1 to 8.
When it is set to 1, load balancing is disabled.
Description
Use the balance command to configure the number of routes participating in BGP load
balancing.
Use the undo balance command to restore the default, that is, 1. In this case, load
balancing is disabled.
Different from IGP, BGP is just a single-purpose routing protocol and therefore has no
explicit metric for making load balancing decision. Instead, it implements load
balancing by changing its routing rule.
Related command: display ip routing-table.
Example
5.1.3 bgp
Syntax
bgp as-number
undo bgp [ as-number ]
View
System view
Parameter
Description
Use the bgp command to enable BGP and enter the BGP view.
Use the undo bgp command to disable BGP.
By default, BGP is not enabled.
This command is used to enable and disable BGP as well as to specify the local AS
number of BGP.
Example
# Enable BGP.
5-3
Command Manual – Routing Protocol
Comware V3 Chapter 5 BGP Configuration Commands
5.1.4 compare-different-as-med
Syntax
compare-different-as-med
undo compare-different-as-med
View
Parameter
None
Description
Example
# Enable the comparison of the MED attribute values of routes from neighbors in
different AS.
[H3C-bgp] compare-different-as-med
5.1.5 confederation id
Syntax
confederation id as-number
undo confederation id
View
BGP view
5-4
Command Manual – Routing Protocol
Comware V3 Chapter 5 BGP Configuration Commands
Parameter
as-number: Number of the AS which contains multiple sub-ASs. The range is from 1 to
65535.
Description
Example
# Confederation 9 consists of four sub-ASs, namely, 38, 39, 40 and 41. Here, the peer
10.1.1.1 is an internal member of the AS confederation while the peer 200.1.1.1 is an
external member of the AS confederation. For external members, Confederation 9 is a
unified AS domain.
[H3C] bgp 41
[H3C-bgp] confederation id 9
[H3C-bgp] confederation peer-as 38 39 40
[H3C-bgp] peer 10.1.1.1 as-number 38
[H3C-bgp] peer 200.1.1.1 as-number 98
Syntax
confederation nonstandard
undo confederation nonstandard
View
BGP view
Parameter
None
5-5
Command Manual – Routing Protocol
Comware V3 Chapter 5 BGP Configuration Commands
Description
Use the confederation nonstandard command, the router can be compatible with the
AS confederation not adopting RFC1965.
Use the undo confederation nonstandard command to cancel this function.
By default, the configured confederation is consistent with RFC1965.
All the H3C routers in the confederation should be configured with this command for
interworking with those nonstandard devices.
Related command: confederation id and confederation peer-as.
Example
# AS100 contains routers not following RFC1965, which is composed of two sub-ASs,
64000 and 65000.
[H3C] bgp 64000
[H3C-bgp] confederation id 100
[H3C-bgp] confederation peer-as 65000
[H3C-bgp] confederation nonstandard
Syntax
View
BGP view
Parameter
Description
5-6
Command Manual – Routing Protocol
Comware V3 Chapter 5 BGP Configuration Commands
used to specify the confederation to which each sub-AS belongs; otherwise, this
configuration is invalid
Related command: confederation nonstandard and confederation id.
Example
5.1.8 dampening
Syntax
View
BGP view
Parameter
half-life-reachable: Specifies the half-life when the route is reachable. The range is 1 to
45 minutes. By default, the value is 15 minutes.
half-life-unreachable: Specifies the half-life when the route is unreachable. The range is
1 to 45 minutes. By default, the value is 15 minutes.
reuse: Penalty value of a route when it starts to be reused. The range is 1 to 20000. By
default, its value is 750.
suppress: Penalty threshold of a route when it starts to be suppressed. The range is 1
to 20000. By default, its value is 2000.
ceiling: Upper threshold of the penalty. The range is 1001 to 20000. By default, its value
is 16000.
policy-name: Route policy name.
Description
Use the dampening command to make BGP route dampening valid or modify various
BGP route dampening parameters.
Use the undo dampening command to make the characteristics invalid.
By default, no route dampening is configured.
If these parameters are not set, their default values are used. half-life-reachable,
half-life-unreachable, reuse, suppress and ceiling are mutually dependent. Once any
one is configured, all others should also be specified accordingly.
5-7
Command Manual – Routing Protocol
Comware V3 Chapter 5 BGP Configuration Commands
The dampening command dampens only the routes that are learned from EBGP peers;
it dampens no IBGP routes.
Related command: reset dampening, reset bgp flap-info, display bgp routing
dampened, and display bgp routing flap-info.
Example
Syntax
View
User view
Parameter
Description
Use the debugging bgp command to enable debugging of specified BGP packets and
events.
5-8
Command Manual – Routing Protocol
Comware V3 Chapter 5 BGP Configuration Commands
Use the undo debugging bgp command to disable debugging of specified BGP
packets or events.
By default, debugging is disabled for any items.
System performance is influenced when debugging is enabled. Therefore, this
command should be used cautiously. Disable debugging of any item after gone
through.
Example
Syntax
default-route imported
undo default-route imported
View
BGP view
Parameter
None
Description
Use the default-route imported command to redistribute local default routes into BGP.
Use the undo default-route imported command to disable the redistribution.
By default, local default routes are not redistributed into BGP.
Example
Syntax
View
5-9
Command Manual – Routing Protocol
Comware V3 Chapter 5 BGP Configuration Commands
Parameter
Description
Example
# Two routers RTA and RTB reside in the same autonomous area and use the X.25 and
Frame Relay protocols separately to connect with external autonomous areas. The
command can be used to configure the local preference of RTB as 180 so that the route
via RTB is preferred to forward packets.
[H3C-bgp] default local-preference 180
Syntax
View
BGP unicast view, BGP multicast view, VPNv4 view, VPN instance view
Parameter
Description
Use the default med command to configure the system MED value.
Use the undo default med command to restore the default MED value.
Multi-exit discriminator (MED) is an external metric for routes. Different from local
preference, MED is exchanged between ASs and will stay in the AS once it enters the
AS. The smaller an MED is, the better a route is. So the route with a lower MED is
preferred. When a router running BGP obtains several routes with identical destination
address and different next-hops from various external peers, it will select the best route
depending on the MED value. In the case that all other conditions are the same, the
system first selects the route with the smaller MED value as the external route of the
autonomous system.
5-10
Command Manual – Routing Protocol
Comware V3 Chapter 5 BGP Configuration Commands
Example
# Routers RTA and RTB belong to AS100, and router RTC belongs to AS200. RTC is
the peer of RTA and RTB. The network between RTA and RTC is X.25 network and the
network between RTB and RTC is Ethernet. So the MED of RTA can be configured as
25 to allow RTC to select the route transmitted by RTB first.
[H3C-bgp] default med 25
Syntax
View
Any view
Parameter
Description
Use the display bgp group command to view the information of peer groups.
Example
5-11
Command Manual – Routing Protocol
Comware V3 Chapter 5 BGP Configuration Commands
Table 5-2 Description on the fields of the display bgp group command
Field Description
Group Name of the BGP peer group
type Type of the BGP peer group: IBGP or EBGP
as-number AS number of the BGP peer group
members in this group Members in this BGP peer group
route-policy Name of the configured route policy
filter-policy Route filtering policy of BGP
as-path-acl AS path ACL used for route filtering
ip-prefix IP prefix list used for route filtering
Syntax
View
Any view
Parameter
Description
Use the display bgp network command to view the routing information that has been
configured.
Example
5-12
Command Manual – Routing Protocol
Comware V3 Chapter 5 BGP Configuration Commands
Table 5-3 Description on the fields of the display bgp network command
Field Description
Network Network address
Mask Mask
Route-policy Route policy
Syntax
View
Any view
Parameter
Description
Use the display bgp paths command to view the information about AS paths
Example
Table 5-4 Description on the fields of the display bgp paths command
Field Description
Id Sequence number
Hash-Index Hash index
References Count of the times that the path is referenced
Aggregator Mask length of the aggregate route
5-13
Command Manual – Routing Protocol
Comware V3 Chapter 5 BGP Configuration Commands
Field Description
Origin attribute of the route, which can take on one of the following
values:
Indicates that a route is interior to the AS.
IGP Aggregate routes and the routes defined using the
Origin network command are considered IGP routes.
Indicates that a route is learned from the exterior gateway
EGP
protocol (EGP).
Short for INCOMPLETE. It indicates that the origin of a
INC
route is unknown and the route is learned by other means.
AS-path attribute of the route. It records all ASs traversed by the
As-path
route for avoiding routing loops.
Syntax
View
Any view
Parameter
Description
Use the display bgp peer command to view the information of peer.
Use the display bgp multicast peer command to view the information of MBGP peer.
Use the display bgp vpnv4 peer command to view the information of VPN peer.
Example
5-14
Command Manual – Routing Protocol
Comware V3 Chapter 5 BGP Configuration Commands
-------------------------------------------------------------------
1.1.1.10 300 4 0 3 5 00:00:10 Established
2.2.2.11 100 4 0 0 0 Never Idle
Table 5-5 Description on the fields of the display bgp peer command
Field Description
Peer IP address of the peer
AS-num AS number of the peer
Ver BGP version of the peer
Queued-Tx Number of the packets in the transmit queue
Msg-Rx Number of messages received from this peer
Msg-Tx Number of messages sent to this peer
Up/Down Up/down time of the peer
Peer capabilities:
Route refresh: advertised and received
Ipv4-family Unicast: advertised and received
Ipv4-family Multicast: advertised and received
Ipv4-family VPNv4: advertised and received
5-15
Command Manual – Routing Protocol
Comware V3 Chapter 5 BGP Configuration Commands
Table 5-6 Description on the fields of the display bgp peer verbose command
Field Description
IP address of the peer and the port number for
Peer: 1.1.1.10+1024
TCP connection
IP address of the local and the port number for
Local: 1.1.1.20+179
TCP connection
Type: Internal BGP version of the peer
State: Established Current state of the peer
Displays the remaining lifetime of the peer. This
Expiring Time: 00:02:49 field is displayed only when the state of the peer
is Established
The last state of the peer before transitting to the
Last State: OpenConfirm
current state
Last Event: RecvKeepAlive The last event that triggers state transition
Syntax
View
Any view
Parameter
5-16
Command Manual – Routing Protocol
Comware V3 Chapter 5 BGP Configuration Commands
Description
Use the display bgp routing command to view the BGP routing information in the
BGP routing table.
Use the display bgp multicast routing command to view the MBGP routing
information in the BGP routing table.
Use the display bgp vpnv4 routing command to view the VPN routing information in
the BGP routing table.
Example
5-17
Command Manual – Routing Protocol
Comware V3 Chapter 5 BGP Configuration Commands
Table 5-7 Description on the fields of the display bgp routing command
Field Description
State flags:
# – valid
^ – best
D – damped
Flags
H – history
I – internal (IGP)
S – aggregate suppressed (suppressed)
B – balance
Dest/Mask Destination address/mask
Next Hop Next hop IP address
Multi-exit discriminator (MED) attribute, in the range 0 to
Med
4,294,967,295
Local-Pref Local preference value, in the range 0 to 4,294,967,295
Origin attribute of the route, which can take on one of the following
values:
Syntax
View
Any view
Parameter
5-18
Command Manual – Routing Protocol
Comware V3 Chapter 5 BGP Configuration Commands
Description
Use the display bgp routing as-path-acl command to view routes that match an
as-path ACL.
Example
Table 5-8 Description on the fields of the display bgp routing as-path-acl command
Field Description
Dest/Mask Destination address/mask
Pref Preference
Nexthop Next hop IP address
Med Multi-exit discriminator (MED) attribute
Local-pref Local preference
Origin attribute of the route, which can take on one of the following
values:
5-19
Command Manual – Routing Protocol
Comware V3 Chapter 5 BGP Configuration Commands
Field Description
AS-path attribute of the route. It records all ASs traversed by the
As-path
route for avoiding routing loops.
Syntax
View
Any view
Parameter
None
Description
Use the display bgp routing cidr command to view the routing information about the
non-natural mask (namely the classless inter-domain routing, CIDR).
Example
5-20
Command Manual – Routing Protocol
Comware V3 Chapter 5 BGP Configuration Commands
Syntax
View
Any view
Parameter
Description
Use the display bgp routing community command to view the routing information
related to the specified BGP community number in the routing table.
Example
# Display the routing information matching the specified BGP community number.
<H3C> display bgp routing community 11:22
Flags: # - valid ^ - active I - internal
D - damped H - history S - aggregate suppressed
B - balance
Syntax
5-21
Command Manual – Routing Protocol
Comware V3 Chapter 5 BGP Configuration Commands
View
Any view
Parameter
Description
Use the display bgp routing community-list command to view the routing
information matching the specified BGP community list.
Example
Syntax
View
Any view
Parameter
None
5-22
Command Manual – Routing Protocol
Comware V3 Chapter 5 BGP Configuration Commands
Description
Use the display bgp routing dampened command to view BGP dampened routes.
Example
Table 5-9 Description on the fields of the display bgp routing dampened command
Field Description
State flags:
# – valid
^ – best
D – damped
Flags
H – history
I – internal (IGP)
S – aggregate suppressed (suppressed)
B – balance
#D Valid and damped routes
Dest/Mask The route to this destination network segment is damped.
Source Next hop of the route
Damping-limit Time after which the route can recover from the damped state
Origin attribute of the route, which can take on one of the following
values:
5-23
Command Manual – Routing Protocol
Comware V3 Chapter 5 BGP Configuration Commands
Syntax
View
Any view
Parameter
None
Description
Use the display bgp routing different-origin-as command to view routes that have
different source autonomous systems.
Example
Syntax
View
Any view
Parameter
5-24
Command Manual – Routing Protocol
Comware V3 Chapter 5 BGP Configuration Commands
Description
Use the display bgp routing flap-info command to view BGP flap statistics. When
<network-address mask> is <0.0.0.0 0.0.0.0>, this command will view the flap statistics
of all BGP routes.
Example
Table 5-10 Description on the fields of the display bgp routing flap-info command
Field Description
State flags:
# – valid
^ – best
D – damped
Flags
H – history
I – internal (IGP)
S – aggregate suppressed (suppressed)
B – balance
#D Valid and damped routes
Dest/Mask The route to this destination network segment is damped.
Source Next hop of the route
Keepup-time Time that the damping has lasted
Damping-limit Time after which the route can recover from the damped state
Flap-times Number of route flaps
5-25
Command Manual – Routing Protocol
Comware V3 Chapter 5 BGP Configuration Commands
Field Description
Origin attribute of the route, which can take on one of the following
values:
Indicates that a route is interior to the AS.
IGP Aggregate routes and the routes defined using the
Origin network command are considered IGP routes.
Indicates that a route is learned from the exterior gateway
EGP
protocol (EGP).
Short for INCOMPLETE. It indicates that the origin of a
INC
route is unknown and the route is learned by other means.
AS-path attribute of the route. It records all ASs traversed by the
As-path
route for avoiding routing loops.
Syntax
View
Any view
Parameter
Description
Use the display bgp routing peer command to view the routing information the
specified BGP peer advertised or received.
Related command: display bgp peer.
Example
5-26
Command Manual – Routing Protocol
Comware V3 Chapter 5 BGP Configuration Commands
Syntax
View
Any view
Parameter
Description
Use the display bgp routing peer dampened command to view the information about
the dampened routes received from the specified peer.
Example
# Display the information about the dampened routes received from the specified peer.
<H3C>display bgp routing peer 133.1.1.1 dampened
# Display statistics about the dampened routes received from the specified peer.
<H3C>display bgp routing peer 133.1.1.1 dampened statistic
Received damping routes total: 1
# Display the details about the dampened routes to the 10.0.0.0 segment received from
the specified peer.
5-27
Command Manual – Routing Protocol
Comware V3 Chapter 5 BGP Configuration Commands
Table 5-11 Description on the fields of display bgp routing peer dampened
Field Description
State flags:
# – valid
^ – best
D – damped
Flags
H – history
I – internal (IGP)
S – aggregate suppressed (suppressed)
B – balance
Dest/Mask Destination address/mask
Source Source IP address
Damping-limit Time after which the route can recover from the damped state
Origin attribute of the route, which can take on one of the following
values:
Syntax
5-28
Command Manual – Routing Protocol
Comware V3 Chapter 5 BGP Configuration Commands
View
Any view
Parameter
Description
Use the display bgp routing peer regular-expression command to view the route
information received from the specified peer and matching the specified regular
expression.
Example
# Display the route information received from the specified peer and matching the
regular expression 200.
<H3C> display bgp routing peer 133.1.1.1 regular-expression 200
Flags: # - valid ^ - active I - internal
D - damped H - history S - aggregate suppressed
B - balance
Received Routes:
#D 10.0.0.0 133.1.1.1 0 INC 200
Syntax
View
Any view
Parameter
5-29
Command Manual – Routing Protocol
Comware V3 Chapter 5 BGP Configuration Commands
Description
Use the display bgp routing regular-expression command to view the routing
information matching the specified AS regular expression.
Example
Syntax
View
Any view
Parameter
None
Description
Use the display bgp routing statistic command to display statistics about BGP
routes.
Example
5-30
Command Manual – Routing Protocol
Comware V3 Chapter 5 BGP Configuration Commands
Syntax
View
BGP unicast view, BGP multicast view, VPNv4 view, VPN instance view
Parameter
acl-number: Specifies the number of ACL matching the destination address field of
routing information, ranging from 2000 to 3999.
ip-prefix-name: Specifies the name of the address prefix list matching the destination
address field of routing information, ranging from 1 to 19.
protocol: Specifies routing information of which kind of routing protocol to be filtered. It
can be direct, ospf, ospf-ase, ospf-nssa, isis, rip, and static at present.
Description
Use the filter-policy export command to filter the advertised routes and only the
routes passing the filter can be advertised by BGP.
Use the undo filter-policy export command to cancel the filtering to the advertised
routes.
By default, the advertised routing information is not filtered.
If the argument protocol is specified, only routes redistributed from the specified
protocol are filtered, and routes redistributed from other protocols are not affected. If
the parameter protocol is not specified, routes redistributed from any protocol will be
filtered.
Example
Syntax
5-31
Command Manual – Routing Protocol
Comware V3 Chapter 5 BGP Configuration Commands
View
BGP unicast view, BGP multicast view, VPNv4 view, VPN instance view
Parameter
acl-number: Specifies the number of ACL matching the destination address field of
routing information, ranging from 2000 to 3999.
ip-prefix ip-prefix-name: Address prefix list name. The matched object is the
destination address field of the routing information, ranging from 1 to 19.
gateway ip-prefix-name: Address prefix list name of the neighboring router. The
matched object is the routing information distributed by the specified neighboring router,
ranging from 1 to 19.
Description
Use the filter-policy gateway import command to filter the learned routing information
advertised by the specified address.
Use the undo filter-policy gateway import command to remove the filtering to the
routing information advertised by the specified address.
Use the filter-policy import command to filter the received global routing information.
Use the undo filter-policy import command to remove the filtering to the received
global routing information.
By default, the received routing information is not filtered.
This command can be used to filter the routes received by BGP and determines
whether to add the routes to the BGP routing table.
Example
5.1.32 group
Syntax
View
BGP view
Parameter
group-name: Specifies the name of the peer group. It can be an alphanumeric string
with the length ranging from 1 to 47.
5-32
Command Manual – Routing Protocol
Comware V3 Chapter 5 BGP Configuration Commands
Description
Example
5.1.33 import-route
Syntax
View
BGP view
Parameter
protocol: Specifies the routing protocol from which to redistribute routes, it can be
direct, ospf, ospf-nssa , ospf-ase, rip, bgp, and static at present.
med med-value: Specifies the MED value to be applied to redistributed routes, ranging
from 0 to 4294967295.
route-policy route-policy-name: Specifies the route-policy for filtering redistributed
routes. It can be an alphanumeric string with the length ranging from 1 to 19.
5-33
Command Manual – Routing Protocol
Comware V3 Chapter 5 BGP Configuration Commands
Description
Example
5.1.34 ip as-path-acl
Syntax
View
System view
Parameter
Character Meaning
. Matches any single character, including blank space.
* Matches 0 or more patterns.
+ Matches 1 or more patterns.
^ Matches the beginning of an input string.
$ Matches the end of an input string.
5-34
Command Manual – Routing Protocol
Comware V3 Chapter 5 BGP Configuration Commands
Character Meaning
Matches a comma, left brace, right brace, left parenthesis, right
_ parenthesis, the beginning of an input string, the end of an input
string, or a space.
[ range ] Means the range of single-character patterns.
- Separates the ending points of a range.
You can specify a regular expression to match AS path information when defining
aspath-acl. The system can filter out unmatched routing information by matching
aspath-acl. You can define multiple aspath-acl commands for one list number, that is,
one list number can represent a group of AS access lists. Each AS path list is identified
by a number.
Description
Example
5.1.35 ip community-list
Syntax
View
System view
Parameter
5-35
Command Manual – Routing Protocol
Comware V3 Chapter 5 BGP Configuration Commands
Description
Example
# Define a community attribute list and indicate not to advertise routes with the
community attribute beyond the AS.
[H3C] ip community-list 6 permit no-export-subconfed
5.1.36 log-peer-change
Syntax
log-peer-change
undo log-peer-change
View
BGP view
Parameter
None
Description
Use the log-peer-change command to turn on the BGP adjacency changes output
switch.
Use the undo log-peer-change command to turn off the BGP adjacency changes
output switch.
By default, BGP adjacency changes output switch is turned off.
5-36
Command Manual – Routing Protocol
Comware V3 Chapter 5 BGP Configuration Commands
After the BGP adjacency changes output switch is turned on, BGP adjacency changes
will be output to the configuration terminal until the switch is turned off.
Example
# Turn on the BGP adjacency changes output switch on the current router.
[H3C-bgp] log-peer-change
5.1.37 network
Syntax
View
BGP view
Parameter
Description
Use the network command to configure the network routes advertised by the local
BGP system.
Use the undo network command to cancel the existing configuration.
By default, no route is advertised by the local BGP system.
Example
Syntax
View
5-37
Command Manual – Routing Protocol
Comware V3 Chapter 5 BGP Configuration Commands
Parameter
Description
Example
Syntax
View
Parameter
Description
Use the peer allow-as-loop command to configure the repeating times of the local AS
number.
Use the undo peer allow-as-loop command to cancel the configuration.
Related command: display current-configuration, display bgp routing peer, and
display bgp routing group.
Example
5-38
Command Manual – Routing Protocol
Comware V3 Chapter 5 BGP Configuration Commands
Syntax
View
BGP view
Parameter
Description
Use the peer as-number command to specify an AS number for a peer group.
Use the undo peer as-number command to delete the AS number of a peer group.
By default, no AS number is configured.
Example
Syntax
View
Parameter
5-39
Command Manual – Routing Protocol
Comware V3 Chapter 5 BGP Configuration Commands
Description
Use the peer as-path-acl command to specify BGP route filtering policy based on AS
path list for a peer/peer group.
Use the undo peer as-path-acl command to cancel the existing configuration.
By default, a peer/peer group has no AS path list associated.
Example
Syntax
View
BGP view
Parameter
Description
Use the peer connect-interface command to specify the source interface for route
updates.
Use the undo peer connect-interface command to restore the best source interface.
By default, BGP uses the best source interface.
Usually, BGP uses the optimal source interface to forward route updates. However, for
updates to be forwarded in case the interface experiences a failure, you can configure
to use the Loopback interface for forwarding route updates.
5-40
Command Manual – Routing Protocol
Comware V3 Chapter 5 BGP Configuration Commands
Example
Syntax
View
BGP view
Parameter
Description
Example
Syntax
View
BGP view
5-41
Command Manual – Routing Protocol
Comware V3 Chapter 5 BGP Configuration Commands
Parameter
Description
Use the peer description command to configure the description information of the
peer/peer group.
Use the undo peer description command to remove the description information of the
peer/peer group.
By default, no description information is configured for a peer (group).
Related command: display current-configuration, display bgp peer, and display
bgp routing group.
Example
Syntax
View
BGP view
Parameter
Description
Use the peer ebgp-max-hop command to allow establishing EBGP connection with a
neighbor on an indirectly connected network.
Use the undo peer ebgp-max-hop command to cancel the existing configuration.
By default, this feature is disabled.
5-42
Command Manual – Routing Protocol
Comware V3 Chapter 5 BGP Configuration Commands
Example
# Allow to establish EBGP connection with peer group "test" on an indirectly connected
network.
[H3C-bgp] peer test ebgp-max-hop
Syntax
View
BGP unicast address family view, IPv4 multicast sub-address family view, VPNv4
address family view, L2VPN address family view
Parameter
Description
Use the peer enable command to enable the specified peer (group).
Use the undo peer enable command to disable the specified peer (group).
Note that the peer peer-address enable command can be configured in unicast
address family view only. Use this command to disable the unicast function of the peer.
You can delete the peer from the group in the corresponding address to disable its
multicast function or VPNv4 function.
By default, BGP peer (group) is enabled in unicast address family, but disabled in VPN
and MBP address families.
If the specified peer/peer group is disabled, the router will not exchange routing
information with the specified peer (group).
Example
5-43
Command Manual – Routing Protocol
Comware V3 Chapter 5 BGP Configuration Commands
Syntax
View
Parameter
Description
Use the peer filter-policy import command to configure BGP to filter routes received
from the peer (group) based on the ACL.
Use the undo peer filter-policy import command to cancel filtering of the received
routes based on the ACL.
Use the peer filter-policy export command to configure BGP to filter routes advertised
to the peer (group) based on the ACL.
Use the undo peer filter-policy export command to cancel filtering of the advertised
routes based on the ACL.
By default, no filtering is applied to routes advertised or received.
Related command: ip as-path acl and peer as-path-acl.
5-44
Command Manual – Routing Protocol
Comware V3 Chapter 5 BGP Configuration Commands
Example
Syntax
View
BGP view
Parameter
group-name: Specifies the name of the peer group. It can be an alphanumeric string
with the length ranging from 1 to 47.
peer-address: Specifies the IP address of the peer.
as-number: Specifies the AS number for the peer.
Description
5-45
Command Manual – Routing Protocol
Comware V3 Chapter 5 BGP Configuration Commands
In different address family views, a peer can be added to different peer groups and a
peer group can have different members.
Example
# Add the peer with IP address being 10.1.1.1 to the peer group TEST.
[H3C-bgp] group TEST
[H3C-bgp] peer 10.1.1.1 group TEST
Syntax
View
Parameter
Description
Use the peer ip-prefix import command to configure BGP to filter routes received from
the peer/peer group based on the ip-prefix list.
Use the undo peer ip-prefix import command to cancel filtering of the received routes
based on the ip-prefix list.
Use the peer ip-prefix export command to configure BGP to filter routes advertised to
the peer/peer group based on the ip-prefix list.
Use the undo peer ip-prefix export command to cancel filtering of the advertised
routes based on the ip-prefix list.
By default, no filtering is applied to routes advertised or received.
Related command: ip ip-prefix.
5-46
Command Manual – Routing Protocol
Comware V3 Chapter 5 BGP Configuration Commands
Example
Syntax
View
BGP view
Parameter
Description
Use the peer next-hop-local command to configure the next hop in the route to be
advertised to the peer group as the address of the local router.
Use the undo peer next-hop-local command to cancel the configuration.
Example
# Make BGP take its own address as the next hop when distributing a route to peer
group test.
[H3C-bgp] peer test next-hop-local
Syntax
View
Parameter
5-47
Command Manual – Routing Protocol
Comware V3 Chapter 5 BGP Configuration Commands
Description
Use the peer password command to configure BGP to perform MD5 authentication
before setting up a TCP connection.
Use the undo peer password command to cancel the configuration.
By default, BGP does not perform MD5 authentication before setting up a TCP
connection.
Once MD5 authentication is enabled, both parties involved in the authentication must
be configured with the exact authentication mode and password. Otherwise, the TCP
connection will not be set up because of the failed authentication.
This command is used to configure MD5 authentication for a specific peer only when
the peer group to which the peer belongs is not configured with MD5 authentication.
Otherwise, the peer group configuration takes precedence.
Example
# Perform MD5 authentication on the TCP connection set up between the local router at
10.1.100.1 and the peer router at 10.1.100.2.
[H3C-bgp] peer 10.1.100.2 password simple h3c
Syntax
View
BGP view
Parameter
5-48
Command Manual – Routing Protocol
Comware V3 Chapter 5 BGP Configuration Commands
Description
Use the peer public-as-only command to configure not to carry the private AS number
when transmitting BGP updates.
Use the undo peer public-as-only command to configure to carry the private AS
number when transmitting BGP updates.
By default, the private AS number is carried when BGP updates are transmitted.
Generally, BGP transmits BGP updates with the AS number (either the public AS
number or the private AS number). To enable some outbound routers to ignore the
private AS number when transmitting updates, configure not to carry the private AS
number when transmitting BGP updates.
Example
# Configure not to carry the private AS number when transmitting BGP updates to the
peer named test.
[H3C-bgp] peer test public-as-only
Syntax
View
Parameter
Description
Use the peer reflect-client command to configure a peer group as the route reflector
client.
Use the undo peer reflect-client command to cancel the existing configuration.
By default, no route reflector is in AS.
Generally speaking, it is not necessary to configure this command for the peer group
because IBGP peers are in the default group. A single peer peer-address reflect-client
command should be used to configure the route reflector clients.
Related command: reflect between-clients and reflect cluster-id.
5-49
Command Manual – Routing Protocol
Comware V3 Chapter 5 BGP Configuration Commands
Example
Syntax
View
Parameter
Description
Use the peer route-policy import command to configure MBGP to filter routes
received from the peer (group) based on the route-policy.
Use the undo peer route-policy import command to disable the specified
route-policy.
Use the peer route-policy export command to configure MBGP to filter routes
advertised to the peer (group) based on the route-policy.
Use the undo peer route-policy export command to disable the specified
route-policy.
By default, the peer (group) has no route-policy associated.
Example
5-50
Command Manual – Routing Protocol
Comware V3 Chapter 5 BGP Configuration Commands
Syntax
View
Parameter
Description
Use the peer route-update-interval command to configure the interval for a peer
group to advertise route updates.
Use the undo peer route-update-interval command to restore the default value.
Example
# Configure BGP peer group test to advertise route updates at intervals of 10 seconds.
[H3C-bgp] peer test as-number 100
[H3C-bgp] peer test route-update-interval 10
Syntax
View
Parameter
5-51
Command Manual – Routing Protocol
Comware V3 Chapter 5 BGP Configuration Commands
Description
Use the peer shutdown command to disable the specified BGP peer or peer group to
initiate or receive BGP connection or to disconnect a BGP connection that has existed.
Use the undo peer shutdown command to restore the default, allowing the peer/peer
group to initiate or receive BGP connection.
Example
Syntax
View
BGP view
Parameter
Description
Use the peer timer command to configure Keepalive and Holdtime intervals for a peer
(group).
Use the undo peer timer command to restore the default values.
The timer configured by using this command has a higher priority than the one
configured by using the timer command.
Example
# Configure the Keepalive and Holdtime intervals of the peer group "test".
[H3C-bgp] peer test timer keep-alive 60 hold 180
5-52
Command Manual – Routing Protocol
Comware V3 Chapter 5 BGP Configuration Commands
5.1.58 preference
Syntax
preference value
undo preference
View
Parameter
value: Specifies the preference, ranging from 1 to 256. By default, the value is 170.
Description
Example
Syntax
reflect between-clients
undo reflect between-clients
View
Parameter
None
5-53
Command Manual – Routing Protocol
Comware V3 Chapter 5 BGP Configuration Commands
Description
Use the reflect between-clients command to enable route reflection between clients.
Use the undo reflect between-clients command to disable this function.
By default, route reflection between clients is enabled.
After a route reflector is configured, it reflects the routes of a client to other clients. If the
clients of a route reflector are fully connected, disable route reflection between clients
to reduce overheads.
Related command: reflector cluster-id and peer reflect-client.
Example
Syntax
View
Parameter
cluster-id: Specifies the cluster ID of the route reflector, in integer or IP address format,
with the range from 1 to 4294967295.
address: Specifies the interface address of the route reflector’s cluster ID.
Description
Use the reflector cluster-id command to configure the cluster ID of the route reflector.
Use the undo reflector cluster-id command to remove the configured cluster ID.
By default, each route reflector uses its router ID as the cluster ID.
Usually, there is only one route reflector in a cluster. It is the router ID of the reflector
that identifies the cluster. You can configure multiple route reflectors to improve the
stability of the network. If a cluster is configured with multiple route reflectors, use this
command to configure the identical cluster ID for all the reflectors.
Related command: reflect between-clients and peer reflect-client.
Example
5-54
Command Manual – Routing Protocol
Comware V3 Chapter 5 BGP Configuration Commands
Syntax
View
User view
Parameter
Description
Use the refresh bgp command to request the peer to retransmit routes or retransmit
routes to the peer.
After a BGP connection is created, only incremental routes are transmitted. But in some
cases, for example, when the routing policy is changed, retransmission of routes is
required on both ends, and the routes will be filtered according to the new policy.
Example
5-55
Command Manual – Routing Protocol
Comware V3 Chapter 5 BGP Configuration Commands
Syntax
View
User view
Parameter
Description
Use the reset bgp peer-address command to reset the connection of BGP with a
specified peer.
Use the reset bgp all command to reset all the BGP connections.
After changing the BGP policy or protocol configuration, resetting BGP connections can
make the newly configured policy in effect immediately.
Example
# Reset all the BGP connections to enable the new configuration (after configuring new
Keepalive and Holdtime intervals using the timer command).
<H3C> reset bgp all
Syntax
View
User view
Parameter
5-56
Command Manual – Routing Protocol
Comware V3 Chapter 5 BGP Configuration Commands
Description
Use the reset bgp flap-info command to reset the flap statistics of routes.
Related command: dampening.
Example
# Clear the flap statistics of all routes matching filtering list 10.
<H3C> reset bgp flap-info as-path-acl 10
Syntax
View
User view
Parameter
group-name: Specifies the name of the peer group, in a string with 1 to 47 characters.
vpn-instance vpn-instance-name: Specifies the name of the VPN-INSTANCE. The
range is 1 to 19.
Description
Use the reset bgp group command to reset the BGP connections of all the members
in the specified peer group.
Related command: peer group.
Example
# Reset the BGP connections of all members from peer group group1.
<H3C> reset bgp group group1
5-57
Command Manual – Routing Protocol
Comware V3 Chapter 5 BGP Configuration Commands
Syntax
View
User view
Parameter
Description
Use the reset dampening command to clear the dampening information and flap
statistics of a route and release the suppression of a suppressed route.
Related command: dampening and display bgp routing dampened.
Example
# Clear the dampening information of the route to network 20.1.0.0, and release the
suppression of the suppressed route.
<H3C> reset dampening 20.1.0.0 255.255.0.0
5.1.66 summary
Syntax
summary
undo summary
View
Parameter
None
Description
5-58
Command Manual – Routing Protocol
Comware V3 Chapter 5 BGP Configuration Commands
Example
Syntax
View
BGP unicast view, BGP multicast view, VPNv4 view, VPN instance view
Parameter
Description
Use the timer keep-alive hold command to configure the Keepalive and Holdtime
timer of BGP.
Use the undo timer keep-alive hold command to restore the default values of the
Keepalive and Holdtime timers.
Example
Syntax
undo synchronization
View
Parameter
None
5-59
Command Manual – Routing Protocol
Comware V3 Chapter 5 BGP Configuration Commands
Description
Example
Note:
In the following command description, BGP unicast view indicates the common BGP
view.
For the specific configuration of MBGP multicast extension, refer to the "Multicast"
module of this manual.
For the specific configuration of VPN instance and VPNv4, refer to "MPLS" module in
this manual.
5.2.1 ipv4-family
Syntax
View
Parameter
multicast: Enters the BGP multicast extended address family view with the argument.
vpn-instance vpn-instance-name: Associates the specified VPN instance with the
IPv4 address family. Enter the MBGP address family view of BGP with this argument.
Description
Use the ipv4-family command to enter IPv4 extended address family view of BGP.
Use the undo ipv4-family command to remove all configurations in extended address
family view and return to IPv4 unicast address family view of BGP.
Use the command to enter the IPv4 extended address family view. In this view,
parameters related to the address family can be configured for BGP.
5-60
Command Manual – Routing Protocol
Comware V3 Chapter 5 BGP Configuration Commands
Use the undo ipv4-family multicast command to exit the multicast extended address
family view, remove all configurations in the address family view and return to BGP
unicast view.
Use the undo ipv4-family vpn-instance vpn-instance-name command to remove the
association between the specified VPN instance and IPv4 address family and delete all
configurations in the address family and return to BGP unicast view.
Use the ipv4-family multicast command to multicast. For relevant contents, refer to
"MBGP Multicast Extended" chapter in module "Multicast" of this manual.
Use the ipv4-family vpn-instance command for BGP/MPLS VPN. For related
description, refer to "MPLS VPN" chapter in module "MPLS" module of this manual.
Related command: ipv4-family vpnv4 and peer enable.
Example
None
Syntax
View
BGP view
Parameter
unicast: Enters VPN-IPv4 unicast address family view with this argument.
Description
Use the ipv4-family vpnv4 command to enter VPNv4 address family view of BGP.
Use the undo ipv4-family vpnv4 command to delete all configurations in VPNv4
address family view and return to IPv4 unicast address family view of BGP.
The ipv4-family vpnv4 command is used for BGP/MPLS VPN. For related description,
refer to "MPLS VPN" chapter in module "MPLS" of this manual.
The present Comware software platform only supports IPv4 unicast address of VPN.
Performing the ipv4-family vpnv4 command will enter VPN-IPv4 unicast address
family view even if the unicast argument is not specified.
Related command: ipv4-family and peer enable.
5-61
Command Manual – Routing Protocol
Comware V3 Chapter 5 BGP Configuration Commands
Example
None
5-62
Command Manual – Routing Protocol
Comware V3 Chapter 6 IP Routing Policy Configuration Commands
Syntax
View
Parameter
Description
Use the apply as-path command to specify the AS numbers to be added in front of the
original AS path in route-policy.
Use the undo apply as-path command to cancel the AS sequence numbers added in
front of the original AS path.
By default, no AS number is set.
If the match condition of route-policy is satisfied, the AS attribute of the transmitting
route will be changed. Up to 10 AS numbers can be added.
The as-path number is primarily used to prevent routing loops. By setting as-path, you
can change the BGP route selection behavior.
Example
Syntax
6-1
Command Manual – Routing Protocol
Comware V3 Chapter 6 IP Routing Policy Configuration Commands
View
Parameter
Description
Use the apply community command to set BGP community attributes in route-policy.
Use the undo apply community command to cancel the configured BGP community
attributes.
By default, no BGP community attributes are set.
Configure BGP community attributes after matching the route-policy conditions.
Related command: ip community-list, if-match community-list, route-policy,
display bgp routing community.
Example
# Display how to configure one route-policy named setcommunity, whose node serial
number is 16 and match mode is permit, and enter route policy view to set match
conditions and attribute modification actions to be executed.
[H3C] route-policy setcommunity permit node 16
[H3C-route-policy] if-match as-path 8
[H3C-route-policy] apply community no-export
Syntax
View
6-2
Command Manual – Routing Protocol
Comware V3 Chapter 6 IP Routing Policy Configuration Commands
Parameter
Description
Use the apply cost command to set the route cost value of route information.
Use the undo apply cost command to cancel the apply clause.
Related command: if-match interface, if-match acl, if-match ip-prefix, if-match ip
next-hop, if-match cost, if-match tag, route-policy, apply ip-address, apply
local-preference, apply origin, and apply tag.
Example
# Display how to define one apply clause. When it is used for setting route information
attribute, it sets the route cost value of route information as 120.
[H3C-route-policy] apply cost 120
Syntax
View
Parameter
internal: Uses the cost type of IGP as MED value of BGP to advertise route to EBGP
peer.
external: External cost type value of IS-IS.
Description
Use the apply cost-type command to set the route cost type of route information.
Use the undo apply cost-type command to cancel the apply clause.
By default, route cost type is not set.
Example
6-3
Command Manual – Routing Protocol
Comware V3 Chapter 6 IP Routing Policy Configuration Commands
Syntax
View
Parameter
default: Specifies the default next-hop address. It voids the acl argument.
ip-address: Next-hop address. Two next-hop addresses can be specified at most.
acl-number: Specifies the number of the access control list used for filtering, ranging
from 2000 to 2999
Description
Use the apply ip-address command to set the next hop address of route information.
Use the undo apply ip-address command to cancel the apply clause.
By default, no apply clause is defined.
One of the apply clauses of the route-policy: When this command is used for setting
routing information attribute, it sets the next hop address of the packets passed filtering.
If multiple next hop addresses are set through apply ip-address command, other next
hop addresses will be tried by turn when the first next hop address is invalid.
Related command: if-match interface, if-match acl, if-match ip-prefix, if-match ip
next-hop, if-match cost, if-match tag, route-policy, apply local-preference, apply
cost, apply origin, and apply tag.
Example
# Define an apply clause to set the next hop address of routing information as 193.1.1.8
when it is used for setting routing information attribute.
[H3C-route-policy] apply ip-address 193.1.1.8
View
6-4
Command Manual – Routing Protocol
Comware V3 Chapter 6 IP Routing Policy Configuration Commands
Parameter
Description
Use the apply isis command to apply the level of a matched route to be redistributed to
Level-1, Level-2 or Level-1-2.
Use the undo apply isis command to remove the setting clause.
By default, no apply clause is defined.
Related command: if-match interface, if-match acl, if-match ip-prefix, if-match ip
next-hop, if-match cost, if-match tag, route-policy, apply ip-address, apply cost,
apply origin, and apply tag.
Example
Syntax
View
Parameter
Description
Use the apply local-preference command to apply the local preference of route
information.
Use the undo apply local-preference command to cancel the apply clause.
Related command: if-match interface, if-match acl, if-match ip-prefix, if-match ip
next-hop, if-match cost, if-match tag, route-policy, apply ip-address, apply
local-preference, apply origin, and apply tag.
6-5
Command Manual – Routing Protocol
Comware V3 Chapter 6 IP Routing Policy Configuration Commands
Example
# Apply the local preference level of route information as 130 when this apply clause is
used for setting route information attribute.
[H3C-route-policy] apply local-preference 130
Syntax
View
Parameter
Description
Use the apply origin command to set the routing source of BGP routing information.
Use the undo apply origin command to cancel the apply clause.
Related command: if-match interface, if-match acl, if-match ip-prefix, if-match ip
next-hop, if-match cost, if-match tag, route-policy, apply ip-address, apply
local-preference, apply cost, and apply tag.
Example
# Display how to define one apply clause. When it is used for setting routing information
attribute, it sets the routing source of the routing information as igp.
[H3C-route-policy] apply origin igp
Syntax
6-6
Command Manual – Routing Protocol
Comware V3 Chapter 6 IP Routing Policy Configuration Commands
View
Parameter
Description
Use the apply tag command to set the tag area of OSPF route information.
Use the undo apply tag command to cancel the apply clause.
When a route is redistributed from protocol A to protocol B, and is redistributed back to
protocol A on some other routers, protocol A allows the tag field of the routing protocol
update packet to be transferred to the peer, that is, the information in the tag field can
traverse from protocol A to protocol B and then back to protocol A, without being lost.
OSPF, RIP2, ISIS, and BGP support the tag field, but RIP1 does not.
For example, when a BGP route is redistributed into OSPF and then redistributed back
to BGP on another router, the as-path attribute of the BGP route is lost. You can the
aplly tag command to set the OSPF tag field as as-path to guarantee the integrity of
the as-path attribute.
Related command: if-match interface, if-match acl, if-match ip-prefix, if-match ip
next-hop, if-match cost, if-match tag, route-policy, apply ip-address, apply
local-preference, apply cost, and apply origin.
Example
# Display how to define one apply clause. When it is used for setting route information
attribute, it sets the tag area of route information as 100.
[H3C-route-policy] apply tag 100
Syntax
View
Any view
Parameter
Description
Use the display ip ip-prefix command to view the address prefix list.
6-7
Command Manual – Routing Protocol
Comware V3 Chapter 6 IP Routing Policy Configuration Commands
Display all the configured address prefix lists when no ip-prefix-name is specified.
Related command: ip ip-prefix.
Example
Syntax
View
Any view
Parameter
Description
Example
Syntax
View
6-8
Command Manual – Routing Protocol
Comware V3 Chapter 6 IP Routing Policy Configuration Commands
Parameter
acl-number: Number of the access control list used for matching the destination
address field of the routing information.
ip-prefix-name: Address prefix list used for matching the routing information destination
address field.
protocol: Routing information of which kind of route protocol to be filtered.
Description
Use the filter-policy export command to configure the filtering conditions of the
routing information advertised by a certain type of routing protocols.
Use the undo filter-policy export command to cancel the filtering conditions set.
By default, the advertised routing information is not filtered.
In some cases, it may be required that only the routing information meeting some
conditions can be advertised. Then, the filter-policy command can be used to set the
filtering conditions for the routing information to be advertised. Only the routing
information passing the filtering can be advertised.
Related command: filter-policy import.
Example
# Define the filtering rules for advertising the routing information of RIP. Only the routing
information passing the filtering of address prefix list p1 will be advertised by RIP.
[H3C-rip] filter-policy ip-prefix p1 export
Syntax
View
Parameter
acl-number: Access control list number used for matching the destination address field
of the routing information.
ip-prefix ip-prefix-name: Prefix address list name. Its matching object is the destination
address field of the routing information.
6-9
Command Manual – Routing Protocol
Comware V3 Chapter 6 IP Routing Policy Configuration Commands
gateway ip-prefix-name: Prefix address list name of the neighbor router address. Its
matching object is the routing information advertised by the specified neighbor router.
Description
Use the filter-policy gateway import command to filter the routing information
advertised by a specified router.
Use the undo filter-policy gateway import command to cancel the setting of the
filtering condition.
Use the filter-policy import command to configure the condition for filtering the routing
information.
Use the undo filter-policy import command to cancel the setting of filter condition.
By default, the received routing information is not filtered.
In some cases, it may be required that only the routing information meeting some
conditions can be received. Then, the filter-policy command can be used to set the
filtering conditions. acl-number is the access control list number used for filtering the
destination addresses of the routing information and ip-prefix parameter is used to filter
the routing information specified destination address.
Related command: filter-policy export.
Example
# Define the filtering rule for receiving routing information of RIP. Only the routing
information filtered through the address prefix list p1 can be received by RIP.
[H3C-rip] filter-policy ip-prefix p1 import
Syntax
View
Parameter
acl-number: Specifies the number of the access control list used for filtering.
ip-prefix-name: Specifies the name of the prefix address list used for filtering.
Description
Use the if-match acl command to configure the IP address range to match the
route-policy.
6-10
Command Manual – Routing Protocol
Comware V3 Chapter 6 IP Routing Policy Configuration Commands
Use the undo if-match acl command to cancel the setting of the match rule.
Filtering is performed by quoting an ACL.
Related command: if-match ip-prefix, if-match interface, if-match ip next-hop,
if-match cost, if-match tag, route-policy, apply ip-address, apply cost, apply
local-preference, apply origin, and apply tag.
Example
# Display how to define one if-match clause. When the clause is used for filtering route
information, the route information filtered by route destination address through address
ACL 2010 is enabled to pass the if-match clause.
[H3C-route-policy] if-match acl 2010
Syntax
View
Parameter
Description
Example
# Define an as-path numbered as 2002 and allow the autonomous system number to
contain the routing information of 200 and 300. Then, define a route-policy named test.
The node No.10 of this route-policy defines an if-match clause, which quotes the
definition of as-path.
[H3C] ip as-path acl 2 permit 200:300
[H3C] route-policy test permit node 10
6-11
Command Manual – Routing Protocol
Comware V3 Chapter 6 IP Routing Policy Configuration Commands
Syntax
View
Parameter
Description
Use the if-match community command to configure the community list number to be
matched in route-policy.
Use the undo if-match community command to cancel the configuration of the
matched community list number.
By default, community list is not matched.
The if-match clause of route-policy is used to filter BGP routing information. The match
condition is specified according to the community attributes of the routing information.
Related command: route-policy and ip community-list.
Example
6-12
Command Manual – Routing Protocol
Comware V3 Chapter 6 IP Routing Policy Configuration Commands
Syntax
View
Parameter
value: Specifies the required route cost value, ranging from 0 to 4294967295.
Description
Use the if-match cost command to configure one of the matching rules of route-policy
to match the cost of the routing information.
Use the undo if-match cost command to cancel the configuration of the matching rule.
By default, no if-match clause is defined.
This if-match clause of route-policy is used to specify the route cost value of the
matched routing information.
Related command: if-match interface, if-match acl, if-match ip-prefix, if-match ip
next-hop, if-match tag, route-policy, apply ip-address, apply local-preference,
apply cost, apply origin, and apply tag.
Example
# Define an if-match clause, which allows the routing information with routing cost 8 to
pass this if-match clause.
[H3C-route-policy] if-match cost 8
Syntax
View
Parameter
6-13
Command Manual – Routing Protocol
Comware V3 Chapter 6 IP Routing Policy Configuration Commands
Description
Use the if-match interface command to match the route whose next hop is designated
interface.
Use the undo if-match interface command to cancel the setting of match condition.
By default, no if-match clause is defined.
This if-match clause of the route-policy is used to match the corresponding interface of
the route next hop when it filters the route.
Related command: if-match acl, if-match ip-prefix, if-match ip next-hop, if-match
cost, if-match tag, route-policy, apply ip-address, apply cost, apply
local-preference, apply origin, and apply tag.
Example
# Display how to define one if-match clause to match the route whose next hop
interface is ethernet 1/0/2.
[H3C-route-policy] if-match interface Ethernet1/0/2
Syntax
View
Parameter
acl-number: Specifies the number of the access control list used for filtering. The range
is 2000 to 2999.
ip-prefix-name: Specifies the name of the prefix address list used for filtering. The
range is 1 to 19.
Description
Use the if-match ip next-hop command to configure one of the match rules of
route-policy on the next hop address of the routing information.
Use the undo if-match ip next-hop command to cancel the setting of match condition.
By default, no if-match clause is defined.
This if-match clause of the route-policy is used to specify the next hop address field
matching the routing information when it filters the routing information and implement
its filtering function by referring to an ACL or address prefix list.
6-14
Command Manual – Routing Protocol
Comware V3 Chapter 6 IP Routing Policy Configuration Commands
Example
# Define an if-match clause. It permits the routing information, whose route next hop
address passes the filtering of the prefix address list p1, to pass this if-match clause.
[H3C-route-policy] if-match ip next-hop ip-prefix p1
Syntax
View
Parameter
ip-prefix-name: Specifies the name of the prefix address list used for filtering.
Description
Use the if-match ip-prefix command to configure one of the match rules of
route-policy on the IP address range of the routing information.
Use the undo if-match ip next-hop command to cancel the setting of match condition.
The filtering is achieved through redistributing an IP address prefix name.
Related command: if-match acl, if-match interface, if-match ip next-hop, if-match
cost, if-match tag, route-policy, apply ip-address, apply cost, apply
local-preference, apply origin, and apply tag.
Example
Syntax
6-15
Command Manual – Routing Protocol
Comware V3 Chapter 6 IP Routing Policy Configuration Commands
View
Parameter
Description
Use the if-match tag command to match the tag field of OSPF route information.
Use the undo if-match tag command to cancel the existing matching rules.
When a route is redistributed from protocol A to protocol B, and is redistributed back to
protocol A on some other routers, protocol A allows the tag field of the routing protocol
update packet to be transferred to the peer, that is, the information in the tag field can
traverse from protocol A to protocol B and then back to protocol A, without being lost.
OSPF, RIP2, ISIS, and BGP support the tag field, but RIP1 does not.
For example, when a BGP route is redistributed into OSPF and then redistributed back
to BGP on another router, the as-path attribute of the BGP route is lost. You can the
aplly tag command to set the OSPF tag field as as-path to guarantee the integrity of
the as-path attribute.
Related command: if-match interface, if-match acl, if-match ip-prefix, if-match ip
next-hop, if-match cost, route-policy, apply ip-address, apply cost, apply
local-preference, apply origin, and apply tag.
Example
# Display how to define one if-match clause and enable the OSPF route information
whose tag field is 8 to pass the if-match clause.
[H3C-route-policy] if-match tag 8
6.1.22 ip ip-prefix
Syntax
View
System view
Parameter
ip-prefix-name: Specifies an address prefix list name. It identifies one address prefix list
uniquely.
6-16
Command Manual – Routing Protocol
Comware V3 Chapter 6 IP Routing Policy Configuration Commands
index-number: Identifies an item in the prefix address list. The item with smaller
index-number will be tested first.
permit: Specifies the match mode of the defined address prefix list items as permit
mode. In the permit mode, if the IP address to be filtered is in the defined range, it will
not be tested by the next node. Otherwise, it has to go on with the test.
deny: Specifies the match mode of the defined address prefix list items as deny mode.
In the deny mode, the IP address in the defined range cannot pass the filtering and is
refused to go on with the next test. Otherwise, it will have the next test.
network: IP address prefix range (IP address). If it is 0.0.0.0 0, all the IP addresses are
matched.
len: IP address prefix range (mask length). If it is 0.0.0.0 0, all the IP addresses are
matched.
greater-equal, less-equal: Specifies the address prefix range [greater-equal, less-equal]
to be matched after the address prefix network len has been matched. The meaning of
greater-equal is "greater than or equal to" , and the meaning of less-equal is "less
than or equal to". The range is len <= greater-equal <= less-equal <= 32. When only
greater-equal is used, it indicates the prefix range [greater-equal, 32]. When only
less-equal is used, it indicates the prefix range [len, less-equal].
Description
Use the ip ip-prefix command to configure an address prefix list or one of its items.
Use the undo ip ip-prefix command to delete an address prefix list or one of its items.
The address prefix list is used for IP address filtering. An address prefix list may contain
several items, and each item specifies one address prefix range. The inter-item filtering
relation is "OR", i.e. passing an item means passing the filtering of this address prefix
list. Not passing the filtering of all items means not passing the filtering of this prefix
address list.
The address prefix range may contain two parts, which are determined by len and
[greater-equal, less-equal] respectively. If the prefix ranges of these two parts are both
specified, the IP to be filtered must match the prefix ranges of these two parts.
If you specify network len as 0.0.0.0 0, it only matches the default route.
Specify network len as 0.0.0.0 0 less-equal 32 to match all the routes.
Example
# Configure an address prefix list named p1. It permits the routes with the mask of 17 or
18 bits long and in network segment 10.0.192.0.8 to pass.
[H3C] ip ip-prefix p1 permit 10.0.192.0 8 greater-equal 17 less-equal 18
6-17
Command Manual – Routing Protocol
Comware V3 Chapter 6 IP Routing Policy Configuration Commands
6.1.23 route-policy
Syntax
View
System view
Parameter
Description
6-18
Command Manual – Routing Protocol
Comware V3 Chapter 6 IP Routing Policy Configuration Commands
Example
# Display how to configure one route-policy policy1, whose node number is 10 and the
match mode is permit, and enter route policy view.
[H3C] route-policy policy1 permit node 10
[H3C-route-policy]
6-19
Command Manual – Routing Protocol
Comware V3 Chapter 7 Route Capacity Configuration Commands
Syntax
View
Any view
Parameter
limit: Displays the lower limit and safety value of the router idle memory.
Description
Use the display memory command to view the memory setting and state information
related to the routing capacity.
It includes available memory and state information about connections such as times for
disconnecting connections, times for reestablishing connections and whether the
current system is in the emergent state or not.
Example
7-1
Command Manual – Routing Protocol
Comware V3 Chapter 7 Route Capacity Configuration Commands
The information displayed by this command includes the router memory limit, the size
of the idle memory, the times of connection disconnecting, the times of connection
reestablishment and the current state.
The displayed information is described specifically in the following table:
Table 7-1 Description of the information displayed by the display memory limit
command
Field Description
memory safety: 30 The safety value of the router memory is 30Mbytes.
memory limit: 20 The lower limit of the router memory is 20Mbytes.
The system allows recovering the connection
memory auto-establish
automatically. (If the automatic recover is disabled,
enabled
the "auto-establish disabled" will be displayed.)
Free Memory: 73855332 The size of the current idle memory is 73855332
(Byte) bytes, that is, 73.855M.
The times of the connection disconnecting of the
The times of disconnect: 0
router is 0.
The times of the connection re-establishment of the
The times of reconnect: 0
router is 0.
The current state is normal. (If entering the
The current state: Normal
emergent state, the system will display "Exigency" .)
Syntax
View
System view
Parameter
None
Description
Use the memory auto-establish disable command to disable the function of restoring
the connections of all the routing protocols (even if the idle memory reduces to a safety
value).
By default, when the idle memory of the router recovers to a safety value, connections
of all the routing protocols will always recover (when the idle memory of the router
reduces to a lower limit, the connection will be disconnected forcibly).
7-2
Command Manual – Routing Protocol
Comware V3 Chapter 7 Route Capacity Configuration Commands
Use the memory auto-establish disable command to disable the above function.
Thus, connections of all the routing protocols will not recover when the idle memory of
the router recovers to a safety value. In this case, you need to restart the routing
protocol to recover the connections.
You shall use the command cautiously.
Related command: memory auto-establish enable, memory { safety | limit }, and
display memory limit.
Example
# Disable to recover the connections of all the protocols automatically when the current
router memory resumes.
[H3C] memory auto-establish disable
[H3C]
%Dec 15 15:53:38:298 2005 H3C RM/5/RTLOG:You have changed the model of
connection
Syntax
View
System view
Parameter
None
Description
Use the memory auto-establish enable command to resume connections of all the
routing protocols when the idle memory of the router recovers to a safety value.
By default, when the idle memory of the router recovers to a safety value, connections
of all the routing protocols will always recover (when the idle memory of the router
reduces to a lower limit, the connection will be disconnected forcibly).
Use the memory auto-establish disable command to disable the above function. Use
the memory auto-establish enable command to enable the above function again. By
default, the function is always enabled.
Related command: memory auto-establish disable, memory { safety | limit }, and
display memory limit.
7-3
Command Manual – Routing Protocol
Comware V3 Chapter 7 Route Capacity Configuration Commands
Example
# Enable memory resume of the current router and recover connections of all the
protocols automatically.
[H3C] memory auto-establish enable
[H3C]
%Dec 15 15:53:38:298 2005 H3C RM/5/RTLOG:You have changed the model of
connection
7.1.4 memory
Syntax
View
System view
Parameter
safety-value: Safety value of the router idle memory in Mbytes. Its valid range depends
on the current idle memory of the router. The default value depends on the memory of
the router. For a router with 128 Mbytes memory, safety-value defaults to 5 Mbytes; for
a router with 256 Mbytes memory, it defaults to 50 Mbytes.
limit-value: Lower limit of the router idle memory in Mbytes. Its valid range depends on
the current idle memory of the router. The default value depends on the memory of the
router. For a router with 128 Mbytes memory, limit-value defaults to 3 Mbytes; for a
router with 256 Mbytes memory, it defaults to 40 Mbytes.
Description
Use the memory command to configure the safety value and lower limit of the router
idle memory. When the idle memory of the router is less than the lower limit, all the
routing protocol connections will be disconnected forcibly. If you configure the memory
auto-establish enable command (configured by default), when the idle memory
reaches safety-value, all forcibly disconnected routing protocol connections will be
reestablished automatically.
Use the undo memory command to restore the default safety value and lower limit of
the router idle memory.
Note that limit-value must be less than safety-value; otherwise, the configuration will
fail.
7-4
Command Manual – Routing Protocol
Comware V3 Chapter 7 Route Capacity Configuration Commands
Note:
When the current router idle memory is less than the configured lower limit of the idle
memory, all routing protocol connections will be disconnected and the timer is started
at the same time (the timeout time period is 60 seconds). After the timer times out, the
current router memory will be checked. If it is more than the safety value of the idle
memory, all routing protocol connections will be reestablished; otherwise, the system
waits for the next timeout period. If the current router idle memory is more than the
lower limit before the second timeout, the routing protocol connections will not be
reestablished.
Example
# Set the lower limit of the router idle memory to 25 Mbytes and the safety value to 30
Mbytes.
[H3C] memory safety 30 limit 25
[H3C]
%Dec 15 15:51:29:987 2004 H3C RM/5/RTLOG:Changed the system memory
limit(20->25)/ safety(30->35) successfully
7-5
Multicast Protocol
Command Manual – Multicast Protocol
Comware V3 Table of Contents
Table of Contents
i
Command Manual – Multicast Protocol
Comware V3 Table of Contents
ii
Command Manual – Multicast Protocol
Comware V3 Table of Contents
iii
Command Manual – Multicast Protocol
Comware V3 Table of Contents
iv
Command Manual – Multicast Protocol
Comware V3 Chapter 1 Multicast Common Configuration Commands
Syntax
View
User view
Parameter
None
Description
Example
Syntax
View
User view
1-1
Command Manual – Multicast Protocol
Comware V3 Chapter 1 Multicast Common Configuration Commands
Parameter
None
Description
Example
Syntax
View
User view
Parameter
None
Description
Example
1-2
Command Manual – Multicast Protocol
Comware V3 Chapter 1 Multicast Common Configuration Commands
Syntax
View
Any view
Parameter
Description
Example
Syntax
1-3
Command Manual – Multicast Protocol
Comware V3 Chapter 1 Multicast Common Configuration Commands
View
Any view
Parameter
group-address: Multicast group address, used to specify a multicast group and display
the corresponding routing table information of the group. The value ranges from
224.0.0.0 to 239.255.255.255.
source-address: Unicast IP address of the multicast source.
mask: Mask.
mask-length: Length of mask. Because “1” in 32-bit mask is required to be continuous,
the mask in dotted decimal notation format can be replaced by mask-length
(mask-length is the number of continuous “1”s in the mask).
incoming-interface: Incoming interface of the multicast route entry.
register: Register interface of PIM-SM.
Description
Example
# Display the corresponding route entry information of multicast group in the multicast
routing table.
<H3C> display multicast routing-table
Multicast Routing Table
1-4
Command Manual – Multicast Protocol
Comware V3 Chapter 1 Multicast Common Configuration Commands
Total 1 entry
(10.10.1.2, 225.1.1.1)
UpTime: 00:01:28, Timeout in 278 sec
Upstream interface: Ethernet0/0/0(10.10.1.20)
Downstream interface list:
LoopBack0(20.20.20.30), Protocol 0x1: IGMP
Syntax
View
Any view
Parameter
config: When this parameter is chosen, all the routing information configured will be
displayed. If this parameter is not chosen, only effective routing information is
displayed.
source-address: IP address of the multicast source.
mask: Mask.
mask-length: Length of mask. Because “1”s in 32-bit mask are required to be
continuous, the mask in dotted decimal notation format can be replaced by mask-length
(mask-length is the number of continuous “1”s in the mask).
Description
Use the display multicast routing-table static command to view the configuration
information of static multicast route.
Example
1-5
Command Manual – Multicast Protocol
Comware V3 Chapter 1 Multicast Common Configuration Commands
Syntax
View
Any view
Parameter
Description
Use the display multicast rpf-info command to view the Reverse Path Forwarding
(RPF) routing information for specified multicast source.
Example
1.1.8 mtracert
Syntax
View
Any view
Parameter
1-6
Command Manual – Multicast Protocol
Comware V3 Chapter 1 Multicast Common Configuration Commands
Description
Use the mtracert command to trace the network path from the multicast source to the
destination receiver along Multicast Distribution Tree, according to either the multicast
kernel routing table or RPF rule to the source. This command can help to locate the
faults, such as information loss and configuration error.
The trace mode to the group address of 0.0.0.0 is called weak trace mode.
Example
# Trace the path reversely from the local hop router 18.110.0.1 to the multicast source
10.10.1.2 in weak trace mode.
<H3C> mtracert 10.10.1.2
Type Ctrl+C to abort
Mtrace from 10.10.1.2 to 18.110.0.1 via RPF
Querying full reverse path...
-1 18.110.0.1
Incoming Interface Address: 18.110.0.1
Previous-Hop Router Address: 18.110.0.2
Input packet count on incoming interface: 0
Output packet count on outgoing interface: 0
Total number of packets for this source-group pair: 0
Protocol: PIM
Forwarding TTL: 0
Forwarding Code: No error
-2 18.110.0.2
Incoming Interface Address: 11.110.0.2
Previous-Hop Router Address: 11.110.0.4
Input packet count on incoming interface: 0
Output packet count on outgoing interface: 0
Total number of packets for this source-group pair: 0
Protocol: PIM
Forwarding TTL: 0
Forwarding Code: No error
-3 11.110.0.4
Incoming Interface Address: 10.10.1.3
Previous-Hop Router Address: 0.0.0.0
Input packet count on incoming interface: 0
Output packet count on outgoing interface: 0
Total number of packets for this source-group pair: 0
Protocol: PIM
Forwarding TTL: 0
Forwarding Code: No error
1-7
Command Manual – Multicast Protocol
Comware V3 Chapter 1 Multicast Common Configuration Commands
# Trace reversely the path information of multicast group 225.1.1.1 from the multicast
source 10.10.1.3 to the destination address 12.110.0.2.
<H3C>mtracert 10.10.1.3 12.110.0.2 225.1.1.1
Type Ctrl+C to abort
Mtrace from 10.10.1.3 to 12.110.0.2 via group 225.1.1.1
Querying full reverse path...
-1 12.110.0.2
Incoming Interface Address: 11.110.0.2
Previous-Hop Router Address: 11.110.0.4
Input packet count on incoming interface: 316
Output packet count on outgoing interface: 135
Total number of packets for this source-group pair: 4
Protocol: PIM
Forwarding TTL: 0
Forwarding Code: No error
-2 11.110.0.4
Incoming Interface Address: 127.0.0.5
Previous-Hop Router Address: 0.0.0.0
Input packet count on incoming interface: 0
Output packet count on outgoing interface: 0
Total number of packets for this source-group pair: 4
Protocol: Unknown
Forwarding TTL: 0
Forwarding Code: No error
Syntax
View
Interface view
Parameter
Description
Use the multicast minimum-ttl command to configure the minimum TTL value for
multicast forwarding.
Use the undo multicast minimum-ttl command to remove the minimum TTL value
configured.
1-8
Command Manual – Multicast Protocol
Comware V3 Chapter 1 Multicast Common Configuration Commands
Example
Syntax
View
Interface view
Parameter
Description
Example
# Set boundary conditions for multicast packets through the basic ACL 2001.
[H3C-Ethernet1/0/1] multicast packet-boundary 2001
Syntax
View
System view
1-9
Command Manual – Multicast Protocol
Comware V3 Chapter 1 Multicast Common Configuration Commands
Parameter
Description
Use the multicast route-limit command to limit the multicast routing table capacity. If
the capacity exceeds the limit, the router will discard protocols and data packets of the
newly-added (S, G).
By default, the limit of multicast routing table capacity is MAX_MROUTE_LIMIT.
If the number of route entries in the routing table has exceeded the configured number
when configuring the command, the previous route entry in the routing table will not be
deleted. The system will prompt “The number of current route entries is more than that
configured.”
If this command is executed repeatedly, the new configuration will overwrite the
previous one.
Example
Syntax
multicast routing-enable
undo multicast routing-enable
View
System view
Parameter
None
Description
1-10
Command Manual – Multicast Protocol
Comware V3 Chapter 1 Multicast Common Configuration Commands
Example
Syntax
View
User view
Parameter
statistics: If this parameter is used, the statistics of MFC forwarding entries will be
cleared. Otherwise, the MFC forwarding entries will be cleared.
all: All the MFC forwarding entries.
group-address: Address of the specified group.
group-mask: Address mask of the specified group.
group-mask-length: Address mask length of the specified group.
source-address: Address of the specified source.
source-mask: Address mask of the specified source.
source-mask-length: Address mask length of the specified source.
incoming-interface: Incoming interface of the specified forwarding entry.
interface-type interface-number: Interface type and interface number.
slot-number: Number of the slot where the interface board resides. This parameter is
only present in the distributed router.
Description
Use the reset multicast forwarding-table command to clear MFC forwarding entries
or the statistics of MFC forwarding entries.
The sequence of group-address and source-address can be reversed, but the input
group-address and source-address must be valid. Otherwise, the system will prompt
input error.
1-11
Command Manual – Multicast Protocol
Comware V3 Chapter 1 Multicast Common Configuration Commands
Example
# Clear the forwarding entry whose group address is 225.5.4.3 from the MFC
forwarding table.
<H3C> reset multicast forwarding-table 225.5.4.3
# Clear the statistics of the forwarding entry whose group address is 225.5.4.3 from
MFC forwarding table.
<H3C> reset multicast forwarding-table statistics 225.5.4.3
Syntax
View
User view
Parameter
Description
Use the reset multicast routing-table command to clear the route entry in the
multicast kernel routing table and remove the corresponding forwarding entry in MFC.
The sequence of group-address and source-address can be reversed, but the input
group-address and source-address must be valid. Otherwise, the system will prompt
input error.
1-12
Command Manual – Multicast Protocol
Comware V3 Chapter 1 Multicast Common Configuration Commands
Example
# Clear the route entry whose group address is 225.5.4.3 from the multicast kernel
routing table.
<H3C> reset multicast routing-table 225.5.4.3
1-13
Command Manual – Multicast Protocol
Comware V3 Chapter 2 IGMP Configuration Commands
Syntax
View
User view
Parameter
Description
Example
Syntax
View
Any view
2-1
Command Manual – Multicast Protocol
Comware V3 Chapter 2 IGMP Configuration Commands
Parameter
Description
Use the display igmp group command to view the member information of the IGMP
multicast group.
You can specify to view the information of a group or the member information of the
multicast group on an interface. The information displayed includes the multicast
groups joined through IGMP and those joined statically through command lines by the
downstream host.
Related command: igmp host-join.
Example
Item Description
Group address Multicast group address
Last Reporter Report the last host which becomes the multicast group member
The time since the multicast group is found (hour, minute,
Uptime
second)
The predicted time when the record will be removed from the
Expires
IGMP group table (hour, minute, second)
Syntax
2-2
Command Manual – Multicast Protocol
Comware V3 Chapter 2 IGMP Configuration Commands
View
Any view
Parameter
Description
Use the display igmp interface command to view the IGMP configuration and running
information on an interface.
The information displayed through display igmp interface will be different according
to the configuration of IGMP proxy on an interface.
z If the interface is neither a proxy nor a client, the configuration of IGMP Proxy will
not be displayed.
z If the interface is a proxy, all the clients will be displayed.
z If the interface is a client, the proxy will be displayed.
Example
LoopBack0 (20.20.20.30):
IGMP is enabled
Current IGMP version is 2
Value of query interval for IGMP(in seconds): 60
Value of other querier time out for IGMP(in seconds): 120
Value of maximum query response time for IGMP(in seconds): 10
Policy to accept IGMP reports: none
Querier for IGMP: 20.20.20.30 (this router)
No IGMP group reported
2-3
Command Manual – Multicast Protocol
Comware V3 Chapter 2 IGMP Configuration Commands
Syntax
View
Any view
Parameter
local: Information of the local interface which receives and sends multicast data.
Description
Use the display igmp local command to view the IGMP configuration and running
information of the local interface which receives and sends multicast data.
Example
# Display the IGMP configuration and running information of the local interface which
receives and sends multicast data.
<H3C> display igmp local
Mcast_Out_IF (127.0.0.6):
IGMP is enabled on interface
Current IGMP version is 2
No IGMP group reported
Mcast_In_IF (127.0.0.5):
IGMP is disabled on interface
Syntax
igmp enable
undo igmp enable
View
Interface view
Parameter
None
Description
2-4
Command Manual – Multicast Protocol
Comware V3 Chapter 2 IGMP Configuration Commands
Example
Syntax
View
Interface view
Parameter
Description
Use the igmp group-limit command to limit the number of IGMP groups joined on the
interface. If the number exceeds the limit, the router will not process the joined IGMP
packet any more.
Use the undo igmp group-limit command to restore the default configuration.
By default, the maximum number of IGMP groups joined on the interface is 1024.
If the number of IGMP groups joined on the interface has exceeded the configuration
value during configuration, the previously joined IGMP groups will not be deleted.
If this command is executed repeatedly, the new configuration will overwrite the
previous one.
Example
# Limit the maximum number of IGMP groups joined on the interface Ethernet1/0/0 to
100.
[H3C-Ethernet1/0/0] igmp group-limit 100
2-5
Command Manual – Multicast Protocol
Comware V3 Chapter 2 IGMP Configuration Commands
Syntax
View
Interface view
Parameter
acl-number: Number of basic IP ACL, defining the range of a multicast group. The value
ranges from 2000 to 2999.
1: IGMP Version 1.
2: IGMP Version 2. If IGMP version is not specified, IGMP Version 2 is used by default.
Description
Use the igmp group-policy command to set the filter of multicast groups on an
interface to control the accessing to the IP multicast groups.
Use the undo igmp group-policy command to remove the filter configured.
By default, no filter is configured, that is, a host can join any multicast group.
If you do not want the hosts on the network that the interface is on to join some
multicast groups and receive the packets from the multicast groups, you can use this
command to limit the range of the multicast groups served by the interface.
Related command: igmp host-join.
Example
# Permit the hosts on the interface Ethernet1/0/0 to join multicast group 225.1.1.1 only.
[H3C] acl number 2005
[H3C-acl-basci-2005] rule permit source 225.1.1.1 0
[H3C-acl-basci-2005] quit
[H3C] interface ethernet 1/0/0
[H3C-Ethernet1/0/0] igmp group-policy 2005
Syntax
2-6
Command Manual – Multicast Protocol
Comware V3 Chapter 2 IGMP Configuration Commands
View
Interface view
Parameter
group-address: Multicast address of the multicast group that an interface will join.
Description
Use the igmp host-join command to enable an interface of a router to join a multicast
group.
Use the undo igmp host-join command to disable the configuration.
By default, an interface does not join any multicast group.
On one router, up to 1024 interfaces can be configured with igmp host-join command
at best.
Related command: igmp group-policy.
Example
Syntax
View
Interface view
Parameter
seconds: Interval at which IGMP querier sends the IGMP specified group query packet
when it receives IGMP Leave packet from the host, in second. The value ranges from 1
to 5 seconds. By default, the value is 1 second.
Description
Use the igmp lastmember-queryinterval command to set the interval at which IGMP
querier sends the IGMP specified group query packet when it receives IGMP Leave
packet from the host.
Use the undo igmp lastmember-queryinterval command to restore the default value.
On a shared network, that is, when there are multiple hosts and multicast routers on a
network segment, the query router (querier for short) takes charge of maintaining IGMP
2-7
Command Manual – Multicast Protocol
Comware V3 Chapter 2 IGMP Configuration Commands
group membership on an interface. When the host in IGMP Version 2 leaves a group,
the host should send IGMP Leave packet. If IGMP querier receives the packet, it must
send the IGMP specified group query packet for robust-value times according to the
interval seconds configured via igmp lastmember-queryinterval command (if the
command is not configured, seconds is 1) and the robust coefficient robust-value
configured via igmp robust-count (if the command is not configured, robust-value is 2).
If another host receives the IGMP specified group query packet from IGMP querier and
is interested in the group, it will send IGMP Membership Report packet within the
maximum response time regulated by the packet. If IGMP querier receives IGMP
Membership Report packet from another host within the time robust-value x seconds, it
will go on maintaining the group membership. If not, it will regard the group is timeout
and stop maintaining the group membership.
The command is only valid when IGMP query router is running in IGMP Version 2. If the
host runs in IGMP Version 1, it may not send IGMP Leave packet when it leaves a
group. At that time, the command is invalid to the host.
Related command: igmp robust-count and display igmp interface.
Example
# Configure the query interval of the querier for the last group member on the interface
Ethernet1/0/0 to 3 seconds.
[H3C-Ethernet1/0/0] igmp lastmember-queryinterval 3
Syntax
View
Interface view
Parameter
seconds: The maximum response time in the IGMP query packet in second, ranging
from 1 to 25. By default, the value is 10 seconds.
Description
2-8
Command Manual – Multicast Protocol
Comware V3 Chapter 2 IGMP Configuration Commands
Example
Syntax
View
Interface view
Parameter
Description
Use the igmp proxy command to specify an interface of a leaf network router as the
IGMP proxy of another interface.
Use the undo igmp proxy command to remove the configuration.
By default, IGMP proxy function is disabled.
You must enable PIM on the interface before you configure the igmp proxy command.
An interface cannot act as the IGMP proxy of two or more other interfaces at the same
time.
If an interface is configured with IGMP proxy for multiple times, the last one overrides all
the previous configurations.
Related command: pim neighbor-policy.
Example
Syntax
2-9
Command Manual – Multicast Protocol
Comware V3 Chapter 2 IGMP Configuration Commands
View
Interface view
Parameter
robust-value: IGMP robust coefficient, indicating the times IGMP querier sends the
IGMP specified group query packet when it receives IGMP Leave packet from the host.
The value ranges from 2 to 5. By default, the value is 2.
Description
Use the igmp robust-count command to set the times IGMP querier sends the IGMP
specified group query packet when it receives IGMP Leave packet from the host.
Use the undo igmp robust-count command to restore the default value.
On a shared network, that is, when there are multiple hosts and multicast routers on a
network segment, the query router (querier for short) takes charge of maintaining IGMP
group membership on an interface. When the host in IGMP Version 2 leaves a group,
the host should send IGMP Leave packet. If IGMP querier receives the packet, it must
send the IGMP specified group query packet for robust-value times according to the
interval seconds configured via igmp lastmember-queryinterval command (if the
command is not configured, seconds is 1) and the robust coefficient robust-value
configured via igmp robust-count (if the command is not configured, robust-value is 2).
If another host receives the IGMP specified group query packet from IGMP querier and
is interested in the group, it will send IGMP Membership Report packet within the
maximum response time regulated by the packet. If IGMP querier receives IGMP
Membership Report packet from another host within the time robust-value x seconds, it
will go on maintaining the group membership. If not, it will regard the group is overtime
and stop maintaining the group membership.
The command is only valid when IGMP query router is running in IGMP Version 2. If the
host runs in IGMP Version 1, it may not send IGMP Leave packet when it leaves a
group. At that time, the command is invalid to the host.
Related command: igmp lastmember-queryinterval and display igmp interface.
Example
Syntax
2-10
Command Manual – Multicast Protocol
Comware V3 Chapter 2 IGMP Configuration Commands
View
Interface view
Parameter
seconds: IGMP querier present time, in second. The value ranges from 1 to 131070
seconds. By default, the value is twice of IGMP query messages interval. It is 120
seconds in general.
Description
Use the igmp timer other-querier-present command to configure the overtime value
of presence of IGMP querier.
Use the undo igmp timer other-querier-present command to restore the default
value.
On a shared network, i.e., there are multiple multicast routers on the same network
segment, the query router (querier for short) takes charge of sending query messages
periodically on the interface. If other non-queriers receive no query messages within
the valid period, the router will consider the previous query to be invalid and the router
itself becomes a querier.
In IGMP Version 1, the selection of a querier is determined by the multicast routing
protocol. In IGMP Version 2, the router with the lowest IP address on the shared
network segment acts as the querier.
Related command: igmp timer query, display igmp interface.
Caution:
If the querier present time configured is less than the twice of query interval, it may lead
to the repeated changes of queriers in the network.
Example
# Configure the querier present time on the interface Ethernet1/0/0 to 200 seconds.
[H3C-Ethernet1/0/0] igmp timer other-querier-present 200
Syntax
2-11
Command Manual – Multicast Protocol
Comware V3 Chapter 2 IGMP Configuration Commands
View
Interface view
Parameter
seconds: Interval at which the router sends the IGMP query messages, in second. It
ranges from 1 to 65535. By default, the value is 60 seconds.
Description
Use the igmp timer query command to configure the interval at which a router
interface sends IGMP query messages.
Use the undo igmp timer query command to restore the default value.
A multicast router sends IGMP query messages at intervals to find out whether there
are multicast group members on the network. The query interval can be modified
according to the practical conditions of the network.
Related command: igmp timer other-querier-present.
Example
# Configure the interval at which multicast router Ethernet1/0/0 sends IGMP query
packet to 125 seconds.
[H3C-Ethernet1/0/0] igmp timer query 125
Syntax
igmp version { 1 | 2 }
undo igmp version
View
Interface view
Parameter
1: IGMP Version 1.
2: IGMP Version 2. By default, IGMP Version 2 is used.
Description
Use the igmp version command to specify the version of IGMP that a router uses.
Use the undo igmp version command to restore the default value.
All systems running in the same sub-network must support the same version of IGMP.
When a router finds the system of Version 1, it cannot switch to Version 1 by itself.
2-12
Command Manual – Multicast Protocol
Comware V3 Chapter 2 IGMP Configuration Commands
Example
Syntax
View
User view
Parameter
Description
Use the reset igmp group command to delete the IGMP group joined on the interface.
The deletion of the group does not affect its joining again.
Example
# Delete the IGMP groups ranging between the network segment 225.1.1.0 and
225.1.1.255 on the interface Ethernet0/0/0.
<H3C> reset igmp group interface ethernet0/0/0 225.1.1.0 255.255.255.0
2-13
Command Manual – Multicast Protocol
Comware V3 Chapter 3 PIM Configuration Commands
Syntax
bsr-policy acl-number
undo bsr-policy
View
PIM view
Parameter
acl-number: ACL number used by BSR filter policy , ranging from 2000 to 2999.
Description
Use the bsr-policy command to restrict the range for valid BSR, preventing BSR
spoofing.
Use the undo bsr-policy command to restore the normal state without any range
restriction and regard all the messages received are valid.
In PIM SM network which uses BSR mechanism, any router can set itself as C-BSR
and will take charge of the authority of advertising BP information in the network if it
succeeds in competition. To prevent the valid BSR in the network from being
maliciously replaced, the following two measures should be taken:
z Change RP mapping relationship to prevent the host from spoofing the router by
counterfeiting valid BSR packet. BSR packet is multicast packet with TTL of 1, so
this kind of attack usually takes place on the edge router. BSR is in the internal
network and the host is in the external network, therefore, performing neighbor
check and RPF check to BSR packet can prevent this kind of attack.
z If a router in the network is controlled by an attacker or an illegal router accesses
the network, the attacker can set the router to C-BSR and make it succeed in
competition and control the authority of advertising RP information in the network.
The router, after being configured as C-BSR, will automatically advertise BSR
information to the whole network. BSR packet is the multicast packet which is
forwarded hop by hop with TTL of 1. The whole network will not be affected if the
neighbor router does not receive the BSR information. The solution is to configure
bsr-policy on each router in the whole network to restrict the range for legal BSR.
For example, if only 1.1.1.1/32 and 1.1.1.2/32 are permitted as BSR, the router will
3-1
Command Manual – Multicast Protocol
Comware V3 Chapter 3 PIM Configuration Commands
not receive and forward other BSR information and legal BSR will not compete
with it.
The above two points can partially protect the security of BSR in the network. However,
if a legal BSR router is controlled by an attacker, it will also lead to the above problem.
The source parameter in the related rule command is translated as BSR address in
bsr-policy command.
Related command: acl, rule.
Example
# Configure BSR filter policy on a router. Only permit 1.1.1.1/32 to act as BSR and
regard others are invalid.
[H3C-pim] bsr-policy 2001
[H3C-pim] quit
[H3C] acl number 2001
[H3C-acl-basic-2001] rule 0 permit source 1.1.1.1 0
3.1.2 c-bsr
Syntax
View
PIM view
Parameter
Description
3-2
Command Manual – Multicast Protocol
Comware V3 Chapter 3 PIM Configuration Commands
Since BSR and other devices in PIM domain need to exchange a great deal of
information during candidate BSR configuration, a relatively large bandwidth must be
guaranteed.
Related command: pim sm.
Example
# Configure the IP address of the router on Ethernet1/0/0 as a candidate BSR with the
priority 2.
<H3C> system-view
[H3C] multicast routing-enable
[H3C] pim
[H3C-pim] c-bsr ethernet1/0/0 30 2
3.1.3 c-rp
Syntax
View
PIM view
Parameter
Description
Use the c-rp command to configure the router to advertise itself as a candidate RP to
BSR.
Use the undo c-rp command to remove the configuration.
By default, no candidate RP is configured.
When configuring a candidate RP, a relatively large bandwidth should be reserved for
the router and other devices in PIM domain.
Related command: c-bsr.
3-3
Command Manual – Multicast Protocol
Comware V3 Chapter 3 PIM Configuration Commands
Example
3.1.4 crp-policy
Syntax
crp-policy acl-number
undo crp-policy
View
PIM view
Parameter
acl-number: ACL number used by C-RP filter policy, ranging from 3000 to 3999.
Description
Use the crp-policy command to restrict the range for valid C-RP and the group range
served by each C-RP, preventing C-RP cheating.
Use the undo crp-policy command to restore the normal state without any range
restriction and regard all the messages received are valid.
In PIM SM network which uses BSR mechanism, any router can set itself as a C-RP
serving the specific group range. If it is elected in RP election, it will become an RP
serving in the group range.
In BSR mechanism C-RP router unicasts C-RP information to BSR router which is
responsible for advertising all C-RP information to the whole network by using BRP
information.
To prevent C-RP cheating, crp-policy is needed to configure on BSR router to restrict
the range for valid C-RP and the group address range it serves. Each C-BSR may
become a BSR possibly, so the same filter policy should be configured on each C-BSR.
This command uses the ACL numbered from 3000 to 3999. The parameter source in
the related rule command indicates C-RP address and destination indicates the group
range the C-RP serves. Upon matching the received C-RP message, only when the
C-RP address in the packet matches source address and the group address range in
the packet is the subset of that in ACL, can this configuration be regarded successful.
Related command: acl and rule.
3-4
Command Manual – Multicast Protocol
Comware V3 Chapter 3 PIM Configuration Commands
Example
# Configure C-RP policy on C-BSR router. Only permit 1.1.1.1/32 to act as C-RP which
only serves the group range 225.1.0.0/16.
[H3C-pim] crp-policy 3100
[H3C-pim] quit
[H3C] acl number 3100
[H3C-acl-adv-3100] rule 0 permit ip source 1.1.1.1 0 destination 225.1.0.0
0.0.255.255
Syntax
View
User view
Parameter
Description
Use the debugging pim common command to enable common PIM debugging
functions.
Use the undo debugging pim common command to disable the debugging functions.
By default, common PIM debugging functions are disabled.
Example
3-5
Command Manual – Multicast Protocol
Comware V3 Chapter 3 PIM Configuration Commands
Syntax
debugging pim dm { alert | all | mrt | timer | warning | { recv | send } { all | assert |
graft | graft-ack | join | prune } }
undo debugging pim dm { alert | all | mrt | timer | warning | { recv | send } { all |
assert | graft | graft-ack | join | prune } }
View
User view
Parameter
Description
Example
3-6
Command Manual – Multicast Protocol
Comware V3 Chapter 3 PIM Configuration Commands
Syntax
debugging pim sm { all | mbr | mrt | msdp | timer | verbose | warning | { recv | send }
{ assert | bootstrap | crpadv | jp | reg | regstop } }
undo debugging pim sm { all | mbr | mrt | msdp | timer | verbose | warning | { recv
| send } { assert | bootstrap | crpadv | jp | reg | regstop } }
View
User view
Parameter
Description
Example
Syntax
3-7
Command Manual – Multicast Protocol
Comware V3 Chapter 3 PIM Configuration Commands
View
Any view
Parameter
None
Description
Use the display pim bsr-info command to view Bootstrap Router (BSR) information.
Related command: c-bsr and c-rp.
Example
# Execute this command on a router running PIM-SM and display the current BSR
information.
<H3C> display pim bsr-info
Current BSR Address: 20.20.20.30
Priority: 0
Mask Length: 30
Expires: 00:01:55
Local host is BSR
Syntax
View
Any view
Parameter
Description
Use the display pim interface command to view the PIM interface information.
Example
3-8
Command Manual – Multicast Protocol
Comware V3 Chapter 3 PIM Configuration Commands
Item Description
PIM SM is enabled on the interface
PIM is enabled on interface
Ethernet1/0/0.
The sending interval of Hello message
PIM query interval is 30 seconds
is 30 seconds.
PIM DR (designated router) is 10.10.1.20 IP address of DR is 10.10.1.20.
Syntax
View
Any view
Parameter
Description
Use the display pim neighbor command to view the PIM neighbor information.
Example
# Display the PIM neighbor information of the interface Ethernet1/0/0 on the router.
<H3C> display pim neighbor ethernet 1/0/0
Neighbor's Address Interface Name Uptime Expires
10.10.1.10 Ethernet1/0/0 00:41:59 00:01:16
Syntax
3-9
Command Manual – Multicast Protocol
Comware V3 Chapter 3 PIM Configuration Commands
View
Any view
Parameter
Description
Use the display pim routing-table command to view the contents of the PIM multicast
routing table.
Related command: display multicast routing-table.
Example
# Display the contents of the PIM multicast routing table on the router.
<H3C> display pim routing-table
PIM-SM Routing Table
Total 0 (S,G) entry, 2 (*,G) entries, 0 (*,*,RP) entry
3-10
Command Manual – Multicast Protocol
Comware V3 Chapter 3 PIM Configuration Commands
Syntax
View
Any view
Parameter
Description
Use the display pim rp-info command to view the corresponding RP information of
multicast group, BSR and static RP information.
If no group address is specified in this command, the corresponding RP information of
all groups will be displayed.
Example
Group/MaskLen: 224.0.0.0/4
RP 20.20.20.20
Version: 2
Priority: 0
Uptime: 00:00:05
Expires: 00:02:25
3.1.13 pim
Syntax
pim
undo pim
3-11
Command Manual – Multicast Protocol
Comware V3 Chapter 3 PIM Configuration Commands
View
System view
Parameter
None
Description
Example
<H3C> system-view
[H3C] multicast routing-enable
[H3C] pim
[H3C-pim]
Syntax
pim bsr-boundary
undo pim bsr-boundary
View
Interface view
Parameter
None
Description
Use the pim bsr-boundary command to configure an interface to become the PIM
domain boundary.
Use the undo pim bsr-boundary command to remove the boundary.
By default, no domain boundary is set.
After this command is configured on an interface, Bootstrap messages cannot pass the
boundary, whereas other PIM packets can. This command can effectively divide the
network to domains which use different BSRs.
Related command: c-bsr.
3-12
Command Manual – Multicast Protocol
Comware V3 Chapter 3 PIM Configuration Commands
Example
3.1.15 pim dm
Syntax
pim dm
undo pim dm
View
Interface view
Parameter
None
Description
Example
Syntax
View
Interface view
Parameter
limit: Upper limit of PIM neighbor number on an interface, ranging from 0 to 128.
3-13
Command Manual – Multicast Protocol
Comware V3 Chapter 3 PIM Configuration Commands
Description
Use the pim neighbor-limit command to limit PIM neighbor number on an router
interface. If the number exceeds the limit configured, no new neighbor can be added to
the router.
Use the undo pim neighbor-limit command to restore the default configuration.
By default, the upper limit of PIM neighbor number on an interface is 128.
If the PIM neighbor number on an interface has exceeded the value configured during
configuration, the previous PIM neighbor will not be deleted.
Example
# Limit the upper limit of PIM neighbor number on the interface Ethernet1/0/0/ to 50.
[H3C-Ethernet1/0/0] pim neighbor-limit 50
Syntax
View
Interface view
Parameter
acl-number: Number of basic ACL. The value ranges from 2000 to 2999.
Description
Use the pim neighbor-policy command to configure a router to filter the PIM neighbor
of the current interface.
Use the undo pim neighbor-policy command to cancel the filtering.
Only the router which is permitted by ACL can act as PIM neighbor of the current
interface, while other routers cannot.
If this command is configured repeatedly, the new configuration will overwrite the
previous one.
Example
3-14
Command Manual – Multicast Protocol
Comware V3 Chapter 3 PIM Configuration Commands
3.1.18 pim sm
Syntax
pim sm
undo pim sm
View
Interface view
Parameter
None
Description
Example
Syntax
View
Interface view
Parameter
3-15
Command Manual – Multicast Protocol
Comware V3 Chapter 3 PIM Configuration Commands
Description
Use the pim timer hello command to configure the interval of sending PIM router Hello
message.
Use the undo pim timer hello command to restore the default value.
Example
# Configure the interval of sending Hello message on the interface Ethernet1/0/0 on the
PIM router to 40 seconds.
[H3C-Ethernet1/0/0] pim sm
[H3C-Ethernet1/0/0] pim timer hello 40
3.1.20 register-policy
Syntax
register-policy acl-number
undo register-policy
View
PIM view
Parameter
acl-number: Number of advanced IP ACL, defining the rule of filtering the source and
group addresses. The value ranges from 3000 to 3999.
Description
Use the register-policy command to configure a RP to filter the register packet sent by
the DR in the PIM-SM network and to accept the specific packet only.
Use the undo register-policy command to remove the configured packet filtering.
Example
# If the local device is the RP in the network, using the following command can only
accept the multicast data register packets sent by the source on the network segment
10.10.0.0/16 to the multicast address in the range of 225.1.0.0/16.
<H3C> system-view
[H3C] acl number 3110
[H3C-acl-adv-3110] rule permit ip source 10.10.0.0 0.0.255.255 destination
225.1.0.0 0.0.255.255
[H3C-acl-adv-3110] quit
[H3C] multicast routing-enable
[H3C] pim
3-16
Command Manual – Multicast Protocol
Comware V3 Chapter 3 PIM Configuration Commands
Syntax
View
User view
Parameter
Description
Example
Syntax
View
User view
Parameter
3-17
Command Manual – Multicast Protocol
Comware V3 Chapter 3 PIM Configuration Commands
Description
Use the reset pim routing-table command to clear PIM route entry.
The sequence of group-address and source-address can be reversed, but the input
group-address and source-address must be valid. Otherwise, the system will prompt
input error.
If group-address is configured to 244.0.0.0/24 and source-address to RP address (in
which, group address may have mask but the calculation result of the two must be
224.0.0.0, while source address has no mask), it indicates only (*, *, RP) entry is
deleted.
If group-address is configured to a group address and source-address to 0 (in which,
group address may have mask while source address has no mask), it indicates only (*,
G) entry is deleted.
After this command is executed, not only the multicast route entry is deleted from PIM,
but also the corresponding route entry or forwarding entry in the multicast kernel
routing table and MFC is deleted.
Related command: reset multicast routing-table, reset multicast forwarding-table,
display pim routing-table.
Example
# Clear the route entry with group address of 225.5.4.3 in PIM routing table.
<H3C> reset pim routing-table 225.5.4.3
3.1.23 source-policy
Syntax
source-policy acl-number
undo source-policy
View
PIM view
3-18
Command Manual – Multicast Protocol
Comware V3 Chapter 3 PIM Configuration Commands
Parameter
acl-number: Number of basic or advanced ACL. The value ranges from 2000 to 3999.
Description
Use the source-policy command to configure a router to filter the multicast data packet
received according to source (group) address.
Use the undo source-policy command to remove the configuration.
If source address filtering and basic ACL are configured, all the multicast data packets
received will be matched with source addresses. The packet which does not pass the
matching will be discarded.
If source address filtering and advanced ACL are configured, all the multicast data
packets received will be matched with source and group addresses. The packet which
does not pass the matching will be discarded.
This command filters not only multicast data, but also the multicast data encapsulated
in register packet.
If this command is executed repeatedly, the new configuration will overwrite the
previous one.
Example
# Configure to accept the multicast data packets with source address of 10.10.1.2 and
discard the multicast data packets with source address of 10.10.1.1.
[H3C] multicast routing-enable
[H3C] pim
[H3C-pim] source-policy 2001
[H3C-pim] quit
[H3C] acl number 2001
[H3C-acl-basic-2001] rule permit source 10.10.1.2 0
[H3C-acl-basic-2001] rule deny source 10.10.1.1 0
3.1.24 spt-switch-threshold
Syntax
View
PIM view
3-19
Command Manual – Multicast Protocol
Comware V3 Chapter 3 PIM Configuration Commands
Parameter
traffic-rate: Switch rate threshold from the RPT to the SPT in Kbps, ranging from 0 to
65535. By default, the switch threshold value is 0, i.e., switching starts when the RPT
receives the first data packet.
infinity: Indicates never to switch to SPT.
acl-number: Number of basic IP ACL, defining the range of a multicast group. The value
ranges from 2000 to 2999.
order-value: Order of the newly-added or refreshed group-policy in the group-policy
table, ranging from 1 to 99.
Description
Use the spt-switch-threshold command to set the packet rate threshold when the PIM
leaf router switches from the RPT to the SPT.
Use the undo spt-switch-threshold command to restore the default setting.
Use the order command to regulate the order of the group-policy. In addition, the
system chooses SPT switch threshold according to the order of group-policy, which is
more flexible and increases efficiency.
Example
# Set the threshold value to 4 kbps. If the transmission rate from the source to the
multicast group is higher than the value, the router will switch to the SPT toward the
source.
<H3C> system-view
[H3C] multicast routing-enable
[H3C] pim
[H3C-pim] spt-switch-threshold 4
# Add a new group-policy, with ACL number of 2010, threshold value of 100, and order
number of 1.
[H3C] spt-switch-threshold 100 group-policy 2010 order 1
3.1.25 static-rp
Syntax
View
PIM view
3-20
Command Manual – Multicast Protocol
Comware V3 Chapter 3 PIM Configuration Commands
Parameter
rp-address: Static RP address. This address must be valid unicast IP address and
cannot be configured as the address in 127 network segment.
acl-number: Number of basic ACL, used in controlling the multicast group range that
static RP serves. The value ranges from 2000 to 2999.
Description
Example
3-21
Command Manual – Multicast Protocol
Comware V3 Chapter 4 MSDP Configuration Commands
Syntax
cache-sa-enable
undo cache-sa-enable
View
MSDP view
Parameter
None
Description
Example
Syntax
View
User view
4-1
Command Manual – Multicast Protocol
Comware V3 Chapter 4 MSDP Configuration Commands
Parameter
Description
Example
Syntax
View
Any view
Parameter
None
Description
Use the display msdp brief command to view the state of MSDP peer.
Example
4-2
Command Manual – Multicast Protocol
Comware V3 Chapter 4 MSDP Configuration Commands
Syntax
View
Any view
Parameter
Description
Use the display msdp peer-status command to view the detailed information of
MSDP peer.
Related command: peer.
Example
4-3
Command Manual – Multicast Protocol
Comware V3 Chapter 4 MSDP Configuration Commands
Syntax
View
Any view
Parameter
Description
Use the display msdp sa-cache command to view (S, G) state learnt from MSDP
peer.
Only cache-sa-enable command is configured, can cache state be displayed.
Example
4-4
Command Manual – Multicast Protocol
Comware V3 Chapter 4 MSDP Configuration Commands
Syntax
View
Any view
Parameter
Description
Use the display msdp sa-count command to view the number of sources and groups
in MSDP cache.
The cache-sa-enable command must be configured before the configuration of this
command.
Example
4.1.7 import-source
Syntax
View
MSDP view
4-5
Command Manual – Multicast Protocol
Comware V3 Chapter 4 MSDP Configuration Commands
Parameter
Description
Use the import-source command to configure which (S, G) entries in the domain need
to be advertised when a MSDP originates an SA message.
Use the undo import-source command to remove the configuration.
By default, all the (S, G) entries in the domain are advertised by the SA message.
Besides controlling SA messages creation, you can filter the forwarded SA messages
by the commands peer sa-policy import and peer sa-policy export.
Example
# Configure which (S, G) entries from the multicast routing table will be advertised in SA
messages originated by the MSDP peer.
<H3C> system-view
[H3C] acl number 3101
[H3C-acl-adv-3101] rule permit ip source 10.10.0.0 0.0.255.255 destination
225.1.0.0 0.0.255.255
[H3C-acl-adv-3101] quit
[H3C] msdp
[H3C-msdp] import-source acl 3101
4.1.8 msdp
Syntax
msdp
undo msdp
View
System view
Parameter
None
Description
Use the msdp command to enable MSDP and enter the MSDP view.
4-6
Command Manual – Multicast Protocol
Comware V3 Chapter 4 MSDP Configuration Commands
Use the undo msdp command to clear all configurations of MSDP, release all
resources that MSDP occupies, and restore the initial state.
Related command: peer.
Example
4.1.9 msdp-tracert
Syntax
View
Any view
Parameter
Description
Use the msdp-tracert command to trace the transmission path of SA messages in the
network, which helps to locate the faults such as information loss and configuration
error. After the transmission path of SA messages is determined, correct configuration
can avoid the overflow of SA messages.
Example
4-7
Command Manual – Multicast Protocol
Comware V3 Chapter 4 MSDP Configuration Commands
# Specify the maximum number of hops that are traced and collect detailed information
of SA and MSDP peer.
<H3C> msdp-tracert 10.10.1.1 225.2.2.2 20.20.20.20 max-hops 10 sa-info
peer-info
MSDP tracert: press CTRL_C to break
D-bit: set if have this (S,G) in cache but with a different RP
RP-bit: set if this router is an RP
NC-bit: set if this router is not caching SA's
C-bit: set if this (S,G,RP) tuple is in the cache
MSDP Traceroute path information:
Router Address: 20.20.1.1
Fixed-length response info:
Peer Uptime: 10 minutes, Cache Entry Uptime: 30 minutes
D-bit: 0, RP-bit: 1, NC-bit: 0, C-bit: 1
Return Code: Reached-max-hops
Next Hop info:
Next-Hop Router Address: 0.0.0.0
SA info:
Count of SA messages received for this (S,G,RP): 0
Count of encapsulated data packets received for this (S,G,RP):0
SA cache entry uptime: 00:30:00 , SA cache entry expiry time: 00:03:32
Peering info:
Peering Uptime: 10 minutes, Count of Peering Resets: 3
Item Description
Address where the local router creates Peering
Router Address
session with Peer-RPF neighbor.
Time for which the local router performs Peering
Peer Uptime session with Peer-RPF neighbor in minute, with the
maximum value of 255.
Present time of (S, G, RP) entry in SA cache of the
Cache Entry Uptime local router, in minute, with the maximum value of
255.
(S, G, RP) entry existing in SA cache of the local
router.
D-bit: 1
But the RP is different from the RP specified in the
request message.
The local router is an RP, but it is not necessarily the
RP-bit: 1
source RP in (S, G, RP) entry.
NC-bit: 0 The local router enables SA cache.
4-8
Command Manual – Multicast Protocol
Comware V3 Chapter 4 MSDP Configuration Commands
Item Description
Return reason is the reached maximum hops and
Return Code: other possible value includes:
Reached-max-hops Hit-src-RP: The local hop router is the source RP in
(S, G, RP) entry.
Next-Hop Router Address: If the parameter next-hop-info is used, Peer-RPF
0.0.0.0 neighbor address will be displayed.
Count of SA messages Number of SA messages received for tracing this (S,
received for this (S,G,RP) G, RP) entry.
Count of encapsulated data
Number of encapsulated data packets received for
packets received for this
tracing this (S, G, RP) entry.
(S,G,RP)
SA cache entry uptime Present time of SA cache entry.
SA cache entry expiry time Expiry time of SA cache entry.
Peering Uptime: 10 Time for which the local router performs Peering
minutes session with Peer-RPF neighbor.
Count of Peering Resets Number of Peering session resets.
4.1.10 originating-rp
Syntax
View
MSDP view
Parameter
Description
Use the originating-rp command to allow a MSDP to use the IP address of specified
interface as the RP address in the SA message originated.
Use the undo originating-rp command to remove the configuration.
By default, the RP address in the SA message is the RP address configured by PIM.
If an interface specified by using the originating-rp command is not configured with an
IP address or it is down, the system does not send SA message. At this time if multiple
RPs are configured on the device, the system will not select other RPs to send SA
4-9
Command Manual – Multicast Protocol
Comware V3 Chapter 4 MSDP Configuration Commands
message. Therefore, you must ensure the validity of the specified interface; otherwise it
is considered as configuration problem.
Configure logical RP by using this command.
Example
4.1.11 peer
Syntax
View
MSDP view
Parameter
Description
Example
# Configure the router using IP address 125.10.7.6 as an MSDP peer of the local router.
<H3C> system-view
[H3C] msdp
[H3C-msdp] peer 125.10.7.6 connect-interface ethernet 0/1/0
4-10
Command Manual – Multicast Protocol
Comware V3 Chapter 4 MSDP Configuration Commands
Syntax
View
MSDP view
Parameter
Description
Use the peer description command to configure descriptive text to MSDP peer.
Use the undo peer description command to remove the descriptive text configured.
By default, an MSDP peer has no descriptive text.
Administrator can conveniently differentiate MSDP peers by configuring descriptive
text.
Related command: display msdp peer-status.
Example
# Add descriptive text CstmrA to router 125.10.7.6 to specify that the router is Client A.
<H3C> system-view
[H3C] msdp
[H3C-msdp] peer 125.10.7.6 description router CstmrA
Syntax
View
MSDP view
Parameter
name: Name of an Mesh Group, being case sensitive. The maximum length is 32
characters.
peer-address: Address of an MSDP peer to be a member of the Mesh Group.
4-11
Command Manual – Multicast Protocol
Comware V3 Chapter 4 MSDP Configuration Commands
Description
Use the peer mesh-group command to configure an MSDP peer to join an Mesh
Group.
Use the undo peer mesh-group command to remove the configuration.
By default, an MSDP peer is not a member of any Mesh Group.
Example
# Configure the MSDP peer with address 125.10.7.6 to be a member of the Mesh
Group Grp1.
<H3C> system-view
[H3C] msdp
[H3C-msdp] peer 125.10.7.6 mesh-group Grp1
Syntax
View
MSDP view
Parameter
peer-address: Address of the MSDP peer to which the TTL limitation applies.
ttl: TTL threshold, ranging from 0 to 255.
Description
Use the peer minimum-ttl command to configure the minimum TTL (Time-to-Live)
value of the multicast data packets encapsulated in SA messages to be sent to
specified MSDP peer.
Use the undo peer minimum-ttl command to restore the default TTL threshold.
By default, the value of TTL threshold is 0.
Related command: peer.
Example
# Configure the TTL threshold value to 10, i.e., only those multicast data packets with a
TTL value greater than or equal to 10 can be forwarded to the MSDP peer 110.10.10.1.
<H3C> system-view
[H3C] msdp
[H3C-msdp] peer 110.10.10.1 minimum-ttl 10
4-12
Command Manual – Multicast Protocol
Comware V3 Chapter 4 MSDP Configuration Commands
Syntax
View
MSDP view
Parameter
Description
Use the peer request-sa-enable command to enable the router to send SA request
message to the specified MSDP peer when receiving a new group join message.
Use the undo peer request-sa-enable command to remove the configuration.
By default, when receiving a new group join message, the router sends no SA request
messages to MSDP peers but waits to receive the next SA message.
Related command: cache-sa-enable.
Example
Syntax
View
MSDP view
Parameter
4-13
Command Manual – Multicast Protocol
Comware V3 Chapter 4 MSDP Configuration Commands
Description
Use the peer sa-cache-maximum command to limit the number of caches originated
when the router receives SA messages from an MSDP peer.
Use the undo peer sa-cache-maximum command to restore the default configuration.
By default, the maximum number of SA caches is 2048.
This configuration is recommended for all MSDP peers in the networks possibly
attacked by DoS.
Related command: display msdp, sa-count, display msdp peer-status, display
msdp brief.
Example
# Limit the number of caches originated to 100 when the router receives SA messages
from the MSDP peer 125.10.7.6.
<H3C> system-view
[H3C] msdp
[H3C-msdp] peer 125.10.7.6 sa-cache-maximum 100
Syntax
View
MSDP view
Parameter
Description
Use the peer sa-policy command to configure a filter list for SA messages received or
forwarded from the specified MSDP peer.
Use the undo peer sa-policy command to remove the configuration.
By default, messages received or forwarded will not be filtered. All SA messages are
received or forwarded from an MSDP peer.
4-14
Command Manual – Multicast Protocol
Comware V3 Chapter 4 MSDP Configuration Commands
Example
Syntax
View
MSDP view
Parameter
peer-address: Address from which the local router receives SA request messages sent
by the specified MSDP peer.
acl acl-number: Number of basic IP ACL, describing multicast group address, ranging
from 2000 to 2999. If no ACL is specified, all SA request messages will be ignored.
Description
Use the peer sa-request-policy command to limit SA request messages that the
router receives from MSDP peers.
Use the undo peer sa-request-policy command to remove the limitation.
By default, the router receives all SA request messages from the MSDP peer.
If no ACL is specified, all SA requests will be ignored. If ACL is specified, only those SA
request messages from the groups permitted by the ACL will be processed and all the
others will be ignored.
Related command: peer.
4-15
Command Manual – Multicast Protocol
Comware V3 Chapter 4 MSDP Configuration Commands
Example
# Configure the ACL for filtering SA request messages from the MSDP peer 175.58.6.5.
The SA request messages from group address range 225.1.1.0/8 will be received and
all the others will be ignored.
<H3C> system-view
[H3C] acl number 2001
[H3C-acl-basic-2001] rule permit source 225.1.1.0 0.0.0.255
[H3C-acl-basic-2001] quit
[H3C] msdp
[H3C-msdp] peer 175.58.6.5 sa-request-policy acl 2001
Syntax
View
User view
Parameter
Description
Use the reset msdp peer command to reset TCP connection with the specified MSDP
peer, and clear all the statistics of the specified MSDP peer.
Related command: peer.
Example
Syntax
View
User view
4-16
Command Manual – Multicast Protocol
Comware V3 Chapter 4 MSDP Configuration Commands
Parameter
group-address: Address of the group, (S, G) entries matching which are cleared from
the SA cache. If no multicast group address is specified, all SA cache entries will be
cleared.
Description
Use the reset msdp sa-cache command to clear SMDP SA cache entries.
Related command: cache-sa-enable and display msdp sa-cache.
Example
# Clear the cache entries with group address 225.5.4.3 from the SA cache.
<H3C> reset msdp sa-cache 225.5.4.3
Syntax
View
User view
Parameter
peer-address: Address of the MSDP peer whose statistics, resetting information and
input/output information will be cleared. If no MSDP peer address is specified, all
MSDP peers statistics will be cleared.
Description
Use the reset msdp statistics command to clear statistics of one or more MSDP peers
without resetting the MSDP peer.
Example
4.1.22 shutdown
Syntax
shutdown peer-address
undo shutdown peer-address
4-17
Command Manual – Multicast Protocol
Comware V3 Chapter 4 MSDP Configuration Commands
View
MSDP view
Parameter
Description
Example
4.1.23 static-rpf-peer
Syntax
View
MSDP view
Parameter
Description
4-18
Command Manual – Multicast Protocol
Comware V3 Chapter 4 MSDP Configuration Commands
You must configure the peer command before using the static-rpf-peer command.
If you do not want to perform RPF check to SA messages from a same MSDP peer. If
only an MSDP peer is configured on a router, this MSDP peer will be regarded as static
RPF peer.
Related command: peer and ip prefix-list.
Example
Syntax
View
MSDP view
Parameter
seconds: Value of connection request re-try period in second, ranging from 1 to 60.
Description
Use the timer retry command to configure the value of connection request re-try
period.
Use the undo timer retry command to restore the default value.
By default, the value of connection request re-try period is 30 seconds.
Related command: peer.
Example
4-19
Command Manual – Multicast Protocol
Comware V3 Chapter 4 MSDP Configuration Commands
4-20
Command Manual – Multicast Protocol Chapter 5 MBGP Multicast Extension Configuration
Comware V3 Commands
Syntax
View
Parameter
Description
Use the aggregate command to create a multicast aggregated record in the BGP
routing table.
Use the undo aggregate command to remove the aggregation.
By default, no route is aggregated.
Use the aggregate command without parameters to create one local aggregated route
and set atomic aggregation attributes.
5-1
Command Manual – Multicast Protocol Chapter 5 MBGP Multicast Extension Configuration
Comware V3 Commands
Example
# Create a multicast aggregated record in the BGP routing table and set the address of
aggregated route is 192.213.0.0.
[H3C-bgp-af-mul] aggregate 192.213.0.0 255.255.0.0
Syntax
View
User view
Parameter
Description
Use the debugging bgp mp-update command to enable MBGP Update packet
debugging.
Use the undo debugging bgp mp-update command to disable the functions.
Example
Syntax
View
Any view
Parameter
group-name: Name of peer group. If no peer group is specified, the information about
all peer groups will be displayed.
5-2
Command Manual – Multicast Protocol Chapter 5 MBGP Multicast Extension Configuration
Comware V3 Commands
Description
Use the display bgp multicast group command to view the information about peer
groups.
Example
Syntax
View
Any view
Parameter
Description
Use the display bgp multicast peer command to view information about MBGP
peers.
Example
Syntax
View
Any view
Parameter
None
5-3
Command Manual – Multicast Protocol Chapter 5 MBGP Multicast Extension Configuration
Comware V3 Commands
Description
Use the display bgp multicast network command to view the routing information that
MBGP advertises.
Example
Syntax
View
Any view
Parameter
ip-address: MBGP routing information whose IP address is specified in the BGP routing
table.
Description
Use the display bgp multicast routing command to view the MBGP routing
information whose IP address is specified in the BGP routing table.
Example
# Display the MBGP routing information with destination network segment 14.1.0.0.
<H3C> display bgp multicast routing 14.1.0.0
Syntax
View
Any view
Parameter
5-4
Command Manual – Multicast Protocol Chapter 5 MBGP Multicast Extension Configuration
Comware V3 Commands
Description
Use the display bgp multicast routing as-path-acl command to view in the BGP
routing table the MBGP routes that match the specified AS path list.
Example
# Display in the BGP routing table the MBGP routes that match the specified AS path
list.
[H3C] display bgp multicast routing as-path-acl 1
Syntax
View
Any view
Parameter
None
Description
Use the display bgp multicast routing cidr command to view the routing information
with non-natural network mask (i.e., classless inter-domain routing, CIDR).
Example
Syntax
View
Any view
Parameter
5-5
Command Manual – Multicast Protocol Chapter 5 MBGP Multicast Extension Configuration
Comware V3 Commands
Description
Use the display bgp multicast routing community command to view the routing
information that belongs to the specified MBGP community.
Example
# Display the routing information that belongs to the specified MBGP community.
<H3C> display bgp multicast routing community 600:1
<H3C> display bgp multicast routing community no-export
Syntax
View
Any view
Parameter
Description
Use the display bgp multicast routing community-list command to view the routing
information that is permitted by the MBGP community list.
Example
# Display the routing information that is permitted by the MBGP community list.
<H3C> display bgp multicast routing community-list
Syntax
View
Any view
5-6
Command Manual – Multicast Protocol Chapter 5 MBGP Multicast Extension Configuration
Comware V3 Commands
Parameter
None
Description
Example
Syntax
View
Any view
Parameter
Description
Use the display multicast routing peer command to view the route received from or
sent to the specified multicast neighbor.
Example
Syntax
View
Any view
5-7
Command Manual – Multicast Protocol Chapter 5 MBGP Multicast Extension Configuration
Comware V3 Commands
Parameter
Description
Use the display bgp multicast routing regular-expression command to view the
routing information matching the specified AS regular expression.
Example
# Display the MBGP routing information matching the regular expression ^600$.
<H3C> display bgp multicast routing regular-expression ^600$
Syntax
View
Any view
Parameter
None
Description
Use the display bgp multicast routing statistic command to view statistics of MBGP
route information.
Example
5.1.15 import-route
Syntax
View
5-8
Command Manual – Multicast Protocol Chapter 5 MBGP Multicast Extension Configuration
Comware V3 Commands
Parameter
protocol: Source routing protocols that can be imported, which can be direct, ospf,
ospf-ase, ospf-nssa, rip, isis and static at present.
metric: Metric value loaded by an imported route.
policy-name: Routing policy used by an imported route.
Description
Use the import-route command to import routing information from other protocols to
BGP.
Use the undo import-route command to cancel the importing of routing information
from other protocols.
By default, BGP will not import routing information from other protocols.
Example
Syntax
ipv4-family multicast
undo ipv4-family multicast
View
BGP view
Parameter
None
Description
Use the ipv4-family multicast command to enter the IPv4 multicast subaddress family
view.
Use the undo ipv4-family multicast command to remove all the configurations in the
IPv4 multicast subaddress family view.
Example
5-9
Command Manual – Multicast Protocol Chapter 5 MBGP Multicast Extension Configuration
Comware V3 Commands
[H3C-bgp-af-mul]
5.1.17 network
Syntax
View
Parameter
Description
Use the network command to configure the network addresses to be sent by the local
BGP.
Use the undo network command to remove the existing configuration.
By default, the local BGP does not advertise any route.
Example
Syntax
View
Parameter
5-10
Command Manual – Multicast Protocol Chapter 5 MBGP Multicast Extension Configuration
Comware V3 Commands
Description
Example
Syntax
View
Parameter
Description
Use the peer allow-as-loop command to allow the AS_PATH attribute in the received
routes to include the local AS number.
Use the undo peer allow-as-loop command to disallow the AS_PATH attribute in the
received routes to include the local AS number.
By default, the local AS number is unacceptable in the received route updates.
Example
5-11
Command Manual – Multicast Protocol Chapter 5 MBGP Multicast Extension Configuration
Comware V3 Commands
Syntax
View
Parameter
Description
Use the peer as-path-acl import command to have MBGP filter the routes received
from the specified peer or peer group based on the specified AS path list.
Use the undo peer as-path-acl import command to disable MBGP to filter the
received routes.
Use the peer as-path-acl export command to have MBGP filter the routes advertised
to the specified peer or peer group.
Use the undo peer as-path-acl export command to disable MBGP filter the routes
advertise to the specified peer or peer group.
By default, MBGP does not filter the received or advertised routes.
Example
# Enable MBGP to filter routes advertised to the specified BGP peer or peer group
based on the specified AS path list.
[H3C-bgp] peer test as-number 100
[H3C-bgp] ipv4-family multicast
[H3C-bgp-af-mul] peer test enable
[H3C-bgp-af-mul] peer test as-path-acl 3 export
5-12
Command Manual – Multicast Protocol Chapter 5 MBGP Multicast Extension Configuration
Comware V3 Commands
Syntax
View
Parameter
Description
Use the peer enable command to enable the multicast peer or peer group.
Use the undo peer enable command to disable the multicast peer or peer group.
By default, the multicast peer (or peer group) is disabled.
Only after the peer (peer group) is enabled, can it establish connection with the
multicast peer.
Example
Syntax
View
Parameter
5-13
Command Manual – Multicast Protocol Chapter 5 MBGP Multicast Extension Configuration
Comware V3 Commands
Description
Use the peer filter-policy import command to have MBGP filter the routes received
from the specified peer or peer group based on the specified ACL.
Use the undo peer filter-policy import command to disable MBGP to filter the
received routes.
Use the peer filter-policy export command to have MBGP filter the routes advertised
to the specified peer or peer group based on the specified ACL.
Use the undo peer filter-policy export command to disable MBGP to filter the
advertised routes.
By default, MBGP does no filter the received or advertised routes.
Related command: peer as-path-acl.
Example
Syntax
View
Parameter
5-14
Command Manual – Multicast Protocol Chapter 5 MBGP Multicast Extension Configuration
Comware V3 Commands
export: Applies the filter policy to the routes advertised by the specified peer or peer
group.
Description
Use the peer ip-prefix import command to have MBGP filter the routes received from
the specified peer or peer group based on the specified address prefix list.
Use the undo peer ip-prefix import command to disable MBGP to filter the received
routes.
Use the peer ip-prefix export command to have MBGP filter the routes advertised to
the specified peer or peer group based on the specified address prefix list.
Use the undo peer ip-prefix export command to disable MBGP to filter the advertised
routes.
By default, MBGP does no filter the received or advertised routes.
Example
# Enable MBGP to filter the routes received from the specified peer group based on the
specified address prefix list.
[H3C-bgp-af-mul] peer group1 ip-prefix list1 import
Syntax
View
Parameter
Description
Use the peer next-hop-local command to remove the processing of the next hop in
routes which BGP will advertise to the peer (group) and set the local address as the
next hop.
Use the undo peer next-hop-local command to remove the existing setting.
Example
# Set the local address as the next hop when advertising routes to peer group named
test.
5-15
Command Manual – Multicast Protocol Chapter 5 MBGP Multicast Extension Configuration
Comware V3 Commands
Syntax
View
Parameter
Description
Use the peer public-as-only command to configure only to carry public AS number
rather than private AS number when BGP sends update packets.
Use the undo peer public-as-only command to configure to carry private AS number
when BGP sends update packets.
By default, the private AS number is carried when BGP sends update packets.
Generally, BGP sends update packets with the AS number (which can be either the
public AS number or private AS number). To enable some external routers to ignore the
private AS number when sending update packets to configure not to carry the private
AS number when BGP sends update packets.
Example
# Configure not to carry private AS number when BGP sends update packets to peer
group named test.
[H3C-bgp-af-mul] peer test public-as-only
Syntax
View
Parameter
5-16
Command Manual – Multicast Protocol Chapter 5 MBGP Multicast Extension Configuration
Comware V3 Commands
Description
Use the peer reflect-client command to configure a peer (group) as a client of the
route reflector.
Use the undo peer reflect-client command to remove the existing configuration.
By default, there is no route reflector in the autonomous system.
Example
Syntax
View
Parameter
Description
Use the peer route-policy import command to have MBGP apply the specified routing
policy to the routes received from the specified peer or peer group.
Use the undo peer route-policy import command to remove the applied routing
policy.
Use the peer route-policy export command to have MBGP apply the specified routing
policy to the routes advertised to the specified peer or peer group.
Use the undo peer ip-prefix export command to disable MBGP to remove the applied
routing policy.
By default, no routing policy is applied to the received or advertised routes.
5-17
Command Manual – Multicast Protocol Chapter 5 MBGP Multicast Extension Configuration
Comware V3 Commands
Example
# Apply policy 1 to the routes received from the peer group named test.
[H3C-bgp-af-mul] peer test route-policy policy1 import
5-18
Command Manual – Multicast Protocol Chapter 6 Multicast Static Route Configuration
Comware V3 Commands
Syntax
View
System view
Parameter
None
Description
Use the delete rpf-route-static all command to delete all the static multicast routes.
When using this command, the system will prompt you to acknowledge. All static
multicast routes will be deleted after your acknowledgement.
Related command: ip rpf-route-static and display multicast routing-table static.
Example
Syntax
View
Any view
Parameter
6-1
Command Manual – Multicast Protocol Chapter 6 Multicast Static Route Configuration
Comware V3 Commands
Description
Use the display multicast routing-table static command to view the active multicast
static routes.
If no multicast source address is specified, all active multicast static routes will be
displayed.
Related command: display multicast routing-table static config.
Example
# Display the multicast static routes that exactly match the address 10.10.0.0/16.
<H3C> display multicast routing-table static 10.10.0.0 255.255.0.0
Syntax
View
Any view
Parameter
Description
Use the display multicast routing-table static config command to view multicast
static routes configured.
If no multicast source address is specified, all configured multicast static routes will be
displayed.
Related command: display multicast routing-table static.
Example
6-2
Command Manual – Multicast Protocol Chapter 6 Multicast Static Route Configuration
Comware V3 Commands
# Display the multicast static routes that exactly match the address 1.0.0.0/8.
<H3C> display multicast routing-table static config 1.0.0.0 255.0.0.0
6.1.4 ip rpf-longest-match
Syntax
ip rpf-longest-match
undo ip rpf-longest-match
View
System view
Parameter
None
Description
Example
# Set the longest-match rule to be the multicast RPF route selecting policy.
[H3C] ip rpf-longest-match
6.1.5 ip rpf-route-static
Syntax
View
System view
Parameter
6-3
Command Manual – Multicast Protocol Chapter 6 Multicast Static Route Configuration
Comware V3 Commands
protocol: Indicates that matched routes must appear in the specified unicast routing
protocol. Protocol can be such unicast routing protocols as bgp, isis, ospf, rip and static.
route-policy: Match rule for static multicast routes.
rpf-nbr: IP address of RPF neighbor router.
interface-type interface-number: Specifies the interface connected to the neighbor
running RPF.
preference: Route preference, ranging from 1 to 255. By default, the value is 1.
Description
Example
6-4
MPLS
Command Manual – MPLS
Comware V3 Table of Contents
Table of Contents
i
Command Manual – MPLS
Comware V3 Table of Contents
ii
Command Manual – MPLS
Comware V3 Table of Contents
iii
Command Manual – MPLS
Comware V3 Chapter 1 MPLS Basic Configuration Commands
Syntax
debugging mpls lspm { agent | all | event | ftn | interface | packet | policy | process
| vpn }
undo debugging mpls lspm { agent | all | event | ftn | interface | packet | policy |
process | vpn }
View
User view
Parameter
Description
Use the debugging mpls lspm command to enable various LSP debugging.
Use the undo debugging mpls lspm command to disable the corresponding
debugging.
By default, all debugging is disabled.
This command is used to the debug MPLS LSPM. As debugging will affect the
performance of the router, you are recommended to use the command with caution.
Example
1-1
Command Manual – MPLS
Comware V3 Chapter 1 MPLS Basic Configuration Commands
Syntax
View
Any view
Parameter
None
Description
Use the display mpls interface command to view all MPLS-enabled interfaces.
Related command: display mpls lsp, display mpls statistics, display static-lsp.
Example
Syntax
View
Any view
Parameter
Description
Example
1-2
Command Manual – MPLS
Comware V3 Chapter 1 MPLS Basic Configuration Commands
Syntax
View
Any view
Parameter
Description
Use the display mpls static-lsp command to view the information of all or one static
LSP(s).
Related command: display mpls interface, display mpls lsp, and display mpls
statistics.
Example
Syntax
View
Any view
Parameter
1-3
Command Manual – MPLS
Comware V3 Chapter 1 MPLS Basic Configuration Commands
Description
Use the display mpls statistics command to view statistics of all or one LSP(s) and
LSP statistics on all or one interface(s).
Specifically, the displayed information includes the numbers of octets, packets, errors
and discarded packets processed on each LSP ingress and egress, as well as the
numbers of octets, packets, errors and discarded packets received and transmitted on
each MPLS-enabled interface.
Note:
Execution of the display mpls statistics command only displays LSP statistics of
public networks. For those packets that only carry private network labels, this
command does not work.
Related command: display mpls interface, display mpls lsp, and display mpls
static-lsp.
Example
1-4
Command Manual – MPLS
Comware V3 Chapter 1 MPLS Basic Configuration Commands
1.1.6 lsp-trigger
Syntax
View
MPLS view
Parameter
1-5
Command Manual – MPLS
Comware V3 Chapter 1 MPLS Basic Configuration Commands
Description
Note:
If no topology-triggered policy is configured, LSPs can be triggered at all host routes
with 32-bit masks.
If you import an IP-prefix rule without contents, LSPs can be triggered at all routes
according to the IP-prefix usage convention in Comware.
Example
Syntax
mtu label-including
undo mtu label-including
View
MPLS view
Parameter
None
Description
Use the mtu label-including command to configure to include MPLS label length in
outgoing interface MTU calculation.
Use the undo mtu label-including command to restore the default setting.
By default, MPLS label length is not included in outgoing interface MTU calculation.
Example
1-6
Command Manual – MPLS
Comware V3 Chapter 1 MPLS Basic Configuration Commands
1.1.8 mpls
Syntax
mpls
undo mpls
View
System view, routing protocol view, interface view, virtual interface view
Parameter
None
Description
Use the mpls command in system view to enable MPLS globally and enter MPLS view.
Use the undo mpls command in system view to disable MPLS globally.
Use the mpls command in interface view to enable MPLS on the interface.
Use the undo mpls command in interface view to disable MPLS on the interface.
By default, MPLS is not enabled.
Before you can enter MPLS view, you must configure the mpls lsr-id command first. In
addition, you can configure other MPLS commands only after you enter MPLS view.
Related command: mpls enable | disable.
Example
Syntax
1-7
Command Manual – MPLS
Comware V3 Chapter 1 MPLS Basic Configuration Commands
View
System view
Parameter
ip-address: LSR ID, with the format like IP address, used to identify an LSR.
Description
Example
Syntax
View
User view
Parameter
1-8
Command Manual – MPLS
Comware V3 Chapter 1 MPLS Basic Configuration Commands
Description
Example
Syntax
View
System view
Parameter
None
Description
Use the snmp-agent trap enable ldp command to enable Trap function in MPLS LDP
creation.
Use the undo snmp-agent trap enable ldp command to disable Trap function in
MPLS LDP creation.
By default, TRAP function is not enabled during MPLS LDP creation.
Example
Syntax
1-9
Command Manual – MPLS
Comware V3 Chapter 1 MPLS Basic Configuration Commands
View
System view
Parameter
None
Description
Use the snmp-agent trap enable lsp command to enable Trap function in MPLS LSP
creation.
Use the undo snmp-agent trap enable lsp command to disable Trap function in
MPLS LSP creation.
By default, TRAP function is disabled during MPLS LSP creation.
Example
Syntax
View
MPLS view
Parameter
Description
Use the static-lsp egress command to configure a static LSP for an egress LSR.
Use the undo static-lsp egress command to delete an LSP for an egress LSR.
Related command: static-lsp ingress, debugging mpls.
1-10
Command Manual – MPLS
Comware V3 Chapter 1 MPLS Basic Configuration Commands
Example
Syntax
View
MPLS view
Parameter
Description
Use the static-lsp ingress command to configure a static LSP for the ingress LSR.
Use the undo static-lsp ingress command to delete an LSP for the ingress LSR.
In addition to configuring a static LSP for the ingress LSR, you can set precedence
value and metric value for the LSP with this command.
Related command: static-lsp egress, static-lsp transit, debugging mpls.
Example
# Configure a static LSP for the ingress LSR heading for the destination address
202.25.38.1.
[H3C-mpls] static-lsp ingress citya-cityb destination 202.25.38.1 24 nexthop
202.55.25.33 out-label 237
1-11
Command Manual – MPLS
Comware V3 Chapter 1 MPLS Basic Configuration Commands
Syntax
View
MPLS view
Parameter
Description
Use the static-lsp transit command to configure a static LSP for a transit LSR.
Use the undo static-lsp transit command to delete an LSP for a transit LSR.
Related command: static-lsp egress, static-lsp ingress.
Example
# Configure a static LSP for the serial interface Serial3/0/0 on a transit LSR, with an
inbound label of 123 and an outbound label of 253.
[H3C-mpls] static-lsp transit citya-cityb incoming-interface serial3/0/0
in-label 123 nexthop 202.34.114.7 out-label 253
Syntax
View
MPLS view
1-12
Command Manual – MPLS
Comware V3 Chapter 1 MPLS Basic Configuration Commands
Parameter
None
Description
Use the ttl expiration command to configure the router to forward ICMP responses by
local IP routing when the MPLS TTL expires.
Use the undo ttl expiration command to disable the function.
For a one-tier MPLS packet with TTL expired, its ICMP response is forwarded by local
IP routing by default.
You are recommended to configure the undo ttl expiration command on the ASBRs or
the SPEs on an HoVPN network. This ensures that you can get the correct forwarding
path of the public-network routers when tracerting to another device on the VPN.
Use the undo mpls command to clear all the configurations related to the ttl
expiration command.
Related command: ttl propagate.
Example
# Send back an ICMP packet along the LSP if the TTL of an MPLS packet expires.
[H3C-mpls] undo ttl expiration pop
Syntax
View
MPLS view
Parameter
public: Configures to apply TTL duplication to the packets on the public network.
vpn: Configures to apply TTL duplication to the VPN packets.
Description
1-13
Command Manual – MPLS
Comware V3 Chapter 1 MPLS Basic Configuration Commands
Note:
The ttl propagate command is only available with the NE16E, NE08E, and NE05.
Caution:
The configuration of TTL duplication must be the same on all the PEs. If otherwise, the
results of traceroutes cannot reflect the real network conditions.
Example
Syntax
View
User view
Parameter
1-14
Command Manual – MPLS
Comware V3 Chapter 1 MPLS Basic Configuration Commands
Description
Example
Syntax
View
Any view
Parameter
None
Description
Use the display mpls ldp command to view LDP and LSR information.
Related command: mpls ldp, mpls ldp hops-count, mpls ldp loop-detection, mpls
ldp path-vectors.
Example
Syntax
View
Any view
1-15
Command Manual – MPLS
Comware V3 Chapter 1 MPLS Basic Configuration Commands
Parameter
None
Description
Use the display mpls ldp buffer-info command to view the buffer information of LDP.
Example
Syntax
View
Any view
Parameter
None
1-16
Command Manual – MPLS
Comware V3 Chapter 1 MPLS Basic Configuration Commands
Description
Use the display mpls ldp interface command to view the information of an
LDP-enabled interface.
Related command: mpls ldp enable, display mpls ldp session.
Example
Syntax
View
Any view
Parameter
None
Description
Use the display mpls ldp lsp command to view relevant LSP information created via
LDP.
Related command: display mpls lsp.
Example
# Display LSP.
[H3C-Ethernet3/0/0] display mpls ldp lsp
Syntax
View
Any view
Parameter
None
1-17
Command Manual – MPLS
Comware V3 Chapter 1 MPLS Basic Configuration Commands
Description
Use the display mpls ldp peer command to view peer information.
Example
Syntax
View
Any view
Parameter
None
Description
Use the display mpls ldp remote command to view the configured remote peer
information.
Related command: mpls ldp remote and remote-peer.
Example
Syntax
View
Any view
Parameter
None
Description
Use the display mpls ldp session command to display the session between peer
entities.
1-18
Command Manual – MPLS
Comware V3 Chapter 1 MPLS Basic Configuration Commands
Example
(A) in “Ethernet1/0/1.3(A)” displayed above indicates that the interface is the main
interface.
Syntax
View
MPLS view
Parameter
1-19
Command Manual – MPLS
Comware V3 Chapter 1 MPLS Basic Configuration Commands
Note:
Label value 0 stands for IPv4 Explicit NULL Label, which is valid only at the bottom of
label stack. That is, the label stack must be popped and forwarded as the IPv4 header.
Label value 1 stands for Router Alert Label, which is valid except at the bottom of label
stack. When receiving messages with label value 1 at the top of the label stack, the
system forwards them into local software module for further processing. If a lower-layer
label is to be forwarded, it must be put with Router Alert Label.
Label value 2 stands for IPv6 Explicit NULL Label, which is valid only at the bottom of
label stack. That is, the label stack must be popped and forwarded as the IPv6 header.
Label value 3 stands for Implicit NULL Label, which can be distributed and forwarded,
but cannot be placed in encapsulation. When LSR switches top-layer labels, it only
needs to pop the labels, but cannot replace them when using label 3 to replace the
original label.
Labels 4 to 15 are reserved.
Description
Use the mpls label advertise command to specify at the egress the type of the label to
be distributed to the penultimate hop.
Use the undo mpls label advertise command to restore the default.
When the keyword explicit-null is selected, the m-layer label of a packet with m-layer
label parameter is popped at the penultimate LSR of the LSP, instead of at the egress
LSR. This can lower the stack operation demands at egress node and somewhat
mitigate the load on the egress node.
By default, the implicit label is assigned to the penultimate hop.
If the explicit null label is assigned to the penultimate hop, it can only reside at the
bottom of the label stack.
Example
Syntax
mpls ldp
undo mpls ldp
1-20
Command Manual – MPLS
Comware V3 Chapter 1 MPLS Basic Configuration Commands
View
System view
Parameter
None
Description
Example
# Enable LDP.
[H3C] mpls ldp
Syntax
View
Interface view
Parameter
None
Description
Use the mpls ldp enable command to enable LDP on the interface.
Use the undo mpls ldp enable command to disable LDP on an interface.
By default, LDP is disabled on the interface.
To enable an interface, you must enable LDP first. After LDP is enabled on an interface,
peer discovery and session creation starts.
Example
1-21
Command Manual – MPLS
Comware V3 Chapter 1 MPLS Basic Configuration Commands
Syntax
View
System view
Parameter
Description
Use the mpls ldp hops-count command to set the maximum hops of loop detection.
Use the undo mpls ldp hops-count command to restore the default value.
By default, the maximum hops of loop detection are 32.
This command should be configured before LDP is enabled on any interface. Its value,
which depends on actual networking situation, decides the loop detection speed during
LSP creation
Related command: mpls ldp loop-detection and mpls ldp path-vector.
Example
# Set the maximum hops of loop detection to its default value, that is, 32.
[H3C] undo mpls ldp hops-count
Syntax
View
System view
Parameter
None
1-22
Command Manual – MPLS
Comware V3 Chapter 1 MPLS Basic Configuration Commands
Description
Example
Syntax
View
Parameter
Description
Use the mpls ldp password command to configure LDP authentication mode.
Use the undo mpls ldp password command to delete the configuration.
Example
# Configure the LDP authentication mode to be in plain text, with a password of 123.
[H3C-Ethernet0/0/0.1] mpls ldp password simple 123
Syntax
1-23
Command Manual – MPLS
Comware V3 Chapter 1 MPLS Basic Configuration Commands
View
System view
Parameter
Description
Use the mpls ldp path-vectors command to set the maximum value of path vector.
Use the undo mpls ldp path-vectors command to restore the default maximum value
of path vector.
By default, pv-number is 32.
This command should be configured before LDP is enabled on any interface. Its value,
which depends on actual networking situation, decides the loop detection speed in LSP
creation.
Related command: mpls ldp loop-detection and mps ldp hops-count.
Example
Syntax
View
Parameter
Index: Index of remote peer entity, used to identify an entity. It ranges from 0 to 99.
Description
Use the mpls ldp remote-peer command to create a remote-peer entity and enter
remote-peer view.
Use the undo mpls ldp remote-peer command to delete a remote-peer entity.
1-24
Command Manual – MPLS
Comware V3 Chapter 1 MPLS Basic Configuration Commands
You can use this command to create a remote-peer and accordingly create remote
session.
Related command: remote-peer.
Example
# Create a remote-peer.
[H3C] mpls ldp remote-peer 22
[H3C-mpls-remote22]
# Delete a remote-peer.
[H3C-mpls-remote22] undo mpls ldp remote-peer 22
[H3C]
Syntax
View
Interface view
Parameter
Description
Example
Syntax
1-25
Command Manual – MPLS
Comware V3 Chapter 1 MPLS Basic Configuration Commands
View
Parameter
hello hello-holdtime: Specifies timeout time of hello hold timer, in the range 6 to 65535
seconds. It defaults to 15 seconds.
session-hold session-holdtime: Specifies timeout time of session hold timer, in the
range 1 to 65535 seconds. It defaults to 60 seconds.
Description
Use the mpls ldp timer command to set the duration of a Hello hold timer or session
hold timer.
Use the undo mpls ldp timer command to restore the default value.
Timeout of Hello hold timer means that the adjacency relation with the peer is down,
while timeout of session hold timer means that the session relation with the peer is
down.
In general, the transmission interval of hello/keepalive packets is one-third of the
timeout time of hello/session hold timer.
Normally, the default value can be directly adopted. In special cases, you need to make
modification according to requirements. Please note that the modification of hello
parameter may cause reestablishment of the original session as well as deletion and
reestablishment of the LSP established based on this session
Related command: mpls ldp, mpls ldp enable.
Example
Syntax
View
Interface view
Parameter
interface: Sets the IP address of the current interface as the transport address.
1-26
Command Manual – MPLS
Comware V3 Chapter 1 MPLS Basic Configuration Commands
Description
Use the mpls ldp transport-ip command to configure an LDP session transport
address.
Use the undo mpls ldp transport-ip command to restore the default LDP transport
address.
By default, the transport address is the LSR ID. Normally, LSR ID is an address of a
certain loopback interface and only when its peer has a route to this loopback interface
address, can the session be established successfully.
For a remote-peer, the configuration of transport address is not supported and its
transport address is fixed on the LSR ID.
In the case of local peer, the address of the local interface or the Router ID of LSR can
be adopted as its transport address.
When MPLS LDP is enabled on multiple directly connected links, these links must be
configured with the same transport address. It is recommended that you take the
default LSR-ID as the transport address; otherwise, the LDP session may not be well
established.
Example
1.2.20 remote-ip
Syntax
remote-ip ip-address
View
Remote-peer view
Parameter
Description
Use the remote-ip command to configure a remote IP address. The address should be
the LSR ID of the remote LSR. As remote peers adopt LSR ID as their transport
1-27
Command Manual – MPLS
Comware V3 Chapter 1 MPLS Basic Configuration Commands
addresses, the last two remote peers use their LSR ID as their transport addresses for
creating TCP connection.
remote-peer command is mainly used for extension discovery mode to establish
session with peers that are not directly connected with the links.
Related command: mpls ldp remote-peer.
Example
1-28
Command Manual – MPLS
Comware V3 Chapter 2 BGP/MPLS VPN Configuration Commands
Syntax
View
Route-policy view
Parameter
vpn-name: Name of the configured VPN instance. At most, 6 VPN names can be
configured.
Description
Example
Syntax
apply mpls-label
undo apply mpls-label
View
Route-policy view
Parameter
None
2-1
Command Manual – MPLS
Comware V3 Chapter 2 BGP/MPLS VPN Configuration Commands
Description
Use the apply mpls-label command to assign MPLS labels for public network routes
that match route-policy filter conditions.
Use the undo apply mpls-label command to remove the configuration.
By default, no label is assigned for public network routes.
Related command: if-match mpls-label.
Example
# Define an apply clause to assign labels for public network routes that match
route-policy filter conditions.
[H3C-route-policy] apply mpls-label
2.1.3 description
Syntax
description vpn-instance-description
undo description
View
Vpn-instance view
Parameter
Description
Use the description command to configure description information for a specified VPN
instance.
Use the undo description command to remove the description of a VPN instance.
Example
Syntax
View
Any view
2-2
Command Manual – MPLS
Comware V3 Chapter 2 BGP/MPLS VPN Configuration Commands
Parameter
None
Description
Use the display bgp routing label command to view routing information and label
information in the BGP routing table.
For common IPv4 routes without labels, “Null” is displayed.
When you view the BGP routing information by using the display bgp routing address
[ mask ] command, you can see the label information if the routes have labels.
Example
Syntax
2-3
Command Manual – MPLS
Comware V3 Chapter 2 BGP/MPLS VPN Configuration Commands
View
Any view
Parameter
all: Displays all VPNv4 information, including group, network, peer, and routing-table.
route-distinguisher rd-value: Displays the network layer reachable information (NLRI)
that matches the route distinguisher (RD).
vpn-instance vpn-instance-name: Displays NLRI associated with the specified
vpn-instance.
group: Displays the information about peer groups.
group-name: Peer group name of the peer.
network: Displays the networks advertised by BGP.
peer: Displays information about the peer.
ip-address1: IP address of the peer.
verbose: Complete information on the peer.
routing: Displays BGP routes.
ip-address2: Displays the route to the specified destination address.
statistic: Displays route statistics.
label: Displays the route information of the specified label.
as-path-acl as-path-acl: Displays the routing information of the specified AS path.
cidr: Displays the route information of the classless domains.
community: Displays the route information of the specified community.
community-number: Specifies a community by its number.
no-advertise: Displays routes that are not advertised to any peer.
no-export: Displays routes advertised to the sub-ASs but not outside the AS.
no-export-subconfed: Displays routes that are not advertised outside the local AS.
whole-match: Displays routes that are exact matches of the specified community.
different-origin-as: Displays routes that are not originated from the local AS.
advertised: Displays all the routes advertised to the peer.
received: Displays all the routes received from the peer.
regular-expression text: Displays the routes that match the regular expression.
Description
Use the display bgp vpnv4 command to view VPNv4 information in BGP database.
2-4
Command Manual – MPLS
Comware V3 Chapter 2 BGP/MPLS VPN Configuration Commands
Example
Syntax
View
Any view
Parameter
Description
Example
2-5
Command Manual – MPLS
Comware V3 Chapter 2 BGP/MPLS VPN Configuration Commands
Syntax
View
Any view
Parameter
Description
Example
Syntax
View
Any view
Parameter
2-6
Command Manual – MPLS
Comware V3 Chapter 2 BGP/MPLS VPN Configuration Commands
Description
Use the display mpls l3vpn-lsp command to view the information of vpn-instance of
MPLS L3VPN LSPs.
Example
Syntax
View
Any view
Parameter
None
Description
Use the display ospf sham-link command to view the information of sham links.
Related command: sham-link.
Example
2-7
Command Manual – MPLS
Comware V3 Chapter 2 BGP/MPLS VPN Configuration Commands
2.1.10 domain-id
Syntax
View
Parameter
Description
Note:
The specified domain ID will not take effect until the reset ospf command is executed.
Example
2-8
Command Manual – MPLS
Comware V3 Chapter 2 BGP/MPLS VPN Configuration Commands
Syntax
if-match mpls-label
undo if-match mpls-label
View
Route-policy view
Parameter
None
Description
Use the if-match mpls-label command to configure to match public network routes
with MPLS labels only.
Use the undo if-match mpls-label command to remove the match rules.
Related command: apply mpls-label.
Example
Syntax
View
Parameter
2-9
Command Manual – MPLS
Comware V3 Chapter 2 BGP/MPLS VPN Configuration Commands
Description
Caution:
Example
Syntax
View
Parameter
Description
2-10
Command Manual – MPLS
Comware V3 Chapter 2 BGP/MPLS VPN Configuration Commands
The IP address of the interface will be removed after you execute this command on it,
so you need to reconfigure the IP address for the interface.
Example
Syntax
View
System view
Parameter
2-11
Command Manual – MPLS
Comware V3 Chapter 2 BGP/MPLS VPN Configuration Commands
Description
Example
# Configure a static route with destination address 100.1.1.1 and next hop address
1.1.1.2.
[H3C] ip route-static vpn-instance vpn1 100.1.1.1 16 vpn-instance vpn1 1.1.1.2
2.1.15 ip vpn-instance
Syntax
ip vpn-instance vpn-instance-name
undo ip vpn-instance vpn-instance-name
View
Parameter
Description
Example
2-12
Command Manual – MPLS
Comware V3 Chapter 2 BGP/MPLS VPN Configuration Commands
2.1.16 ipv4-family
Syntax
View
BGP view
Parameter
Description
Use the ipv4-family multicast command to enter MBGP multicast address family
view.
Use the undo ipv4-family multicast command to delete the configuration of the
specified multicast address family view.
Use the ipv4-family vpn-instance command to enter MBGP vpn-instance address
family view.
Use the undo ipv4-family vpn-instance command to delete the association of
vpn-instance with MBGP address family, and return to BGP unicast view.
Use the ipv4-family vpnv4 command to enter MBGP VPNv4 address family view.
Use the undo ipv4-family vpnv4 command to delete the configuration of MBGP
VPNv4 address family view.
By default, unicast address is used when VPNv4 address family is configured.
By default, unicast address is used when MBGP address family is configured.
Use this command to enter address family view and configure parameters related to
BGP address family in this view.
Related command: peer enable.
Example
# Associate the specified vpn-instance with MBGP address family to enter MBGP
vpn-instance address family view. You must first configure vpn-instance before you
perform that configuration.
2-13
Command Manual – MPLS
Comware V3 Chapter 2 BGP/MPLS VPN Configuration Commands
Syntax
View
System view
Parameter
Description
2-14
Command Manual – MPLS
Comware V3 Chapter 2 BGP/MPLS VPN Configuration Commands
If you enable an OSPF process without specify router ID, and the process is to be
bound to a VPN instance, the VPN instance should have an interface that is configured
with an IP address.
If you want to bind a process to a VPN instance, you must specify the VPN instance
name.
One VPN instance may include several processes. For example, for VPN instance 1 to
configure the commands ospf 1 vpn-instance vpn1, ospf 2 vpn-instance vpn1, and
ospf 3 vpn-instance vpn1. Accordingly, VPN instance 1 will include processes 1, 2,
and 3.
One process belongs to one instance only however. If you have configured ospf 1
vpn-instance vpn1, you cannot configure ospf 1 vpn-instance vpn2. Otherwise, the
system prompts: “Wrong configuration. Process 1 has been bound to vpn-instance
vpn-instance 1”. If you configure ospf 1 first and then ospf 1 vpn-instance vpn1, the
system prompts: “Wrong configuration. Process 1 has been running in public domain”.
If you configure ospf 1 vpn-instance vpn1 first and then ospf 1, the system enters
ospf 1 vpn-instance vpn1 mode. That is, the commands ospf 1 and ospf 1
vpn-instance vpn1 are equivalent.
When an OSPF process is bound to a VPN instance, the default OSPF router is PE
router. After executing the display ospf process-id brief command, you will view the
information: “PE router, connected to VPN backbone”.
Caution:
z A router can run no more than 1024 OSPF processes, with up to 10 processes
enabled in each VPN instance.
z If you bind an OSPF process to a nonexistent VPN instance, the configuration for
the command fails. The system prompts: “Specified vpn instance not configured”.
z When a VPN instance is deleted, all the related OSPF processes will be deleted.
For example, VPN instance vpn1 includes OSPF processes 1, 2 and 3. If VPN
instance vpn1 is deleted, the OSPF processes 1, 2 and 3 will all be deleted at the
same time.
Example
2-15
Command Manual – MPLS
Comware V3 Chapter 2 BGP/MPLS VPN Configuration Commands
# Enable OSPF process with process ID 100, specify its route ID to 2.2.2.2, and bind it
to VPN instance vpn1.
[H3C] ospf 100 router-id 2.2.2.2 vpn-instance vpn1
[H3C-ospf-100]
Syntax
View
Parameter
Description
Example
Syntax
2-16
Command Manual – MPLS
Comware V3 Chapter 2 BGP/MPLS VPN Configuration Commands
View
BGP view
Parameter
Description
Example
# Enable the capabilities of IBGP and EBGP peer groups to process IPv4 routes with
labels.
[H3C-bgp] group ibgp internal
[H3C-bgp] peer ibgp label-route-capability
[H3C-bgp] group ebgp external
[H3C-bgp] peer ebgp label-route-capability
Syntax
View
BGP view, BGP-VPNv4 subaddress family view, BGP VPN-Instance view, BGP-IPv4
multicast subaddress family view
Parameter
Description
Use the peer next-hop-invariable command to configure the invariable next hop when
sending routes to EBGP peers.
Use the undo peer next-hop-invariable command to restore the default configuration.
By default, BGP Speaker varies the next hop to itself when sending routes to EBGP
peers.
2-17
Command Manual – MPLS
Comware V3 Chapter 2 BGP/MPLS VPN Configuration Commands
Example
# Configure the invariable next hop when sending VPNv4 routes to EBGP peers.
[H3C-bgp] group ebgp external
[H3C-bgp] ipv4-family vpnv4
[H3C-bgp-af-vpn] peer ebgp enable
[H3C-bgp-af-vpn] peer ebgp next-hop-invariable
Syntax
View
BGP view
Parameter
Description
Use the peer upe command to configure BGP peer as the UPE of hierarchical
BGP/MPLS VPN.
Use the undo peer upe command to delete this configuration.
Example
Syntax
policy vpn-target
undo policy vpn-target
2-18
Command Manual – MPLS
Comware V3 Chapter 2 BGP/MPLS VPN Configuration Commands
View
Parameter
None
Description
Use the policy vpn-target command to filter the received routing information
according to the VPN-target extended community attributes.
Use the undo policy vpn-target command to remove the filtering.
By default, the received routing information is filtered according to the VPN-target
extended community attributes.
Example
2.1.23 route-distinguisher
Syntax
route-distinguisher route-distinguisher
View
Parameter
Description
2-19
Command Manual – MPLS
Comware V3 Chapter 2 BGP/MPLS VPN Configuration Commands
16-bit ASN (can be 0 here): a 32-bit number defined by user, for example, 101:3.
32-bit IP address (can be 0.0.0.0 here): a 16-bit number defined by user, for example,
192.168.122.15:1.
Example
2.1.24 route-tag
Syntax
route-tag tag-number
undo route-tag
View
Parameter
Description
Use the route-tag command to specify a tag value to identify VPN import route.
Use the undo route-tag command to restore the default value.
If a VPN site is linked to multiple PEs, when a route learned from MPLS/BGP is
advertised by a PE router via its type-5 or type-7 LSA to the VPN site, the route may be
received by another PE router. This will result in routing loop. To avoid routing loop, you
should configure route-tag and you are recommended to configure the same route-tag
for the PEs in the same VPN domain. The route-tag is included in the type-5/-7 LSA. It
is not transmitted in the extended community attributes of BGP, and thus it is limited in
the local area. Therefore, it can only be configured and function on the PE router, which
receives BGP routes and generates OSPF LSA.
Configure route-tag in OSPF protocol view. Different processes can be configured with
a same route-tag. You can configure the same route-tag using different commands, but
they are different in priority levels.
1) Those configured with the import-route command are of the highest priority level.
2-20
Command Manual – MPLS
Comware V3 Chapter 2 BGP/MPLS VPN Configuration Commands
2) Those configured with the route-tag command are in the second place in terms of
priority level.
3) Those configure with the default tag command are of the lowest priority level.
If the route-tag included in the type-5/-7 LSA is identical with its existing tag, the LSA
received will be neglected in route calculation.
Caution:
To validate the configured route-tag, you must execute the reset ospf command.
Example
Syntax
View
Parameter
threshold-value: Threshold of the maximum route count. When the number of routes
reaches this threshold, no route can be added. It is in the range 1 to 1000.
warn-threshold: Warn threshold percentage. When the number of routes exceeds the
threshold of the maximum route count times the warn threshold, alarm is generated.
The warn threshold is in the range 1 to 100.
syslog-alert: Allows a route to be added when the number of routes reaches the
threshold of the maximum route count. In this case, a SYSLOG error message is sent.
Description
Use the routing-table limit command to limit the route maximum in a vpn-instance, to
avoid too many routes in the ingress interface of the PE router.
2-21
Command Manual – MPLS
Comware V3 Chapter 2 BGP/MPLS VPN Configuration Commands
Example
2.1.26 sham-link
Syntax
View
Parameter
2-22
Command Manual – MPLS
Comware V3 Chapter 2 BGP/MPLS VPN Configuration Commands
Description
2-23
Command Manual – MPLS
Comware V3 Chapter 2 BGP/MPLS VPN Configuration Commands
Caution:
z The source and destination addresses of a sham link are both loopback interface
addresses with 32-bit mask, which must be bound to a VPN instance and imported
into BGP through a direct-connect route.
z The source and destination addresses of a sham link cannot be the same.
z The same sham link cannot be configured for different OSPF processes.
z 50 sham links can be configured for an OSPF process at most.
Example
# Configure a sham link, with source address 1.1.1.1 and destination address 2.2.2.2.
[H3C-ospf-100-area-0.0.0.1] sham-link 1.1.1.1 2.2.2.2 cost 100
Syntax
vpn-instance-capability simple
undo vpn-instance-capability
View
Parameter
None
Description
2-24
Command Manual – MPLS
Comware V3 Chapter 2 BGP/MPLS VPN Configuration Commands
After the display ospf brief command is executed successfully, the system prompts
the information: “Multi-VPN-Instance enable on CE router.”
Caution:
OSPF processes will set up all peers again after this command is executed.
Example
2.1.28 vpn-target
Syntax
View
Parameter
2-25
Command Manual – MPLS
Comware V3 Chapter 2 BGP/MPLS VPN Configuration Commands
Description
Example
2-26
Command Manual – MPLS
Comware V3 Chapter 3 MPLS L2VPN Configuration Commands
Syntax
View
System view
Parameter
Description
Use the ccc interface transmit-lsp receive-lsp command to create a remote CCC
connection.
Use the undo ccc command to delete a remote CCC connection.
You can delete a CCC connection in interface view or system view.
Related command: ccc interface out-interface.
3-1
Command Manual – MPLS
Comware V3 Chapter 3 MPLS L2VPN Configuration Commands
Example
# Create a remote CCC connection, with the name of clink, transmit-LSP of tlsp, and
receive-LSP of rlsp, adopting one-to-one VCC encapsulation mode for ATM cell
transparent transmission.
<H3C> system-view
[H3C] interface atm 1/0/0
[H3C-Atm1/0/0] atm-ctt
[H3C-Atm1/0/0] pvc 1/32
[H3C-atm-pvc-Atm1/0/0-1/32] quit
[H3C-Atm1/0/0] quit
[H3C] ccc clink interface atm1/0/0 transmit-lsp tlsp receive-lsp rlsp atm-cell
atm-1to1-vcc
Syntax
View
System view
Parameter
Description
Use the ccc interface out-interface command to create a local CCC connection.
Use the undo ccc command to delete the local CCC connection.
The supported interfaces include serial, asynchronous serial, ATM, Ethernet, VE, and
GE interfaces, as well as ATM, Ethernet, and GE sub-interfaces.
For a serial, asynchronous serial, Ethernet, GE, or VE interface, CCC encapsulation
defaults to link layer encapsulation and the command does not have any parameter in
this case. This also applies to the CCC encapsulation on an Ethernet sub-interface or
GE sub-interface. For an ATM sub-interface, CCC encapsulation defaults to ATM AAL5.
In this case, the command can bring with it a parameter indicating whether the
encapsulation is ATM AAL5 or ATM CELL.
3-2
Command Manual – MPLS
Comware V3 Chapter 3 MPLS L2VPN Configuration Commands
Example
# Create a local CCC connection, with the name of clink, two CEs connected
respectively to Ethernet0/0/0 and Ethernet2/0/0.
[H3C] ccc clink interface serial0/0/0 out-interface Ethernet 2/0/0
Syntax
View
User view
Parameter
Description
Use the debugging mpls l2vpn command to view L2VPN link information.
Use the undo debugging mpls l2vpn command to disable the debugging.
Example
Syntax
View
Any view
3-3
Command Manual – MPLS
Comware V3 Chapter 3 MPLS L2VPN Configuration Commands
Parameter
Description
Example
Syntax
View
MPLS view
Parameter
Description
Use the static-lsp egress l2vpn command to configure a static LSP used in L2VPN for
egress LSR.
Use the undo static-lsp egress l2vpn command to delete an LSP used in L2VPN of
egress LSR.
Two LSPs (one in each direction) should be created in advance before creating a
remote CCC connection.
Related command: static-lsp ingress l2vpn, debugging mpls.
Example
3-4
Command Manual – MPLS
Comware V3 Chapter 3 MPLS L2VPN Configuration Commands
Syntax
View
MPLS view
Parameter
Description
Use the static-lsp egress l2vpn command to configure a static LSP used in L2VPN for
ingress LSR.
Use the undo static-lsp egress l2vpn command to delete an LSP used in L2VPN of
ingress LSR.
With this command, you can configure a static LSP for ingress LSR, and set preference
and measurement value for it.
Two LSPs (one in each direction) should be created in advance before creating a
remote CCC connection.
Related command: static-lsp egress lvpn, static-lsp transit, debugging mpls.
Example
3-5
Command Manual – MPLS
Comware V3 Chapter 3 MPLS L2VPN Configuration Commands
Syntax
View
MPLS view
Parameter
Description
Use the static-lsp transit command to configure a static LSP used in L2VPN for transit
LSR.
Use the undo static-lsp transit command to delete an LSP used in L2VPN of transit
LSR.
Two LSPs (one in each direction) should be created in advance and configured to the
transit LSR before creating a remote CCC connection.
Related command: static-lsp egress l2vpn and static-lsp ingress l2vpn.
Example
# Add a static LSP used in 12vpn for the Serial0/0/0 of transit LSR, with inbound label
123 and outbound label 253.
[H3C-mpls] static-lsp transit citya-cityb l2vpn incoming-interface
serial0/0/0 in-label 123 nexthop 202.34.114.7 out-label 253
Syntax
3-6
Command Manual – MPLS
Comware V3 Chapter 3 MPLS L2VPN Configuration Commands
View
Any view
Parameter
Description
Use the display mpls static-l2vc command to view the connection information of
static MPLS L2VPN.
Example
Syntax
View
Interface view
Parameter
3-7
Command Manual – MPLS
Comware V3 Chapter 3 MPLS L2VPN Configuration Commands
Description
Use the mpls static-l2vc command to create an SVC MPLS L2VPN connection.
Use the undo mpls static-l2vc command to delete the connection.
Example
# Create an SVC MPLS L2VPN connection, with the interface in ATM cell transparent
transmission mode, adopting one-to-one VPC encapsulation mode.
<H3C> system-view
[H3C] interface atm 1/0/0
[H3C-Atm1/0/0] atm-ctt
[H3C-Atm1/0/0] pvc 1/32
[H3C-atm-pvc-Atm1/0/0-1/32] quit
[H3C-Atm1/0/0] mpls static-l2vc destination 192.1.1.1 transmit-vpn-label 333
receive-vpn-label 111 atm-cell atm-1to1-vpc
Syntax
View
Any view
Parameter
Description
Use the display mpls l2vc command to view the VC information in LDP.
Example
None
Syntax
3-8
Command Manual – MPLS
Comware V3 Chapter 3 MPLS L2VPN Configuration Commands
View
Interface view
Parameter
Description
Example
# Create a virtual connection with ID 23, with the interface in ATM transparent
transmission mode, adopting ATM CELL N-to-One encapsulation mode.
<H3C> system-view
[H3C] interface atm 1/0/0
[H3C-Atm1/0/0] atm-ctt
[H3C-Atm1/0/0] pvc 1/32
[H3C-atm-pvc-Atm1/0/0-1/32] quit
[H3C-Atm1/0/0] mpls l2vc 10.0.0.11 23 atm-cell
Syntax
3-9
Command Manual – MPLS
Comware V3 Chapter 3 MPLS L2VPN Configuration Commands
View
Parameter
Description
Example
3.4.2 connection
Syntax
View
3-10
Command Manual – MPLS
Comware V3 Chapter 3 MPLS L2VPN Configuration Commands
Parameter
Description
Example
# Establish a CE connection.
[H3C] mpls l2vpn vpna
[H3C-l2vpn-vpna] ce ce-a id 1 range 4
[H3C-l2vpn-vpna-ce-ce-a] connection s0/0/0 ce-offset 2
Syntax
View
Any view
Parameter
Description
Use the display bgp l2vpn all command to view system operating information and all
L2VPN information.
Example
3-11
Command Manual – MPLS
Comware V3 Chapter 3 MPLS L2VPN Configuration Commands
Syntax
View
Any view
Parameter
vclabel: VC label
interface-type interface-num: Interface type and interface number
Description
Use the display mpls l2vpn forwarding-info command to view the L2VPN
information of a specific interface.
Example
3.4.5 l2vpn-family
Syntax
l2vpn-family
3-12
Command Manual – MPLS
Comware V3 Chapter 3 MPLS L2VPN Configuration Commands
undo l2vpn-family
View
BGP view
Parameter
None
Description
Use the l2vpn-family command to create or enter an L2VPN address family view.
Use the undo l2vpn-family command to delete an L2VPN address family view.
By default, it is BGP unicast view.
Execute the undo l2vpn-family command to exit multicast extended address family
view. Delete the entire configuration in this address family and return to BGP unicast
view.
Example
Syntax
mpls l2vpn
undo mpls l2vpn
View
System view
Parameter
None
Description
3-13
Command Manual – MPLS
Comware V3 Chapter 3 MPLS L2VPN Configuration Commands
Example
# Enable L2VPN.
[H3C] mpls l2vpn
Syntax
View
System view
Parameter
Description
Use the mpls l2vpn encapsulation command to create Kompella MPLS L2VPN,
specify encapsulation type, and enter MPLS L2VPN view.
Use the undo mpls l2vpn encapsulation command to remove the encapsulation.
3-14
Command Manual – MPLS
Comware V3 Chapter 3 MPLS L2VPN Configuration Commands
Create Kompella MPLS L2VPN after MPLS L2VPN is enabled. All the parameters of
L2VPN are configured in L2VPN view.
Related command: ce, mtu.
Example
# Create a Kompella MPLS L2VPN, named “h3c”, with encapsulation type atm-cell
atm-1to1-vcc.
<H3C> system-view
[H3C] mpls l2vpn h3c encapsulation atm-cell atm-1to1-vcc
3.4.8 mtu
Syntax
mtu mtu
View
Parameter
Description
Example
Syntax
View
3-15
Command Manual – MPLS
Comware V3 Chapter 3 MPLS L2VPN Configuration Commands
Parameter
Description
Use the peer enable command to activate the specified peer (group) in L2VPN
address family view.
Use the undo peer enable command to deactivate the specified peer (group) in
L2VPN address family view.
By default, unicast peer (group) of IPv4 address family is activated, while other peer
(group) is deactivated.
Example
# Activate the peer (group) 192 in the L2VPN address family view.
[H3C-bgp] peer 1.1.1.1 as-number 100
[H3C-bgp] l2vpn-family
[H3C-bgp-af-l2vpn] peer 1.1.1.1 enable
3-16
Security
Command Manual – Security
Comware V3 Table of Contents
Table of Contents
i
Command Manual – Security
Comware V3 Table of Contents
ii
Command Manual – Security
Comware V3 Table of Contents
iii
Command Manual – Security
Comware V3 Table of Contents
iv
Command Manual – Security
Comware V3 Table of Contents
v
Command Manual – Security
Comware V3 Table of Contents
vi
Command Manual – Security
Comware V3 Table of Contents
vii
Command Manual – Security
Comware V3 Table of Contents
viii
Command Manual – Security Chapter 1 AAA and RADIUS/HWTACACS Protocol
Comware V3 Configuration Commands
Syntax
View
Parameter
Description
Use the access-limit command to configure a limit to the amount of supplicants in the
current ISP domain.
Use the undo access-limit command to restore the limit to the default setting.
By default, there is no limit to the amount of supplicants in the current ISP domain.
This command limits the amount of supplicants contained in the current ISP domain.
The supplicants may compete for the network resources. So setting a suitable limit to
the amount will guarantee the reliable performance to the existing supplicants.
Example
1.1.2 accounting
Syntax
1-1
Command Manual – Security Chapter 1 AAA and RADIUS/HWTACACS Protocol
Comware V3 Configuration Commands
undo accounting
View
Parameter
Description
Use the accounting command to configure an accounting scheme for the current ISP
domain.
Use the undo accounting command to remove the accounting scheme used by the
ISP domain.
By default, no separate accounting scheme is available.
Note that the RADIUS or HWTACACS accounting scheme you configure by using the
accounting command must exist already.
If you configure the accounting command in ISP domain view, the system uses the
scheme specified in the command for accounting. Otherwise, the system uses the
scheme specified by using the scheme command.
Related command: scheme, radius scheme, hwtacacs scheme.
Example
# Specify ISP domain h3c163.net to use RADIUS scheme radius for accounting.
[H3C-isp-h3c163.net] accounting radius-scheme radius
# Specify ISP domain h3c to use HWTACACS scheme hwtac for accounting.
[H3C-isp-h3c] accounting hwtacacs-scheme hwtac
Syntax
accounting optional
undo accounting optional
View
1-2
Command Manual – Security Chapter 1 AAA and RADIUS/HWTACACS Protocol
Comware V3 Configuration Commands
Parameter
None
Description
Example
1.1.4 authentication
Syntax
View
Parameter
Description
1-3
Command Manual – Security Chapter 1 AAA and RADIUS/HWTACACS Protocol
Comware V3 Configuration Commands
Use the undo authentication command to restore the default authentication scheme
of the domain.
By default, no separate authentication scheme is available.
Note that the RADIUS or HWTACACS authentication scheme you configure by using
the authentication command must exist already.
If you configure the authentication radius-scheme radius-scheme-name local or
authentication hwtacacs-scheme hwtacacs-scheme-name local command, the
local authentication scheme is the alternate scheme for use when the RADIUS server
or TACACS server is not responding properly. That is, the local authentication scheme
is used only when the RADIUS server or TACACS server is not available.
If you want the system to use the local scheme as the first scheme, the local
authentication scheme is the only scheme for authentication, and you cannot configure
any RADIUS or HWTACACS scheme at the same time. That is, you can only specify
the local keyword in the authentication command. The same is true for the none
keyword.
If you configure the authentication command in ISP domain view, the system uses the
scheme specified in the command for authentication. Otherwise, the system uses the
scheme specified by using the scheme command.
Related command: scheme, radius scheme, hwtacacs scheme.
Example
# Specify ISP domain h3c163.net to use RADIUS scheme radius for authentication.
[H3C-isp-h3c163.net] authentication radius-scheme radius
# Specify ISP domain h3c to use RADIUS scheme rd for authentication and use the
local authentication scheme as the alternate one.
[H3C-isp-h3c] authentication radius-scheme rd local
# Specify ISP domain h3c to use HWTACACS scheme hwtac for authentication and
use the local authentication scheme as the alternate one.
[H3C-isp-h3c] authentication hwtacacs-scheme hwtac local
1.1.5 authorization
Syntax
View
1-4
Command Manual – Security Chapter 1 AAA and RADIUS/HWTACACS Protocol
Comware V3 Configuration Commands
Parameter
Description
Use the authorization command to configure an authorization scheme for the current
ISP domain.
Use the undo authorization command to restore the default authorization scheme of
the domain.
By default, no separate authorization scheme is available.
Note that the HWTACACS authorization scheme specified in this command must have
existed.
If you configure the authorization command in ISP domain view, the system uses the
scheme specified in the command for authorization. Otherwise, the system uses the
scheme specified by using the scheme command.
Related command: scheme, radius scheme, hwtacacs scheme.
Example
# Specify ISP domain h3c to use HWTACACS scheme hwtac for authorization.
[H3C-isp-h3c] authorization hwtacacs-scheme hwtac
Syntax
View
Any view
Parameter
domain isp-name: Displays all the user connections belonging to the ISP domain
specified by isp-name, a character string not exceeding 24 characters. The specified
ISP domain must be an existing one.
hwtacacs-scheme hwtacacs-scheme-name: HWTACACS scheme name.
ip ip-address: Displays all the user connections related to the specified IP address.
1-5
Command Manual – Security Chapter 1 AAA and RADIUS/HWTACACS Protocol
Comware V3 Configuration Commands
Description
Use the display connection command to view the relevant information on the
specified user connection or all the connections. The output can help you troubleshoot
user connections.
By default, information about all user connections is displayed.
Example
Field Description
Index Index number
Username User name
Syntax
View
Any view
1-6
Command Manual – Security Chapter 1 AAA and RADIUS/HWTACACS Protocol
Comware V3 Configuration Commands
Parameter
isp-name: Specifies the ISP domain name, with a character string not exceeding 24
characters. The specified ISP domain must be an existing one.
Description
Use the display domain command to view the configuration of a specified ISP domain
or display the summary information of all ISP domains.
By default, the summary of all ISP domains is displayed.
This command is used to output the configuration of a specified ISP domain or display
the summary information of all ISP domains. If an ISP domain is specified, the
configuration information will be displayed exactly the same, concerning the content
and format, as the displayed information of the display domain command. The output
information can help with ISP domain diagnosis and troubleshooting.
Related command: access-limit, domain, scheme, state, display domain.
Example
Field Description
The contents of Domain test Configuration information of the test domain
State State of the domain user: active or block
Current Authentication Authentication scheme for the domain
Current Authorization Authorization scheme for the domain
Current Accounting Accounting scheme for the domain
Accounting Optional State of optional accounting: enable or disable
1-7
Command Manual – Security Chapter 1 AAA and RADIUS/HWTACACS Protocol
Comware V3 Configuration Commands
Field Description
State of the restriction on the concurrent
Access-limit connected users accommodated by the domain
user: disable or enable
Domain User Template Domain user template
Syntax
View
Any view
Parameter
domain isp-name: Displays all the local users in the ISP domain specified by isp-name,
a character string not exceeding 24 characters. The specified ISP domain must be an
existing one.
service-type: Displays local users by specifying service type, which can be telnet, ssh,
terminal (terminal users logging on from Console, AUX, or Asyn port), ftp, ppp, or PAD
(X.25 PAD).
state { active | block }: Displays local users by specifying user state, where active
means users allowed to request for network services and block means the opposite.
user-name user-name: Displays a user by specifying its user-name, a character string
not exceeding 80 characters. It must exclude forward slashes (/), colons (:), asterisks
(*), question marks (?), less-than signs (<), and greater-than signs (>). The @ sign can
be present once in a user name. The user name without domain name (the part before
@, namely the user ID) cannot exceed 55 characters.
Description
Use the display local-user command to view the relevant information on the specified
local user or all the local users. The output can help you troubleshoot faults related to
local user.
By default, information on all local users is displayed.
Related command: local-user.
Example
1-8
Command Manual – Security Chapter 1 AAA and RADIUS/HWTACACS Protocol
Comware V3 Configuration Commands
Field Description
State State of the user: active or block
Service type abbreviation:
C: terminal
A: pad
ServiceType Mask P: PPP
F: FTP
S: SSH
T: telnet
Current AccessNum Count of current accesses
User Privilege User’s privilege
Note:
The IP address of some types of users, such as L2TP users, cannot be displayed.
1.1.9 domain
Syntax
View
System view
1-9
Command Manual – Security Chapter 1 AAA and RADIUS/HWTACACS Protocol
Comware V3 Configuration Commands
Parameter
Description
Use the domain command to configure an ISP domain or enter the view of an existing
ISP domain.
Use the undo domain command to cancel a specified ISP domain.
By default, the system uses the domain named system. You are not allowed to delete
this domain, but you can view its settings by executing the display domain command.
An ISP domain is a group of users belonging to the same ISP. Generally, for a
username in the userid@isp-name format, gw20010608@ h3c163.net for example, the
isp-name (” h3c163.net” in the example) following the “@” is the ISP domain name.
When an AAA server controls user access, for an ISP user whose username is in
userid@isp-name format, the system takes the part "userid" as username for
identification and takes the part "isp-name" as domain name.
The purpose of introducing ISP domain settings is to support the application
environment with multiple ISP domains. In this case, an access device may have
supplicants from different ISP domains. Because the attributes of ISP users, such as
username and password structures, service types, may be different, it is necessary to
separate them by setting ISP domains. In ISP domain view, you can configure a
complete set of ISP domain attributes for each ISP domain, including an AAA scheme
(the RADIUS scheme applied).
For a router, each supplicant belongs to an ISP domain. The system supports to
configure up to 16 ISP domains.
When this command is used, if the specified ISP domain does not exist, the system will
create a new ISP domain. All the ISP domains are in the active state when they are
created.
Related command: access-limit, scheme, state, and display domain.
Example
1-10
Command Manual – Security Chapter 1 AAA and RADIUS/HWTACACS Protocol
Comware V3 Configuration Commands
1.1.10 ip pool
Syntax
View
Parameter
Description
Use the ip pool command to configure a local address pool for assigning addresses to
PPP users.
Use the undo ip pool command to delete the specified local address pool.
By default, no local IP address pool is configured.
You can configure an IP address pool in system view and use the remote address
command in interface view to assign IP addresses from the pool to PPP users.
You can also configure an IP address pool in ISP domain view for assigning IP
addresses to PPP users in the current ISP domain. This applies to the case where an
interface serves a great amount of PPP users but with inadequate address resources
for allocation. For example, an Ethernet interface running PPPoE can accommodate
4095 users at most. However, only one address pool with up to 1024 addresses can be
configured on its Virtual Template (VT). This is obviously far from what is required. To
address the issue, you can configure address pools for ISP domains and assign
addresses from them to their PPP users.
Related command: remote address.
1-11
Command Manual – Security Chapter 1 AAA and RADIUS/HWTACACS Protocol
Comware V3 Configuration Commands
Note:
When using the ip pool command to define the global address pool or domain address
pool, you cannot include the network address and broadcast address in the address
pool.
Example
# Configure the local IP address pool 0 with the address range of 129.102.0.1 to
129.102.0.10.
[H3C] domain h3c163.net
[H3C-isp- h3c163.net] ip pool 0 129.102.0.1 129.102.0.10
1.1.11 level
Syntax
level level
undo level
View
Parameter
Description
Note:
If the configured authentication mode is none authentication or password
authentication, the command level that a user can access after login depends on the
priority of user interface. In the case of authentication requiring both username and
password, however, the accessible command level depends on user priority level.
1-12
Command Manual – Security Chapter 1 AAA and RADIUS/HWTACACS Protocol
Comware V3 Configuration Commands
Example
1.1.12 local-user
Syntax
local-user user-name
undo local-user { user-name | all }
View
System view
Parameter
Description
Use the local-user command to add a local user and enter the local user view.
Use the undo local-user command to remove the specified local user.
By default, no local user is configured.
Related command: display local-user.
Example
Syntax
1-13
Command Manual – Security Chapter 1 AAA and RADIUS/HWTACACS Protocol
Comware V3 Configuration Commands
View
System view
Parameter
cipher-force: Forced cipher mode specifies that the passwords of all the accessed
users must be displayed in cipher text.
auto: The auto mode specifies that a user is allowed to use the password command to
set a password display mode.
Description
Example
# Force all the local users to have passwords displayed in cipher text.
[H3C] local-user password-display-mode cipher-force
1.1.14 password
Syntax
View
Parameter
1-14
Command Manual – Security Chapter 1 AAA and RADIUS/HWTACACS Protocol
Comware V3 Configuration Commands
Description
Note:
The ciphertext password set by the password cipher command could be 24 or 64
characters long in Comware V3 RT-0011 or later versions, but it is only 24 characters
long in earlier versions. As this may cause password loss when you downgrade
Comware V3 RT-0011 or later versions to an earlier version of Comware V3 RT-0011,
you are recommended to back up your configuration file before doing that.
Example
# Display the password of the user h3c1in simple text, with the password being
20040422.
[H3C-luser- h3c1] password simple 20040422
1.1.15 scheme
Syntax
View
Parameter
1-15
Command Manual – Security Chapter 1 AAA and RADIUS/HWTACACS Protocol
Comware V3 Configuration Commands
Description
Use the scheme command to configure the AAA scheme to be referenced by the
current ISP domain.
Use the undo scheme command to restore the default AAA scheme.
The default AAA scheme in the system is local.
With this command the current ISP domain can reference a RADIUS/HWTACACS
scheme that has been configured.
When the radius-scheme radius-scheme-name local command or the
hwtacacs-scheme hwtacacs-scheme-name local command is configured, the local
scheme applies as a backup scheme if the RADIUS or TACACS server is not available.
If the RADIUS or TACACS server is available, local authentication is not used.
If the local or none scheme applies as the first scheme, no RADIUS or HWTACACS
scheme can be adopted.
Related command: radius scheme and hwtacacs scheme.
Example
# Specify the current ISP domain, h3c1.net, to use the RADIUS scheme h3c.
[H3C-isp- h3c163.net] scheme radius H3C
# Set the authentication scheme referenced by the ISP domain h3c to radius-scheme
rd and use the local scheme as the backup.
[H3C-isp-h3c] scheme radius-scheme rd local
1.1.16 service-type
Syntax
View
Parameter
1-16
Command Manual – Security Chapter 1 AAA and RADIUS/HWTACACS Protocol
Comware V3 Configuration Commands
terminal: Authorizes the user to use the terminal service (login via the Console, AUX or
Asyn port).
pad: Authorizes the user to use the PAD service.
Description
Use the service-type command to configure a service type for a particular user.
Use the undo service-type command to delete one or all service types configured for
the user.
By default, no service is available for the user.
Related command: service-type ppp and service-type ftp.
Example
Syntax
View
Parameter
ftp-directory directory: Specifies a directory accessible for the FTP user. It is a string
up to 56 characters.
Description
Use the service-type ftp command to specify a directory accessible for the FTP user.
Use the undo service-type ftp command to disable FTP service.
Use the undo service-type ftp ftp-directory command to restore the default directory
accessible for the FTP user.
By default, no services of any type are authorized to any user and access of
anonymous FTP users is not allowed, but a user that is granted the FTP service is
authorized to access the root directory "flash:/".
Related command: service-type and service-type ppp.
Example
1-17
Command Manual – Security Chapter 1 AAA and RADIUS/HWTACACS Protocol
Comware V3 Configuration Commands
Syntax
View
Parameter
Description
Use the service-type command to configure the callback attribute and caller number of
the PPP user.
Use the undo service-type command to restore their default settings.
By default, no services of any type are authorized to any users; if the PPP service is
authorized, no callback number is specified by default; and the system does not
authenticate the caller number of ISDN users.
Related command: service-type and service-type ftp.
Example
1.1.19 state
Syntax
View
1-18
Command Manual – Security Chapter 1 AAA and RADIUS/HWTACACS Protocol
Comware V3 Configuration Commands
Parameter
active: Configured to allow users in the current ISP domain or the current local user to
request for network services.
block: Configured to block users in the current ISP domain or the current local user to
request for network services.
Description
Use the state command to configure the state of the current ISP domain or local user.
By default, both ISP domain (in ISP domain view) and local user (in local user view) are
in the active state upon their creation (in ISP domain view).
Every ISP domain can be active or blocked. If an ISP domain is configured to be active,
the supplicants in it can request for network services; whereas in the block state, its
users are disallowed to request for any network service, which does not affect the users
currently online. This also applies to local users.
Related command: domain.
Example
# Set the state of the current ISP domain " h3c163.net" to block. The supplicants in this
domain cannot request for network services.
[H3C-isp-h3c163.net] state block
Syntax
View
Parameter
ip-address: Server IP address, in the dotted decimal format. It must be a legal unicast
IP address.
port-number: UDP port number, in the range 1 to 65535.
1-19
Command Manual – Security Chapter 1 AAA and RADIUS/HWTACACS Protocol
Comware V3 Configuration Commands
Description
Use the authentication command to set the IP address, port number and shared key
for the primary and secondary RADIUS authentication servers.
Use the undo authentication command to restore the default settings.
By default, for the RADIUS scheme named “system” created by the system, the IP
address and UDP port number of the primary authentication server are 127.0.0.1 and
1645 respectively, and the IP address and UDP port number of the secondary
authentication server are 0.0.0.0 and 1812 respectively. For a newly created RADIUS
scheme, the IP addresses and UDP port numbers of both the primary and secondary
authentication servers are 0.0.0.0 and 1812 respectively. The default shared key of
both the primary and secondary authentication servers of a RADIUS scheme is
“huawei".
Example
# Set the IP address of the primary authentication server of the RADIUS scheme
named “h3c” to 10.110.1.2, set its UDP port number to 1812, and set its shared key to
“sharekey”.
[h3c-radius-h3c] authentication primary ip 10.110.1.2 port 1812 key sharekey
1.2.2 accounting
Syntax
View
Parameter
1-20
Command Manual – Security Chapter 1 AAA and RADIUS/HWTACACS Protocol
Comware V3 Configuration Commands
Description
Use the accounting command to set the IP address, port number and shared key for
the primary and secondary RADIUS accounting servers.
Use the undo accounting command to restore the default settings.
By default, for the RADIUS scheme named “system” created by the system, the IP
address and UDP port number of the primary accounting server are 127.0.0.1 and 1646
respectively, and the IP address and UDP port number of the secondary accounting
server are 0.0.0.0 and 1813 respectively. For a newly created RADIUS scheme, the IP
addresses and UDP port numbers of both the primary and secondary accounting
servers are 0.0.0.0 and 1813 respectively. The default shared key of both the primary
and secondary accounting servers of a RADIUS scheme is “huawei".
Example
# Set the IP address of the primary accounting server of the RADIUS scheme “h3c" to
10.110.1.2, set its UDP port number to 1813, and set its shared key to “sharekey”.
[h3c-radius-h3c] accounting primary ip 10.110.1.2 port 1813 key sharekey
1.2.3 accounting-on
Syntax
View
RADIUS view
Parameter
times: Maximum times for sending Accounting-On packets, in the range 1 to 256. It
defaults to 15.
interval: Interval for sending Accounting-On packets, in the range 1 to 30 seconds. It
defaults to 3 seconds.
1-21
Command Manual – Security Chapter 1 AAA and RADIUS/HWTACACS Protocol
Comware V3 Configuration Commands
Description
Note:
z The primary attributes of an Accounting-On packet (that is, the NAS-ID, NAS-IP,
and session ID) are often generated by the router automatically, where the NAS-IP
attribute is the IP address for the outbound interface of the packet by default. You
can also configure the NAS-IP attribute manually by using the nas-ip command, in
which case you must be sure to specify a correct and valid IP address.
z These commands take effect only when used together with a CAMS server.
1-22
Command Manual – Security Chapter 1 AAA and RADIUS/HWTACACS Protocol
Comware V3 Configuration Commands
Example
# Enable the user re-authentication at reboot function for a RADIUS scheme named
CAMS.
<H3C> system-view
[H3C] radius scheme CAMS
[H3C-radius-CAMS] accounting-on enable
1.2.4 data-flow-format
Syntax
View
RADIUS view
Parameter
Description
Use the data-flow-format command to configure the unit in which data flows are sent
to a RADIUS Server.
Use the undo data-flow-format command to restore the unit to the default setting.
By default, data flows are sent in bytes and data packets in the units of one-packet.
Related command: display radius.
1-23
Command Manual – Security Chapter 1 AAA and RADIUS/HWTACACS Protocol
Comware V3 Configuration Commands
Example
# Send data flows and packets destined for the RADIUS server "h3c" in kilobytes and
kilo-packets.
[H3C-radius-h3c] data-flow-format data kilo-byte packet kilo-packet
Syntax
View
User view
Parameter
Description
Example
Syntax
View
User view
Parameter
1-24
Command Manual – Security Chapter 1 AAA and RADIUS/HWTACACS Protocol
Comware V3 Configuration Commands
Description
Use the debugging local-server command to enable debugging for the local RADIUS
authentication server.
Use the undo debugging local-server command to disable debugging for the local
RADIUS authentication server.
By default, debugging for the local RADIUS authentication server is not enabled.
Example
Syntax
View
Any view
Parameter
None
Description
Use the display local-server statistics command to display statistics of the local
RADIUS authentication server.
Related command: local-server.
Example
1-25
Command Manual – Security Chapter 1 AAA and RADIUS/HWTACACS Protocol
Comware V3 Configuration Commands
Syntax
View
Any view
Parameter
Description
Use the display radius command to view the configuration information about the
specified or all RADIUS schemes or to view statistics about RADIUS.
By default, the configuration information about all RADIUS schemes is displayed.
Related command: radius scheme.
Example
1-26
Command Manual – Security Chapter 1 AAA and RADIUS/HWTACACS Protocol
Comware V3 Configuration Commands
------------------------------------------------------------------
Total 1 RADIUS scheme(s). 1 listed
Field Description
SchemeName RADIUS scheme name
Index Index number of the RADIUS scheme
Type Type of the RADIUS scheme
IP address/access port number/current state of
Primary Auth IP/ Port/ State
the primary authentication server
IP address/access port number/current state of
Primary Acct IP/ Port/ State
the primary accounting server
IP address/access port number/current state of
Second Auth IP/ Port/ State
the secondary authentication server
IP address/access port number/current state of
Second Acct IP/ Port/ State
the secondary accounting server
Auth Server Encryption Key Shared key of the authentication server
Syntax
View
Any view
1-27
Command Manual – Security Chapter 1 AAA and RADIUS/HWTACACS Protocol
Comware V3 Configuration Commands
Parameter
None
Description
Use the display radius statistics command to view the statistics information on
RADIUS packets. The displayed packet information can help you troubleshoot RADIUS
faults.
Related command: radius scheme.
Example
Running statistic:
RADIUS received messages statistic:
Normal auth request , Num=13 , Err=0 , Succ=13
EAP auth request , Num=0 , Err=0 , Succ=0
Account request , Num=1 , Err=0 , Succ=1
Account off request , Num=0 , Err=0 , Succ=0
PKT auth timeout , Num=36 , Err=12 , Succ=24
PKT acct_timeout , Num=0 , Err=0 , Succ=0
Realtime Account timer , Num=0 , Err=0 , Succ=0
PKT response , Num=2 , Err=0 , Succ=2
EAP reauth_request , Num=0 , Err=0 , Succ=0
1-28
Command Manual – Security Chapter 1 AAA and RADIUS/HWTACACS Protocol
Comware V3 Configuration Commands
No-response-acct-stop packet =0
Discarded No-response-acct-stop packet for buffer overflow =0
Table 1-5 Description on the fields of the display radius statistics command
Field Description
state statistic(total=1048)
DEAD=1047 AuthProc=0
AuthSucc=0
State statistics for RADIUS
AcctStart=0 RLTSend=0 RLTWait=1
AcctStop=0 OnLine=1 Stop=0
StateErr=0
Received and Sent packets statistic:
Sent PKT total :38 Received PKT Statistics about transmitted/received
total:2 packets, including:
Resend Times Resend total z Count of transmitted packets
1 12 z Count of received packets
z Count of retransmissions and
2 12 retransmitted packets
Total 24
1-29
Command Manual – Security Chapter 1 AAA and RADIUS/HWTACACS Protocol
Comware V3 Configuration Commands
Field Description
Statistics about received packets of
RADIUS, including packet type code,
count of received packets and errors of
RADIUS received packets statistic: each type
Code= 2,Num=1 ,Err=0 The following are meanings of code
values:
Code= 3,Num=0 ,Err=0
2: authentication response
Code= 5,Num=1 ,Err=0
3: authentication rejected
Code=11,Num=0 ,Err=0
5: accounting response
11: Access-Challenge (EAP
authentication) packet
Operating statistics for RADIUS,
Running statistic: including count of received/sent
messages and errors
RADIUS received messages statistic:
Normal auth request , Num=13 ,
Err=0 , Succ=13
EAP auth request , Num=0 ,
Err=0 , Succ=0 Statistics about received messages for
Account request , Num=1 , RADIUS, providing count of messages,
Err=0 , Succ=1 errors, and successes of each type.
Account off request , Num=0 , The following are message types:
Err=0 , Succ=0 Normal authentication request
PKT auth timeout , Num=36 , EAP authentication request
Err=12 , Succ=24
Accounting request
PKT acct_timeout , Num=0 ,
Stop-accounting request
Err=0 , Succ=0
Authentication timeout
Realtime Account timer ,
Num=0 , Err=0 , Succ=0 Accounting timeout
PKT response , Num=2 , Realtime accounting
Err=0 , Succ=2 Response
EAP reauth_request , Num=0 , EAP re-authentication request
Err=0 , Succ=0
Portal access authentication request
PORTAL access , Num=0 ,
Update acknowledgement
Err=0 , Succ=0
Portal access acknowledgement
Update ack , Num=0 ,
Err=0 , Succ=0 Session control packet
PORTAL access ack ,
Num=0 , Err=0 , Succ=0
Session ctrl pkt , Num=0 ,
Err=0 , Succ=0
1-30
Command Manual – Security Chapter 1 AAA and RADIUS/HWTACACS Protocol
Comware V3 Configuration Commands
Field Description
RADIUS sent messages statistic:
Auth accept , Num=0 Statistics about transmitted messages,
Auth reject , Num=0 including count of accepted and rejected
authentication requests, count of EAP
EAP auth replying , Num=0
authentication responses, count of
Account success , Num=0 accounting successes and failures, and
Account failure , Num=0 count of cut requests
Cut req , Num=0
Sum of received message errors
RecError_MSG_sum:0 Sum of message transmission failures
SndMSG_Fail_sum :0 Sum of timer errors
Timer_Err :0 Alloc_Mem_Err :0 Sum of memory allocation errors
State Mismatch :0 Other_Error :0 Sum of sate mismatches
Sum of other errors
Count of stop-accounting packets that
No-response-acct-stop packet =0
received no response
Discarded No-response-acct-stop
Count of stop-accounting packets
packet for buffer overflow =0
discarded for buffer overflow
Syntax
View
Any view
Parameter
1-31
Command Manual – Security Chapter 1 AAA and RADIUS/HWTACACS Protocol
Comware V3 Configuration Commands
hours:minutes:seconds-months/days/years or
hours:minutes:seconds-years/months/days.
user-name user-name : Displays information on the buffered stop-accounting requests
by user ID, or user name excluding the domain name. This user name comprises up to
55 characters, excluding forward slashes (/), colons (:), asterisks (*), question marks
(?), less-than signs (<), and greater-than signs (>).
Description
Example
1.2.11 key
Syntax
View
RADIUS view
Parameter
1-32
Command Manual – Security Chapter 1 AAA and RADIUS/HWTACACS Protocol
Comware V3 Configuration Commands
Description
Use the key command to set a shared key for RADIUS authentication/authorization or
accounting packets.
Use the undo key command to restore the default shared key.
The RADIUS client (the router system) and the RADIUS server use MD5 algorithm to
encrypt packets exchanged between them. The two ends verify the packets using a
shared key. Only when the same key is used can they properly receive the packets and
make responses. Therefore, it must be ensured that the shared key set on the router is
consistent with that on the RADIUS server. If the authentication/authorization server
and accounting server are not the same device and the shared keys set on them are
inconsistent, a shared key must be set respectively for authentication/authorization
packets and accounting packets.
Related command: primary accounting, primary authentication, and radius
scheme.
Note:
This command applies only to the AR 18-2X series routers (excluding the AR
18-21A/21B routers).
Example
# Set the shared key of accounting packet of the RADIUS scheme “h3c” to “ok”.
[H3C-radius-h3c] key accounting ok
1.2.12 local-server
Syntax
View
System view
1-33
Command Manual – Security Chapter 1 AAA and RADIUS/HWTACACS Protocol
Comware V3 Configuration Commands
Parameter
nas-ip ip-address: NAS-IP address of the access server, in dotted decimal format. By
default, there is a local server with a NAS-IP of 127.0.0.1.
key password: Shared key of the local server, a string consisting of up to 16 characters.
It defaults to no key.
Description
Example
1.2.13 nas-ip
Syntax
nas-ip ip-address
undo nas-ip
View
RADIUS view
1-34
Command Manual – Security Chapter 1 AAA and RADIUS/HWTACACS Protocol
Comware V3 Configuration Commands
Parameter
Description
Use the nas-ip command to set the source IP address of the network access server
(NAS, the router in this manual), so that all packets destined for the RADIUS server
carry the same source IP address.
Use the undo nas-ip command to cancel the configuration.
Specifying a source address for the RADIUS packets to be transmitted can avoid the
situation where the packets sent back by the RADIUS server cannot be received as the
result of a physical interface failure. The address of a loopback interface is usually used
as the source address.
By default, the source IP address of packets is the IP address of the output port.
Related command: display radius.
Example
# Set the source IP address that is carried in the RADIUS packets sent by the NAS (the
router) to 10.1.1.1.
[H3C] radius scheme test1
[H3C-radius-test1] nas-ip 10.1.1.1
Syntax
View
RADIUS view
Parameter
Description
Use the primary accounting command to configure IP address and port number of the
primary RADIUS accounting server.
1-35
Command Manual – Security Chapter 1 AAA and RADIUS/HWTACACS Protocol
Comware V3 Configuration Commands
Use the undo primary accounting command to restore the default IP address and
port number of the primary RADIUS accounting server.
After creating a RADIUS scheme, you are supposed to configure IP address and UDP
port of each RADIUS server (primary/secondary authentication/authorization or
accounting server). The configuration of RADIUS servers is at your discretion except
that there must be at least one authentication/authorization server and one accounting
server. Besides, ensure that the RADIUS service port settings on the router are
consistent with the port settings on the RADIUS servers.
Related command: radius scheme, and state.
Note:
This command applies only to the AR 18-2X series routers (excluding the AR
18-21A/21B routers).
Example
# Set the IP address of the primary accounting server in the RADIUS scheme “h3c” to
10.110.1.2 and use the UDP port 1813 to provide the RADIUS accounting service.
[H3C-radius-h3c] primary accounting 10.110.1.2 1813
Syntax
View
RADIUS view
Parameter
Description
Use the primary authentication command to configure IP address and port number of
the primary RADIUS authentication/authorization server.
1-36
Command Manual – Security Chapter 1 AAA and RADIUS/HWTACACS Protocol
Comware V3 Configuration Commands
Use the undo primary authentication command to restore the default IP address and
port number of the primary RADIUS authentication/authorization server.
After creating a RADIUS scheme, you are supposed to configure IP address and UDP
port of each RADIUS server (primary/secondary authentication/authorization or
accounting server). The configuration of RADIUS servers is at your discretion except
that there must be at least one authentication/authorization server and one accounting
server. Besides, ensure that the RADIUS service port settings on the router are
consistent with the port settings on the RADIUS servers.
Related command: radius scheme, and state.
Note:
This command applies only to the AR 18-2X series routers (excluding the AR
18-21A/21B routers).
Example
Syntax
View
System view
Parameter
Description
Use the radius scheme command to configure a RADIUS scheme and enter its view.
Use the undo radius scheme command to delete the specified RADIUS scheme.
By default, the RADIUS scheme named system exists in the system, with all attributes
being the defaults. You cannot delete this scheme.
1-37
Command Manual – Security Chapter 1 AAA and RADIUS/HWTACACS Protocol
Comware V3 Configuration Commands
Example
Syntax
View
System view
Parameter
Description
Use the radius nas-ip command to specify the source address of the RADIUS packet
sent from NAS.
Use the undo radius nas-ip command to restore the default setting..
By specifying the source address of the RADIUS packet, you can avoid unreachable
packets as returned from the server upon interface failure. The source address is
normally recommended to be a loopback interface address..
By default, the source address is not specified, that is, the address of the interface
sending the packet serves as the source address.
1-38
Command Manual – Security Chapter 1 AAA and RADIUS/HWTACACS Protocol
Comware V3 Configuration Commands
This command specifies only one source address; therefore, the newly configured
source address may overwrite the original one.
Related command: nas-ip.
Example
Syntax
View
System view
Parameter
Description
Use the radius trap command to enable the RADIUS server to send traps when it goes
down.
Use the undo radius trap command to disable the RADIUS server to send traps when
it goes down.
By default, the RADIUS server does not send traps when it goes down.
Example
# Enable the RADIUS authentication server to send traps when it goes down.
[H3C] radius trap authentication-server-down
Syntax
1-39
Command Manual – Security Chapter 1 AAA and RADIUS/HWTACACS Protocol
Comware V3 Configuration Commands
View
User view
Parameter
None
Description
Use the reset radius statistics command to clear the statistic information related to
the RADIUS protocol.
Related command: display radius.
Example
Syntax
View
System view
Parameter
1-40
Command Manual – Security Chapter 1 AAA and RADIUS/HWTACACS Protocol
Comware V3 Configuration Commands
Description
Example
# Clear the buffered stop-accounting requests in the time range 0:0:0 to 23:59:59 on
August 31, 2005.
<H3C> reset stop-accounting-buffer time-range 0:0:0-08/31/2005
23:59:59-08/31/2005
1.2.21 retry
Syntax
retry retry-times
undo retry
View
RADIUS view
Parameter
Description
Use the retry command to configure the number of RADIUS request attempts.
Use the undo retry command to restore the default.
In the RADIUS protocol, UDP applies to provide unreliable transmission. If the NAS
receives no response from the current RADIUS server when the response timeout
timer expires, it has to retransmit the RADIUS request.
1-41
Command Manual – Security Chapter 1 AAA and RADIUS/HWTACACS Protocol
Comware V3 Configuration Commands
Example
# With the RADIUS scheme "h3c", a RADIUS request can be sent up to five times.
[H3C-radius-h3c] retry 5
Syntax
View
RADIUS view
Parameter
retry-times: The maximum number of real-time accounting request attempts that have
no responses. It is in the range 1 to 255 and defaults to 5.
Description
1-42
Command Manual – Security Chapter 1 AAA and RADIUS/HWTACACS Protocol
Comware V3 Configuration Commands
minutes. If no response is received after five attempts, the NAS assumes that this
accounting fails. Normally, the result of retry-times multiple by T is smaller than t.
Related command: radius scheme and timer realtime-accounting.
Example
# Configure the RADIUS scheme "h3c" to allow up to ten real-time accounting request
attempts.
[H3C-radius-h3c] retry realtime-accounting 10
Syntax
View
RADIUS view
Parameter
Description
Example
# Indicate that, when stop-accounting request for the server in the RADIUS scheme
“h3c”, the router system will retransmit the packets for up to 1000 times.
[H3C-radius-h3c] retry stop-accounting 1000
1-43
Command Manual – Security Chapter 1 AAA and RADIUS/HWTACACS Protocol
Comware V3 Configuration Commands
Syntax
View
RADIUS view
Parameter
Description
Use the secondary accounting command to configure the IP address and port
number for the secondary RADIUS accounting server.
Use the undo secondary accounting command to restore the IP address and port
number to the defaults.
For detailed information, refer to the description of the primary accounting command.
Related command: radius scheme, and state.
Example
# Set the IP address of the secondary accounting server of RADIUS scheme, h3c, to
10.110.1.1 and the UDP port 1813 to provide RADIUS accounting service.
[H3C-radius-h3c] secondary accounting 10.110.1.1 1813
Syntax
View
RADIUS view
Parameter
1-44
Command Manual – Security Chapter 1 AAA and RADIUS/HWTACACS Protocol
Comware V3 Configuration Commands
Description
Use the secondary authentication command to configure the IP address and port
number of the secondary RADIUS authentication/authorization/accounting server.
Use the undo secondary authentication command to restore the IP address and port
number to the defaults.
For detailed information, refer to the description of the primary authentication
command.
Related command: radius scheme, and state.
Example
1.2.26 server-type
Syntax
View
RADIUS view
Parameter
extended: Specifies the RADIUS server of extended type (generally CAMS), which
requires the RADIUS client (router system) and RADIUS server to interact according to
the procedures and packet format provisioned by the private RADIUS protocol of
different companies.
standard: Specifies the RADIUS server of Standard type, which requires the RADIUS
client end (router system) and RADIUS server to interact according to the regulation
and packet format of standard RADIUS protocol (RFC 2138/2139 or newer).
portal: Specifies the RADIUS server of portal type.
Description
Use the server-type command to configure the RADIUS server type supported by the
router.
By default, the value is standard.
1-45
Command Manual – Security Chapter 1 AAA and RADIUS/HWTACACS Protocol
Comware V3 Configuration Commands
Example
1.2.27 state
Syntax
View
RADIUS view
Parameter
Description
Example
# Set the state of the secondary authentication server in the RADIUS scheme “h3c” to
active.
1-46
Command Manual – Security Chapter 1 AAA and RADIUS/HWTACACS Protocol
Comware V3 Configuration Commands
Syntax
stop-accounting-buffer enable
undo stop-accounting-buffer enable
View
RADIUS view
Parameter
None
Description
Use the stop-accounting-buffer enable command to enable the router to buffer the
stop-accounting requests that have no responses.
Use the undo stop-accounting-buffer enable command to disable the router to buffer
the stop-accounting requests that have no responses.
By default, the router is enabled to buffer the stop-accounting requests that have no
responses.
Since the stop-accounting packet affects the charge to a user, it has importance for
both users and ISPs. Therefore, the NAS makes its best effort to send every
stop-accounting request to RADIUS accounting servers. If receiving no response after
a specified period of time, the NAS buffers and resends the packet until receiving a
response or discards the packet when the number of transmission retries reaches the
configured limit.
Related command: reset stop-accounting-buffer, radius scheme, display
stop-accounting-buffer.
Example
# In the RADIUS scheme “h3c”, enable the router to buffer the stop-accounting
requests that have no responses.
[H3C-radius-h3c] stop-accounting-buffer enable
Syntax
1-47
Command Manual – Security Chapter 1 AAA and RADIUS/HWTACACS Protocol
Comware V3 Configuration Commands
View
RADIUS view
Parameter
minutes: Ranges from 1 to 255. By default, the primary server must wait five minutes
before it can resume the active state.
Description
Use the timer quiet command to set the duration that the primary server must wait
before it can resume the active state.
Use the undo timer quiet command to restore the default (five minutes).
Related command: display radius.
Example
# Set the quiet timer for the primary server to ten minutes.
[H3C] radius scheme test1
[H3C-hwtacacs-test1] timer quiet 10
Syntax
View
RADIUS view
Parameter
Description
1-48
Command Manual – Security Chapter 1 AAA and RADIUS/HWTACACS Protocol
Comware V3 Configuration Commands
You are therefore recommended to adopt a longer interval when there are a large
number of users (more than 1000, inclusive). The following table recommends the ratio
of minutes to the number of users.
Example
# Set the real-time accounting interval in the RADIUS scheme “h3c” to 51 minutes.
[H3C-radius-h3c] timer realtime-accounting 51
Syntax
View
RADIUS view
Parameter
Description
Use the timer response-timeout command to configure the RADIUS server response
timer.
Use the undo timer response-timeout command to restore the default.
If the NAS receives no response from the RADIUS server after sending a RADIUS
request (authentication/authorization or accounting request) for a period, the NAS
resends the request, thus ensuring the user can obtain the RADIUS service. You can
specify this period by setting the RADIUS server response timeout timer, taking into
consideration the network condition and the desired system performance.
1-49
Command Manual – Security Chapter 1 AAA and RADIUS/HWTACACS Protocol
Comware V3 Configuration Commands
Example
# Set the response timeout timer in the RADIUS scheme h3c to 5 seconds.
[H3C-radius-h3c] timer response-timeout 5
1.2.32 user-name-format
Syntax
View
RADIUS view
Parameter
with-domain: Includes the ISP domain name in the username sent to the RADIUS
server.
without-domain: Excludes the ISP domain name from the username sent to the
RADIUS server.
Description
Note:
If a RADIUS scheme defines that the username is sent without the ISP domain name,
do not apply the RADIUS scheme to more than one ISP domains, thus avoiding the
confused situation where the RADIUS server regards two users in different ISP
domains but with the same userid as one.
1-50
Command Manual – Security Chapter 1 AAA and RADIUS/HWTACACS Protocol
Comware V3 Configuration Commands
Example
# Send the username without the domain name to the RADIUS servers in the RADIUS
scheme "h3c".
[H3C-radius-h3c] user-name-format without-domain
Syntax
View
HWTACACS view
Parameter
Description
Use the authentication command to set the IP address, port number and shared key
for the primary and secondary HWTACACS authentication servers.
Use the undo authentication command to delete the configured authentication
servers.
By default, the IP address of TACACS authentication server is 0.0.0.0, without any
shared key.
The primary and secondary authentication servers must not use the same IP address.
Otherwise, the system will prompt unsuccessful configuration.
If you execute this command repeatedly, the new settings will replace the old settings.
You can remove a server only when it is not used by any active TCP connection for
sending authentication packets.
1-51
Command Manual – Security Chapter 1 AAA and RADIUS/HWTACACS Protocol
Comware V3 Configuration Commands
The HWTACACS client (the router) and HWTACACS server use the MD5 algorithm to
encrypt the exchanged packets between each other. The two ends verify the packets
using a shared key. They can properly receive packets and make responses only when
they use the same key. Therefore, the shared key on the router must be the same with
that on the HWTACACS server.
Example
# Set the IP address of the primary authentication server of the HWTACACS scheme
named “h3c" to 10.110.1.2, set its UDP port number to 49, and set its shared key to
“sharekey”.
[H3C-hwtacacs-h3c] authentication primary ip 10.110.1.2 port 49 key sharekey
1.3.2 authorization
Syntax
View
HWTACACS view
Parameter
Description
Use the authorization command to set the IP address, port number and shared key for
the primary and secondary HWTACACS authorization servers.
Use the undo authorization command to delete the configured authorization servers.
By default, the IP address of TACACS authorization server is 0.0.0.0., without any key.
The primary and secondary authorization servers must not use the same IP address.
Otherwise, the system will prompt unsuccessful configuration.
1-52
Command Manual – Security Chapter 1 AAA and RADIUS/HWTACACS Protocol
Comware V3 Configuration Commands
If you execute this command repeatedly, the new settings will replace the old settings.
You can remove a server only when it is not used by any active TCP connection for
sending authorization packets.
The HWTACACS client (the router) and HWTACACS server use the MD5 algorithm to
encrypt the exchanged packets between each other. The two ends verify the packets
using a shared key. They can properly receive packets and make responses only when
they use the same key. Therefore, the shared key on the router must be the same with
that on the HWTACACS server.
Example
# Set the IP address of the primary and secondary authorization servers of the
HWTACACS scheme named “h3c" to 10.110.1.2, set its UDP port number to 49, and
set its shared key to “sharekey”.
[H3C-hwtacacs-h3c] authorization primary ip 10.110.1.2 port 49 key sharekey
1.3.3 accounting
Syntax
View
HWTACACS view
Parameter
Description
Use the accounting command to set the IP address, port number and shared key for
the primary and secondary HWTACACS accounting servers.
Use the undo accounting command to delete the configured accounting servers.
By default, the IP address of TACACS accounting server is 0.0.0.0, without any key.
1-53
Command Manual – Security Chapter 1 AAA and RADIUS/HWTACACS Protocol
Comware V3 Configuration Commands
The primary and secondary accounting servers cannot use the same IP address.
Otherwise, the system will prompt unsuccessful configuration.
If you execute this command repeatedly, the new settings will replace the old settings.
You can remove a server that cannot be removed otherwise, only when it is not used by
any active TCP connection for sending accounting packets.
The HWTACACS client (the router) and HWTACACS server use the MD5 algorithm to
encrypt the exchanged packets between them. The two ends verify the packets using a
shared key. Only when the same key is used can they properly receive the packets and
make responses. Thus, the shared key on the router must be the same with that on the
HWTACACS server.
Example
# Configure the IP address to 10.110.1.2, UDP port number to 49, and shared key to
sharekey for the primary and secondary accounting servers of the HWTACACS
scheme “h3c".
[H3C-hwtacacs-h3c] accounting primary ip 10.110.1.2 port 49 key sharekey
1.3.4 data-flow-format
Syntax
View
HWTACACS view
Parameter
1-54
Command Manual – Security Chapter 1 AAA and RADIUS/HWTACACS Protocol
Comware V3 Configuration Commands
Description
Use the data-flow-format command to configure the unit of data flows sent to the
TACACS server.
Use the undo data-flow-format command to restore the default.
By default, the data unit is byte and the data packet unit is one-packet.
Related command: display hwtacacs.
Example
# Set the unit of data flow destined for the HWTACACS server "h3c" to be kilo-byte and
the data packet unit be kilo-packet.
[H3C-hwtacacs-h3c] data-flow-format data kilo-byte packet kilo-packet
Syntax
View
User view
Parameter
Description
Example
1-55
Command Manual – Security Chapter 1 AAA and RADIUS/HWTACACS Protocol
Comware V3 Configuration Commands
Syntax
View
Any view
Parameter
Description
Example
1-56
Command Manual – Security Chapter 1 AAA and RADIUS/HWTACACS Protocol
Comware V3 Configuration Commands
Domain-included : No
Traffic-unit : B
Packet traffic-unit : one-packet
Table 1-7 Description on the fields of the display radius statistics command
Field Description
HWTACACS-server template name HWTACACS scheme
IP address and port number of the
Primary-authentication-server
primary authentication server
IP address and port number of the
Primary-authorization-server
primary authorization server
IP address and port number of the
Primary-accounting-server
primary accounting server
IP address and port number of the
Secondary-authentication-server
secondary authentication server
IP address and port number of the
Secondary-authorization-server
secondary authorization server
IP address and port number of the
Secondary-accounting-server
secondary accounting server
IP address and port number of the
Current-authentication-server
current authentication server
IP address and port number of the
Current-authorization-server
current authorization server
IP address and port number of the
Current-accounting-server
current accounting server
Source IP address in transmitted
Source-IP-address
HWTACACS packets
Shared key of the HWTACACS
key authentication
authentication server
Shared key of the HWTACACS
key authorization
authorization server
Shared key of the HWTACACS
key accounting
accounting server
Time that the primary server waits
Quiet-interval(min)
before resuming the active state
Maximum time waiting for response from
Response-timeout-Interval(sec)
the TACACS server
Domain name is included in the
Domain-included
username sent to the TACACAS server
Traffic-unit Traffic unit: byte (B), GB, KB, or MB
1-57
Command Manual – Security Chapter 1 AAA and RADIUS/HWTACACS Protocol
Comware V3 Configuration Commands
Field Description
Packet unit: giga-packet, kilo-packet,
Packet traffic-unit
mega-packet, one-packet
Syntax
View
Any view
Parameter
Description
Example
Field Description
NO. Sequence number of the stop-accounting request
1-58
Command Manual – Security Chapter 1 AAA and RADIUS/HWTACACS Protocol
Comware V3 Configuration Commands
Field Description
SendTime Count of stop-accounting request transmission attempts
IP Address IP address of the TACACS server
Template HWTACACS authentication scheme name
Syntax
View
User view
Parameter
None
Description
Use the hwtacacs change-password self command to enable the TACACS online
user to change the password.
After this command is configured, the system guides the TACACS online user through
to change the password. Three chances are available for changing the password.
Failure to do so makes the TACACS server quit this operation automatically.
This function is only valid for terminal users (including console, AUX, TTY, and VTY)
configured with TACACS authentication.
Example
New Password:
Password Changed
1-59
Command Manual – Security Chapter 1 AAA and RADIUS/HWTACACS Protocol
Comware V3 Configuration Commands
Syntax
View
System view
Parameter
Description
Use the hwtacacs nas-ip command to specify the source address of the hwtacacs
packet sent from NAS.
Use the undo hwtacacs nas-ip command to restore the default setting.
By specifying the source address of the hwtacacs packet, you can avoid unreachable
packets as returned from the server upon interface failure. The source address is
normally recommended to be a loopback interface address.
By default, the source address is not specified, that is, the address of the interface
sending the packet serves as the source address.
This command specifies only one source address; therefore, the newly configured
source address may overwrite the original one.
Example
Syntax
View
System view
Parameter
1-60
Command Manual – Security Chapter 1 AAA and RADIUS/HWTACACS Protocol
Comware V3 Configuration Commands
Description
Use the hwtacacs scheme command to enter HWTACACS Server view. If the
specified HWTACACS server scheme does not exist, you can create a new
HWTACACS scheme.
Use the .undo hwtacacs scheme command to delete an HWTACACS scheme.
Example
# Create an HWTACACS scheme named "test1" and enter the relevant HWTACACS
Server view.
[H3C] hwtacacs scheme test1
[H3C-hwtacacs-test1]
1.3.11 key
Syntax
View
HWTACACS view
Parameter
Description
Use the key command to set a shared key for the HWTACACS authentication,
authorization and accounting servers.
Use the undo key command to remove the setting.
By default, no key is set for the TACACS server.
The TACACS client (the router system) and the TACACS server use MD5 algorithm to
encrypt packets exchanged between them. The two ends verify the packets using a
shared key. Only when the same key is used can they properly receive packets and
make responses. Therefore, it must be ensured that the shared key set on the router is
consistent with that on the RADIUS server. If the authentication/authorization server
and accounting server are not the same device and the shared keys set on them are
1-61
Command Manual – Security Chapter 1 AAA and RADIUS/HWTACACS Protocol
Comware V3 Configuration Commands
Note:
This command applies only to the AR 18-2X series routers (excluding the AR
18-21A/21B routers).
Example
1.3.12 nas-ip
Syntax
nas-ip ip-address
undo nas-ip
View
HWTACACS view
Parameter
Description
Use the nas-ip command to have all the HWTACACS packets sent by the NAS (the
router) carry the same source address.
Use the undo nas-ip command to delete the setting.
Specifying a source address for the HWTACACS packets to be transmitted can avoid
the situation where the packets sent back by the TACACS server cannot be received as
the result of a physical interface failure. The address of a loopback interface is usually
used as the source address.
By default, the source IP address of a HWTACACS packet sent by the NAS is the IP
address of the output port.
Related command: display hwtacacs.
1-62
Command Manual – Security Chapter 1 AAA and RADIUS/HWTACACS Protocol
Comware V3 Configuration Commands
Example
# Set the source IP address carried in the HWTACACS packets that are sent by the
NAS to 10.1.1.1.
[H3C] hwtacacs scheme test1
[H3C-hwtacacs-test1] nas-ip 10.1.1.1
Syntax
View
HWTACACS view
Parameter
ip-address: IP address of the server, a valid unicast address in dotted decimal format.
port: Port number of the server, which is in the range 1 to 65535 and defaults to 49.
Description
Note:
This command applies only to the AR 18-2X series routers (excluding the AR
18-21A/21B routers).
1-63
Command Manual – Security Chapter 1 AAA and RADIUS/HWTACACS Protocol
Comware V3 Configuration Commands
Example
Syntax
View
HWTACACS view
Parameter
ip-address: IP address of the server, a valid unicast address in dotted decimal format.
port: Port number of the server, which is in the range 1 to 65535 and defaults to 49.
Description
Note:
This command applies only to the AR 18-2X series routers (excluding the AR
18-21A/21B routers).
1-64
Command Manual – Security Chapter 1 AAA and RADIUS/HWTACACS Protocol
Comware V3 Configuration Commands
Example
Syntax
View
HWTACACS view
Parameter
ip-address: IP address of the server, a valid unicast address in dotted decimal format.
port: Port number of the server, which is in the range 1 to 65535 and defaults to 49.
Description
1-65
Command Manual – Security Chapter 1 AAA and RADIUS/HWTACACS Protocol
Comware V3 Configuration Commands
Note:
This command applies only to the AR 18-2X series routers (excluding the AR
18-21A/21B routers).
Example
Syntax
View
User view
Parameter
Description
Use the reset hwtacacs statistics command to clear HWTACACS protocol statistics.
Related command: display hwtacacs.
Example
Syntax
View
User view
1-66
Command Manual – Security Chapter 1 AAA and RADIUS/HWTACACS Protocol
Comware V3 Configuration Commands
Parameter
Description
Example
# Delete the buffered stop-accounting requests that are related to the HWTACACS
scheme “h3c”.
<H3C> reset stop-accounting-buffer hwtacacs-scheme h3c
Syntax
View
HWTACACS view
Parameter
Description
1-67
Command Manual – Security Chapter 1 AAA and RADIUS/HWTACACS Protocol
Comware V3 Configuration Commands
Example
Syntax
View
HWTACACS view
Parameter
ip-address: IP address of the server, a valid unicast address in dotted decimal format.
port: Port number of the server, which is in the range 1 to 65535 and defaults to 49.
Description
Example
1-68
Command Manual – Security Chapter 1 AAA and RADIUS/HWTACACS Protocol
Comware V3 Configuration Commands
Syntax
View
HWTACACS view
Parameter
ip-address: IP address of the server, a valid unicast address in dotted decimal format.
port: Port number of the server, which is in the range 1 to 65535 and defaults to 49.
Description
Example
Syntax
1-69
Command Manual – Security Chapter 1 AAA and RADIUS/HWTACACS Protocol
Comware V3 Configuration Commands
View
HWTACACS view
Parameter
ip-address: IP address of the server, a legal unicast address in dotted decimal format.
port: Port number of the server, ranging from 1 to 65535. By default, it is 49.
Description
Example
Syntax
View
HWTACACS view
Parameter
minutes: Ranges from 1 to 255 minutes. By default, the primary server must wait five
minutes before it resumes the active state.
1-70
Command Manual – Security Chapter 1 AAA and RADIUS/HWTACACS Protocol
Comware V3 Configuration Commands
Description
Use the timer quiet command to set the duration that a primary server must wait
before it can resume the active state.
Use the undo timer quiet command to restore the default (five minutes).
Related command: display hwtacacs.
Example
# Set the quiet timer for the primary server to ten minutes.
[H3C] hwtacacs scheme test1
[H3C-hwtacacs-test1] timer quiet 10
Syntax
View
HWTACACS view
Parameter
Description
1-71
Command Manual – Security Chapter 1 AAA and RADIUS/HWTACACS Protocol
Comware V3 Configuration Commands
Example
# Set the real-time accounting interval in the HWTACACS scheme “h3c” to 51 minutes.
[H3C-hwtacacs-h3c] timer realtime-accounting 51
Syntax
View
HWTACACS view
Parameter
Description
Use the timer response-timeout command to set the response timeout timer of the
TACACS server.
Use the undo timer response-timeout command to restore the default (five seconds).
Note:
As the HWTACACS is based on TCP, either the server response timeout and/or the
TCP timeout may cause disconnection to the TACACS server.
1-72
Command Manual – Security Chapter 1 AAA and RADIUS/HWTACACS Protocol
Comware V3 Configuration Commands
Example
1.3.25 user-name-format
Syntax
View
HWTACACS view
Parameter
with-domain: Specifies to send the username with domain name to the TACACS
server.
without-domain: Specifies to send the username without domain name to the
TACACS server.
Description
Use the user-name-format command to configure the username format sent to the
TACACS server.
By default, HWTACACS scheme acknowledges that the username sent to it includes
ISP domain name.
The supplicants are generally named in userid@isp-name format. The part following
the @ sign is the ISP domain name, according to which the router assigns a user to the
corresponding ISP domain. However, some earlier TACACS servers reject the user
name including ISP domain name. In this case, the user name is sent to the TACACS
server after its domain name is removed. Accordingly, the router provides this
command to decide whether the username is sent to the TACACS server, carrying ISP
domain name or not.
Note:
If a HWTACACS scheme is configured to reject usernames including ISP domain
names, the TACACS scheme shall not be simultaneously used in more than one ISP
domains. Otherwise, the TACACS server will regard two users in different ISP domains
as the same user by mistake, if they have the same username (excluding their
respective domain names.)
1-73
Command Manual – Security Chapter 1 AAA and RADIUS/HWTACACS Protocol
Comware V3 Configuration Commands
Example
# Specify to send the username without domain name to the HWTACACS scheme
"h3c".
[H3C-hwtacacs-h3c] user-name-format without-domain
1-74
Command Manual – Security
Comware V3 Chapter 2 Portal Configuration Commands
Syntax
debugging portal
undo debugging portal
View
User view
Parameter
None
Description
Example
2-1
Command Manual – Security
Comware V3 Chapter 2 Portal Configuration Commands
WAIT_AUTH_ACK
*0.2997800 H3C PORTAL/8/PT_DEBUG: User Index 11 State Change: WAIT_AUTH_ACK
-> WAIT_NEW_IP
*0.3004080 H3C PORTAL/8/PT_DEBUG: User Index 11 State Change: WAIT_NEW_IP ->
WAIT_LOGIN_ACK
*0.3004400 H3C PORTAL/8/PT_DEBUG: User Index 11 State Change: WAIT_LOGIN_ACK
-> ONLINE
3) The process for authentication failure:
*0.3106610 H3C PORTAL/8/PT_DEBUG: User Index 12 State Change: VOID -> DISCOV
ERED
*0.3106710 H3C PORTAL/8/PT_DEBUG: User Index 12 State Change: DISCOVERED ->
WAIT_AUTH_ACK
*0.3107100 H3C PORTAL/8/PT_DEBUG: User Index 12 State Change: WAIT_AUTH_ACK
-> VOID
4) The process for accounting failure:
*0.3792140 H3C PORTAL/8/PT_DEBUG: User Index 14 State Change: VOID -> DISCOV
ERED
*0.3792240 H3C PORTAL/8/PT_DEBUG: User Index 14 State Change: DISCOVERED ->
WAIT_AUTH_ACK
*0.3792500 H3C PORTAL/8/PT_DEBUG: User Index 14 State Change: WAIT_AUTH_ACK
-> WAIT_NEW_IP
*0.3799060 H3C PORTAL/8/PT_DEBUG: User Index 14 State Change: WAIT_NEW_IP ->
WAIT_LOGIN_ACK
*0.3808300 H3C PORTAL/8/PT_DEBUG: User Index 14 State Change: WAIT_LOGIN_ACK
-> VOID
5) The process for authentication timeout:
*0.6374350 H3C PORTAL/8/PT_DEBUG: User Index 15 State Change: VOID -> DISCOV
ERED
*0.6374450 H3C PORTAL/8/PT_DEBUG: User Index 15 State Change: DISCOVERED ->
WAIT_AUTH_ACK
*0.6419390 H3C PORTAL/8/PT_DEBUG: User Index 15 State Change: WAIT_AUTH_ACK
-> WAIT_LEAVING_ACK
*0.6419510 H3C PORTAL/8/PT_DEBUG: User Index 15 State Change: WAIT_LEAVING_A
CK -> VOID
6) The process for accounting timeout:
*0.6374350 H3C PORTAL/8/PT_DEBUG: User Index 15 State Change: VOID -> DISCOV
ERED
*0.6374450 H3C PORTAL/8/PT_DEBUG: User Index 15 State Change: DISCOVERED ->
WAIT_AUTH_ACK
*0.1766300 H3C PORTAL/8/PT_DEBUG: User Index 15 State Change: WAIT_AUTH_ACK
-
> WAIT_LOGIN_ACK
*0.1766700 H3C PORTAL/8/PT_DEBUG: User Index 15 State Change: WAIT_LOGIN_ACK
2-2
Command Manual – Security
Comware V3 Chapter 2 Portal Configuration Commands
-> WAIT_LEAVING_ACK
*0.6419510 H3C PORTAL/8/PT_DEBUG: User Index 15 State Change: WAIT_LEAVING_A
CK -> VOID
7) The process for no response when the request for a public IP address times out:
*0.6904000 H3C PORTAL/8/PT_DEBUG: User Index 17 State Change: VOID -> DISCOV
ERED
*0.6904100 H3C PORTAL/8/PT_DEBUG: User Index 17 State Change: DISCOVERED ->
WAIT_AUTH_ACK
*0.6904400 H3C PORTAL/8/PT_DEBUG: User Index 17 State Change: WAIT_AUTH_ACK
-> WAIT_NEW_IP
*0.6923720 H3C PORTAL/8/PT_DEBUG: User Index 17 State Change: WAIT_NEW_IP ->
WAIT_LEAVING_ACK
*0.6923900 H3C PORTAL/8/PT_DEBUG: User Index 17 State Change: WAIT_LEAVING_A
CK -> VOID
Field Description
The user migrates from the VOID state to the
VOID -> DISCOVERED :
DISCOVERED state.
The user migrates from the DISCOVERED state to
DISCOVERED ->
the WAIT_AUTH_ACK state (waiting for
WAIT_AUTH_ACK:
authentication acknowledgement).
The user migrates from the WAIT_AUTH_ACK state
WAIT_AUTH_ACK ->
to the WAIT_LOGIN_ACK state (waiting for
WAIT_LOGIN_ACK:
accounting acknowledgement).
WAIT_LOGIN_ACK-> The user migrates from the WAIT_LOGIN_ACK state
ONLINE: to the ONLINE state.
The user migrates from the ONLINE state to the
ONLINE ->
WAIT_LOGOUT_ACK state (waiting for logout
WAIT_LOGOUT_ACK:
acknowledgement).
WAIT_LOGOUT_ACK-> The user migrates from the WAIT_LOGOUT_ACK
VOID: state to the VOID state, that is, the user is deleted.
The user migrates from the WAIT_NEW_IP state
WAIT_NEW_IP (waiting for refreshing the public IP address) to the
->WAIT_LOGIN_ACK: WAIT_LOGIN_ACK state (waiting for accounting
acknowledgement) in re-DHCP operating mode.
The user migrates from the WAIT_AUTH_ACK state
WAIT_AUTH_ACK->VOID: to the VOID state, that is, the user fails the
authentication and is deleted.
The user migrates from the WAIT_LOGIN_ACK state
WAIT_LOGIN_ACK ->
to the VOID state, that is, the user fails the accounting
VOID:
and is deleted.
2-3
Command Manual – Security
Comware V3 Chapter 2 Portal Configuration Commands
Field Description
The user migrates from the WAIT_AUTH_ACK state
WAIT_AUTH_ACK-> to the WAIT_LEAVING_ACK state (waiting for
WAIT_LEAVING_ACK: leaving acknowledgement), that is, the user
authentication times out.
The user migrates from the WAIT_LOGIN_ACK state
WAIT_LOGIN_ACK->
to the WAIT_LEAVING_ACK state, that is, the user
WAIT_LEAVING_ACK:
accounting times out.
The user migrates from the WAIT_NEW_IP state to
WAIT_NEW_IP ->
the WAIT_LEAVING_ACK state, that is, the user fails
WAIT_LEAVING_ACK:
when trying to obtain a public IP address.
Syntax
View
Any view
Parameter
Description
Use the display portal command to display the information about portal servers.
2-4
Command Manual – Security
Comware V3 Chapter 2 Portal Configuration Commands
Example
Field Description
Service Type Portal service type: portal or portal+
Operating mode of the portal server, which can be Direct
Run Method for direct authentication, or Redhcp for re-DHCP
authentication.
2-5
Command Manual – Security
Comware V3 Chapter 2 Portal Configuration Commands
Field Description
Name of resources accessible to users. It may be set
Resource Name
when portal+ applies.
Free IP addresses. The IP address of a portal server is a
Free IP
free IP address displayed with an interface of any.
Free User Authentication-free users
Update resources. When the user passes identity
Update-resource authentication of EAD, it can access update resources,
that is, the resources in the isolation zone.
Update-resource ID, corresponding to the isolation ACL
Update-resource-id
configured on the security policy server for the router.
All-resource ID, corresponding to the security ACL
All-resource-id
configured on the security policy server for the router.
Basic configurations of the portal server, including the
Portal Server name, IP address, communication key, port, and URL for
HTTP redirection.
z Information about portal-enabled interfaces, including
whether they are portal-enabled and the name of the
Interface Portal portal server.
Configuration z Information about connected users, such as the user
state, MAC address, IP address, and connected
interface.
Note:
The MAC address of a user can be displayed in the information output of the display
portal command only when the re-DHCP authentication mode is used for portal
authentication.
2-6
Command Manual – Security
Comware V3 Chapter 2 Portal Configuration Commands
PT_MSG_LOGIN_ACK 1
PT_MSG_LOGOUT_ACK 1
PT_MSG_LEAVING_ACK 0
PT_MSG_CUT_REQ 0
PT_MSG_ARPPKT 16
PT_MSG_UPDATE 0
PT_MSG_TMR_AUT 0
PT_MSG_TMR_LGN 0
PT_MSG_TMR_LGT 0
PT_MSG_TMR_LEV 0
PT_MSG_TMR_NIP 0
PT_MSG_TMR_USERIPCHANGE 0
PT_MSG_TMR_REQAUTH 0
ERROR Statistics:
MEM Error: 0 RCV MSG ERR: 0 SND MSG ERR: 0
Table 2-3 Description on the fields of the display portal acm statistics command
Field Description
Statistics of the state machine, indicating the
ACM Statistics
number of users in each state.
The state of waiting for MAC address
WAIT_MAC_ACK acknowledgement. The statistical value for this state
is always 0.
DISCOVERED The DISCOVERED state.
The state of waiting for authentication
WAIT_AUTH_ACK
acknowledgement
The state of waiting for accounting
WAIT_LOGIN_ACK
acknowledgement
The state of waiting for ACL update. The statistical
WAIT_ACL_ACK
value for this state is always 0.
WAIT_NEW_IP The state of waiting for a new IP address
ONLINE The online state
WAIT_LOGOUT_ACK The state of waiting for logout acknowledgement
Message Statistics Statistics about received messages.
PT_MSG_AUTH_ACK Authentication acknowledgement messages
PT_MSG_LOGIN_ACK Accounting acknowledgement messages
PT_MSG_LOGOUT_ACK Logout acknowledgement messages
PT_MSG_LEAVING_ACK Leaving acknowledgement messages
PT_MSG_CUT_REQ Logout requests
2-7
Command Manual – Security
Comware V3 Chapter 2 Portal Configuration Commands
Field Description
PT_MSG_ARPPKT ARP packets
PT_MSG_UPDATE Update messages
PT_MSG_TMR_AUT Authentication timer messages
PT_MSG_TMR_LGN Accounting timer messages
PT_MSG_TMR_LGT Logout timer messages
PT_MSG_TMR_LEV Leaving timer messages
PT_MSG_TMR_NIP New IP timer messages
PT_MSG_TMR_USERIPCH Waiting for IP update acknowledgement timer
ANGE messages
PT_MSG_TMR_REQAUTH Waiting for authentication timer messages
ERROR Statistics Error statistics
MEM Error/RCV MSG Error statistics, including memory errors, received
ERR/SND MSG ERR and sent error messages
2.1.3 portal
Syntax
portal server-name
undo portal
View
Parameter
Description
Example
2-8
Command Manual – Security
Comware V3 Chapter 2 Portal Configuration Commands
Syntax
View
System view
Parameter
Description
Use the portal auth-network command to configure a network segment for portal
authentication.
Use the undo portal auth-network command to remove a specified authentication
network segment or all authentication network segments.
By default, no authentication network segments are configured.
Example
Syntax
View
System view
Parameter
2-9
Command Manual – Security
Comware V3 Chapter 2 Portal Configuration Commands
interface-type interface-num: Type and number of the Ethernet interface on which the
free IP address of the host is configured.
all: All the free IP addresses.
Description
Example
Syntax
View
System view
Parameter
Description
2-10
Command Manual – Security
Comware V3 Chapter 2 Portal Configuration Commands
In actual networking environments, you can configure some servers and the LAN
network devices attached to the router as authentication-free users, enabling them to
access all networks without authentication.
The authentication-free user information contains the IP address of the user and the
interface on the router to which the user is connected. Only the user whose information
fully matches the authentication-free user information can be allowed to access the
Internet without authentication.
Caution:
Example
Syntax
View
System view
Parameter
Description
2-11
Command Manual – Security
Comware V3 Chapter 2 Portal Configuration Commands
Use the undo portal method command to restore the default authentication method,
that is, direct authentication.
Example
Syntax
portal server server-name { ip ip-address | key key-string | port port | url url-string } *
undo portal server server-name [ key | port | url ]
View
System view
Parameter
Description
Use the portal server command to configure a portal server or modify the configuration
of a portal server.
Use the undo portal server command to delete a specified portal server or restore the
default settings for a specified portal server.
All users can access a portal server without limitation.
2-12
Command Manual – Security
Comware V3 Chapter 2 Portal Configuration Commands
Caution:
z When configuring a portal server for the first time, you must specify its IP address.
z To modify the parameters of a portal server which is referenced by an interface, you
must first remove the portal server from the port.
z The IP address of a portal server is a free IP address. If the number of free IP
addresses has already reached the maximum number, the portal server
configuration will fail.
Example
Syntax
View
User view
Parameter
acm: Clears portal ACM statistics, that is, clear the state machine statistics related to
authentication, connection, and management.
server: Clears portal server statistics.
tcp-cheat: Clears TCP spoofing statistics.
Description
Use the reset portal command to clear the related portal statistics.
Example
2-13
Command Manual – Security
Comware V3 Chapter 2 Portal Configuration Commands
Syntax
View
System view
Parameter
Description
Example
# Enable fast portal authentication for portal server pt, and specify to use user name
fast and password 123.
[H3C] portal fast-authentication server pt user-name fast password 123
Syntax
View
Any view
Parameter
None
2-14
Command Manual – Security
Comware V3 Chapter 2 Portal Configuration Commands
Description
Use the display portal update-resource command to display information about the
update resources configured by the user.
Example
Table 2-4 Description on the fields of the display portal update-resource command
Field Description
IP IP address of update resource
Mask Subnet mask of update resource
Syntax
View
System view
Parameter
Description
Use the portal service-type command to set the portal authentication mode.
Use the undo portal service-type command to restore the default portal
authentication mode.
After you enable portal on an interface, normal portal authentication mode applies by
default.
Portal+ is an enhancement to portal; it supports endpoint admission defense in addition
to the functions provided by portal.
2-15
Command Manual – Security
Comware V3 Chapter 2 Portal Configuration Commands
Example
Syntax
View
Parameter
Description
Use the portal upload-ip command to configure the IP address of the interface
connected to the CAMS server.
Use the undo portal upload-ip command to delete the IP address of the interface
connected to the CAMS server.
By default, the IP address of the interface connected to the CAMS server is not
configured.
Use this command only on the Ethernet interface enabled with portal authentication.
Example
Syntax
View
System view
2-16
Command Manual – Security
Comware V3 Chapter 2 Portal Configuration Commands
Parameter
Description
Example
Syntax
View
System view
Parameter
Description
2-17
Command Manual – Security
Comware V3 Chapter 2 Portal Configuration Commands
Use the undo portal update-resource-id command to delete the update-resource ID.
By default, the update-resource ID is not configured.
The update-resource ID is corresponding to the isolation ACL configured on the
security policy server for the router.
The security policy server issues the isolation ACL when an endpoint user using portal+
client passes identity authentication of AAA. If this isolation ACL is the same as the
update-resource ID, the user can access update resources. If this isolation ACL is not
the same as the update-resource ID, the router assigns the update-resource ID to the
user. By using this update-resource ID, the user can access update resources.
To access resources other than update resources, the user must pass the security
authentication.
Example
Syntax
View
System view
Parameter
Description
2-18
Command Manual – Security
Comware V3 Chapter 2 Portal Configuration Commands
all-resource ID. With the all-resource ID, the user can access network resources other
than update resources.
Example
Syntax
View
System view
Parameter
Description
Example
2.2.8 security-policy-server
Syntax
security-policy-server ip-address
2-19
Command Manual – Security
Comware V3 Chapter 2 Portal Configuration Commands
View
Parameter
Description
Example
2-20
Command Manual – Security Chapter 3 Access Control List Configuration
Comware V3 Commands
Syntax
View
System View
Parameter
Description
Use the acl command to create an access control list and enter ACL view.
Use the undo acl command to delete an access control list.
An access control list consists of a list of rules that are described by a series of permit
or deny sub-sentences. Several rule lists form an ACL. Before configuring the rules for
an access control list, you should create the access control list first.
Example
3-1
Command Manual – Security Chapter 3 Access Control List Configuration
Comware V3 Commands
Syntax
View
System view
Parameter
Description
Use the acl-reflect timeout command to set the global aging time of reflexive ACLs.
Use the undo acl-reflect timeout command to restore the global aging time of
reflexive ACLs to the default value.
By default, the global aging time of reflexive ACLs is 300 seconds.
Example
Syntax
View
Any view
Parameter
Description
Use the display acl command to view the rules of access control list.
The rule match order defaults to config or the configuration order. If it applies, the
display command does not show information on the match order. If the match order
auto applies, the display command shows that.
3-2
Command Manual – Security Chapter 3 Access Control List Configuration
Comware V3 Commands
Example
3.1.4 nesting
Syntax
nesting acl-number
undo nesting acl-number
View
ACL view
Parameter
Description
Example
Syntax
View
User View
Parameter
3-3
Command Manual – Security Chapter 3 Access Control List Configuration
Comware V3 Commands
Description
Use the reset acl counter command to clear the statistics of access control list.
Example
3.1.6 rule
Syntax
View
ACL view
3-4
Command Manual – Security Chapter 3 Access Control List Configuration
Comware V3 Commands
Parameter
3-5
Command Manual – Security Chapter 3 Access Control List Configuration
Comware V3 Commands
source-port: Optional, specify source port information of UDP or TCP packets, valid
only when the protocol specified by the rule is TCP or UDP. If it is not specified, it
indicates that any source port information of TCP/UDP packets matches.
destination-port: Optional, specify destination port information of UDP or TCP packets,
valid only when the protocol specified by the rule is TCP or UDP. If it is not specified, it
indicates that any destination port information of TCP/UDP packets matches.
operator: Optional, comparison between port number of source or destination address.
Their names and meanings are as follows: lt (lower than), gt (greater than), eq (equal
to), neq (not equal to) and range (between). If the operator is range, two port numbers
should follow it. Others only need one port number.
port1, port2: Optional, port number of TCP or UDP, expressed by name or number. The
number range is from 0 to 65535.
dscp dscp: Specifies a DSCP field, the DS byte in IP packets, which is mutually
exclusive with the precedence and TOS parameters.
established: Matches the TCP packets with the ACK and/or RST flag, including the
TCP packets of these types: SYN+ACK, ACK, FIN+ACK, RST, RST+ACK.
precedence: Optional, a number ranging from 0 to 7, or a name. Packets can be
filtered according to precedence field. This parameter is mutually exclusive with the
DSCP and TOS parameters.
tos tos: Optional, a number ranging from 0 to 15 or a name. Packets can be filtered
according to type of service. This parameter is mutually exclusive with the DSCP and
precedence parameters.
logging: Optional, indicating whether to log qualified packets. The log contents include
sequence number of ACL rule, packets passed or discarded, upper layer protocol type
over IP, source/destination address, source/destination port number, and number of
packets. This parameter applies only to the firewall module. Namely, when other
modules invoke the ACL, the matched packets are not logged.
time-range time-name: Specifies that the ACL is valid in this time range.
fragment: Specifies that this rule is only valid for the fragment packets that are not the
first fragment. When this parameter is contained, it indicates that the rule is only valid
for the fragment packets that are not the first fragment. A matching rule specified
without this keyword cannot match fragments.
interface interface-type interface-number: Specifies the interface information of the
packets, which cannot be L2 Ethernet port information. If no interface is specified, all
interfaces can be matched. any represents all interfaces.
vpn-instance: Optional, specifies a vpn-instance. If it is not specified, the ACL rule is
invalid for packets in all vpn-instances. If it is specified, the ACL rule is valid only for the
specified vpn-instance.
vpn-instance-name: Specifies the name of a vpn-instance that existed.
3-6
Command Manual – Security Chapter 3 Access Control List Configuration
Comware V3 Commands
3-7
Command Manual – Security Chapter 3 Access Control List Configuration
Comware V3 Commands
Description
Example
# Add a rule to permit hosts in the network segment 129.9.0.0 to send WWW packet to
hosts in the network segment 202.38.160.0.
[H3C-acl-adv-3001] rule permit tcp source 129.9.0.0 0.0.255.255 destination
202.38.160.0 0.0.0.255 destination-port eq www
# Add a rule to deny the WWW access (80) from the host in network segment 129.9.0.0
to the host in network segment 202.38.160.0, and log events that violate the rule.
[H3C-acl-adv-3001] rule deny tcp source 129.9.0.0 0.0.255.255 destination
202.38.160. 0 0.0.0.255 eq www logging
# Add a rule to permit the WWW access (80) from the host in network segment
129.9.8.0 to the host in network segment 202.38.160.0.
[H3C-acl-adv-3001] rule permit tcp source 129.9.8.0 0.0.0.255 destination
202.38.160.0 0.0.0.255 destination-port eq www
# Add a rule to prohibit all hosts from establishing Telnet (23) connection to the host
with the IP address 202.38.160.1.
[H3C-acl-adv-3001] rule deny tcp destination 202.38.160.1 0 destination-port
eq telnet
# Add a rule to prohibit create UDP connections with port number greater than 128 from
the hosts in network segment 129.9.8.0 to the hosts in network segment 202.38.160.0
[H3C-acl-adv-3001] rule deny udp source 129.9.8.0 0.0.0.255 destination
202.38.160.0 0.0.0.255 destination-port gt 128
# Add a rule, denying the packets carrying the source address 1.1.1.1 from VPN vrf1.
3-8
Command Manual – Security Chapter 3 Access Control List Configuration
Comware V3 Commands
Syntax
View
Any view
Parameter
Description
Use the display time-range command to view the configuration and the status of time
range. For the active time range at present, it displays "active" and for the inactive time
range, it displays "inactive".
Since there is a time deviation when the system updates acl status, which is about 1
minute, but display time-range will display the information of time range at the current
time exactly. Thus, the following case may happen: use the command display
time-range to find that a time range is activated but the acl that should be active in the
time range is inactive. This case is normal.
Example
3-9
Command Manual – Security Chapter 3 Access Control List Configuration
Comware V3 Commands
3.2.2 time-range
Syntax
View
System view
Parameter
Description
3-10
Command Manual – Security Chapter 3 Access Control List Configuration
Comware V3 Commands
Example
# Configure the time range valid at 0:0 on Jan. 1, 2004, always valid.
[H3C] time-range test from 0:0 1/1/2004
# Configure the time range valid between 14:00 and 16:00 in every weekend from
20:00 on Apr.01, 2004 to 20:00 on Dec.10, 2004.
[H3C] time test 14:00 to 16:00 off-day from 20:00 04/01/2004 to 20:00 12/10/2004
# Configure the time range valid between 8:00 and 18:00 in each working day.
[H3C] time-range test 8:00 to 18:00 working-day
# Configure the time range valid between 14:00 and 18:00 in each weekend day.
[H3C] time-range test 14:00 to 18:00 off-day
3-11
Command Manual – Security
Comware V3 Chapter 4 Firewall Configuration Commands
Syntax
debugging firewall { all | eff | icmp | packet { permitted | denied } | tcp | udp |
fragments-inspect | others } [ interface type number ]
undo debugging firewall { all | eff | icmp | packet { permitted | denied } | tcp | udp |
fragments-inspect | others } [ interface type number ]
View
User view
Parameter
Description
Use the debugging firewall command to enable the information debugging of the
firewall packet filtering.
Use the undo debugging firewall command to disable the information debugging of
the firewall packet filtering.
By default, all the information debugging of the firewall is disabled.
Related command: display debugging.
4-1
Command Manual – Security
Comware V3 Chapter 4 Firewall Configuration Commands
Example
Syntax
View
Any view
Parameter
Description
Example
Syntax
View
System view
Parameter
4-2
Command Manual – Security
Comware V3 Chapter 4 Firewall Configuration Commands
Description
Use the firewall default command to configure the default filtering rule of the firewall,
whether to be “permit” or “deny”.
By default, the system permits packets.
Example
Syntax
firewall enable
undo firewall enable
View
System view
Parameter
None
Description
Example
Syntax
firewall fragments-inspect
undo firewall fragments-inspect
View
System view
4-3
Command Manual – Security
Comware V3 Chapter 4 Firewall Configuration Commands
Parameter
none
Description
Example
Syntax
View
System view
Parameter
high number: Specifies the high threshold of the fragment status records. It is in the
range from 100 to 10000.
low number: Specifies the low threshold of the fragment status records. It is in the
range from 100 to 10000.
4-4
Command Manual – Security
Comware V3 Chapter 4 Firewall Configuration Commands
default: Default number of fragment status records. The default high threshold of the
fragment status records is 2000 and the default low threshold of the fragment status
records is 1500.
Description
Use the firewall fragments-inspect { high | low } command to configure the high and
low thresholds of records for fragment inspection.
Use the undo firewall fragments-inspect { high | low } command to restore the
default high and low thresholds.
If fragment inspection switch is enabled and exact match filtering is applied, the
executing efficiency of the packet filtering will be slightly reduced. As the number of
matching entries increases, efficiency is reduced. Therefore, the (high and low)
thresholds should be set. When the number of fragment status records reaches the
high threshold, those status entries first reserved will be deleted until the number of
records is below the low threshold.
The low threshold must be no greater than the high threshold.
Related command: display firewall-statistics fragments-inspect and firewall
packet-filter.
Example
# Configure the high threshold for fragment packet inspection to 3000 and configure the
low threshold to the default value.
[H3C] firewall fragments-inspect high 3000
[H3C] firewall fragments-inspect low default
Syntax
View
Interface view
Parameter
4-5
Command Manual – Security
Comware V3 Chapter 4 Firewall Configuration Commands
match-fragments: Specify the matching mode of fragments. This parameter can only
be applied to advanced ACLs.
normally: Normal matching mode, the default mode.
exactly: Exact matching mode.
Description
Use the firewall packet-filter command to apply the access control list to the
corresponding interface.
Use the undo firewall packet-filter command to delete the corresponding setting.
Interface-based ACL (namely ACL rule with sequence number from 1000 to 1999) can
only use the parameter outbound.
Packet-filtering on Comware platform can filter fragment packets, which matches and
filters all fragment packets on layer 3 (IP layer) by source IP address, destination IP
address etc. It also provides standard matching and exact matching for advanced ACL
rules that contain extended information such as TCP/UDP port number and type of
ICMP.
The standard matching matches layer 3 information and special information such as
time range and vpn-instance, and neglects layer 4 Information. The exact matching
matches packets according to all filtering rules of an advanced ACL, including layer 3
and layer 4 information, time range, and vpn-instance. If an advanced ACL includes
layer 4 filtering rules but the interface employs the default standard matching mode, the
layer 4 filtering rules do not take effect.
For the layer 4 matching rules in an advanced ACL to take effect, you must first
configure the firewall fragments-inspect command on the firewall to enable fragment
inspection, making the firewall record the layer 4 information in the first fragment of a
packet to obtain complete matching information about the non-first-fragments. In
addition, you must configure the interface to filter fragments by exactly matching all the
rules in the ACL.
If the firewall enable command is not executed to enable the firewall function, the
packet filter function cannot take effect even if it is configured on the interface.
Related command: acl, display acl, and firewall fragments-inspect.
Example
# Apply ACL 1001 to the Serial1/0/0 interface to filter the packets forwarded by the
interface.
[H3C-Serial1/0/0] firewall packet-filter 1001 outbound
4-6
Command Manual – Security
Comware V3 Chapter 4 Firewall Configuration Commands
Syntax
View
User view
Parameter
Description
Example
Syntax
View
Parameter
seconds: The default timeout time of SYN, FIN, TCP and UDP is 30s, 5s, 3600s and
30s respectively.
Description
Use the aging-time command to configure SYN status waiting timeout value and FIN
status waiting timeout value of TCP, session entry idle timeout value of TCP and UDP.
Use the undo aging-time command to restore the default value.
Before the aging-time expires, the system will retain the connections and the sessions
that have been set up.
4-7
Command Manual – Security
Comware V3 Chapter 4 Firewall Configuration Commands
Related command: display aspf all, display aspf policy, display aspf session and
display aspf interface.
Example
4.2.2 aspf-policy
Syntax
aspf-policy aspf-policy-number
undo aspf-policy aspf-policy-number
View
System view
Parameter
Description
Use the aspf-policy command to define an ASPF policy. For a defined policy, the policy
can be invoked through its policy number.
Example
Syntax
debugging aspf { all | verbose | events | ftp | h323 | http | rtsp | session | smtp | tcp
| timers | udp }
4-8
Command Manual – Security
Comware V3 Chapter 4 Firewall Configuration Commands
undo debugging aspf { all | verbose | events | ftp | h323 | http | rtsp | session |
smtp | tcp | timers | udp }
View
User view
Parameter
Description
Example
4.2.4 detect
Syntax
4-9
Command Manual – Security
Comware V3 Chapter 4 Firewall Configuration Commands
View
Parameter
Description
Use the detect command to specify ASPF policy for application layer protocols.
Use the undo detect command to cancel the configuration.
When the protocol is HTTP, Java blocking is permitted.
If both application layer protocol specific detection and generic TCP/UDP-based
detection are configured, the former has priority.
ASPF uses the timeout mechanism to manage session state information of protocols
so that it can decide when to stop managing the state information of a session or delete
a session that cannot be set up normally. The timeout time setting is a global setting
applicable to all sessions; it can protect system resources against malicious
occupation.
Related command: display aspf all, display aspf policy, display aspf session and
display aspf interface.
Example
# Configure to specify an ASPF policy for HTTP protocol with policy number 1. At the
same time, permit Java blocking and set ACL2000 to make ASPF able to filter Java
Applets from destination server 10.1.1.1.
[H3C] acl number 2000
[H3C-acl-basic-2000] rule deny source 10.1.1.1 0
[H3C-acl-basic-2000] rule permit any
[H3C-acl-basic-2000] quit
[H3C] aspf-policy 1
[H3C-aspf-policy-1] detect http java-blocking 2000
4-10
Command Manual – Security
Comware V3 Chapter 4 Firewall Configuration Commands
Syntax
View
Any view
Parameter
None
Description
Use the display aspf all command to view the information of all ASPF policies and
sessions.
Example
[Interface Configuration]
Interface: Ethernet0/0/0
Inbound ASPF policy: none
Outbound ASPF policy: 1
Item Description
Session audit trail: disabled The session logging function is disabled.
TCP connected SYN status timeout value is 30
tcp syn wait-time
seconds.
TCP connection FIN status timeout value is 5
tcp finnwait-time
seconds.
Timeout for the idle-time of TCP session is 3600
tcp idle-time
seconds.
4-11
Command Manual – Security
Comware V3 Chapter 4 Firewall Configuration Commands
Item Description
Timeout for the idle-time of UDP session is 30
udp idle-time
seconds.
Detect the HTTP traffic and filter the Java Applets
from some particular sites by using ACL 1. The HTTP
http java-list 1 timeout
timeout time is set to 3000 seconds. “h323 timeout”
indicates the timeout time of the h323 session entry.
The policy inspects h323 traffic. The timeout time of
h323 timeout
h323 is 3600 seconds.
The policy inspects tcp traffic. The timeout time of tcp
tcp timeout
is 33 seconds.
Inbound ASPF policy ASPF policy in the inbound direction of the interface
outbound ASPF policy ASPF policy in the outbound direction of the interface
Syntax
View
Any view
Parameter
None
Description
Use the display aspf interface command to view the interface configuration of the
inspection policy.
Example
4-12
Command Manual – Security
Comware V3 Chapter 4 Firewall Configuration Commands
Item Description
Inbound ASPF policy ASPF policy in the inbound direction of the interface
outbound ASPF policy ASPF policy in the outbound direction of the interface
Syntax
View
Any view
Parameter
Description
Use the display aspf policy command to view the configuration of a specific inspection
policy.
Example
# Display the configuration information of the inspection policy with policy number of 1.
[H3C] display aspf policy 1
[ASPF Policy 1]
Session audit trail: disabled
tcp synwait-time: 30 sec
tcp finwait-time: 5 sec
tcp idle-time: 3600 sec
udp idle-time: 30 sec
h323 timeout: 3600
tcp timeout: 33
Syntax
View
Any view
4-13
Command Manual – Security
Comware V3 Chapter 4 Firewall Configuration Commands
Parameter
Description
Use the display aspf session command to view the information of the ASPF sessions.
Example
Item Description
Transport layer protocol is numbered 6, which means
TransProt: 6
that TCP is used.
Application layer protocol uses port 21, which means
AppProt: 21
that the sessions are FTP sessions
Interface: Ethernet1/0/0 ASPF policy is applied in outbound direction of the
Direction: outbound interface Ethernet1/0/0
4-14
Command Manual – Security
Comware V3 Chapter 4 Firewall Configuration Commands
Item Description
Timeout 00:02:00(120) Timeout time set for the protocol is 120 seconds
Syntax
View
Any view
Parameter
Description
Example
Syntax
View
Interface view
Parameter
4-15
Command Manual – Security
Comware V3 Chapter 4 Firewall Configuration Commands
Description
Use the firewall aspf command to apply ASPF policy in specified direction to an
interface.
Use the undo firewall aspf command to delete the applied ASPF policy on the
interface.
There are two concepts in ASPF: inbound interface and outbound interface. If the
router connects with both intranet and internet, and uses ASPF to protect the servers of
intranet, the router interface connected with intranet is regarded as inbound interface
and that connected with internet is regarded as outbound interface.
When ASPF is applied on outbound interface, ASPF will refuse the access of intranet
from internet users, but the returning packets of intranet users accessing internet can
pass the detection of ASPF.
Example
Syntax
log enable
undo log enable
View
Description
Use the log enable command to enable ASPF session logging function.
Use the undo log enable command to disable logging function.
By default, session logging function is disabled.
ASPF provides enhanced session logging function, which can log all connections,
including connection time, source address, destination address, port in use and
transmitted bytes number.
Related command: display aspf all, display aspf policy, display aspf session,
display aspf interface.
Example
4-16
Command Manual – Security
Comware V3 Chapter 4 Firewall Configuration Commands
4.2.12 port-mapping
Syntax
View
System view
Parameter
application-name: Specifies the name of the application for PAM. Optional applications
include ftp, http, h323, smtp and rtsp.
port-number: Port number, ranging from 0 to 65535.
acl-number: Number of basic ACL, which is in the range from 2000 to 2999.
Description
Use the port-mapping command to establish a mapping from the port to application
layer protocol.
Use the undo port-mapping command to delete the PAM ingress defined by the user.
PAM supports two mapping mechanisms: general port mapping and host port mapping
based on basic ACL. The former is to establish the mapping relation between a
user-defined port number and an application protocol. For example, mapping the port
8080 to the HTTP will make all the TCP packets destined to 8080 be regarded as HTTP
packets. The latter is to map the self-defined port number to the application protocol for
the packets from some specific hosts. For example, you can map the TCP packets
using the port 8080, which destine to the hosts residing on the segment 1.1.0.0 to be
the HTTP packets. The range of hosts will be specified by the basic ACL.
Related command: display port-mapping.
Example
# Map port 3456 to FTP service, with this configuration, all the data flows destined to
port 3456 will be regarded as FTP data flows.
[H3C] port-mapping ftp port 3456
4-17
Command Manual – Security
Comware V3 Chapter 5 WEB Filtering Configuration Commands
Syntax
View
User view
Parameter
Description
Use the debugging web url-filter host command to enable URL address filtering
debugging.
Use the undo debugging web url-filter host command to disable URL address
filtering debugging.
Example
Syntax
View
User view
5-1
Command Manual – Security
Comware V3 Chapter 5 WEB Filtering Configuration Commands
Parameter
Description
Use the debugging web url-filter parameter command to enable URL paramater
filtering debugging.
Use the undo debugging web url-filter parameter command to disable URL
paramater filtering debugging.
Example
Syntax
View
User view
Parameter
Description
Use the debugging web java-blocking command to enable Java blocking debugging.
Use the undo debugging web java-blocking command to disable Java blocking
debugging.
5-2
Command Manual – Security
Comware V3 Chapter 5 WEB Filtering Configuration Commands
Example
Syntax
View
Any view
Parameter
Description
Use the display web url-filter host command to display information about URL
address filtering.
Example
Syntax
View
Any view
5-3
Command Manual – Security
Comware V3 Chapter 5 WEB Filtering Configuration Commands
Parameter
Description
Use the display web url-filter parameter command to display the filtering information
about SQL injection attack protection.
Example
Syntax
View
Any view
Parameter
5-4
Command Manual – Security
Comware V3 Chapter 5 WEB Filtering Configuration Commands
Description
Use the display web java-blocking command to display the information about Java
blocking.
Example
# Display the information about Java blocking based on the keyword of ”class”.
<H3C> display web java-blocking extension class
The java request packet including: ".class" had been filtered for 0 times.
Syntax
View
System view
Parameter
Description
Use the web url-filter host acl-number command to configure the firewall to filter the
Web requests whose destination URL address is an IP address by using an ACL. This
command is effective only after IP address support in URL address filtering is enabled.
Only one ACL rule can be referenced when this command is executed, and the new
settings will replace the old settings.
Use the undo web url-filter host acl-number command to delete the configured rule.
By default, no filtering rule is configured.
Example
# Configure an ACL rule 3001, so that only those Web requests whose destination IP
addresses are on the subnet 200.1.1.0/24 are allowed to pass.
<H3C> system-view
[H3C] acl number 3001
[H3C-acl-adv-3001] rule 0 permit ip destination 200.1.1.0 0.0.0.255
[H3C-acl-adv-3001] rule 1 deny ip
[H3C-acl-adv-3001] quit
5-5
Command Manual – Security
Comware V3 Chapter 5 WEB Filtering Configuration Commands
Syntax
View
System view
Parameter
Wildcard Description
Match at the beginning.
^ It appears only at the beginning of the filtering keyword, and only
once.
Match at the end.
$
It appears only at the end of the filtering keyword, and only once.
Replace a character.
& It can appear several times, or in a successive manner. It can
appear at any position in the filtering keyword.
Replace any character.
It appears only once at the beginning or in the middle of the filtering
*
keyword.
It must not be adjacent to ^ and &.
If “^” and “$” appear respectively at the beginning and the end of the keyword, exact
match applies. If no wildcard appears at the beginning and the end, fuzzy match
applies. For example, if the keyword is “^huawei”, the URL addresses starting with
“huawei" (e.g. huawei.com.cn) or addresses similar to “cmm.huawei-3com.com” will be
filtered out, but addresses similar to “www.bj-huawei.com” will not be filtered out. If the
keyword is “^huawei$”, only URL addresses containing “huawei" (e.g.
www.huawei.com) will be filtered out, and addresses similar to
“www.huawei-3com.com” will not be filtered out. If fuzzy match applies, any address
containing the keyword will be filtered out.
The wildcard “&” cannot replace “ . ” during URL address filtering.
5-6
Command Manual – Security
Comware V3 Chapter 5 WEB Filtering Configuration Commands
The wildcard “*” cannot replace “.”, such as “huawei*.com”, it must be in the form of
“*.com” or “*.huawei.com” when it is present at the beginning.
priority priority-number: Configures the priority, in the range 0 to 1999. The smaller the
number, the higher the priority.
Description
Use the web url-filter host add command to add a URL address to be filtered, and set
the filtering operation.
Example
Syntax
View
System view
Parameter
None
Description
Use the web url-filter host delete-all command to delete all URL address filtering
entries.
Example
Syntax
5-7
Command Manual – Security
Comware V3 Chapter 5 WEB Filtering Configuration Commands
View
System view
Parameter
Description
Use the web url-filter host default command to permit or deny packets that do not
match the URL addresses configured by the administrator.
By default, the unmatched packet is permitted.
Example
Syntax
View
System view
Parameter
Description
Use the web url-filter host delete command to delete a URL address filtering entry
previously added.
Example
5-8
Command Manual – Security
Comware V3 Chapter 5 WEB Filtering Configuration Commands
Syntax
View
System view
Parameter
None
Description
Use the web url-filter host enable command to enable URL address filtering.
Use the undo web url-filter host enable command to disable URL address filtering.
By default, the URL address filtering function is disabled.
An ASPF policy must be configured before the URL address filtering function can be
enabled.
Example
Syntax
View
System view
Parameter
permit: Permits any Web request whose destination URL address is an IP address.
deny: Denies any Web request whose destination URL address is an IP address.
Description
Use the web url-filter host ip-address command to configure whether to permit a
Web request whose destination URL address is an IP address to pass.
By default, the filter action is deny.
5-9
Command Manual – Security
Comware V3 Chapter 5 WEB Filtering Configuration Commands
Example
Syntax
View
System view
Parameter
Description
Use the web url-filter host save-file command to save a URL address filter file.
Example
Syntax
View
System view
Parameter
Description
Use the web url-filter host load-file command to load a URL address filter file.
Use the undo web url-filter host load-file command to unload the previously loaded
URL address filter file.
5-10
Command Manual – Security
Comware V3 Chapter 5 WEB Filtering Configuration Commands
To validate the entries in a URL address filter file and filter addresses, a URL address
filter file must be loaded first.
Example
Syntax
View
System view
Parameter
Description
Use the web url-filter parameter add command to add a keyword for URL parameter
filtering. The keyword supports the wildcards ^, $, & and *. For the description of
wildcards, see Table 5-1.
Example
Syntax
View
System view
5-11
Command Manual – Security
Comware V3 Chapter 5 WEB Filtering Configuration Commands
Parameter
None
Description
Use the web url-filter parameter add-default command to add default filter keywords
^select^, ^insert^, ^update^, ^delete^, ^drop^, --, ', ^exec^ and %27, to facilitate the
user to input these keywords and prevent some keywords from being carelessly
deleted, or enable the user to restore the default settings quickly if the web url-filter
parameter delete-all command was improperly executed.
Example
Syntax
View
System view
Parameter
None
Description
Use the web url-filter parameter delete-all command to delete all filter keywords.
Example
Syntax
5-12
Command Manual – Security
Comware V3 Chapter 5 WEB Filtering Configuration Commands
View
System view
Parameter
Description
Use the web url-filter parameter delete command to delete a filter keyword previously
added.
Example
Syntax
View
System view
Parameter
None
Description
Use the web url-filter parameter enable command to enable URL parameter filtering.
Use the undo web url-filter parameter enable command to disable URL parameter
filtering.
An ASPF policy must be configured before the URL address filtering function can be
enabled.
By default, the function is disabled.
Example
5-13
Command Manual – Security
Comware V3 Chapter 5 WEB Filtering Configuration Commands
Syntax
View
System view
Parameter
Description
Use the web url-filter parameter load-file command to load a URL parameter filter
file.
Use the undo web url-filter parameter load-file command to unload the previously
loaded URL parameter filter file.
Example
Syntax
View
System view
Parameter
Description
Use the web url-filter parameter save-file command to save a URL parameter filter
file.
Example
5-14
Command Manual – Security
Comware V3 Chapter 5 WEB Filtering Configuration Commands
Syntax
View
System view
Parameter
None
Description
Example
Syntax
View
System view
Parameter
Description
5-15
Command Manual – Security
Comware V3 Chapter 5 WEB Filtering Configuration Commands
Example
Syntax
View
System view
Parameter
keywords: Extension name of Java request packets to be blocked. Any keyword must
begin with ”.”, and can contain up to 9 characters, including ”.”. A maximum of 10
extension names can be configured.
Description
Use the web java-blocking extension add command to add extension named of Java
request packets to be blocked.
Example
Syntax
View
System view
Parameter
Description
Use the web java-blocking extension delete command to delete a previously added
extension name of Java request packets.
5-16
Command Manual – Security
Comware V3 Chapter 5 WEB Filtering Configuration Commands
Example
# Specify to delete Java request filtering entries with the extension name of ”.class”.
<H3C> system-view
[H3C] web java-blocking extension delete .class
Delete extension successfully
Syntax
View
System view
Parameter
None
Description
Use the web java-blocking extension delete-all command to delete all Java blocking
keywords previously added.
Example
Syntax
View
System view
Parameter
None
5-17
Command Manual – Security
Comware V3 Chapter 5 WEB Filtering Configuration Commands
Description
By default, the system has two pre-defined filtering parameters: .class and .jar, which
take effect after the web java-blocking extension add-default command is
configured.
The system accepts only 10 blocking keywords. So, when the number of user-defined
blocking keywords exceeds 8, all the default keywords cannot be added after the
command is executed.
You can also execute the web java-blocking extension add keywords command to
add deault keywords.
Example
# Add system default Java blocking keywords after nine keywords have been defined.
<H3C> system-view
[H3C]dis web java-blocking extension-all
SN Match-Times Extension
---------------------------
0 0 .aaa
1 0 .bbb
2 0 .ccc
3 0 .ddd
4 0 .eee
5 0 .fff
6 0 .ggg
7 0 .hhh
8 0 .iii
[H3C]web java-blocking extension add-default
add .class successfully
Exceed the maximal number of java blocking extensions ,can’t add .jar
Success to add 1 default extensions!
Syntax
View
System view
Parameter
5-18
Command Manual – Security
Comware V3 Chapter 5 WEB Filtering Configuration Commands
Description
Use the web java-blocking extension save-file command save a Java blocking filter
file.
Example
Syntax
View
System view
Parameter
Description
Use the web java-blocking extension load-file command to load a Java blocking
filter file.
Use the undo web java-blocking extension load-file command to unload a Java
blocking filter file.
Example
Syntax
View
System view
5-19
Command Manual – Security
Comware V3 Chapter 5 WEB Filtering Configuration Commands
Parameter
None
Description
Use the web log enable command to enable Web logging and create a logging timer.
Use the undo web log enable command to disable Web logging and delete the
configured logging timer.
By default, the function is disabled.
Example
Syntax
View
System view
Parameter
time: Timeout time of the logging timer, in the range 1 to 65,535, in seconds.
Description
Use the web log timer command to configure the timeout time of the logging timer.
Use the undo web log timer command to restore the timeout time to default value.
By default, the timeout time is 30 seconds.
Example
Syntax
5-20
Command Manual – Security
Comware V3 Chapter 5 WEB Filtering Configuration Commands
View
User view
Parameter
None
Description
Use the reset web url-filter host counter command to clear the URL address filtering
statistics information.
Example
Syntax
View
User view
Parameter
None
Description
Use the reset web url-filter parameter counter command to clear the statistics of
SQL injection attack protection.
Example
Syntax
5-21
Command Manual – Security
Comware V3 Chapter 5 WEB Filtering Configuration Commands
View
User view
Parameter
None
Description
Use the reset web java-blocking counter command to clear the Java blocking
statistics information.
Example
Syntax
View
User view
Parameter
None
Description
Use the reset web log-buf command to clear the Web filtering log buffer.
Example
5-22
Command Manual – Security
Comware V3 Chapter 6 IPSec Configuration Commands
Syntax
View
Parameter
Description
Example
6-1
Command Manual – Security
Comware V3 Chapter 6 IPSec Configuration Commands
Syntax
View
User view
Parameter
Description
Example
Syntax
View
Any view
6-2
Command Manual – Security
Comware V3 Chapter 6 IPSec Configuration Commands
Parameter
Description
Use the display ipsec policy command to view information about the ipsec policy.
The brief keyword is used for displaying brief information about all the ipsec policies,
whose display format is the brief format (see the following example). The brief
command can be used for quick display of all the ipsec policies. Brief information
includes: name and sequence number, negotiation mode, access control list, proposal,
local address, and remote address.
The other command words are used to display the detailed information about the ipsec
policy, whose display format is the detailed format (refer to the following example).
Related command: ipsec policy (system view).
Example
Item Description
Ipsec-policy-Name Name and sequence number of an ipsec policy
6-3
Command Manual – Security
Comware V3 Chapter 6 IPSec Configuration Commands
Item Description
In ISAKMP negotiation mode, the IKE peer name
ike-peer name referenced by the IPSec policy. This field is not
available with manually-established IPSec policies.
6-4
Command Manual – Security
Comware V3 Chapter 6 IPSec Configuration Commands
esp string-key:
esp encryption hex key:
1234567890abcdef1234567890abcdef1234567812345678
esp authentication hex key: 1234567890abcdef1234567890abcdef
outbound ah setting:
ah spi: 54321 (0xd431)
ah string-key:
ah authentication hex key: 1122334455667788990011223344556677889900
outbound esp setting:
esp spi: 65432 (0xff98)
esp string-key:
esp encryption hex key:
11223344556677889900aabbccddeeff1234567812345678
esp authentication hex key: 11223344556677889900aabbccddeeff
Item Description
Name, sequence number and negotiation
ipsec policy
method of an ipsec policy
security data flow Access control list used by an ipsec policy
Syntax
View
Any view
Parameter
brief: Displays brief information about all the ipsec policy templates.
6-5
Command Manual – Security
Comware V3 Chapter 6 IPSec Configuration Commands
name: Displays information of the ipsec policy template with the name template-name
and sequence number seq-number.
template-name: Name of an ipsec policy template.
seq-number: Sequence number of an ipsec policy template.
If no parameter is specified, then the detail information about all the ipsec policy
templates will be displayed. If name template-name is specified but seq-number is not,
the information of the specified IPSec policy template group is displayed.
Description
Use the display ipsec policy-template command to view information about the ipsec
policy template.
Parameter brief is for showing brief information about all the ipsec policy templates,
whose display format is the brief format (see the following example). It can display
information on all the ipsec policy templates quickly. Brief information includes:
template name and sequence number, access control list, and remote address.
Any of the sub-commands can be used to display detail information of the IPSec policy
template.
Related command: ipsec policy-template.
Example
Item Description
Policy-template-Name name, sequence number of an ipsec policy template
Syntax
6-6
Command Manual – Security
Comware V3 Chapter 6 IPSec Configuration Commands
View
Any view
Parameter
Description
Use the display ipsec proposal command to view information about the proposal.
If the name of the proposal is not specified, then information about all the proposals will
be shown.
Related command: ipsec proposal, display ipsec sa and display ipsec policy.
Example
Item Description
Ipsec proposal name name of the proposal
modes used by proposal, including two types: transport
encapsulation mode
mode and tunnel mode
security protocols used by proposal, including two
transform
types: AH and ESP
ah protocol the authentication-algorithm used by AH: md5 | sha1
the authentication-algorithm and encryption method
esp protocol
used by ESP respectively: MD5 and DES
6-7
Command Manual – Security
Comware V3 Chapter 6 IPSec Configuration Commands
Syntax
View
Any view
Parameter
Description
Use the display ipsec sa command to view the relevant information about the SA.
The command with brief parameter shows brief information about all the SAs, whose
display format is the brief format (refer to the following example). Brief information
includes source address, destination address, SPI, protocol, and algorithm. A display
beginning with "E" in the algorithm stands for the encryption algorithm, and a display
beginning with "A" stands for the authentication algorithm. The brief command can be
used to display all the SAs already set up quickly.
The commands with remote and policy parameters both display the detailed
information about the SA. The display mode: part of the information about the ipsec
policy is shown first and then the detailed information of the SA in this ipsec policy.
The command with duration parameter shows the global sa duration, including
"time-based" and "traffic-based" sa duration. Refer to the examples for this command.
Information of all the SAs will be shown when no parameter is specified.
Related command: reset ipsec sa, ipsec sa duration, display ipsec sa and display
ipsec policy.
Example
6-8
Command Manual – Security
Comware V3 Chapter 6 IPSec Configuration Commands
Item Description
Total number of SAs in the second phase of IPSec
total phase-2 SAs
negotiation
Src Address Local IP address
Dst Address Remote Ip address
SPI security parameter index
Protocol security protocol used by IPSec
The authentication algorithm and encryption algorithm used
by the security protocol. A display beginning with "E" in the
Algorithm
algorithm stands for the encryption algorithm, and a display
beginning with "A" stands for the authentication algorithm.
6-9
Command Manual – Security
Comware V3 Chapter 6 IPSec Configuration Commands
Item Description
Interface Interface using ipsec policy
Maximum IP packet length sent from the
path MTU
interface
ipsec policy used, including name, sequence
ipsec policy
number and negotiation method
connection id security tunnel identifier
IPSec mode, including two types: transport
in use settings
mode and tunnel mode
tunnel local local IP address
tunnel remote remote IP address
inbound SA information of the inbound end
transform proposal used by the ipsec policy
sa remaining key duration rest sa duration of SA
maximum sequence number of the received
max received sequence-number packets (the anti-replay function provided by
the security protocol)
outbound SA information of the outbound end
maximum sequence number of the sent
max sent sequence-number packets (the anti-replay function provided by
the security protocol)
6-10
Command Manual – Security
Comware V3 Chapter 6 IPSec Configuration Commands
Syntax
View
Any view
Parameter
none
Description
Use the display ipsec statistics command to view the IPSec packet statistics
information, including the input and output security packet statistics, bytes, number of
packets discarded and detailed description of discarded packets.
Related command: reset ipsec statistics.
Example
Item Description
input/output packets under the security
input/output security packets
protection
input/output bytes under the security
input/output security bytes
protection
6-11
Command Manual – Security
Comware V3 Chapter 6 IPSec Configuration Commands
Item Description
input/output packets under the security
input/output discarded security packets
protection discarded by the router
Statistics on the situation that system
no enough memory:
resources are insufficient
Statistics on the situation that the
can't find SA:
corresponding SA cannot be found
Statistics on the situation that the queue
queue is full:
is full
Statistics on the situation that hash
authen failed:
authentication is failed
Statistics on the situation that the packet
invalid length: length received is inconsistent with that
indicated in the IP header
replay packet: Statistics on anti-replay
Statistics on the situation that the packet
too long packet:
length exceeds 65535
invalid SA: Statistics on invalid SA
6.1.8 encapsulation-mode
Syntax
View
Parameter
Description
Use the encapsulation-mode command to set the encapsulation mode that the
security protocol applies to IP packets, which can be transport or tunnel.
Use the undo encapsulation-mode command to restore it to the default.
By default, tunnel mode is used.
There are two encapsulation modes where IPSec is used to encrypt and authenticate
IP packets: transport mode and tunnel mode. In transport mode, IPSec does not
6-12
Command Manual – Security
Comware V3 Chapter 6 IPSec Configuration Commands
encapsulate a new header into the IP packet. The both ends of security tunnel are of
source and destination of original packets. In tunnel mode, IPSec protects the whole IP
packet, and adds a new IP header in the front part of the IP packet. The source and
destination addresses of the new IP header are the IP addresses of both ends of the
tunnel.
Generally, the tunnel mode is used between two security gateways (routers). A packet
encrypted in a security gateway can only be decrypted in another security gateway. So
an IP packet needs to be encrypted in tunnel mode, that is, a new IP header is added;
the IP packet encapsulated in tunnel mode is sent to another security gateway before it
is decrypted.
The transport mode is suitable for communication between two hosts, or for
communication between a host and a security gateway (like the network management
communication between the gateway workstation and a router). In transport mode, two
devices responsible for encrypting and decrypting packets must be the original sender
and receiver of the packet. Most of the data traffic between two security gateways is not
of the security gateway’s own. So the transport mode is not often used between
security gateways.
The proposal used by the ipsec policies set at both ends of the security tunnel must be
set as having the same packet encapsulation mode.
Related command: ah authentication-algorithm, ipsec proposal, esp
encryption-algorithm, esp authentication-algorithm, proposal, transform.
Example
# Set the IP packet encapsulation mode to transport in the proposal named prop2.
[H3C] ipsec proposal prop2
[H3C-ipsec-proposal- prop2] encapsulation-mode transport
Syntax
View
Parameter
md5: Use MD5 algorithm with the length of the key 128 bits.
sha1: Use SHA1 algorithm with the length of the key 160 bits.
6-13
Command Manual – Security
Comware V3 Chapter 6 IPSec Configuration Commands
Description
Example
Syntax
View
Parameter
des: Data Encryption Standard (DES), a universal encryption algorithm with the length
of the key being 56 bits.
3des: 3DES (Triple DES), another universal encryption algorithm with the length of the
key being 168 bits.
6-14
Command Manual – Security
Comware V3 Chapter 6 IPSec Configuration Commands
aes [ 128 | 192 | 256 ]: Advanced encryption standard (AES), an encryption algorithm
conforming to IETF standards. 128, 192, and 256 are available key lengths. The default
is 128 bits.
Description
Use the esp encryption-algorithm command to set the encryption algorithm adopted
by ESP.
Use the undo esp encryption-algorithm command to set the ESP not to encrypt
packets.
By default, DES algorithm is used.
3DES can meet the requirement of high confidentiality and security, but it is
comparatively slow. And DES can satisfy the normal security requirements.
ESP permits a packet to be encrypted or authenticated or both.
The encryption and authentication methods used by ESP cannot be set to a vacant
value at the same time. The undo esp encryption-algorithm command can take
effect only if the authentication algorithm is not null.
Related command: ipsec proposal, esp authentication-algorithm, proposal,
transform.
Example
# Configure ESP with the 3DES encryption algorithm in the proposal named prop1.
[H3C] ipsec proposal prop1
[H3C-ipsec-proposal-prop1] transform esp
[H3C-ipsec-proposal-prop1] esp encryption-algorithm 3des
Syntax
View
Interface view
Parameter
policy-name: Specifies the name of an ipsec policy group applied at the interface. The
ipsec policy group with name policy-name should be configured in system view.
6-15
Command Manual – Security
Comware V3 Chapter 6 IPSec Configuration Commands
Description
Use the ipsec policy(interface view) command to apply an ipsec policy group with the
name policy-name at the interface,.
Use the undo ipsec policy (interface view) command to remove one or all ipsec policy
group from the interface so as to disable the IPSec function of the interface.
At an interface, only one ipsec policy group can be applied. An ipsec policy group can
be applied at multiple interfaces.
When a packet is sent from an interface, it searches for each ipsec policy in the ipsec
policy group by number in an ascending order. If the packet matches an access control
list used by an ipsec policy, then this ipsec policy is used to process the packet;
otherwise it continues to search for the next ipsec policy. If the packet does not match
any of the access control lists used by all the ipsec policies, it will be directly transmitted
(that is, IPSec will not protect the packet).
To prevent transmitting any unencrypted packet from the interface, it is necessary to
use the firewall together with IPSec; the firewall is for dropping all the packets that do
not need to be encrypted.
Related command: ipsec policy(system view).
Example
Syntax
View
System view
Parameter
policy-name: Name of the ipsec policy. The naming rule is: the length of the name is 1
to 15 characters, the name is case insensitive and the characters can be English
characters or numbers, cannot include “-”.
seq-number: Sequence number of the ipsec policy, ranging 1 to 10000, with lower
value indicating higher sequence priority.
manual: Sets up SA manually.
6-16
Command Manual – Security
Comware V3 Chapter 6 IPSec Configuration Commands
Description
Use the ipsec policy command to establish or modify an ipsec policy, and enter IPSec
policy view.
Use the undo ipsec policy policy-name command to delete an IPSec policy group
whose name is policy-name.
Use the undo ipsec policy policy-name seq-number command to delete an IPSec
policy whose name is policy-name and sequence number is seq-number.
By default, no ipsec policy exists.
To establish an ipsec policy, it is necessary to specify the negotiation mode (manual or
isakmp). To modify the ipsec policy, it is not necessary to specify a negotiation mode.
Once the ipsec policy is established, its negotiation mode cannot be modified. For
example: if an ipsec policy is established in manual mode, it cannot be changed to
isakmp mode--this ipsec policy must be deleted and then recreated, if appropriate, with
the negotiation mode being isakmp.
Ipsec policies with the same name constitute an ipsec policy group. The name and
sequence number are used together to define a unique ipsec policy. In an ipsec policy
group, at most 100 ipsec policies can be set. In an ipsec policy, the smaller the
sequence number of an ipsec policy is, the higher is its preference. Apply an ipsec
policy group at an interface means applying all ipsec policies in the group
simultaneously, so that different data streams can be protected by adopting different
SAs.
Use the ipsec policy policy-name seq-number isakmp template template-name
command to establish an ipsec policy according the template through IKE negotiation.
Before using this command, the template should have been created. During the
negotiation and policy matching, the parameters defined in the template should be
compliant, the other parameters are decided by the initiator. The proposal must be
defined in policy template, other parameters are optional.
6-17
Command Manual – Security
Comware V3 Chapter 6 IPSec Configuration Commands
Caution:
z IKE will not use a policy with a template argument to initiate a negotiation. Rather, it
uses such a policy to response the negotiation initiated by its peer.
z The number of an IPSec policy configured by referencing an IPSec policy template
must be greater than that of an IPSec policy not configured in that way. Otherwise,
the responding party can find a match and the negotiation fails.
Related command: ipsec policy (interface view), security acl, tunnel local, tunnel
remote, sa duration, proposal, display ipsec policy, ipsec policy-template,
ike-peer.
Example
# Set an ipsec policy whose name is newpolicy1, sequence number is 100, and
negotiation mode is isakmp.
[H3C] ipsec policy newpolicy1 100 isakmp
[H3C-ipsec-policy-isakmp-newpolicy1-100]
Syntax
View
System view
Parameter
Description
6-18
Command Manual – Security
Comware V3 Chapter 6 IPSec Configuration Commands
Example
# Establish an IPSec policy template with the name of template1 and the serial number
of 100.
[H3C] ipsec policy-template template1 100
[H3C-ipsec-policy-template- template1-100]
Syntax
View
System view
Parameter
proposal-name: Name of the specified proposal. The naming rule is: the length of the
name is 1 to 15 characters, case insensitive.
Description
6-19
Command Manual – Security
Comware V3 Chapter 6 IPSec Configuration Commands
Use the undo ipsec proposal proposal-name command to delete the proposal named
proposal-name.
By default, no proposal exists.
This proposal is a combination of the security protocol, encryption and authentication
algorithm and packet encapsulation format for implementing IPSec protection.
An ipsec policy determines the protocol, algorithm and encapsulation mode to be
adopted by the use of the proposal. Before the ipsec policy uses a proposal, this
proposal must have already been set up.
After a new IPSec proposal is established by using the ipsec proposal command, the
ESP protocol, DES encryption algorithm and MD5 authentication algorithm are adopted
by default.
Related command: ah authentication-algorithm, esp encryption-algorithm, esp
authentication-algorithm, encapsulation-mode, proposal, display ipsec proposal
and transform.
Example
Syntax
View
System view
Parameter
Description
6-20
Command Manual – Security
Comware V3 Chapter 6 IPSec Configuration Commands
When IKE negotiates to establish a SA, if the adopted IPSec policy is not configured
with its own duration, the system will use the global SA duration specified by this
command to negotiate with the peer. If the IPSec policy is configured with its own
duration, the system will use the duration of the IPSec policy to negotiate with the peer.
When IKE negotiates to set up an SA for IPSec, the smaller one of the lifetime set
locally and that proposed by the remote is selected.
There are two types of SA duration: time-based (in seconds) and traffic-based (in
kilobytes) lifetimes. The traffic-based SA duration, that is, the valid time of the SA is
accounted according to the total traffic that can be processed by this SA, and the SA is
invalid when the set value is exceeded. No matter which one of the two types expires
first, the SA will get invalid. Before the SA is about to get invalid, IKE will set up a new
SA for IPSec negotiation. So, a new SA is ready before the existing one gets invalid.
Modifying the global SA duration will not affect a map that has individually set up its own
SA duration, or an SA already set up. But the modified global SA duration will be used to
set up a new SA in the future IKE negotiation.
The SA duration does not function for an SA manually set up, that is, the SA manually
set up will never be invalidated.
Related command: sa duration and display ipsec sa duration.
Example
6.1.16 pfs
Syntax
View
Parameter
6-21
Command Manual – Security
Comware V3 Chapter 6 IPSec Configuration Commands
Description
Use the pfs command to set the Perfect Forward Secrecy (PFS) feature for the IPSec
policy to initiate the negotiation.
Use the undo pfs command to set not to use the PFS feature during the negotiation.
By default, no PFS feature is used.
The command is used to add a PFS exchange process when IPSec uses the ipsec
policy to initiate a negotiation. This additional key exchange is performed during the
phase 2 negotiation so as to enhance the communication safety. The DH group
specified by the local and remote ends must be consistent, otherwise the negotiation
will fail.
Can this command be used only when the security alliance is established through IKE
style.
Related command: ipsec policy-template, ipsec policy(system view), ipsec
policy(interface view), tunnel local, tunnel remote, sa duration and proposal.
Example
# Set that PFS must be used when negotiating through ipsec policy shanghai 200.
[H3C] ipsec policy shanghai 200 isakmp
[H3C-ipsec-policy-isakmp-shanghai-200] pfs group1
6.1.17 proposal
Syntax
View
Parameter
Description
Use the proposal command to set the proposal used by the IPSec policy.
Use the undo proposal command to cancel the proposal used by the IPSec policy.
By default, no proposal is used.
Before using this command, the corresponding IPSec proposal must has been
configured.
6-22
Command Manual – Security
Comware V3 Chapter 6 IPSec Configuration Commands
If set up in manual mode, an SA can only use one proposal. And if a proposal is already
set, it needs to be deleted by using the undo proposal command before a new one
can be set.
If set up in isakmp mode, an SA can use six proposals at most. IKE negotiation will
search for the completely matching proposal at both ends of the security tunnel.
If it is the IPSec template, each template can use six proposals at most, and the IKE
negotiation will search for the completely matching proposal.
Related command: ipsec proposal, ipsec policy(system view), ipsec
policy(interface view), security acl, tunnel local and tunnel remote.
Example
# Set a proposal with name prop1, adopting ESP and the default algorithm, and set an
IPSec policy as using a proposal name prop1.
[H3C] ipsec proposal prop1
[H3C-ipsec-proposal-prop1] transform esp
[H3C-ipsec-proposal-prop1] quit
[H3C] ipsec policy policy1 100 manual
[H3C-ipsec-policy-manual-policy1-100] proposal prop1
Syntax
View
User view
Parameter
6-23
Command Manual – Security
Comware V3 Chapter 6 IPSec Configuration Commands
Description
Use the reset ipsec sa command to delete an SA already set up (manually or through
IKE negotiation). If no parameter (remote, policy, parameters) is specified, all the SA
will be deleted.
An SA is uniquely identified by a triplet of IP address, security protocol and SPI. A SA
can be set up either manually or through Internet Key Exchange (IKE) negotiation.
If an SA set up manually is deleted, the system will automatically set up a new SA
according to the parameter manually set up.
If a packet re-triggers IKE negotiation after an SA set up through IKE negotiation is
deleted, IKE will reestablish an SA through negotiation.
The keyword parameters will take effect only after the spi of the outbound SA is
defined. Because SAs appear in pairs, the inbound SA will also be deleted after the
outbound SA is deleted.
Related command: display ipsec sa.
Example
# Delete the SA of the ipsec policy with the name policy1 and the serial number 10.
<H3C> reset ipsec sa policy policy1 10
# Delete an SA whose remote IP address is 10.1.1.2, security protocol is AH, and SPI is
10000
<H3C> reset ipsec sa parameters 10.1.1.2 ah 10000
6-24
Command Manual – Security
Comware V3 Chapter 6 IPSec Configuration Commands
Syntax
View
User view
Parameter
None
Description
Use the reset ipsec statistics command to clear IPSec message statistics, and set all
the statistics to zero.
Related command: display ipsec statistics.
Example
6.1.20 sa authentication-hex
Syntax
View
Parameter
inbound: Configures the authentication-hex parameter for the inbound SA. IPSec
uses the inbound SA for processing the packet in the inbound direction (received).
outbound: Configures the authentication-hex parameter for the outbound SA. IPSec
uses the outbound SA for processing the packet in the outbound direction (sent).
ah: Sets the authentication-hex parameter for the SA using AH. If the IPSec proposal
used by the ipsec policy adopts AH, the ah key word is used here to set the AH relevant
parameter of the SA.
esp: Sets the authentication-hex parameter for the SA using ESP. If the IPSec
proposal used by the ipsec policy adopts ESP, the esp key word is used here to set the
ESP relevant parameter of the SA.
6-25
Command Manual – Security
Comware V3 Chapter 6 IPSec Configuration Commands
hex-key: Specifies a key for the SA input in the hex format. If MD5 is used, then input a
16-byte key; if SHA1 is used, input a 20-byte key.
Description
Example
6-26
Command Manual – Security
Comware V3 Chapter 6 IPSec Configuration Commands
6.1.21 sa duration
Syntax
View
Parameter
Description
6-27
Command Manual – Security
Comware V3 Chapter 6 IPSec Configuration Commands
Example
# Set the Sa duration for the ipsec policy shenzhen 100 to 2 hours, that is, 7200
seconds.
[H3C] ipsec policy shenzhen 100 isakmp
[H3C-ipsec-policy-isakmp-shenzhen-100] sa duration time-based 7200
# Set the Sa duration for the ipsec policy shenzhen 100 to 20M bytes, that is, the SA is
overtime when the traffic exceeds 20000 kilobytes.
[H3C] ipsec policy shenzhen 100 isakmp
[H3C-ipsec-policy-isakmp-shenzhen-100] sa duration traffic-based 20000
6.1.22 sa encryption-hex
Syntax
View
Parameter
inbound: Sets the encryption-hex parameter for the inbound SA. IPSec uses the
inbound SA for processing the packet in the inbound direction (received).
outbound: Sets the encryption-hex parameter for outbound SA. IPSec uses the
outbound SA for processing the packet in the outbound direction (sent).
esp: Sets the encryption-hex parameter for the SA using ESP. If the IPSec proposal
used by the ipsec policy adopts ESP, the esp key word is used here to set the ESP
relevant parameter of the SA.
hex-key: Specifies a key for the SA input in the hex format. When applied in ESP, if DES
is used, then input an 8-byte key; if 3DES is used, then input a 24-byte key.
Description
Use the sa encryption-hex command to set the SA encryption key manually for the
ipsec policy of manual mode.
Use the undo sa encryption-hex command to delete the SA parameter already set.
This command is only used for the ipsec policy in manual mode. It is used to set the SA
parameter manually and establish a SA manually.
For the ipsec policy in isakmp mode, it is unnecessary to set the SA parameter
manually, and this command is invalid. IKE will automatically negotiate the SA
parameter and establish a SA.
6-28
Command Manual – Security
Comware V3 Chapter 6 IPSec Configuration Commands
Example
# Set the SPI of the inbound SA to 1001, and the key to 0x1234567890abcdef; set the
SPI of the outbound SA to 2001, and its key to 0xabcdefabcdef1234 in the ipsec policy
using ESP and DES.
[H3C] ipsec proposal prop_esp
[H3C-ipsec-proposal-prop_esp] transform esp
[H3C-ipsec-proposal-prop_esp] ah encryption-algorithm des
[H3C-ipsec-proposal-prop_esp] quit
[H3C] ipsec policy tianjin 100 manual
[H3C-ipsec-policy-manual-tianjin-100] proposal prop_esp
[H3C-ipsec-policy-manual-tianjin-100] sa spi inbound esp 1001
[H3C-ipsec-policy-manual-tianjin-100] sa encryption-hex inbound esp
1234567890abcdef
[H3C-ipsec-policy-manual-tianjin-100] sa spi outbound esp 2001
[H3C-ipsec-policy-manual-tianjin-100] sa encryption-hex outbound esp
abcdefabcdef1234
6.1.23 sa spi
Syntax
View
Parameter
inbound: Sets the spi parameter for the inbound SA. IPSec uses the inbound SA for
processing the packet in the inbound direction (received).
outbound: Sets the spi parameter for outbound SA. IPSec uses the outbound SA for
processing the packet in the outbound direction (sent).
6-29
Command Manual – Security
Comware V3 Chapter 6 IPSec Configuration Commands
ah: Sets the spi parameter for the SA using AH. If the IPSec proposal set used by the
ipsec policy adopts AH, the ah key word is used here to set the spi relevant parameter
of the SA.
esp: Sets the spi parameter for the SA using ESP. If the IPSec proposal set used by the
ipsec policy adopts ESP, the esp key word is used here to set the spi relevant
parameter of the SA.
spi-number: Security Parameter Index (SPI) in the triplet identification of the SA,
ranging 256 to 4294967295. The triplet identification of the SA, which appears as SPI,
destination address, and protocol number, must be unique.
Description
Use the sa spi command to set the SA SPI manually for the ipsec policy of manual
mode.
Use the undo sa spi command to delete the SA SPI already set.
This command is only used for the ipsec policy in manual mode. It is used to set the SA
parameter manually and establish a SA manually.
For the ipsec policy in isakmp mode, it is unnecessary to set the SA parameter
manually, and this command is invalid. IKE will automatically negotiate the SA
parameter and establish a SA.
When configuring the SA of manual mode, the SA parameters of inbound and
outbound directions must be set separately.
The SA parameters set at both ends of the security tunnel must be fully matching. The
SPI and key for the SA input at the local end must be the same as those output at the
remote. The SA SPI and key output at the local end must be the same as those input at
the remote.
Related command: ipsec policy(system view), ipsec policy(interface view), security
acl , tunnel local, tunnel remote, sa duration and proposal.
Example
# Set the SPI of the inbound SA to 10000, set the SPI of the outbound SA to 20000, in
the ipsec policy using AH and MD5.
[H3C] ipsec proposal prop_ah
[H3C-ipsec-proposal-prop_ah] transform ah
[H3C-ipsec-proposal-prop_ah] ah authentication-algorithm md5
[H3C-ipsec-proposal-prop_ah] quit
[H3C] ipsec policy tianjin 100 manual
[H3C-ipsec-policy-manual-tianjin-100] proposal prop_ah
[H3C-ipsec-policy-manual-tianjin-100] sa spi inbound ah 10000
[H3C-ipsec-policy-manual-tianjin-100] sa spi outbound ah 20000
6-30
Command Manual – Security
Comware V3 Chapter 6 IPSec Configuration Commands
6.1.24 sa string-key
Syntax
View
Parameter
inbound: Sets the string-key parameter for the inbound SA. IPSec uses the inbound
SA for processing the packet in the inbound direction (received).
outbound: Sets the string-key parameter for the outbound SA. IPSec uses the
outbound SA for processing the packet in the outbound direction (sent).
ah: Sets the string-key parameter for the SA using AH. If the IPSec proposal set used
by the ipsec policy adopts AH, the ah key word is used here to set the string-key
relevant parameter of the SA.
esp: Sets the string-key parameter for the SA using ESP. If the IPSec proposal set
used by the ipsec policy adopts ESP, the esp key word is used here to set the
string-key relevant parameter of the SA.
string-key: Specifies the key for an SA input in the character string format, with a length
ranging 1 to 256 characters. For different algorithms, you can input character strings of
any length in the specified range, and the system will generate keys meeting the
algorithm requirements automatically according to the input character strings. As for
ESP, the system will automatically generate the key for the authentication algorithm
and that for the encryption algorithm at the same time.
Description
Use the sa string-key command to set the SA parameter manually for the ipsec policy
of manual mode.
Use the undo sa string-key command to delete the SA parameter already set.
This command is only used for the ipsec policy in manual mode. It is used to set the SA
parameter manually and establish a SA manually.
For the ipsec policy in isakmp mode, it is unnecessary to set the SA parameter
manually, and this command is invalid. IKE will automatically negotiate the SA
parameter and establish a SA.
When configuring the SA of manual mode, the SA parameters of inbound and
outbound directions must be set separately
The SA parameters set at both ends of the security tunnel must be fully matching. The
SPI and key for the SA input at the local end must be the same as those output at the
6-31
Command Manual – Security
Comware V3 Chapter 6 IPSec Configuration Commands
remote. The SA SPI and key output at the local end must be the same as those input at
the remote.
There are two methods for inputting the key: hex and character string. To input a
hexadecimal key, use the sa authentication-hex command. For the character string
key and hex string key, the last set one will be adopted. At both ends of a security tunnel,
the key should be input by the same method. If the key is input in character string at one
end, and it is input in hex at the other end, then a security tunnel cannot be set up
correctly.
Related command: ipsec policy(system view), ipsec policy(interface view), security
acl , tunnel local, tunnel remote, sa duration, proposal.
Example
# Set the SPI of the inbound SA to 10000, and the key string to abcdef; sets the SPI of
the outbound SA to 20000, and its key string to efcdab in the ipsec policy using AH and
MD5.
[H3C] ipsec proposal prop_ah
[H3C-ipsec-proposal-prop_ah] transform ah
[H3C-ipsec-proposal-prop_ah] ah authentication-algorithm md5
[H3C-ipsec-proposal-prop_ah] quit
[H3C] ipsec policy tianjin 100 manual
[H3C-ipsec-policy-manual-tianjin-100] proposal prop_ah
[H3C-ipsec-policy-manual-tianjin-100] sa spi inbound ah 10000
[H3C-ipsec-policy-manual-tianjin-100] sa string-key abcdef
[H3C-ipsec-policy-manual-tianjin-100] sa spi outbound ah 20000
[H3C-ipsec-policy-manual-tianjin-100] sa string-key efcdab
Syntax
View
Parameter
acl-number: Specifies the number of the access control list used by the ipsec policy,
ranging 3000 to 3999.
aggregation: Specifies the data stream protection mode of the IPSec policy to be the
aggregation mode.
6-32
Command Manual – Security
Comware V3 Chapter 6 IPSec Configuration Commands
per-session: Specifies the data stream protection mode of the IPSec policy to be the
per-session mode, which is supported only by the isakmp mode.
Description
Use the security acl command to set an access control list to be used by the ipsec
policy and specify the data stream protection mode.
Use the undo security acl command to remove the access control list used by the
ipsec policy.
Presently, IPSec protects the data streams that match the specified ACL in three
modes: standard, aggregation and per-session.
z The standard mode: Establishes a tunnel according to each specified ACL rule to
protect the packets that match the ACL.
z The aggregation mode: Establishes a tunnel to protect all data streams that
match the ACL.
z The per-session mode: Finds the ACL that a packet matches, and establishes a
tunnel to protect the packets that share the same source and destination
addresses with this packet. In per-session mode, multiple tunnels are to be
established to protect the specified ACL rule, because packets with different
source and destination addresses probably match one ACL rule.
By default, no ACL has been specified for IPSec policies. If neither the aggregation
mode nor per-session mode is specified when this command is executed, the default
data protection mode, i.e. the standard mode, is used to establish a tunnel for each
data stream defined in the ACL.
The data flow that will be protected by the IPSec policy is confined by the ACL in this
command. According to the rules in the ACL, IPSec determines which packets need
security protection and which do not. The packet permitted by the access control list will
be protected, and a packet denied by the access control list will not be protected. The
denied packets are sent out directly without IPSec protection.
Related command: ipsec policy (system view), ipsec policy (interface view), tunnel
local, tunnel remote, sa duration, proposal.
Example
# Set the ipsec policy as using access control list 3001, using the aggregation mode for
data stream protection.
[H3C] acl number 3001
[H3C-acl-adv-3001] rule permit tcp source 10.1.1.1 0.0.0.255 destination
10.1.1.2 0.0.0.255
[H3C] ipsec policy beijing 100 manual
[H3C-ipsec-policy-manual-beijing-100] security acl 3001 aggregation
6-33
Command Manual – Security
Comware V3 Chapter 6 IPSec Configuration Commands
6.1.26 transform
Syntax
View
Parameter
Description
6-34
Command Manual – Security
Comware V3 Chapter 6 IPSec Configuration Commands
Transfer
Security mode transport tunnel
protocol
ah IP AH data IP AH IP data
Example
Syntax
View
Parameter
Description
Use the tunnel local command to set the local address of an ipsec policy.
Use the undo tunnel local command to delete the local address set in the ipsec policy.
By default, the local address of an ipsec policy is not configured.
It is not necessary to set a local address for an ipsec policy in isakmp mode, so this
command is invalid in this situation. IKE can automatically obtain the local address from
the interface where this ipsec policy is applied.
As for the ipsec policy in manual mode, it is necessary to set the local address before
the SA can be established. A security tunnel is set up between the local and remote end,
6-35
Command Manual – Security
Comware V3 Chapter 6 IPSec Configuration Commands
so the local address and remote address must be correctly configured before a security
tunnel can be set up.
Related command: ipsec policy(system view), ipsec policy(interface view), security
acl , tunnel remote, sa duration and proposal.
Example
# Set the local address for the ipsec policy, which is applied at serial 4/1/2 whose IP
address is 10.0.0.1.
[H3C] ipsec policy guangzhou 100 manual
[H3C-ipsec-policy-manual-guangzhou-100] tunnel local 10.0.0.1
[H3C-ipsec-policy-manual-guangzhou-100] quit
[H3C] interface serial 4/1/2
[H3C-Serial4/1/2] ipsec policy guangzhou
Syntax
View
Parameter
Description
Use the tunnel remote command to set the remote address of an ipsec policy.
Use the undo tunnel remote command to delete the remote address in the ipsec
policy.
By default, the remote address of an ipsec policy is not configured.
For the ipsec policy in manual mode, only one remote address can be set. If a remote
address is already set, this existing address must be deleted before a new one can be
set.
The security tunnel is established between the local and remote ends. The remote
address must be set correctly on both ends of the security tunnel.
Related command: ipsec policy (system view), ipsec policy (interface view),
security acl, tunnel local, sa duration, proposal.
6-36
Command Manual – Security
Comware V3 Chapter 6 IPSec Configuration Commands
Example
Syntax
View
User view
Parameter
Description
Example
6-37
Command Manual – Security
Comware V3 Chapter 6 IPSec Configuration Commands
Syntax
View
Any view
Parameter
None
Description
Use the display encrypt-card fast-switch command to view the entries in the fast
forwarding cache for the encryption cards.
Example
# Display the entries in the fast forwarding cache for the encryption cards.
[H3C] display encrypt-card fast-switch
encrypt-card Fast-Forwarding cache:
Index SourIP SourPort DestIP DestPort Prot TdbID Type
18 1.1.1.2 8 1.1.1.1 0 1 0x00000024 encrypt
130 1.1.1.1 0 1.1.1.2 0 50 0x00000023 decrypt
Table 6-8 Description on the fields of the display encrypt-card fast-switch command
Field Description
Index Index of the fast forwarding entry
SourIP Source IP address
6-38
Command Manual – Security
Comware V3 Chapter 6 IPSec Configuration Commands
Syntax
View
Any view
Parameter
slot-id: Slot ID for the encryption card, whose range depends on the slot number on the
router. It is in 3-dimensional format, for example, x/y/z, where x stands for slot ID on the
router, y and z are fixed to 0 for the encryption card.
Description
Example
ESP SAs
proposal: ESP-ENCRYPT-3DES
proposal: ESP-AUTH-SHA1HMAC96
local address: 20.0.0.2
remote address: 20.0.0.1
sa remaining key duration (bytes/sec): 1887436136/2401
spi: 891512401 (0x35236651)
Uses Encrypt5/0/0
ESP SAs
6-39
Command Manual – Security
Comware V3 Chapter 6 IPSec Configuration Commands
proposal: ESP-ENCRYPT-3DES
proposal: ESP-AUTH-SHA1HMAC96
local address: 20.0.0.1
remote address: 20.0.0.2
sa remaining key duration (bytes/sec): 1887436532/2401
spi: 3024247997 (0xb4425cbd)
Uses Encrypt5/0/0
AH SAs
proposal: ESP-AUTH-SHA1HMAC96
local address: 20.0.0.1
remote address: 20.0.0.2
sa remaining key duration (bytes/sec): 1887436464/2401
spi: 2937733563 (0xaf1a41bb)
Uses Encrypt5/0/0
Syntax
View
Any view
Parameter
slot-id: Slot ID for the encryption card, whose range depends on the number of slots on
the router. It is in 3-dimensional format, for example, x/y/z, where x stands for slot ID on
the router, y and z are fixed to 0 for the encryption card.
Description
Use the display encrypt-card statistics command to view statistics on the specified
or all encryption cards.
The statistics includes the processing information of ESP/AH packets on the encryption
card. More details are displayed in the following example.
If the slot ID you type in is greater than the available slot number on the router, the error
information “Invalid encrypt-card slot-id” will be prompted.
Related command: reset encrypt-card statistic.
Example
6-40
Command Manual – Security
Comware V3 Chapter 6 IPSec Configuration Commands
Syntax
View
Any view
Parameter
slot-id: Slot ID for the encryption card, whose range depends on the number of slots on
the router. If no slot is specified, information on all encryption cards is displayed. Slot
numbers are represented by x/y/z, where x is the slot number, and y and z are zero for
encryption cards.
Description
Use the display encrypt-card syslog command to view the current system log on the
encryption cards.
If the slot ID you type in is greater than the available slot number on the router, the error
information “Invalid encrypt-card slot-id” shall be prompted.
Related command: encrypt-card set syslog.
Example
6-41
Command Manual – Security
Comware V3 Chapter 6 IPSec Configuration Commands
Syntax
View
Any view
Parameter
slot-id: Slot ID for the encryption card, whose range depends on the slot number on the
router. It is in 3-dimensional format, for example, x/y/z, where x stands for slot ID on the
router, y and z are fixed to 0 for the encryption card.
Description
Use the display interface encrypt command to view information about interfaces on
the specified or all encryption cards.
With this command, you can view the status of the encryption card, total count number
of packets transmitted or received on it, maximum count number of packets dropped
per second, information during the last five seconds.
Related command: interface encrypt.
Example
6-42
Command Manual – Security
Comware V3 Chapter 6 IPSec Configuration Commands
Dropped packets : 0
Statistics during last 5 seconds
Packets sent to card : 0
Packets received from card : 0
Bytes sent to card : 0
Bytes received from card : 0
Dropped packets : 0
Syntax
encrypt-card backuped
undo encrypt-card backuped
View
System view
Parameter
None
Description
Use the encrypt-card backuped command to enable backup function for the
encryption card.
Use the undo encrypt-card backuped command to disable backup function for the
encryption card.
By default, backup function for the encryption card is disabled.
For the IPSec SA implemented by the encryption card, if the card is normal, IPSec is
processed by the card. If the card fails, backup function is enabled on the card and the
selected encryption/authentication algorithms for the SA are supported by the IPSec
module on Comware platform, IPSec shall be implemented by the IPSec module on
Comware platform. In the event that the selected algorithms are not supported by the
IPSec module, the system drops packets.
Example
Syntax
encrypt-card fast-switch
6-43
Command Manual – Security
Comware V3 Chapter 6 IPSec Configuration Commands
View
System view
Parameter
None
Description
Use the encrypt-card fast-switch command to enable the fast forwarding function of
the encryption card.
Use the undo encrypt-card fast-switch command to disable the fast forwarding
function of the encryption card.
By default, the fast forwarding function of the encryption card is disabled.
For the packets that have the same [SourIP, SourPort, DestIP, DestPort, Prot] quintuple,
the router creates a fast forwarding entry when it receives the first packet. Then, the
subsequent packets, rather than processed packet by packet, are sent directly to the
encryption card, where they are sent to the destination after being encrypted or
decrypted. This is how the fast forwarding function of the encryption card expedites
packet processing.
Example
Syntax
View
System view
Parameter
slot-id: Slot ID for the encryption card, whose range depends on the slot number on the
router. It is in 3-dimensional format, for example, x/y/z, where x stands for slot ID on the
router, y and z are fixed to 0 for the encryption card.
Description
Use the interface encrypt command to enter encryption card interface view.
6-44
Command Manual – Security
Comware V3 Chapter 6 IPSec Configuration Commands
In encryption card interface view, you only can the shutdown and undo shutdown
commands, respectively to shut down the encryption card or turn the card up.
Example
Syntax
View
System view
Parameter
Description
Use the ipsec card-proposal command to create an SA proposal for the encryption
card and enter the corresponding view.
Use the undo ipsec card-proposal command to delete an SA proposal of the
encryption card.
This command is used in encryption card SA proposal view (the corresponding
encryption/decryption/authentication are implemented on the encryption card),
whereas the host software is also compatible with SA proposal view of the host itself
(the ipsec proposal command), in which the encryption/decryption/authentication are
implemented by the host. In encryption card SA proposal view, you can also specify the
slot ID of the encryption card for the SA proposal, with the use encrypt card command,
while other configurations are identical with the ipsec proposal command.
After completing SA proposal configuration, you need to return to system view using the
quit command, so that you can initiate other configuration.
Example
# Create the SA proposal “card” using the encryption card at slot 5/0/0, configure
security and encryption algorithm.
[H3C] ipsec card-proposal card
[H3C-ipsec-card-proposal] use encrypt-card 5/0/0
6-45
Command Manual – Security
Comware V3 Chapter 6 IPSec Configuration Commands
Syntax
View
User view
Parameter
slot-id: Slot ID for the encryption card, whose range depends on the slot number on the
router. It is in 3-dimensional format, for example, x/y/z, where x stands for slot ID on the
router, y and z are fixed to 0 for the encryption card.
Description
Use the reset counters interface encrypt command to clear the statistics on the
encryption card.
The statistics record all the information starting from normal operation of the encryption
card, while system debugging requires statistics of a specific time period for fault
analysis. Then you may need to reset the existing statistics and get the statistics of a
required time period.
Related command: ipsec card-proposal and display encrypt-card sa.
Example
Syntax
View
User view
6-46
Command Manual – Security
Comware V3 Chapter 6 IPSec Configuration Commands
Parameter
slot-id: Slot ID for the encryption card, whose range depends on the slot number on the
router. It is in 3-dimensional format, for example, x/y/z, where x stands for slot ID on the
router, y and z are fixed to 0 for the encryption card.
Description
Use the reset encrypt-card sa command to clear the SAs on the encryption card.
You may need to clear the SA database information stored on the encryption card, to
output only the required information during debugging.
Related command: ipsec card-proposal and display encrypt-card sa.
Example
Syntax
View
User view
Parameter
slot-id: Slot ID for the encryption card, whose range depends on the slot number on the
router. It is in 3-dimensional format, for example, x/y/z, where x stands for slot ID on the
router, y and z are fixed to 0 for the encryption card.
Description
Use the reset encrypt-card statistics command to clear the statistics during
processing of the encryption card.
The statistics record all the protocol processing information from the last rebooting,
including counts of incoming/outgoing ESP/AH packets, dropped packets, failed
authentications, erroneous SAs, invalid SA proposals, invalid protocols.
Related command: display encrypt-card statistic.
Example
# Clear the processing statistics on the encryption card on the slot 5/0/0.
<H3C> reset encrypt-card statistic 5/0/0
6-47
Command Manual – Security
Comware V3 Chapter 6 IPSec Configuration Commands
Syntax
View
User view
Parameter
slot-id: Slot ID for the encryption card, whose range depends on the slot number on the
router. It is in 3-dimensional format, for example, x/y/z, where x stands for slot ID on the
router, y and z are fixed to 0 for the encryption card.
Description
Use the reset encrypt-card syslog command to clear all the logging information on
the encryption card.
The encryption card records all logging history information. And all the information
(including those obsolete items) shall be reported for every query, which imposes
somewhat difficulties to log monitoring and locating. Then you may need to clear the log
buffer of the encryption card.
Related command: display encrypt-card syslog.
Example
# Clear all the logging information on the encryption card on the slot 5/0/0.
<H3C> reset encrypt-card syslog 5/0/0
Syntax
View
System view
Parameter
None
Description
Use the snmp-agent trap enable encrypt-card command to enable SNMP agent trap
function on the encryption card.
6-48
Command Manual – Security
Comware V3 Chapter 6 IPSec Configuration Commands
Use the undo snmp-agent trap enable encrypt-card command to disable SNMP
agent trap function on the card.
By default, the function is enabled.
When combined with appropriate NM configuration, the trap function allows you to view
information about card reboot, state transition and packet loss processing on the
Console of the NM station or router.
Example
Syntax
View
Parameter
slot-id: Slot ID for the encryption card, whose range depends on the slot number on the
router. It is in 3-dimensional format, for example, x/y/z, where x stands for slot ID on the
router, y and z are fixed to 0 for the encryption card.
Description
Use the use encrypt-card command to specify the SA proposal uses the encryption
card at a designated slot.
Use the undo use encrypt-card command to remove the configuration.
One SA proposal can only be processed by a single encryption card, but one single
encryption card can process different SA proposals.
Related command: ipsec card-proposal.
Example
# Configure the slot holding the encryption card used by the encryption card SA
proposal named card.
[H3C] ipsec card-proposal card
[H3C-ipsec-card-proposal] use encrypt-card 5/0/0
6-49
Command Manual – Security
Comware V3 Chapter 6 IPSec Configuration Commands
Syntax
View
User view
Parameter
None
Description
Use the debugging ike dpd command to enable IKE DPD debugging.
Use the undo debugging ike dpd command to disable IKE DPD debugging.
The following table describes the fields of the debugging ike dpd command.
Table 6-9 Description on the fields of the debugging ike dpd command
Field Description
Peername Name of the IKE peer
Two options are available:
Response, indicating that the IKE peer is the receiver of
type a DPD query
Request: indicating that the IKE peer is the sender of a
DPD query
Types of actions:
recv dpd request, meaning a DPD query is received.
send dpd response, meaning a DPD response is sent.
action
send dpd request, meaning a DPD query is sent.
recv dpd response, meaning a DPD response is
received.
seqno Sequence number of a DPD query
Example
6-50
Command Manual – Security
Comware V3 Chapter 6 IPSec Configuration Commands
Syntax
View
Any view
Parameter
Description
Use the display ike dpd command to display the configuration of the specified or all
DPD structures about reference count, interval-time, and time_out.
Example
Table 6-10 Description on the fields of the display ike dpd command
Field Description
IKE dpd IKE DPD structure name
references DPD structure reference count
interval-time Interval for triggering DPD queries
time_out Timeout time for a DPD query
6-51
Command Manual – Security
Comware V3 Chapter 6 IPSec Configuration Commands
6.3.3 dpd
Syntax
dpd dpd-name
undo dpd
View
Parameter
Description
Example
Syntax
View
System view
Parameter
Description
Use the ike dpd command to create a DPD structure and enter its view.
6-52
Command Manual – Security
Comware V3 Chapter 6 IPSec Configuration Commands
Use the undo ike dpd command to delete the specified DPD structure.
If a DPD structure has been referenced by an IKE peer, it cannot be deleted.
Related command: dpd.
Example
6.3.5 interval-time
Syntax
interval-time seconds
undo interval-time
View
Parameter
seconds: Interval for triggering DPD queries, in the range 1 to 300 seconds. It defaults
to 10 seconds.
Description
Use the interval-time command to configure the interval for triggering DPD query.
Use the undo interval-time command to restore the default.
Example
6.3.6 time-out
Syntax
time-out seconds
undo time-out
6-53
Command Manual – Security
Comware V3 Chapter 6 IPSec Configuration Commands
View
Parameter
Description
Use the time-out command to configure the time waiting for a DPD acknowledgement.
Use the undo time-out command to restore the default.
Example
6-54
Command Manual – Security
Comware V3 Chapter 7 IKE Configuration Commands
Syntax
View
Parameter
Description
Example
7.1.2 authentication-method
Syntax
View
7-1
Command Manual – Security
Comware V3 Chapter 7 IKE Configuration Commands
Parameter
pre-share: Specifies the pre-shared key authentication as the Internet Key Exchange
(IKE) proposal authentication method.
rsa-signature: specifies to authenticate through PKI digital signature.
Description
Note:
For more information on configuring PKI, refer to “PKI Configuration” in this manual.
Example
# Specify pre-shared key authentication as the authentication method for IKE proposal
10.
[H3C] ike proposal 10
[H3C-ike-proposal-10] authentication-method pre-share
Syntax
View
User view
7-2
Command Manual – Security
Comware V3 Chapter 7 IKE Configuration Commands
Parameter
Description
Example
7.1.4 dh
Syntax
View
Parameter
group1: Selects group1, that is, the 768-bit Diffie-Hellman group, for key negotiation at
phase 1 of IKE.
group2: Selects group2, that is, the 1024-bit Diffie-Hellman group, for key negotiation
at phase 1 of IKE.
group5: Selects group5, that is, the 1536-bit Diffie-Hellman group, for key negotiation
at phase 1 of IKE.
group14: Selects group14, that is, the 2048-bit Diffie-Hellman group, for key
negotiation at phase 1 of IKE.
Description
Use the dh command to select the Diffie-Hellman group for an IKE proposal.
7-3
Command Manual – Security
Comware V3 Chapter 7 IKE Configuration Commands
Use the undo dh command to restore the Diffie-Hellman group for an IKE proposal to
the default.
By default, group1, that is, 768-bit Diffie-Hellman group is used.
Related command: ike proposal, display ike proposal.
Example
Syntax
View
Any view
Parameter
Description
Use the display ike peer command to view the configuration about the specified or all
IKE peers.
Example
---------------------------
IKE Peer: good
exchange mode: main on phase 1
pre-shared-key:
peer id type: ip
peer ip address: 0.0.0.0 ~ 255.255.255.255
peer name:
nat traversal: disable
---------------------------
7-4
Command Manual – Security
Comware V3 Chapter 7 IKE Configuration Commands
Syntax
View
Any view
Parameter
None
Description
Use the display ike proposal command to view the parameters configured for each
IKE proposal.
This command shows IKE proposals in the sequence of the priority.
Related command: authentication-method, ike proposal, encryption-algorithm,
authentication-algorithm, dh, sa duration.
Example
# Display the IKE proposal information after two IKE proposals are configured.
[H3C] display ike proposal
priority authentication authentication encryption Diffie-Hellman duration
method algorithm algorithm group (seconds)
--------------------------------------------------------------------
10 PRE_SHARED SHA DES_CBC MODP_1024 5000
11 PRE_SHARED MD5 DES_CBC MODP_768 50000
default PRE_SHARED SHA DES_CBC MODP_768 86400
Table 7-1 Description on the fields of the display ike proposal command
Field Description
Priority of the IKE proposal, an integer in the range 1 to
Priority
100, with a higher number indicating a lower priority
authentication algorithm Authentication algorithm in the IKE proposal
authentication method Authentication mode in the IKE proposal
encryption algorithm Encryption algorithm in the IKE proposal
Diffie-Hellman group Diffie-Hellman group identifier
7-5
Command Manual – Security
Comware V3 Chapter 7 IKE Configuration Commands
Syntax
View
Any view
Parameter
Description
Use the display ike sa command to view the current security tunnels established by
IKE.
Related command: ike proposal.
Example
authentication-method: PRE-SHARED-KEY
authentication-algorithm: HASH-SHA1
encryption-algorithm: DES-CBC
7-6
Command Manual – Security
Comware V3 Chapter 7 IKE Configuration Commands
Table 7-2 Description on the fields of the display ike sa verbose command
Field Description
connection id Security tunnel ID
transmitting entity IKE negotiation initiator or responder
local ip IP address of the local SA peer
local id type ID type of the local SA peer
local id ID of the local SA peer
remote IP address of the remote SA peer
remote id type ID type of the remote SA peer
remote id ID of the remote SA peer
authentication-method Authentication method used by the IKE proposal
authentication-algorithm Authentication algorithm used by the IKE proposal
encryption-algorithm Encryption algorithm used by the IKE proposal
7-7
Command Manual – Security
Comware V3 Chapter 7 IKE Configuration Commands
The descriptions of the items displayed are listed in the following table.
Field Description
total phase-1 SAs Total number of SAs in the first phase of IKE negotiation
connection-id Security tunnel ID
peer Remote IP address of this SA
Display the status of this SA
RD (READY) means this SA has been established
successfully
ST (STAYALIVE) means that SA duration is negotiated, and
this SA will be refreshed in fixed interval.
RL (REPLACED) means that this SA has been replaced by
flag a new one, and will be automatically deleted after a period
of time.
FD (FADING) means this SA has been soft timeout, but is
still in use, and will be deleted at the time of hard timeout.
TO (TIMEOUT) means this SA have not received any
keepalive packet after previous keepalive timeout
occurred. If this SA receives no keepalive packet till next
keepalive timeout occurs, this SA will be deleted.
Phase of the SA:
Phase 1: a phase of establishing security tunnel to
phase communicate, ISAKMP SA will be established in the phase;
Phase 2: a phase of negotiating security service, IPSec SA
will be established in the phase.
doi Domain of Interpretation
7.1.8 encryption-algorithm
Syntax
View
Parameter
des-cbc: Selects the 56-bit DES-CBC encryption algorithm for an IKE proposal. DES
algorithm adopts 56-bit keys for encryption.
7-8
Command Manual – Security
Comware V3 Chapter 7 IKE Configuration Commands
3des-cbc: Sets the encryption algorithm to the 3DES algorithm in CBC mode. The
3DES algorithm uses 168-bit keys for encryption.
aes-cbc [ 128 | 192 | 256 ]: Sets the encryption algorithm to AES in CBC mode. 128 bits,
192 bits, and 256 bits are available key lengths. The default is 128 bits.
Description
Use the encryption-algorithm command to specify the encryption algorithm for an IKE
proposal.
Use the undo encryption-algorithm command to restore to the default.
By default, 56-bit DES-CBC encryption algorithm is used.
Related command: ike proposal and display ike proposal.
Example
# Specify the 56-bit DES-CBC encryption algorithm for IKE proposal 10.
[H3C] ike proposal 10
[H3C-ike-proposal-10] encryption-algorithm des-cbc
7.1.9 exchange-mode
Syntax
View
IKE-peer view
Parameter
Description
7-9
Command Manual – Security
Comware V3 Chapter 7 IKE Configuration Commands
to aggressive. In this case, you can create an SA as long as the username and
password are correct.
Related command: id-type.
Example
7.1.10 id-type
Syntax
id-type { ip | name }
undo id-type
View
IKE-peer view
Parameter
Description
Use the id-type command to select the type of ID used in IKE negotiation.
Use the undo id-type command to restore the default setting. By default, IP address is
the ID used in IKE negotiation.
In main mode, you can only use IP address to perform IKE negotiation and to create an
SA.
In aggressive mode, you can use both IP address and name to perform Ike negotiation
and to create an SA.
Related command: ike local-name.
Example
7-10
Command Manual – Security
Comware V3 Chapter 7 IKE Configuration Commands
Syntax
View
System view
Parameter
None
Description
Use the ike next-payload check disabled command to disable the router to check the
next-payload field in the last payload of the IKE negotiation packet during IPSec
negotiation for compatibility with other vendors.
Use the undo ike next-payload check disabled command to restore the default,
checking the next payload field.
An IKE negotiation packet comprises multiple payloads; the next-payload field is in the
generic header of the last payload. According to the protocol, this field should be set to
0. It however may vary by vendor. For compatibility sake, you can use the ike
next-payload check disabled command to ignore this field during IPSec negotiation.
Example
# Disable the router to check the next-payload field in the last payload of the IKE
negotiation packet during IPSec negotiation.
[H3C] ike next-payload check disabled
Syntax
View
System view
Parameter
7-11
Command Manual – Security
Comware V3 Chapter 7 IKE Configuration Commands
Description
Use the ike local-name command to set the name of the local GW.
Use the undo ike local-name command to restore the default name of the local GW.
By default, router name is used as the name of the local GW.
If the initiator uses the GW name to perform IKE negotiation (id-type name is used),
you must configure the ike local-name command on the local device.
Related command: remote-name.
Example
Syntax
View
System view
Parameter
Description
Use the ike peer command to configure an IKE peer and access IKE-peer view.
Use the undo ike peer command to delete an IKE peer.
Example
7.1.14 ike peer (In IPSec policy view or IPSec policy template view)
Syntax
7-12
Command Manual – Security
Comware V3 Chapter 7 IKE Configuration Commands
View
Parameter
Description
Use the ike peer command to quote an IKE peer in an IPSec policy or IPSec policy
template.
Use the undo ike peer command to remove the quoted IKE peer from the IPSec policy
or IPSec policy template.
Related command: ipsec policy.
Example
Syntax
View
System view
Parameter
proposal-number: IKE proposal number, ranging from 1 to 100. This value also stands
for the priority. A smaller value stands for a higher priority. When perform an IKE
negotiation, the system matches IKE proposals by the proposal number, the one with
the smallest proposal number first.
Description
7-13
Command Manual – Security
Comware V3 Chapter 7 IKE Configuration Commands
Example
Syntax
View
System view
Parameter
seconds: Specifies the interval for sending Keepalive packet to the remote end through
ISAKMP SA. It can be set to a value in the range 20 to 28800.
7-14
Command Manual – Security
Comware V3 Chapter 7 IKE Configuration Commands
Description
Use the ike sa keepalive-timer interval command to configure the interval for sending
Keepalive packet to the remote end through ISAKMP SA.
Use the undo ike sa keepalive-timer interval command to disable the function.
By default, this function is disabled.
This command is used to configure the interval for sending Keepalive packet to the
remote end through ISAKMP SA. IKE maintains the link state of the ISAKMP SA by
using the Keepalive packet. In general, if a timeout is configured at the remote end by
using the ike sa keepalive-timer timeout command, an interval for sending Keepalive
packet must be configured at the local end. When the remote end in the configured
timeout time does not receive the Keepalive packet, the ISAKMP SA with the TIMEOUT
flag and the IPSec SA corresponding to it will be deleted, and otherwise the ISAKMP
SA without the TIMEOUT flag will be marked as TIMEOUT. Thus the configured timeout
should be longer than the interval for sending the Keepalive packet during
configuration.
Related command: ike sa keepalive-timer timeout.
Example
# Configure the interval as 20 seconds for the local end to send Keepalive packet to the
remote end.
[H3C] ike sa keepalive-timer interval 20
Syntax
View
System view
Parameter
seconds: Specifies the timeout for ISAKMP SA to wait for the Keepalive packet. It can
be set to a value in the range 20 to 28800.
Description
Use the ike sa keepalive-timer timeout command to configure a timeout for ISAKMP
SA to wait for the Keepalive packet.
Use the undo ike sa keepalive-timer timeout command to disable the function.
By default, this function is disabled.
7-15
Command Manual – Security
Comware V3 Chapter 7 IKE Configuration Commands
This command is used to configure the timeout for the remote end to send the
Keepalive packet. IKE maintains the link state of the ISAKMP SA by using the
Keepalive packet. When the remote end in the configured timeout does not receive the
Keepalive packet, the ISAKMP SA with the TIMEOUT flag and the IPSec SA
corresponding to it will be deleted, and otherwise the ISAKMP SA without the
TIMEOUT flag will be marked as TIMEOUT. Thus the configured timeout should be
longer than the interval for sending the Keepalive packet during configuration.
Generally, packets will not be lost for more than three consecutive times in the network,
so the timeout can be configured as three times of the interval set for the remote end to
send Keepalive packets.
Related command: ike sa keepalive-timer interval.
Example
# Configure the timeout as 20 seconds for the local end to wait for the remote end to
send the Keepalive packet.
[H3C] ike sa keepalive-timer timeout 20
Syntax
View
System view
Parameter
seconds: Specifies the NAT keepalive interval for IKE peers, in the range 5 to 300
seconds.
Description
Use the ike sa nat-keepalive-timer interval command to configure the NAT keepalive
interval for IKE peers.
Use the undo ike sa nat-keepalive-timer interval command to disable NAT keepalive
for IKE peers.
The NAT keepalive interval must be less than the translation timeout of NAT.
This function is enabled automatically when IPSec implements NAT traversal, and the
default interval is 20 seconds.
By default, NAT keepalive of IKE is disabled.
7-16
Command Manual – Security
Comware V3 Chapter 7 IKE Configuration Commands
Example
7.1.19 local
Syntax
View
IKE-peer view
Parameter
Description
Use the local command to configure the subnet type in IKE negotiation.
Use the undo local command to restore the default subnet type. You can use this
command to enable interoperability between the router and a Netscreen device.
The default is single-subnet.
Example
7.1.20 local-address
Syntax
local-address ip-address
undo local-address
View
IKE-peer view
Parameter
7-17
Command Manual – Security
Comware V3 Chapter 7 IKE Configuration Commands
Description
Use the local-address command to configure the IP address of the local GW in IKE
negotiation.
Use the undo local-address command to delete the IP address of the local GW.
Normally, you do not need to configure the local-address command, unless you want
to specify a special address for the local GW.
Example
Syntax
nat traversal
undo nat traversal
View
IKE-peer view
Parameter
None
Description
Use the nat traversal command to configure the NAT traversal function of IKE/IPSec.
Use the undo nat traversal command to disable the NAT traversal function of
IKE/IPSec.
This command fits for the application that the NAT GW functionality is included in the
VPN tunnel constructed by IKE/IPSec.
To save IP address space, ISPs often deploy NAT gateways on public networks so that
private IP addresses can be allocated to users. The likelihood thus exists that at one
end of an IPSec/IKE tunnel is a public address and at the other end is a private one. To
set up the tunnel in this case, you must configure NAT traversal at both private network
side and public network side.
Example
# Configure the NAT traversal function under the IKE peer new_peer..
[H3C] ike peer new_peer
[H3C-ike-peer-new_peer] nat traversal
7-18
Command Manual – Security
Comware V3 Chapter 7 IKE Configuration Commands
7.1.22 pre-shared-key
Syntax
pre-shared-key key
undo pre-shared-key
View
IKE-peer view
Parameter
Description
Example
7.1.23 peer
Syntax
View
IKE-peer view
Parameter
Description
Use the peer command to configure the subnet type in IKE negotiation.
Use the undo peer command to restore the default subnet type. You can use this
command to enable interoperability between the router and a Netscreen device.
7-19
Command Manual – Security
Comware V3 Chapter 7 IKE Configuration Commands
Example
7.1.24 remote-address
Syntax
View
IKE-peer view
Parameter
ip-address: IP address, which can be the address of a network segment. When both the
ip-address1 and ip-address2 arguments are specified, they are the low address and
high address of a remote-address range. If an address range is specified, the router
could function as a receiver to receive negations initiated by the peers within the
address range.
Description
Example
7.1.25 remote-name
Syntax
remote-name name
7-20
Command Manual – Security
Comware V3 Chapter 7 IKE Configuration Commands
undo remote-name
View
IKE-peer view
Parameter
Description
Use the remote-name command to specify a name for the remote GW.
Use the undo remote-name command to remove the remote GW.
If the initiator uses its GW name in IKE negotiation (that is, id-type name is used), it
sends the name to the peer as its identity, whereas the peer uses the username
configured using the remote-name name command to authenticate the initiator. To
pass authentication, this remote name must be the same one configured using the ike
local-name command on the gateway at the initiator end.
Example
Syntax
View
User view
Parameter
connection-id: Specifies the SA to be deleted. If this parameter is not specified, all the
SAs at phase 1 will be deleted.
Description
Use the reset ike sa command to delete the security tunnel set up by IKE.
If connection-id is not specified, all the SAs at phase 1 will be deleted. If ISAKMP SA at
phase 1 exists when deleting the local security tunnel, a Delete Message notification
will be sent to the remote under the protection of this security tunnel to notify the remote
to delete the corresponding SA.
7-21
Command Manual – Security
Comware V3 Chapter 7 IKE Configuration Commands
IKE uses ISAKMP of two phases: phase 1 or ISAKMP SA to establish SA, phase 2 or
IPSec SA to negotiate and establish IPSec SA, using the former established SA.
Related command: display ike sa.
Example
Caution:
If the SA of phase 1 is deleted first, the remote end cannot be informed of clearing the
SA database when deleting the SA of phase 2.
7.1.27 sa duration
Syntax
sa duration seconds
undo sa duration
View
Parameter
seconds: Specifies the ISAKMP Sa duration. When the sa duration expires, ISAKMP
SA will update automatically. It can be set to a value in the range 60 to 604800 seconds.
7-22
Command Manual – Security
Comware V3 Chapter 7 IKE Configuration Commands
Description
Use the sa duration command to specify the ISAKMP Sa duration for an IKE proposal.
Use the undo sa duration command to restore it to the default.
By default, the value of ISAKMP Sa duration is 86400 seconds (one day).
Before the sa duration for a SA expires, a new SA will be negotiated for replacing the
existing SA, and the old SA will be automatically cleared when the Sa duration expires.
Related command: ike proposal and display ike proposal.
Example
# Specify the ISAKMP Sa duration for IKE proposal 10 as 600 seconds (10 minutes).
[H3C] ike proposal 10
[H3C-ike-proposal-10] sa duration 600
7-23
Command Manual – Security
Comware V3 Chapter 8 PKI Configuration Commands
Syntax
ca identifier name
undo ca identifier
View
Parameter
Description
Use the ca identifier command to specify the CA this device trusts and have the
"name" CA bound with this device.
Use the undo ca identifier command to delete the CA this device trusts.
By default, no trusted CA is specified.
Before the CA is deleted, the request, retrieval, revocation and polling of this certificate
are all carried out through it.
Example
Syntax
View
8-1
Command Manual – Security
Comware V3 Chapter 8 PKI Configuration Commands
Parameter
Description
Use the certificate request entity command to specify the name of the entity for
certificate request.
Use the undo certificate request entity command to delete the entity for certificate
request.
By default, no entity is specified for certificate request.
Related command: pki entity.
Example
Syntax
View
Parameter
Description
Use the certificate request from command to choose between CA and RA to register
for certificate request.
Use the undo certificate request from command to undo the selected registration
agent.
RA offers an extension to the CA certificate issue management. It takes charge of the
input and verification of the applicant information as well as the certificate issuing. But it
supports no signature function. Within some minor PKI systems, there is no RA and its
functions are implemented through CA.
8-2
Command Manual – Security
Comware V3 Chapter 8 PKI Configuration Commands
Example
Syntax
View
Parameter
Description
Use the certificate request mode command to decide between the manual or the auto
request mode.
Use the undo certificate request mode command to restore the default request
mode.
Auto mode enables the auto delivery of certificate request when there is no certificate
or when the current certificate is about to expire, while manual mode requires manual
operation in the request process.
By default, certificate request is carried out manually.
Related command: pki request-certificate.
Example
8-3
Command Manual – Security
Comware V3 Chapter 8 PKI Configuration Commands
Syntax
View
Parameter
minutes: renders the interval between two polls. Specified in minutes, it ranges from 5
to 60 minutes, and by default, it is 20 minutes;
count: indicates the retry times. It ranges from 1 to 100, and by default, is 50.
Description
Use the certificate request polling command to specify the interval between two polls
and the retry times.
Use the undo certificate request polling command to restore the default parameters.
When the request is delivered, if CA requires manual authentication, it takes a long time
before the certificate issuing. The client therefore needs to periodically poll the request
for the timely acquisition of the certificate after being authorized.
Related command: display pki certificate.
Example
# Specify the interval between two polls and the retry times
[H3C-pki-domain-1] certificate request polling interval 15
[H3C-pki-domain-1] certificate request polling count 40
Syntax
View
8-4
Command Manual – Security
Comware V3 Chapter 8 PKI Configuration Commands
Parameter
string: refers to the server URL of the registration authority. Ranging from 1 to 127
characters, it composes server location and CA CGI command interface script location
in the format of http: //server_location /ca_script_location. Among them,
server_location is generally expressed as IP address.
Description
Use the certificate request url command to specify the server URL for certificate
request through SCEP protocol. SCEP is a protocol specialized in the communication
with authentication authorities.
Use the undo certificate request url command to delete the concerned location
setting.
By default, no server URL is specified.
Example
Syntax
View
Parameter
None
Description
Example
8-5
Command Manual – Security
Comware V3 Chapter 8 PKI Configuration Commands
Syntax
View
Parameter
Description
Use the crl update-period command to specify the update period of CRL, which is the
interval between local downloads of CRLs from CRL access server.
Use the undo crl update-period command to restore the default CRL update period.
By default, it updates according to CRL validity period.
Example
Syntax
View
Parameter
url-string: refers to the distribution point location of CRL. Ranging from 1 to 127
characters, it is in the formats of ldap: //server_location, scep://server_location, or
http://server_location. Among them, server_location is generally expressed as IP
address, which if is to be replaced by server name, DNS needs to be configured for the
match between IP addresses and server names.
Description
Use the crl url command to specify the distribution point URL for CRL.
8-6
Command Manual – Security
Comware V3 Chapter 8 PKI Configuration Commands
Example
8.1.10 ldap-server
Syntax
View
Parameter
Description
Use the ldap-server ip command to configure the LDAP server IP address and the
port.
Use the undo ldap-server ip command to cancel the related configuration.
By default, no LDAP server IP address or port is configured.
Example
Syntax
View
System view
8-7
Command Manual – Security
Comware V3 Chapter 8 PKI Configuration Commands
Parameter
name: PKI domain name specified for the quotation of other commands, indicating the
PKI domain to which this device belongs. It can contain 1 to 15 characters.
Description
Use the pki domain command to enter PKI domain view, and configure the parameters
of LDAP server and for certificate request and authentication.
Use the undo pki domain command to delete the specified PKI domain.
By default, no PKI domain name is specified.
Example
Syntax
View
Parameter
Description
Example
8-8
Command Manual – Security
Comware V3 Chapter 8 PKI Configuration Commands
Syntax
fqdn name-str
undo fqdn
View
Parameter
Description
Example
8.2.2 common-name
Syntax
common-name name-str
undo common-name
View
8-9
Command Manual – Security
Comware V3 Chapter 8 PKI Configuration Commands
Parameter
Description
Use the common-name command to specify the common name of an entity, take User
name for example.
Use the undo common-name command to delete the common name of this entity.
By default, no common name is specified for any entity.
Example
8.2.3 country
Syntax
country country-code-str
undo country
View
Parameter
Description
Use the country command to specify the code of the country to which the entity
belongs. It is a standard 2-byte code, e.g., CN for China.
Use the undo country command to delete the country code of this entity.
By default, no country code is specified for any entity.
Example
8.2.4 ip
Syntax
ip ip-address
undo ip
8-10
Command Manual – Security
Comware V3 Chapter 8 PKI Configuration Commands
View
Parameter
Description
Example
8.2.5 locality
Syntax
locality locality-str
undo locality
View
Parameter
Description
Use the locality command to name the geographical locality of an entity, by a city for
example.
Use the undo locality command to cancel the mentioned naming operation.
By default, no geographical locality is specified for any entity.
Example
8-11
Command Manual – Security
Comware V3 Chapter 8 PKI Configuration Commands
8.2.6 organization
Syntax
organization org-str
undo organization
View
Parameter
Description
Use the organization command to specify the name of the organization to which the
entity belongs.
Use the undo organization command to delete that name.
By default, no organization name is specified for any entity.
Example
8.2.7 organizational-unit
Syntax
organizational-unit org-unit-str
undo organizational-unit
View
Parameter
Description
Use the organizational-unit command to specify the name of the organization unit to
which this entity belongs.
Use the undo organizational-unit command to delete the specified organization unit
name.
By default, no organization unit name is specified for any entity.
8-12
Command Manual – Security
Comware V3 Chapter 8 PKI Configuration Commands
Example
8.2.8 state
Syntax
state state-str
undo state
View
Parameter
Description
Use the state command to clarify the name of the state where an entity lies. Use the
undo state command to cancel the previous operation.
By default, the state of an entity is not specified.
Example
Syntax
View
Any view
Parameter
Description
Use the pki entity command to name a PKI entity and enter PKI entity view.
8-13
Command Manual – Security
Comware V3 Chapter 8 PKI Configuration Commands
Use the undo pki entity command to delete the name and cancel all configurations
under the name space.
A variety of attributes can be configured in PKI entity view. name-str plays only for the
convenience in being quoted by other commands. No field of certificate is concerned.
By default, entity name is not specified.
Example
Syntax
View
System view
Parameter
local: indicates the deletion of all local certificates that are locally stored;
ca: indicates the deletion of all CA certificates that are locally stored.
domain-name: PKI domain where the certificate to be deleted locates.
Description
Use the pki delete-certificate command to delete the locally stored certificates.
Example
Syntax
View
System view
8-14
Command Manual – Security
Comware V3 Chapter 8 PKI Configuration Commands
Parameter
Description
Example
# Import the CA certificate in the PKI domain named cer. The certificate file format is
PEM.
[H3C] pki import-certificate ca domain cer pem
Syntax
View
System view
Parameter
8-15
Command Manual – Security
Comware V3 Chapter 8 PKI Configuration Commands
Description
Use the pki request-certificate command to deliver certificate request through SCEP
to CA for the generated RSA key pair. If SCEP fails to go through normal
communication, you can print the local certificate request in base64 format using the
optional parameter PKCS#10, copy it, and send one to CA in an outband mode.
This operation is not saved within the configuration.
Related command: pki domain.
Example
# Specify to manually apply for a certificate and display the PKCS#10 certificate
request information.
[H3C] pki request-certificate domain 1 pkcs10
Syntax
View
System view
Parameter
Description
Example
# Retrieve a certificate.
[H3C] pki retrieval-certificate ca domain 1
Syntax
8-16
Command Manual – Security
Comware V3 Chapter 8 PKI Configuration Commands
View
System view
Parameter
Description
Use the pki retrieval-crl command to obtain the latest CRL from CRL server for the
verification of the validity of a current certificate.
Related command: pki domain.
Example
# Retrieve a CRL
[H3C] pki retrieval-crl domain 1
Syntax
View
System view
Parameter
Description
Use the pki validate-certificate command to verify the validity of a certificate. The
focus is to check the CA signature on the certificate, and to make sure that the
certificate is still within the validity period and beyond revocation. All certificates with
authentic signatures of CA can pass the validation, since it is believed that CA never
issues fake certificates.
Related command: pki domain.
Example
8-17
Command Manual – Security
Comware V3 Chapter 8 PKI Configuration Commands
Syntax
View
Any view
Parameter
Description
Example
8-18
Command Manual – Security
Comware V3 Chapter 8 PKI Configuration Commands
Certificate Request:
…..
dir_name: certsrv/mscep/mscep.dll
host_name: 169.254.0.100
SCEP transaction id: 58D41D0C5A7B1E21C5F4A008B580B1A1
PKCS#7 envelope: creating inner PKCS#7
PKCS#7 envelope: data payload size: 297 bytes
data payload:
….
PKCS#7 envelope: successfully encrypted payload
PKCS#7 envelope: size 667 bytes
PKCS#7 envelope: creating outer PKCS#7
PKCS#7 envelope: signature added successfully
PKCS#7 envelope: adding signed attributes
PKCS#7 envelope: adding string attribute transId
PKCS#7 envelope: adding string attribute messageType
PKCS#7 envelope: adding octet attribute senderNonce
PKCS#7 envelope: PKCS#7 data written successfully
PKCS#7 envelope: applying base64 encoding
PKCS#7 envelope: base64 encoded payload size: 2145 bytes
SCEP send message: IP = 0xa9fe0064
SCEP send message: Server returned status code
Valid response from server
PKCS#7 develope: reading outer PKCS#7
PKCS#7 develope: PKCS#7 payload size: 1872 bytes
PKCS#7 develope: PKCS#7 contains 1276 bytes of enveloped data
PKCS#7 develope: verifying signature
PKCS#7 develope: signature ok
8-19
Command Manual – Security
Comware V3 Chapter 8 PKI Configuration Commands
8-20
Command Manual – Security
Comware V3 Chapter 8 PKI Configuration Commands
L=Beijing
O=hw3c
OU=bjs
CN=myca
Subject:
C=CN
ST=bei jing
O=hua wei - 3com
CN=pki test
Verify result: ok
Field Description
Encapsulation of entity request in PKCS#10
Create PKCS#10 request
format
Data encapsulation in PKCS#7 encryption
PKCS#7 envelope
format
inner PKCS#7 PKCS#7 encryption of datagram
8-21
Command Manual – Security
Comware V3 Chapter 8 PKI Configuration Commands
Field Description
The entity sends a certificate operation packet to
SCEP send message
CA through SCEP
Signed Certificates Certificates signed by CA
Syntax
View
Any view
Parameter
Description
Use the display pki certificate command to display and browse through the
certificate.
Related command: pki retrieval-certificate, pki domain, and certificate request
polling.
Example
8-22
Command Manual – Security
Comware V3 Chapter 8 PKI Configuration Commands
O=hw3c
OU=bjs
CN=new-ca
Validity
Not Before: Jan 13 08: 57: 21 2004 GMT
Not After : Jan 20 09: 07: 21 2005 GMT
Subject:
C=CN
ST=beijing
L=beijing
CN=pki test
Subject Public Key Info:
Public Key Algorithm: rsaEncryption
RSA Public Key: (512 bit)
Modulus (512 bit):
00D41D1F …
Exponent: 65537 (0x10001)
X509v3 extensions:
X509v3 Subject Alternative Name:
DNS: hyf.huawei-3com.com
… …
Signature Algorithm: md5WithRSAEncryption
A3A5A447 4D08387D …
Syntax
View
Any view
Parameter
Description
Use the display pki crl command to display and browse through the locally saved
CRL.
Related command: pki retrieval-crl, and pki domain.
8-23
Command Manual – Security
Comware V3 Chapter 8 PKI Configuration Commands
Example
# Display a CRL
[H3C] display pki crl domain 1
Certificate Revocation List (CRL):
Version 2 (0x1)
Signature Algorithm: sha1WithRSAEncryption
Issuer:
C=CN
O=h3c
OU=soft
CN=A Test Root
Last Update: Jan 5 08: 44: 19 2004 GMT
Next Update: Jan 5 21: 42: 13 2004 GMT
CRL extensions:
X509v3 CRL Number: 2
X509v3 Authority Key Identifier:
keyid:0F71448E E075CAB8 ADDB3A12 0B747387 45D612EC
Revoked Certificates:
Serial Number: 05a234448E…
Revocation Date: Sep 6 12:33:22 2004 GMT
CRL entry extensions:……
Serial Number: 05a278445E…
Revocation Date: Sep 7 12:33:22 2004 GMT
CRL entry extensions:…
8-24
VPN
Command Manual – VPN
Comware V3 Table of Contents
Table of Contents
i
Command Manual – VPN
Comware V3 Table of Contents
ii
Command Manual – VPN
Comware V3 Table of Contents
iii
Command Manual – VPN
Comware V3 Chapter 1 L2TP Configuration Commands
Syntax
View
Parameter
Description
Use the allow l2tp command to specify the name of the peer end of the tunnel on
receiving call and the Virtual-Template it uses.
Use the undo allow command to remove the name of the peer end of the tunnel and
the adopted virtual template.
By default, call receiving is disabled.
This command is used on LNS side.
For multi-instance applications of L2TP, the domain-name parameter must be
configured.
When L2TP group number1 (the default L2TP group number) is used, the name of the
peer end of the tunnel remote-name can be unspecified. When configured in the view
of L2TP group 1, the format of the command is as follows:
allow l2tp virtual-template virtual-template-number [ remote remote-name ] [ domain
domain-name ]
If a peer end name is specified in L2TP group 1 configuration, L2TP group 1 will not
serve as the default L2TP group. For example, given the environment of Windows 2000
1-1
Command Manual – VPN
Comware V3 Chapter 1 L2TP Configuration Commands
beta 2, the local name of VPN connection is NONE, so the peer end name that the
router receives is NONE. In order to allow the router to receive tunnel connection
requests sent by this kind of unknown peer ends, or for the test purpose, a default L2TP
group can be configured.
The allow l2tp command is used on LNS side. If the peer end name of the tunnel is
configured, it must be the name of the local end configured on LAC side.
Related command: l2tp-group.
Example
# Receive L2TP tunnel connection requests sent by the peer end AS8010 (LAC side),
and creates a virtual-access interface on virtual-template 1.
[H3C-l2tp2] allow l2tp virtual-template 1 remote AS8010
# Use L2TP group 1 as the default L2TP group, receiving L2TP tunnel connection
requests sent by any peer end, and creates a virtual-access interface according to
virtual-template 1.
[H3C] l2tp-group 1
[H3C-l2tp1] allow l2tp virtual-template 1
Syntax
View
System view
Parameter
1-2
Command Manual – VPN
Comware V3 Chapter 1 L2TP Configuration Commands
Description
Example
Syntax
View
Any view
Parameter
None
Description
Use the display l2tp session command to view the current L2TP sessions.
The output information of the command facilitates the user to learn information of the
current L2TP sessions.
Related command: display l2tp tunnel.
Example
Table 1-1 Description on the fields of the display L2tp session command
Field Description
Total session Number of sessions
LocalSID The number uniquely identifies the local session.
RemoteSID The number uniquely identifies the peer session.
1-3
Command Manual – VPN
Comware V3 Chapter 1 L2TP Configuration Commands
Syntax
View
Any view
Parameter
None
Description
Use the display l2tp tunnel command to view information of the current L2TP tunnels.
The output information of the command facilitates the user to learn information of the
current L2TP tunnels.
Related command: display l2tp session.
Example
Table 1-2 Description on the fields of the display L2tp tunnel command
Field Description
Total tunnels Number of tunnels
1-4
Command Manual – VPN
Comware V3 Chapter 1 L2TP Configuration Commands
Syntax
View
Any view
Parameter
None
Description
Use the display l2tp user command to view information about the current L2TP users.
Related command: display l2tp tunnel, display l2tp session.
Example
Total user = 1
Table 1-3 Description on the fields of the display L2tp user command
Field Description
User Name User
LocalSID Local identifier of the session
RemoteSID Remote identifier of the session
Syntax
1-5
Command Manual – VPN
Comware V3 Chapter 1 L2TP Configuration Commands
View
System view
Parameter
Description
Example
Syntax
l2tp-auto-client enable
undo l2tp-auto-client enable
View
Parameter
None
Description
Use the l2tp-auto-client enable command to enable the LAC client to set up L2TP
tunnel.
Use the undo l2tp-auto-client enable command to disable the LAC client to set up
L2TP tunnel.
Example
1-6
Command Manual – VPN
Comware V3 Chapter 1 L2TP Configuration Commands
Syntax
l2tp enable
undo l2tp enable
View
System view
Parameter
None
Description
Example
Syntax
l2tpmoreexam enable
undo l2tpmoreexam enable
View
System view
Parameter
None
1-7
Command Manual – VPN
Comware V3 Chapter 1 L2TP Configuration Commands
Description
Example
1.1.10 l2tp-group
Syntax
l2tp-group group-number
undo l2tp-group group-number
View
System view
Parameter
Description
Example
1-8
Command Manual – VPN
Comware V3 Chapter 1 L2TP Configuration Commands
1.1.11 mandatory-chap
Syntax
mandatory-chap
undo mandatory-chap
View
Parameter
None
Description
Example
1.1.12 mandatory-lcp
Syntax
mandatory-lcp
undo mandatory-lcp
View
Parameter
None
1-9
Command Manual – VPN
Comware V3 Chapter 1 L2TP Configuration Commands
Description
Use the mandatory-lcp command to allow LNS and client to renegotiate Link Control
Protocol (LCP) between them.
Use the undo mandatory-lcp command to disable LCP renegotiation.
By default, LCP is not renegotiated.
Concerning NAS-Initialized VPN client, PPP negotiation will be first performed with
Network Access Server (NAS) at the beginning of a PPP session. If the negotiation is
successful, the access server will initiate the tunnel connection and transmit the
information collected during the negotiation to LNS. LNS will judge whether the user is
legal based on the information. The mandatory-lcp command can be used to force
LNS and client to renegotiate LCP. In this case, NAS agent authentication information is
ignored. If PPP clients do not support LCP renegotiation, LCP renegotiation will fail.
Related command: mandatory-chap.
Example
Syntax
View
User view
Parameter
Description
Use the reset l2tp session command to disconnect a session. When the user calls in,
the session can be set up again.
Related command: reset l2tp tunnel.
Example
1-10
Command Manual – VPN
Comware V3 Chapter 1 L2TP Configuration Commands
Syntax
View
User view
Parameter
remote-name: Name of the peer end of the tunnel, a character string with the length
ranging from 1 to 30.
tunnel-id: Local ID of the tunnel.
Description
Use the reset l2tp tunnel command to clear the specified tunnel connection and all
sessions on the tunnel.
The tunnel connection compulsorily disconnected by the reset l2tp tunnel command
can be reestablished again when the remote user calls in again. You may specify tunnel
connections to be disconnected by specifying remote name. If no such tunnel
connections exist, the current tunnel connections will not be affected. If there are
several tunnel connections (with the same name but different IP addresses), all of them
will be cleared. When tunnel-id is specified, only the corresponding tunnel connection
will be disconnected.
Related command: display l2tp tunnel.
Example
Syntax
View
User view
Parameter
1-11
Command Manual – VPN
Comware V3 Chapter 1 L2TP Configuration Commands
Description
Use the reset l2tp user command to disconnect the L2TP connection of the specified
user. When the user calls in, the connection can be set up.
Related command: reset l2tp tunnel, reset l2tp session.
Example
Syntax
View
Parameter
time: Timeout period in the range 0 to 10000 seconds. It defaults to 0, meaning the
session never expires.
Description
Use the session idle-time command to set the L2TP session idle-timeout timer. Upon
expiration of this timer, the L2TP session is disconnected.
Use the undo session idle-time command to disable the idle-timeout timer.
By default, the 2TP session never expires.
Example
Syntax
1-12
Command Manual – VPN
Comware V3 Chapter 1 L2TP Configuration Commands
undo start
View
Parameter
ip ip-addr: IP address of the peer end of the tunnel (LNS). Five IP addresses can be set
at most to provide LNS backup for each other.
domain-name: Domain name triggering connection requests, a case sensitive
character string with the length ranging from 1 to 30.
user-name: Full username triggering connection requests, a case sensitive character
string with the length ranging from 1 to 32.
Description
Use the start l2tp command to specify conditions triggering the local end to place calls
when it works as L2TP LAC.
Use the undo start l2tp command to delete the specified triggering conditions.
This command is used on LAC side to specify IP address of LNS; it can support several
connection request triggering conditions, specifically,
z Initiating tunnel connection request according to the user’s domain name. For
example, if domain name of user’s company is huawei-3com.com, the user with
this domain name can be specified as a VPN user.
z Deciding whether a user is a VPN user according to its dialed number. For
example, if the number 8810188 is specified to be the special service number, the
access user who dials this number is a VPN user.
z Specifying a user to be a VPN user by directly specifying full username.
For a VPN user, the local end (LAC) will send L2TP tunnel connection request to a
certain LNS according to the configured LNS priority or order. If receiving response
from the LNS within the specified period, LAC will take it as the peer end of the tunnel.
If not, LAC will send tunnel connection request to the next LNS.
Conflicts may exist between these VPN user judgment ways. For example, LNS
address specified according to full username is 1.1.1.1, while that according to domain
name is 1.1.1.2. To avoid situations like this, a user searching order is necessary to be
specified. The system always starts a search by looking for the specified L2TP group by
full username; if finding no match, it continues the search by domain name.
Example
# Specify the users using the domain name of “Huawei-3com.com” to be VPN users,
with IP address of the L2TP access server of the headquarters being 202.38.168.1.
[H3C-l2tp1] start l2tp ip 202.38.168.1 domain Huawei-3com.com
1-13
Command Manual – VPN
Comware V3 Chapter 1 L2TP Configuration Commands
Syntax
View
Parameter
None
Description
Use the start l2tp tunnel command to enable the L2TP LAC to start L2TP tunnel
connection.
This command is used only on LAC side.
Related command: tunnel keepstanding.
Example
# Enable the LAC to start L2TP tunnel connection. It requests the LNS at 1.1.1.1 first
and then the LNS at 2.2.2.2 if no response is received.
[H3C-l2tp1] start l2tp ip 1.1.1.1 ip 2.2.2.2 fullusername vpdnuser
[H3C-l2tp1] start l2tp tunnel
Caution:
You must use this command in conjunction with the tunnel keepstanding command.
Otherwise, the tunnel will be torn down immediately after it is set up.
Syntax
tunnel authentication
undo tunnel authentication
View
1-14
Command Manual – VPN
Comware V3 Chapter 1 L2TP Configuration Commands
Parameter
None
Description
Use the l2tp tunnel authentication command to enable L2TP tunnel authentication.
Use the undo l2tp tunnel authentication command to disable L2TP tunnel
authentication.
By default, L2TP tunnel authentication is performed.
L2TP tunnel authentication is permitted by default. Normally, authentication needs to
be performed on both ends of the tunnel for security’s sake. In case of network
connectivity test or receiving connection sent by nameless peer end, tunnel
authentication is not required.
Example
Syntax
tunnel avp-hidden
undo tunnel avp-hidden
View
Parameter
None
Description
Use the tunnel avp-hidden command to configure Attribute Value Pair (AVP) data to
be transmitted in hidden format.
Use the undo tunnel avp-hidden command to restore the default transmission way of
AVP data.
By default, the tunnel transmits AVP data in plain text.
Some parameters of L2TP protocol are transmitted by AVP data. If high data security is
desired, this command can be used to configure AVP data to be transmitted in hidden
format.
1-15
Command Manual – VPN
Comware V3 Chapter 1 L2TP Configuration Commands
Example
Syntax
tunnel flow-control
undo tunnel flow-control
View
Parameter
None
Description
Example
Syntax
tunnel keepstanding
undo tunnel keepstanding
View
Parameter
None
Description
Use the tunnel keepstanding command to enable the tunnel-hold function of L2TP,
preventing the tunnel from being disconnected when no session is present.
1-16
Command Manual – VPN
Comware V3 Chapter 1 L2TP Configuration Commands
Use the undo tunnel keepstanding command to disable the tunnel-hold function of
L2TP.
Caution:
To have this command take effect on a tunnel, you must configure it at both ends of the
tunnel.
Example
Syntax
View
Parameter
name: Local name of the tunnel, a character string with the length ranging from 1 to 30.
Description
Example
1-17
Command Manual – VPN
Comware V3 Chapter 1 L2TP Configuration Commands
Syntax
View
Parameter
Description
Use the tunnel password command to specify a password for tunnel authentication.
Use the undo l2tp tunnel password command to remove the tunnel authentication
password.
By default, tunnel authentication password is null.
Example
Syntax
View
Parameter
hello-interval: Forwarding interval of Hello packet when LAC or LNS has no packet to
receive, an integer in seconds, ranging from 60 to 1000.
Description
Use the tunnel timer hello command to set a Hello packet forwarding interval.
1-18
Command Manual – VPN
Comware V3 Chapter 1 L2TP Configuration Commands
Use the undo tunnel timer hello command to restore Hello packet forwarding interval
in the tunnel to the default.
By default, Hello packet is forwarded every 60 seconds.
Different Hello packet time intervals can be configured on LNS and LAC sides.
Example
1-19
Command Manual – VPN
Comware V3 Chapter 2 GRE Configuration Commands
Syntax
debugging tunnel
undo debugging tunnel
View
User view
Parameter
None
Description
Example
None
2.1.2 destination
Syntax
destination ip-addr
undo destination
view
Parameter
ip-addr: IP address of the physical interface used by the peer end of the tunnel.
Description
Use the destination command to specify the destination IP address to be filled in the
added IP header at the time of tunnel interface encapsulation.
Use the undo destination command to delete the defined destination address.
2-1
Command Manual – VPN
Comware V3 Chapter 2 GRE Configuration Commands
Example
# Set up tunnel connection between the interface serial 0/0/0 of the router Router1 (with
IP address of 193.101.1.1) and the interface serial 1/0/0 of the router Router2 (with IP
address of 192.100.1.1).
[H3C1-Tunnel0] source 193.101.1.1
[H3C1-Tunnel0] destination 192.100.1.1
[H3C2-Tunnel1] source 192.100.1.1
[H3C2-Tunnel1] destination 193.101.1.1
Syntax
view
Any view
Parameter
Description
Use the display interface tunnel command to view the working status of tunnel
interface.
Executing the display interface tunnel command displays such information about the
tunnel interface as source address, destination address (the real physical interface
address receiving/sending GRE packet), encapsulation mode, identification keyword
and end-to-end check, etc.
Related command: source, destination, gre key, gre checksum, and
tunnel-protocol.
Example
2-2
Command Manual – VPN
Comware V3 Chapter 2 GRE Configuration Commands
Table 2-1 Description on the fields of the display interface tunnel 2 command
Field Description
Tunnel2 is up The physical layer of the tunnel interface is up.
2-3
Command Manual – VPN
Comware V3 Chapter 2 GRE Configuration Commands
Field Description
Checksumming of packets End-to-end check of the tunnel, being disabled here.
5 minutes input rate Input rate in seconds within the last 5 minutes
Input packet number in seconds within the last 5
packets/sec
minutes
packets input Total input packet number
bytes Total input byte number
input error Number of error packets among all input packets.
output error Number of error packets among all output packets.
Syntax
gre checksum
undo gre checksum
view
Parameter
None
Description
Use the gre checksum command to configure the two ends of a tunnel to perform
end-to-end check, verifying the correctness of packets and discard those that do not
pass the verification.
Use the undo gre checksum command to cancel the check.
By default, end-to-end check of the two ends of tunnel is disabled.
You may enable or disable checksum at each end of a tunnel as needed. If checksum is
enabled at the local end but not at the opposite end, the local end will perform
checksum on the transmitted packets but not on the received packets. If checksum is
disabled at the local end but enabled at the opposite end, the local end will perform do
the opposite.
Related command: interface tunnel.
2-4
Command Manual – VPN
Comware V3 Chapter 2 GRE Configuration Commands
Example
# Set up a tunnel between the interface serial 3/0/1 of the router Router1 and the
interface serial 2/1/1 of the router Router2 and enable checksum on both ends of the
tunnel.
[H3C1-Tunnel3] gre checksum
[H3C2-Tunnel2] gre checksum
Syntax
view
Parameter
key-number: Identification keyword of the two ends of the tunnel, an integer ranging
from 0 to 4294967295.
Description
Use the gre key command to set identification keyword of the tunnel interface, and by
this feeble security mechanism avoid incorrectly identifying or receiving packets from
undesired places.
Use the undo gre key command to delete this configuration.
By default, the system does not assign identification keyword to the tunnel in use.
Regarding the setting of key-number, you are required either to specify the same
key-number at both ends of the tunnel or to specify it at neither of the two ends.
Related command: interface tunnel.
Example
# Set up a tunnel between the router Router1 and the router Router2 and set the
identification keyword of the tunnel.
[H3C1-Tunnel3] gre key 123
[H3C2-Tunnel2] gre key 123
Syntax
2-5
Command Manual – VPN
Comware V3 Chapter 2 GRE Configuration Commands
view
System view
Parameter
Description
Use the interface tunnel command to create a tunnel interface and enter the view of
this tunnel interface.
Use the undo interface tunnel command to delete the specified tunnel interface.
By default, there is no tunnel interface in the system.
The interface tunnel command is used to enter interface view of the specified tunnel. If
the tunnel interface does not exist, the system will create it before entering tunnel
interface view.
Tunnel interface numbers have only local significance. The two ends of a tunnel can
use the same or different interface numbers.
Related command: source, destination, gre key, gre checksum, tunnel-protocol.
Example
Syntax
mtu size
undo mtu
view
Parameter
size: Specifies maximum transmission unit on Tunnel interface, in the range 100 to
64000 in bytes. It defaults to 15000 bytes.
Description
Use the mtu command to set the maximum transmission unit (MTU) for Tunnel
interface.
2-6
Command Manual – VPN
Comware V3 Chapter 2 GRE Configuration Commands
Example
2.1.8 keepalive
Syntax
View
Parameter
Description
Use the keepalive command to enable the keepalive function of GRE and configure
the interval for sending keepalive messages and the maximum number of sending
attempts as well.
Use the undo keepalive command to disable the keepalive function.
By default, the keepalive function of GRE is disabled.
After you configure the keepalive command, the router sends GRE keepalive
messages regularly. If no response is received for a keepalive message that it has sent
upon the expiration of a specified period, the router resends the keepalive message. If
no response is received yet after the number of resending attempts exceeds the
specified limit, the protocol of the local tunnel interface goes down.
Related command: interface tunnel.
Example
# Configure the router to send GRE keepalive messages at intervals of 20 seconds and
for up to five times.
[H3C-Tunnel0/0/5] keepalive 20 5
2-7
Command Manual – VPN
Comware V3 Chapter 2 GRE Configuration Commands
2.1.9 source
Syntax
view
Parameter
ip-addr: Specifies IP address of the real interface sending GRE packets in the address
format of A.B.C.D.
interface-type interface-num: Specifies the real interface sending packets by specifying
its interface name and number. These interfaces include: Ethernet, Serial, ATM, Tunnel,
Loopback, etc.
Description
Use the tunnel source command to specify the source IP address or source interface
to be filled in the added IP header at the time of tunnel interface encapsulation.
Use the undo tunnel source command to delete the defined source address or source
interface.
By default, source address or source interface of tunnel is not specified in the system.
The specified source address of the tunnel is the real interface address sending GRE
packets, which should keep accordance with the specified destination address at the
opposite tunnel interface.
The same source address and destination address cannot be configured on two or
more tunnel interfaces using the same encapsulation protocol.
Related command: interface tunnel, destination.
Example
# Configure the interface tunnel5 on the router Router1, on which the real output
interface of the encapsulated packet is serial 0/0/0 (with the IP address of the interface
being 192.100.1.1.
[H3C1-Tunnel5] source 192.100.1.1
2-8
Command Manual – VPN
Comware V3 Chapter 2 GRE Configuration Commands
Syntax
tunnel-protocol gre
undo tunnel-protocol
view
Parameter
Description
Use the tunnel mode command to set encapsulation mode of the tunnel interface to
GRE.
By default, the encapsulation protocol of tunnel interface is GRE. Under the GRE mode,
users can execute and view the GRE related commands, whereas other relevant
commands are available under other modes.
Related command: interface tunnel.
Example
# Create a tunnel between routers Router1 and Router2, with encapsulation protocol
being GRE and transport protocol being IP.
[H3C1-Tunnel3] tunnel-protocol gre
[H3C2-Tunnel2] tunnel-protocol gre
2-9
Command Manual – VPN
Comware V3 Chapter 3 DVPN Configuration Commands
Syntax
algorithm-suite suite-number
undo algorithm-suite
View
dvpn-class view
Parameter
Description
Use the algorithm-suite command to specify the algorithm suite used when a client
registers.
Use the undo algorithm-suite command to revert to the default algorithm suite.
The default algorithm suite number is 1, which stands for DES (for encryption), MD5
(for authentication), and DHGROUP1 (for key negotiation).
3-1
Command Manual – VPN
Comware V3 Chapter 3 DVPN Configuration Commands
Example
# Specify AES for encryption, SHA1 for authentication, and DHGROUP1 for key
negotiation.
[H3C-dvpn-class-abc] algorithm-suite 11
Syntax
View
dvpn-policy view
Parameter
pap: Specifies the DVPN server to authenticate clients using PAP (password
authentication protocol).
none: Specifies the DVPN server not to authenticate clients.
chap: Specifies the DVPN server to authenticate clients using CHAP (challenge
authentication protocol).
Description
Use the authentication-client method command to specify how the DVPN server that
applies the DVPN policy authenticates clients. None, CHAP, and PAP are currently
available.
PAP is used to authenticate clients by default.
Example
Syntax
View
dvpn-class view
Parameter
3-2
Command Manual – VPN
Comware V3 Chapter 3 DVPN Configuration Commands
pre-share: Specifies the client to authenticate the DVPN server using a pre-shared
key.
Description
Example
# Specify the client to authenticate the DVPN server using a pre-shared key.
[H3C-dvpn-class-abc] authentication-server method pre-share
Syntax
View
dvpn-policy view
Parameter
3-3
Command Manual – VPN
Comware V3 Chapter 3 DVPN Configuration Commands
Description
Use the data algorithm-suite command to specify the algorithm suite used by IPSec
SA (security association) to forward data.
Use the undo data algorithm-suite command to revert to the default algorithm suite.
The default algorithm suite number used by IPSec SA is 1, which stands for DES (for
encryption), MD5 (for authentication), and DHGROUP1 (for key negotiation).
Example
# Specify not to encrypt packets, that is, set the algorithm suite number to 0.
[H3C-dvpn-policy-abc] data algorithm-suite 0
Syntax
View
dvpn-policy view
Parameter
time-interval: Lifetime of the IPSec SA used to encrypt DVPN data. This argument
ranges from 180 seconds to 86,400 seconds and defaults to 3,600 seconds.
Description
Use the data ipsec-sa duration time-base command to set the lifetime of the IPSec
SA used to encrypt DVPN data.
Use the undo data ipsec-sa duration time-base command to restore the default
lifetime of the IPSec SA.
The default lifetime of the IPSec SA is 3,600 seconds.
Example
Syntax
debugging dvpn { all | error | event { all | misc | register | session } | hexadecimal |
packet { all | control | data | ipsec } }
3-4
Command Manual – VPN
Comware V3 Chapter 3 DVPN Configuration Commands
undo debugging dvpn { all | error | event { all | register | session | misc } |
hexadecimal | packet { all | control | data | ipsec } }
View
User view
Parameter
Description
Example
Syntax
View
Any view
Parameter
Description
Use the display dvpn ipsec-sa command to display the specified IPSec SA
information.
3-5
Command Manual – VPN
Comware V3 Chapter 3 DVPN Configuration Commands
Example
---------------------------
Session dvpn-id : 1
Session local : 10.0.0.3
Session remote : 10.0.0.2
sa mode : DVPN
---------------------------
Syntax
View
Any view
Parameter
3-6
Command Manual – VPN
Comware V3 Chapter 3 DVPN Configuration Commands
Description
Use the display dvpn map command to display information about maps in a DVPN
domain, such as private IP address, public IP address, port number, DVPN connection
state, DVPN connection type, and control ID.
Example
Syntax
View
Any view
Parameter
Description
Use the display dvpn session command to display information about sessions the
device owns.
Example
3-7
Command Manual – VPN
Comware V3 Chapter 3 DVPN Configuration Commands
Syntax
View
Any view
Parameter
Description
Use the display dvpn info command to display the configuration and operating
information about a specified DVPN. Use the display dvpn info global command to
display the global configuration and operating information about the current DVPN.
Example
server : server0
server state : active
server public IP : 211.1.1.2
algorithm suite : DES_MD5_DHGROUP1
3-8
Command Manual – VPN
Comware V3 Chapter 3 DVPN Configuration Commands
Syntax
View
Any view
Parameter
None
3-9
Command Manual – VPN
Comware V3 Chapter 3 DVPN Configuration Commands
Description
Use the display dvpn online-user command to display the information about online
DVPN users. When the DVPN server authenticates clients, you can use this command
to check the users that pass AAA (authentication, authorization, and accounting)
authentication and are accessing the DVPN domains.
Example
Syntax
View
System view
Parameter
Description
Use the dvpn class command to create and enter a dvpn-class view.
Use the undo dvpn class command to remove a dvpn-class view.
Parameters such as the IP address of the DVPN server and the user name and
password for register are configured in DVPN class views. You cannot remove a DVPN
class applied to a tunnel interface.
No dvpn-class is configured by default.
Example
3-10
Command Manual – VPN
Comware V3 Chapter 3 DVPN Configuration Commands
Syntax
View
System view
Parameter
time: Time when a client turns to dumb state after it fails to register with the DVPN
server continuously. This argument ranges from 60 seconds to 3,600 seconds and
defaults to 300 seconds.
Description
Use the dvpn client register-dumb command to set the time when a client turns to
dumb state after it fails to register with a DVPN server for specified retries.
Use the undo dvpn client register-dumb command to revert to the default dumb
interval.
Example
Syntax
View
System view
Parameter
Description
Use the dvpn client register-interval command to set the register interval of a client.
Use the undo dvpn client register-interval command to revert to the default register
interval of the client.
3-11
Command Manual – VPN
Comware V3 Chapter 3 DVPN Configuration Commands
A client attempts to register with a DVPN server once within each register interval until
it succeeds. If it fails for specified retries, the client turns to dumb state.
The default register interval is 10 seconds.
Example
Syntax
View
System view
Parameter
times: Maximum attempts for the client to register with a DVPN server continuously.
This argument ranges from 1 to 6 and defaults to 3.
Description
Use the dvpn client register-retry command to set the maximum attempts for a client
to register with a DVPN server continuously.
Use the undo dvpn client register-retry command to revert to the default attempts for
a client to register with a DVPN server continuously.
Example
# Set the maximum attempts for a client to register with a DVPN server continuously to
6.
[H3C] dvpn client register-retry 6
Syntax
View
3-12
Command Manual – VPN
Comware V3 Chapter 3 DVPN Configuration Commands
Parameter
Description
Use the dvpn dvpn-id command to specify the DVPN domain the tunnel interface
belongs to. This command is valid when the tunnel interface is encapsulated as DVPN.
Use the undo dvpn dvpn-id command to remove the DVPN domain ID assigned to the
tunnel interface.
No DVPN domain ID is assigned to a tunnel interface by default.
Related command: tunnel-protocol udp dvpn.
Example
# Set the ID of the DVPN domain the tunnel interface belongs to the to 100.
[H3C] int tunnel 0
[H3C-Tunnel0] dvpn-protocol udp dvpn
[H3C-Tunnel0] dvpn dvpn-id 100
Syntax
View
Parameter
Description
Use the dvpn interface-type command to specify the type of a tunnel interface. A
tunnel interface is of client type by default.
Example
3-13
Command Manual – VPN
Comware V3 Chapter 3 DVPN Configuration Commands
Syntax
View
System view
Parameter
Description
Use the dvpn policy command to create and enter a DVPN policy view.
Use the undo dvpn policy command to remove a DVPN policy view.
DVPN policies such as the way to authenticate clients, the encryption algorithm suite
used by sessions, the algorithm suite used to forward packets, and time settings are
configured in DVPN policy view. To remove a DVPN policy that is applied to a tunnel
interface, you must disable the application first.
No DVPN policy is configured by default.
Example
Syntax
View
Parameter
3-14
Command Manual – VPN
Comware V3 Chapter 3 DVPN Configuration Commands
Description
Use the dvpn policy command to apply a specified DVPN policy to a tunnel interface
that is of server type.
Use the undo dvpn policy command to disable a DVPN policy applied to a tunnel
interface.
Only one DVPN policy can be applied to each tunnel interface. Therefore, to apply a
new DVPN policy, you must disable the existing one first. You can apply a DVPN policy
to multiple tunnel interfaces.
You can apply the DVPN policy to only the tunnel interface that is of server type.
No DVPN policy is applied to the tunnel interface by default.
Related command: dvpn interface-type.
Example
Syntax
View
Parameter
forward: Specifies the DVPN server to forward all packets from the client, but not to
send packets redirecting the next hop to the client.
undistributed: Specifies the DVPN server not to distribute information about the client
to other clients.
Description
Use the dvpn register-type command to configure the type of the additional
information when a client registers with a DVPN server.
Use the undo dvpn register-type command to revert to the default type.
The DVPN server determines whether or not to send redirecting packets according to
the type of the additional information.
3-15
Command Manual – VPN
Comware V3 Chapter 3 DVPN Configuration Commands
If the additional information is of forward type, the client cannot establish sessions with
other clients in the DVPN domain. If the additional information is of undistributed type,
the DVPN server does not notify any client in the DVPN domain of the redirecting
packets about the client. (But the DVPN server can still notify the client of redirecting
packets about other clients. So the client may establish sessions with other clients.)
You can execute the dvpn register-type command only on the tunnel interface that is
of client type.
Related command: dvpn interface-type.
The two flags are not set by default.
Example
# Set the DVPN server not to distribute the information about the client to other clients.
[H3C-tunnel0] dvpn register-type undistributed
Syntax
View
Parameter
acl-number: ACL number in the range 3,000 to 3,999. This ACL is used by the interface
to decide which data streams need to be encrypted.
Description
Use the dvpn security acl command to specify the ACL for the interface to decide
which data streams need to be encrypted using IPSec.
Use the undo dvpn security acl command to remove the ACL.
You can reference an ACL to specify which packets need IPSec encryption before they
are forwarded in a DVPN domain. Those denied by the ACL are not to be encrypted by
IPSec.
3-16
Command Manual – VPN
Comware V3 Chapter 3 DVPN Configuration Commands
Note:
The dvpn security acl command needs to be used together with the acl and rule
commands. If you provide the deny keyword for the rule command and specify the
corresponding ACL in the dvpn security acl command, all packets that match the ACL
are not to be encrypted by IPSec.
Example
# On tunnel interface 0 encrypt data streams except for those denied by ACL 3100.
[H3C] acl number 3100
[H3C-acl-adv-3100] rule deny ip
[H3C-acl-adv-3100] quit
[H3C] interface tunnel 0
[H3C-Tunnel0] dvpn security acl 3100
Syntax
View
Parameter
Description
Use the dvpn server command to configure the DVPN class to be applied to a tunnel
interface.
Use the undo dvpn server command to remove the DVPN class applied to a tunnel
interface.
At present, a tunnel interface can support only one DVPN server, and a DVPN class
can only be applied to one tunnel interface.
A tunnel interface is not configured with a DVPN class by default.
3-17
Command Manual – VPN
Comware V3 Chapter 3 DVPN Configuration Commands
Example
Syntax
View
System view
Parameter
Description
Use the dvpn server authentication-client method command to specify the default
way a DVPN server authenticates clients. If the DVPN domain to be accessed is not
specified when a client registers with a DVPN server, the DVPN server authenticates
the client in the default way. None, CHAP, and PAP are available for authentication at
present.
A DVPN server determines the way to authenticate clients according to the policy
applied to the DVPN domain. If the corresponding policy does not exist, the DVPN
server adopts the authentication in global configuration to authenticate clients.
A DVPN server authenticates clients by using the default PAP.
Example
Syntax
3-18
Command Manual – VPN
Comware V3 Chapter 3 DVPN Configuration Commands
View
System view
Parameter
time: Map age time of a DVPN server. This argument ranges from 10 seconds to 180
seconds and defaults to 30 seconds.
Description
Use the dvpn server map age-time command to set the map age time of a DVPN
server.
Use the undo dvpn server map age-time command to revert to the default map age
time.
If a client does not register with the DVPN server successfully during the map age time,
the map established is removed.
The default map age time is 30 seconds.
Example
Syntax
View
System view
Parameter
key: Pre-shared key of the DVPN server, a string with a maximum of 127 characters in
length.
Description
Use the dvpn server pre-shared-key command to set a pre-shared key for a DVPN
server.
Use the undo dvpn server pre-shared-key command to remove the pre-shared key
of a DVPN server.
A DVPN server is not configured with a pre-shared key by default.
3-19
Command Manual – VPN
Comware V3 Chapter 3 DVPN Configuration Commands
Example
Syntax
View
System view
Parameter
Description
Example
# Enable DVPN.
[H3C] dvpn service enable
3.1.27 local-user
Syntax
View
dvpn-class view
Parameter
username: User name of the client, a string ranging from 1 byte to 80 bytes in length.
password: Password of the client.
simple: Displays the password in plain text.
cipher: Displays the password in cipher text.
3-20
Command Manual – VPN
Comware V3 Chapter 3 DVPN Configuration Commands
Description
Use the local-user command to configure the user name and password of a client.
Use the undo local-user command to remove the existing user name and password.
Example
# Configure the user name and password of a client to user and test respectively.
[H3C-Serial0/0/0] local-user user password simple test
3.1.28 public-ip
Syntax
public-ip ip-address
undo public-ip ip-address
View
dvpn-class view
Parameter
Description
Use the public-ip command to specify a public IP address of a specified DVPN server.
Use the undo public-ip command to remove the public IP address of a specified
DVPN server.
No public IP address of the specified DVPN server is configured by default.
Example
3.1.29 pre-shared-key
Syntax
pre-shared-key key
undo pre-shared-key
View
dvpn-class view
3-21
Command Manual – VPN
Comware V3 Chapter 3 DVPN Configuration Commands
Parameter
key: Pre-shared key of a DVPN server, a string with a maximum of 127 bytes in length.
Description
Use the pre-shared-key command to set the pre-shared key used when a client needs
to authenticate a DVPN server.
Use the undo pre-shared-key command to remove the pre-shared key of the DVPN
server configured on the client side.
Example
# Set the pre-shared key of the DVPN server on a client side to 123.
[H3C-dvpn-class-abc] pre-shared-key 123
3.1.30 private-ip
Syntax
private-ip ip-address
undo private-ip
View
dvpn-class view
Parameter
ip-address: Private IP address of a specified DVPN server (the IP address of the tunnel
interface).
Description
Example
# Set the private IP address of a DVPN server to 192.168.0.1 (That is, assign the
private IP address to the tunnel interface).
[H3C-Dvpn-class-abc] private-ip 192.168.0.1
3-22
Command Manual – VPN
Comware V3 Chapter 3 DVPN Configuration Commands
Syntax
View
User view
Parameter
Description
Use the reset dvpn all command to clear all operating information about a specified
DVPN domain and to initiate the DVPN domain.
Example
# Reset DVPN 2.
<H3C> reset dvpn all 2
Syntax
View
User view
Parameter
Description
Use the reset dvpn map command to clear a specified map. This command also
clears the sessions related to the map (if the sessions exist). If the map is what the
client uses to register, this command clears all the sessions of the DVPN client who
registers by using the specified map.
Example
# Clear the map with an IP address of 10.0.0.2, a port number of 9876, and a control-id
of 123456.
3-23
Command Manual – VPN
Comware V3 Chapter 3 DVPN Configuration Commands
Syntax
View
User view
Parameter
Description
Use the reset dvpn session command to clear a specified session. If the session is
the one established when the client registers, this command clears all sessions of the
DVPN client.
Example
Syntax
View
User view
Parameter
None
Description
Use the reset dvpn statistics command to clear all the statistics information of a
DVPN module.
Example
3-24
Command Manual – VPN
Comware V3 Chapter 3 DVPN Configuration Commands
Syntax
View
dvpn-policy view
Parameter
Description
Use the session algorithm-suite command to specify the algorithm suite a session
uses.
Use the undo session algorithm-suite command to revert to the default algorithm
suite.
Algorithm suite 1 is used by default, which stands for DES (for encryption), MD5 (for
authentication), and DHGROUP1 (for key negotiation).
Example
# Set not to encrypt control packets, that is, set the suit number to 0.
[H3C-dvpn-policy-abc] session algorithm-suite 0
3-25
Command Manual – VPN
Comware V3 Chapter 3 DVPN Configuration Commands
Syntax
View
dvpn-policy view
Parameter
time-interval: Idle timeout time ranging from 60 seconds to 86,400 seconds and
defaulting to 300 seconds.
Description
Use the session idle-timeout command to set the idle timeout time for sessions.
Use the undo session idle-timeout command to revert to the default idle timeout time.
If no packets pass through a session during a specific period, the session is removed
automatically. The specific period is known as idle timeout time.
Example
Syntax
View
dvpn-policy view
Parameter
time-interval: Keepalive interval ranging from 5 seconds to 300 seconds and defaulting
to 10 seconds.
Description
3-26
Command Manual – VPN
Comware V3 Chapter 3 DVPN Configuration Commands
Use the undo session keepalive-interval command to revert to the default keepalive
interval.
Keepalive packets are used to check the connection state of sessions. After a session
is established, the active side sends keepalive packets regularly if no packet passes
through the session, and the passive side responds with keepalive-ack packets.
Example
Syntax
View
dvpn-policy view
Parameter
Description
Use the session setup-interval command to set the interval for sending requests to
establish a session (Setup request). Setup request packets are sent regularly until the
session is established.
Use the undo session setup-interval command to revert to the default setup interval.
A client takes count of the Setup request packets it sends. If it does not receive the
response packets from the peer when the setup interval expires after it sends s Setup
request packet, it sends another Setup request packet.
Example
Syntax
3-27
Command Manual – VPN
Comware V3 Chapter 3 DVPN Configuration Commands
View
Parameter
udp dvpn: Specifies the tunnel interface to be encapsulated with UDP DVPN.
Description
Use the tunnel-protocol udp dvpn command to encapsulate a tunnel interface with
UDP DVPN. In this case, the tunnel interface is of Multipoint attribute and NBMA
(non-broadcast multiple access) type.
A tunnel interface is encapsulated with GRE by default.
Example
3-28
QoS
Command Manual – QoS
Comware V3 Table of Contents
Table of Contents
i
Command Manual – QoS
Comware V3 Table of Contents
ii
Command Manual – QoS
Comware V3 Table of Contents
iii
Command Manual – QoS
Comware V3 Table of Contents
iv
Command Manual – QoS Chapter 1 Traffic Policing and Shaping Configuration
Comware V3 Commands
Syntax
View
Any view
Parameter
Description
Use the display qos car interface command to view parameter configuration and
running statistics of CAR at each or all interfaces.
If no interface is specified, CAR configuration and running statistics of all interfaces will
be displayed.
Example
Direction: Outbound
Rule(s): If-match ACL 2001
1-1
Command Manual – QoS Chapter 1 Traffic Policing and Shaping Configuration
Comware V3 Commands
Syntax
View
Any view
Parameter
carl-index: Committed Access Rate List (CARL) number, in the range of 1 to 199.
Description
Use the display qos carl command to view a certain rule or all the rules of CARL.
If carl-index is not specified, all rules of CARL will be displayed.
Example
Syntax
qos car { inbound | outbound } { any | acl acl-number | carl carl-index } cir
committed-information-rate cbs committed-burst-size ebs excess-burst-size green
action red action
undo qos car { inbound | outbound } { any | acl acl-number | carl carl-index } cir
committed-information-rate cbs committed-burst-size ebs excess-burst-size
View
Interface view
1-2
Command Manual – QoS Chapter 1 Traffic Policing and Shaping Configuration
Comware V3 Commands
Parameter
Description
1-3
Command Manual – QoS Chapter 1 Traffic Policing and Shaping Configuration
Comware V3 Commands
Example
# Configure traffic policing for outbound packets that conform to CARL rule 1 at the
interface Ethernet6/0/0. The normal traffic is 38400 bps. The burst size, twice of the
normal traffic, is allowed at the first time; then packets are normally transmitted when
the rate is less than or equal to 38400 bps. When the rate is larger than 38400 bps,
packets will be transmitted after their precedence is changed to 0.
[H3C-Ethernet6/0/0] qos car outbound any carl 1 cir 38400 cbs 76800 ebs 0 green
pass red remark-prec-pass 0
Syntax
View
System view
Parameter
Description
Example
1-4
Command Manual – QoS Chapter 1 Traffic Policing and Shaping Configuration
Comware V3 Commands
Syntax
View
Any view
Parameter
Description
Use the display qos gts interface command to view GTS configuration and
accounting information of certain interface or all interfaces.
If no interface is specified, the GTS configuration and running statistics of all interfaces
will be displayed.
Example
Syntax
View
Interface view
1-5
Command Manual – QoS Chapter 1 Traffic Policing and Shaping Configuration
Comware V3 Commands
Parameter
Description
Use the qos gts command to set shaping parameters for all or a specified type of traffic
and perform traffic shaping.
Use the undo qos gts command to remove the shaping configuration for all or a
specified type of traffic.
qos gts acl is used to set shaping parameters for the packets that conforms to certain
ACL. Different ACLs can be used to set shaping parameters for different packets.
qos gts any is used to set shaping parameters for all packets.
qos gts acl cannot be used together with the qos gts any.
Repeated using qos gts will replace configuration set earlier.
Example
# Configure traffic shaping for the packets that conform to ACL rule 2001 at the
Ethernet6/0/0 interface. The normal traffic is 38400 bps. The burst size, twice of the
normal traffic, is allowed at the first time. Then packets are normally transmitted when
the traffic is less than or equal to 38400 bps. When the rate is larger than 38400 bps,
packets will be added to the buffer queue, which is 100 long.
[H3C-Ethernet6/0/0] qos gts acl 2001 cir 38400 cbs 76800 ebs 0 queue-length
100
Syntax
1-6
Command Manual – QoS Chapter 1 Traffic Policing and Shaping Configuration
Comware V3 Commands
View
Any view
Parameter
Description
Use the display qos lr interface command to view LR configuration and statistics of
an interface.
If no interface is specified, the LR configuration and running statistics of all interfaces
will be displayed.
Example
1.3.2 qos lr
Syntax
View
Parameter
1-7
Command Manual – QoS Chapter 1 Traffic Policing and Shaping Configuration
Comware V3 Commands
Description
Use the qos lr command to limit the transmitting rate of the interface.
Use the undo qos lr command to remove the limit.
You can use this command on a tunnel interface to limit its interface rate and implement
congestion management along with other queue scheduling algorithms.
Before configuring queuing on the tunnel interface, you must configure the qos lr
command. Before deleting the qos lr command on the interface, however, you must
delete the queuing configuration.
You can use the qos lr command on a virtual-template interface. If the virtual-template
is bound with the MP protocol, LR configuration can be distributed to the virtual-access
interface created by the virtual-template and takes effect in this way. If the
virtual-template is bound with other protocols such as PPPoE, PPPoA, and PPPoEoA,
the LR configuration is not distributed and does not take effect.
You can also use the qos lr command on a dialer interface. If the protocol on a dialer
interface is PPP and it is also bound to the MP protocol, the LR configuration can be
distributed to the virtual-access interface created by the dialer interface and the LR
configuration takes effect. If the dialer interface is bound to other protocols such as
PPPoE, PPPoA, and PPPoEoA, the LR configuration is not distributed and does not
take effect.
Example
1-8
Command Manual – QoS
Comware V3 Chapter 2 DAR Configuration Commands
Syntax
View
System view
Parameter
count: The maximum number of connections recognizable by DAR. The value range
varies with devices. Refer to your specific device model.
Description
Example
2-1
Command Manual – QoS
Comware V3 Chapter 2 DAR Configuration Commands
Syntax
dar protocol protocol-name { tcp | udp } port { port-value | range port-min port-max }
*
undo dar protocol protocol-name { tcp | udp } port
View
System view
Parameter
protocol-name: Name of application protocol, with an effective range the same as that
of protocol-name in the if-match protocol command, including user-defined01,
user-defined02, …, and user-defined10. No port number is specified for a
user-defined protocol at the initial state. It will take effect only after a port number is
specified. At the same time, you can use the dar protocol-rename command to
rename a user-defined protocol.
tcp: Based on TCP.
udp: Based on UDP.
port-value: Port number of the protocol, in the range 1 to 65535, which cannot be the
same with the configured port number of any other protocol in the DAR. Up to 16 port
numbers can be set for each protocol, which are separated with spaces.
range port-min port-max: Sets the range of port number, port-min for the minimum port
number, and port-max for the maximum port number . The difference value between
the maximum number and minimum number shall be smaller than or equal to 1000, i.e.
port-max – port-min ≤ 1000. The port number range must not include the port numbers
of any other application protocol in DAR.
Description
Use the dar protocol command to configure the port number of DAR application
protocol.
Use the undo dar protocol command to restore the port number to the default value.
You can use this command to set the port number and port range of a DAR application
protocol at the same time.
By default, all protocols, except the ten user-defined protocols, have their default port
numbers.
Example
# Set the port numbers of RTP to 36000, 36001, and 40000 through 41000.
<H3C> system-view
2-2
Command Manual – QoS
Comware V3 Chapter 2 DAR Configuration Commands
[H3C] dar protocol rtp udp port 36000 36001 range 40000 41000
Syntax
View
System view
Parameter
Description
Example
Syntax
2-3
Command Manual – QoS
Comware V3 Chapter 2 DAR Configuration Commands
View
Parameter
flow-interval time: Sets the interval of history mean rate and maximum rate statistics,
in the range 1 to 30 in minutes. The system default is 5 minutes.
Description
Use the dar protocol-statistic command to enable DAR packet statistics function.
Use the undo dar protocol-statistic command to disable the function.
With DAR packet statistics function, you can timely monitor the number of packets, data
traffic, historical mean rate and maximum rate of data traffic on each interface, thus to
implement corresponding policies for the data traffic.
By default, the function is disabled.
Example
# Enable DAR packet statistics function on the interface Ethernet0/0/0, and set the
interval to 7 minutes.
<H3C> system-view
[H3C] interface Ethernet 0/0/0
[H3C-Ethernet0/0/0] dar protocol-statistic flow-interval 7
Syntax
View
User view
Parameter
Description
2-4
Command Manual – QoS
Comware V3 Chapter 2 DAR Configuration Commands
Example
Syntax
View
Any view
Parameter
None
Description
Use the display dar information command to view information about the DAR
module.
Example
Syntax
View
Any view
Parameter
2-5
Command Manual – QoS
Comware V3 Chapter 2 DAR Configuration Commands
Description
Use the display dar protocol command to view DAR protocol related information.
Example
2-6
Command Manual – QoS
Comware V3 Chapter 2 DAR Configuration Commands
Syntax
2-7
Command Manual – QoS
Comware V3 Chapter 2 DAR Configuration Commands
View
Any view
Parameter
None
Description
Use the display dar protocol-rename command to view the rename information of
user-define protocols.
Example
Syntax
View
Any view
Parameter
protocol protocol-name: Name of the application protocol, in the same range with the
protocol-name defined in the if-match protocol command.
top top-number: Displays the newest protocols in top-number, in the range 1 to 16.
2-8
Command Manual – QoS
Comware V3 Chapter 2 DAR Configuration Commands
Description
Use the display dar protocol-statistic command to view DAR packet statistics
information.
Example
Syntax
View
Class view
2-9
Command Manual – QoS
Comware V3 Chapter 2 DAR Configuration Commands
Parameter
protocol-name: Name of the matching protocol, which can be: bgp, bittorrent, citrix,
cuseeme, dhcp, dns, edonkey, egp, eigrp, exchange, fasttrack, finger, ftp, gnutella,
gopher, gre, h323, http, icmp, igmp, imap, ip, ipinip, ipsec, irc, kerberos, l2tp, ldap,
mgcp, napster, netbios, netshow, nfs, nntp, notes, novadign, ntp, pcanywhere, pop3,
pptp, printer, rcmd, rip, rsvp, rtcp, secure-ftp, secure-http, secure-imap, secure-irc,
secure-ldap, secure-nntp, secure-pop3, secure-telnet, sip, skinny, smtp, snmp, socks,
sqlnet, sqlserver, ssh, streamwork, sunrpc, syslog, telnet, tftp, vdolive, winmx,
xwindows, unknown-tcp, unknown-udp, unknown-others, user-defined01,
user-defined02, ……, user-defined10 (assume that the protocols have not been
renamed), in which “unknown-tcp” refers to unidentifiable TCP packets, “unknown-udp”
refers to unidentifiable UDP packets, and “unknown-others” refers to other
unidentifiable IP packets. “User-defined01”, “user-defined02”, …, “user-defined10” are
user-defined protocol packets, whose port numbers are invalid before the dar protocol
command is executed.
Description
Example
# Define a class named “smtp-class” and configure a matching rule to match the SMTP
protocol.
<H3C> system-view
[H3C] traffic classifier smtp-class
[H3C-classifier-smtp-class] if-match protocol smtp
Syntax
View
Class view
Parameter
2-10
Command Manual – QoS
Comware V3 Chapter 2 DAR Configuration Commands
url-string: URL in HTTP packets, a string of 32 characters, supporting wildcards “*” and
“?”.
host: Matches the host name in HTTP packets.
hostname-string: Host name in HTTP packets, a string of 32 characters, supporting
wildcards “*” and “?”.
mime: Matches the MIME type in HTTP packets.
mime-type: MIME type in HTTP packets, a string of 32 characters, supporting wildcards
“*” and “?”.
Description
Use the if-match protocol http command to configure an HTTP matching rule.
Use the undo if-match protocol http command to delete the configured rule.
By default, no matching rule is configured.
Example
# Define a class named “http-class”, and configure a matching rule to match HTTP
packets with the host name of “*.abc.com”.
<H3C> system-view
[H3C] traffic classifier http-class
[H3C-classifier-http-class] if-match protocol http host *.abc.com
Syntax
View
Class view
Parameter
2-11
Command Manual – QoS
Comware V3 Chapter 2 DAR Configuration Commands
Description
Use the if-match protocol rtp command to configure an RTP matching rule.
Use the undo if-match protocol rtp command to delete the configured rule.
If no payload type is specified, all RTP packets will be matched.
By default, no RTP matching rule is configured.
Example
# Define a class named “rtp-class1”, and configure a matching rule to match RTP
packets with the payload type of “video”.
<H3C> system-view
[H3C] traffic classifier rtp-class1
[H3C-classifier-rtp-class1] if-match protocol rtp payload-type video
# Define a class named “rtp-class2”, and configure a matching rule to match RTP
packets with the payload type of 0, 1, 4, 5, 6, 10, or 64.
<H3C> system-view
[H3C] traffic classifier rtp-class2
[H3C-classifier-rtp-class2] if-match protocol rtp payload-type 0 1 4 5 6 10
64
Syntax
View
User view
Parameter
protocol protocol-name: Clears statistics information about the specified protocol, with
the protocol-nam argument in the same range with protocol-name in the if-match
protocol command.
interface type number: Clears statistics information about the specified interface.
all: Clears all statistics information.
Description
Use the reset dar protocol-statistic command to clear DAR protocol statistics
information, i.e. to reset the statistics counters to 0.
2-12
Command Manual – QoS
Comware V3 Chapter 2 DAR Configuration Commands
Example
Syntax
View
User view
Parameter
None
Description
Use the reset dar session command to clear the cached information of all session
connections.
Example
2-13
Command Manual – QoS Chapter 3 Congestion Management Configuration
Comware V3 Commands
Syntax
View
Interface view
Parameter
Description
Use the qos fifo queue-length command to set the length limit of FIFO queue.
Use the undo qos fifo queue-length command to restore the default value of the
queue length.
By default, queue-length is 75.
Related command: display interface.
Example
Syntax
View
Any view
3-1
Command Manual – QoS Chapter 3 Congestion Management Configuration
Comware V3 Commands
Parameter
Description
Use the display qos pq interface command to view the configuration and statistics of
priority queues (PQ) at interfaces.
If no interfaces are specified when this command is used, the configuration and
statistics of the priority queues at all interfaces will be displayed.
Related command: qos pq.
Example
Syntax
View
Any view
Parameter
Description
Use the display qos pql command to view contents of priority queue lists (PQL).
Default items are not displayed.
Related command: qos pq and qos pq pql.
Example
# Display PQLs.
[H3C] display qos pql
Current PQL Configuration:
List Queue Params
------------------------------------------------------
3-2
Command Manual – QoS Chapter 3 Congestion Management Configuration
Comware V3 Commands
3.2.3 qos pq
Syntax
View
Interface view
Parameter
Description
Caution:
Except for interfaces encapsulated with X.25 or LAPB, all physical interfaces can use
PQ.
You can apply queuing configuration to a dialer interface. The configuration, however
cannot update to its physical interfaces immediately if they have connections with their
respective connected devices. Instead, the configuration updates to the physical
interfaces the next time they set up connections.
3-3
Command Manual – QoS Chapter 3 Congestion Management Configuration
Comware V3 Commands
Related command: qos pql, display qos pq interface, display qos pql, and display
interface.
Example
Syntax
View
System view
Parameter
Description
Use the qos pql default-queue command to designate the packets without
corresponding rules to a default queue.
Use the undo qos pql default-queue command to cancel the configuration and
restore the default value.
During traffic classification, if a packet does not match any rule, it will be put into the
default priority queue.
For the same pql-index, repeated use of this command will set new default queue.
Related command: display qos pql.
Example
# Set the default queue of the packets matching no rules in PQL 12 to be the bottom
queue.
[H3C] qos pql 12 default-queue bottom
3-4
Command Manual – QoS Chapter 3 Congestion Management Configuration
Comware V3 Commands
Syntax
View
System view
Parameter
Description
Use the qos pql inbound-interface command to establish classification rules based
on interfaces.
Use the undo qos pql inbound-interface command to delete the corresponding
classification rule.
When creating an interface-based classification rule, make sure that the configured
packet inbound interface is not a Layer 2 Ethernet interface.
By default, no classification rule is configured.
This command can match packets according to which interface the packet comes from.
For the same pql-index, this command can be repeatedly used, establishing
classification rules for packets that come from different interfaces.
Related command: qos pql default-queue, qos pql protocol, qos pql queue, and
qos pq.
Example
# Create rule 12, making packets from interface Serial 0/0/0 to be put into the middle
queue.
[H3C] qos pql 12 inbound-interface Serial 0/0/0 middle
3-5
Command Manual – QoS Chapter 3 Congestion Management Configuration
Comware V3 Commands
Syntax
qos pql pql-index protocol protocol-name queue-key key-value queue { top | middle
| normal | bottom }
undo qos pql pql-index protocol protocol-name [ queue-key key-value ]
View
System view
Parameter
When queue-key is tcp or udp, key-value can be port name or the associated port
number. You can enter “?” to get the port numbers associated with port names..
3-6
Command Manual – QoS Chapter 3 Congestion Management Configuration
Comware V3 Commands
Description
Use the qos pql protocol command to establish classification rules based on the
protocol type.
Use the undo qos pql protocol command to delete the corresponding classification
rule.
The system matches a packet to a rule according to the set order. When the packet
matches a certain rule, the search process is completed.
For the same pql-index, this command can be repeatedly used, establishing multiple
classification rules for IP packets.
Related command: display qos pql.
Example
# Specify PQ rule 1 to make IP packets matching ACL 3100 be put into the top queue.
[H3C] qos pql 1 protocol ip acl 3100 queue top
Syntax
View
System view
Parameter
Description
Use the qos pql queue command to specify the maximum number of packets that can
wait in each of the priority queues, or the length of a PQ.
Use the undo qos pql queue command to restore to the default value of each PQ
length.
3-7
Command Manual – QoS Chapter 3 Congestion Management Configuration
Comware V3 Commands
Note:
You are recommended to set the top queue length to 80 for AR 18 series routers.
Example
# Specify the maximum number of packets waiting in the top priority queue 10 to 10.
[H3C] qos pql 10 queue top queue-length 10
Syntax
View
Any view
Parameter
Description
Use the display qos cq interface command to view configuration and statistics of
customized queues (CQ) at interfaces.
If no interface is specified, CQ configuration and statistics of all interfaces will be
displayed.
Related command: qos cq.
Example
3-8
Command Manual – QoS Chapter 3 Congestion Management Configuration
Comware V3 Commands
Syntax
View
Any view
Parameter
None
Description
Use the display qos cql command to view contents of customized queue lists (CPL).
Default values will not be displayed.
Related command: qos cq cql and qos cq.
Example
3.3.3 qos cq
Syntax
View
Interface view
3-9
Command Manual – QoS Chapter 3 Congestion Management Configuration
Comware V3 Commands
Parameter
Description
Use the qos cq cql command to apply the customized queue to an interface.
Use the undo qos cq command to restore the congestion management policy at the
interface to FIFO.
By default, the congestion management policy at the interfaces is FIFO.
One interface can only use one group of customized queues.
This command can configure multiple classification rules for each group in the CQL.
During traffic classification, the system matches packets along the rule link. If matching
a certain rule, a packet will be classified into the corresponding priority queue specified
by this rule. If not matching any rule, it will go to the default priority queue.
Caution:
Except for interfaces encapsulated with X.25 or LAPB, all physical interfaces can use
CQ.
You can apply CQ to a dialer interface successfully only when default queuing is
configured on its physical interfaces. The configuration, however cannot update to its
physical interfaces immediately if they have connections with their respective
connected devices. Instead, the configuration updates to the physical interfaces the
next time they set up connections.
Related command: qos cql default-queue, qos cql inbound-interface, qos cql
protocol, qos cql queue serving, qos cql queue queue-length.
Example
Syntax
3-10
Command Manual – QoS Chapter 3 Congestion Management Configuration
Comware V3 Commands
View
System view
Parameter
Description
Use the qos cql default-queue command to assign a default queue for those packets
that do not match any rule in the CQL.
Use the undo qos cql default-queue command to restore to the default queue.
During traffic classification, if a packet does not match any rule, it will go to the default
queue.
Related command: qos cql inbound-interface, qos cql protocol, qos cql queue
serving, and qos cql queue queue-length.
Example
Syntax
View
System view
Parameter
3-11
Command Manual – QoS Chapter 3 Congestion Management Configuration
Comware V3 Commands
Description
Use the qos cql inbound-interface command to establish classification rules based
on interfaces.
Use the undo qos cql inbound-interface command to delete corresponding
classification rules.
By default, no classification rules are configured.
This command matches a packet to a rule according to the interface that the packet
comes from. For the same group-number, this command can be repeatedly used,
establishing different classification rules for packets from different interfaces.
Related command: qos cql protocol, qos cql queue serving, qos cql queue
queue-length.
Example
Syntax
View
System view
Parameter
3-12
Command Manual – QoS Chapter 3 Congestion Management Configuration
Comware V3 Commands
When queue-key is tcp or udp, key-value can be port name or the associated port
number. You can enter “?” to get the port numbers associated with port names.
Description
Use the qos cql protocol command to establish classification rules based on the
protocol type.
Use the undo qos cql protocol command to delete corresponding classification rules.
The system matches a packet to a rule according to the order that rules are configured.
When the packet matches a certain rule, the search process is completed.
For the same cql-index, this command can be repeatedly used, establishing multiple
classification rules for IP packets.
Related command: qos cql inbound-interface, qos cql protocol, qos cql queue
serving, qos cql queue queue-length.
Example
# Specify CQ rule 5 to make any IP packet that matches the ACL 3100 be put into
queue 3.
[H3C] qos cql 5 protocol ip acl 3100 queue 3
Syntax
View
System view
3-13
Command Manual – QoS Chapter 3 Congestion Management Configuration
Comware V3 Commands
Parameter
Description
Use the qos cql queue command to configure the length of a queue, namely, the
number of packets a queue can hold.
Use the undo qos cql queue command to restore the default.
If a queue is full, any newly incoming packet will be dropped.
Related command: qos cql inbound-interface, qos cql protocol, and qos cql queue
serving.
Example
Syntax
View
System view
Parameter
Description
Use the qos cql queue serving command to set the byte-count of the packets sent
from a given queue in each poll.
Use the undo qos cql queue serving command to restore the byte-count of sent
packets to the default value.
By default, byte-count is 1500.
3-14
Command Manual – QoS Chapter 3 Congestion Management Configuration
Comware V3 Commands
Related command: qos cql inbound-interface, qos cql protocol, and qos cql queue
queue-length.
Example
Syntax
View
Any view
Parameter
Description
Use the display qos wfq interface command to view WFQ (weighted fair queuing)
configuration and statistics of an interface.
If no interface is specified, the WFQ configuration and statistics of all interfaces will be
displayed.
Related command: qos wfq.
Example
3-15
Command Manual – QoS Chapter 3 Congestion Management Configuration
Comware V3 Commands
Syntax
View
Interface view
Parameter
Description
Use the qos wfq command to apply WFQ to and configure WFQ parameters on the
interface or modify WFQ parameters on the interface.
Use the undo qos wfq command to restore the default congestion management
mechanism FIFO.
If the qos wfq command is configured without any parameters being specified, traffic is
classified based on IP quintuple and precedence.
3-16
Command Manual – QoS Chapter 3 Congestion Management Configuration
Comware V3 Commands
Caution:
Except for interfaces encapsulated with X.25 or LAPB, all physical interfaces can use
CQ.
You can apply WFQ to a dialer interface successfully only when default queuing is
configured on its physical interfaces. The configuration, however cannot update to its
physical interfaces immediately if they have connections with their respective
connected devices. Instead, the configuration updates to the physical interfaces the
next time they set up connections.
Example
# Apply WFQ at the Ethernet/0/0 interface, set the queue length to 100 and set the total
queue number to 512.
[H3C-Ethernet6/0/0] qos wfq queue-length 100 queue-number 512
Syntax
View
Parameter
3-17
Command Manual – QoS Chapter 3 Congestion Management Configuration
Comware V3 Commands
red: Action conducted to packets when traffic of packets does not conform to the CIR.
By default, the action of red is discard.
action: Action conducted on a packet, which is divided into the following types:
z discard: Drops the packet
z remark-dscp-pass new-dscp: Sets new-dscp and transmits the packet.
z remark-prec-pass new-precedence: Sets new-precedence of IP and transmit the
packet.
z remark-mpls-exp-pass new-exp: Sets the new MPLS EXP and transmit the
packet.
z pass: Transmits the packet.
Description
Example
# Use traffic monitor for a behavior. The normal traffic of packets is 38400 bps. Burst
traffic twice of the normal traffic can pass initially and later the traffic is transmitted
normally when the rate does not exceed 38400bps. When the rate exceeds 38400 bps,
the precedence of the packet turns to 0 and the packet is transmitted.
[H3C] traffic behavior database
[H3C-behavior-database] car cir 38400 cbs 76800 ebs 0 green pass red
remark-precedence-pass 0
Syntax
View
Policy view
3-18
Command Manual – QoS Chapter 3 Congestion Management Configuration
Comware V3 Commands
Parameter
tcl-name: Must be the name of the defined class, the system-defined or user-defined
class.
behavior–name: Must be the name of the defined behavior, the system-defined or
user-defined behavior.
Description
Use the classifier behavior command to specify the behavior for the class in the
policy.
Use the undo classifier command to remove the application of the class in the policy.
Each class in the policy can only be associated with one behavior.
The undo command is not used for the default class.
Related command: qos policy.
Example
# Specify the behavior test for the class database in the policy h3c.
[H3C] qos policy h3c
[H3C-qospolicy-h3c] classifier database behavior test
Syntax
View
Any view
Parameter
3-19
Command Manual – QoS Chapter 3 Congestion Management Configuration
Comware V3 Commands
Description
Use the display qos cbq interface command to view CBQ configuration information
and operating status, the specified PVC on specified ATM interface or on all interfaces.
Example
Syntax
View
Any view
Parameter
Description
Use the display qos policy command to display the configuration information of the
specified class or all the classes and associated behaviors in the specified policy or all
policies.
Example
3-20
Command Manual – QoS Chapter 3 Congestion Management Configuration
Comware V3 Commands
Behavior: be
-none-
Classifier: H3C
Behavior: H3C
Marking:
Remark IP Precedence 3
Committed Access Rate:
CIR 20000 (bps), CBS 15000 (bit), EBS 0 (bit)
Conform Action: pass
Exceed Action: discard
Expedited Forwarding:
Bandwidth 50 (Kbps) CBS 1500 (Bytes)
Classifier: database
Behavior: database
Assured Forwarding:
Bandwidth 30 (Kbps)
Discard Method: Tail
Queue Length : 64 (Packets)
General Traffic Shape:
CIR 30000 (bps), CBS 15000 (bit), EBS 0 (bit)
Queue length 50 (Packets)
Marking:
Remark MPLS EXP 3
Syntax
View
Any view
Parameter
3-21
Command Manual – QoS Chapter 3 Congestion Management Configuration
Comware V3 Commands
vpi/vci: VPI/VCI value pair. For details, refer to the parameter description about the pvc
command.
Description
Use the display qos policy interface command to view the configuration and
operating state about the policy on the specified interface, on the specified PVC on a
particular ATM interface or on all interfaces and PVCs.
The displayed CBQ traffic statistics (5 Min Rate) on the physical interface, MFR
interface, FR PVC interface, and ATM PVC interface are statistics of Layer 2 packet
rate; whereas the statistics on the virtual interfaces such as the virtual-template
interface, Mp-group interface, dialer interface, Virtual-Ethernet interface, and the tunnel
interface are statistics of Layer 3 packet rate. The subinterfaces, ATM interface and
Virtual-access interface do not support traffic statistics.
The statistics about the MPLS EXP remarked packets include those temporarily
remarked. Whether the MPLS EXP field of a packet is remarked depends on whether it
is to be output as an MPLS packet.
The traffic statistics interval can be adjusted. Related command: flow-interval qos.
Example
Classifier: H3C
Matched : 0/0 (Packets/Bytes)
1 Min Rate: 0 bps
Operator: AND
3-22
Command Manual – QoS Chapter 3 Congestion Management Configuration
Comware V3 Commands
Classifier: database
Matched : 0/0 (Packets/Bytes)
1 Min Rate: 0 bps
Operator: AND
Rule(s) : if-match acl 3131
if-match inbound interface Ethernet10/2/0
Behavior: database
General Traffic Shape:
CIR 30000 (bps), CBS 15000 (bit), EBS 0 (bit)
Queue Length: 50 (Packets)
Queue size : 0 (Packets)
Passed : 0/0 (Packets/Bytes)
Discarded: 0/0 (Packets/Bytes)
Delayed : 0/0 (Packets/Bytes)
Marking:
Remark MPLS EXP 3
Remarked: 0 (Packets)
Assured Forwarding:
Bandwidth 30 (Kbps)
Matched : 0/0 (Packets/Bytes)
Enqueued : 0/0 (Packets/Bytes)
Discarded: 0/0 (Packets/Bytes)
3-23
Command Manual – QoS Chapter 3 Congestion Management Configuration
Comware V3 Commands
Command
View
Any view
Parameter
Description
Use the display traffic behavior command to display the information of the traffic
behavior configured on the router.
Example
3-24
Command Manual – QoS Chapter 3 Congestion Management Configuration
Comware V3 Commands
Syntax
View
Any view
Parameter
Description
Use the display traffic classifier command to view the configuration information about
class of the router.
Example
Classifier: database
Operator: AND
Rule(s) : if-match acl 3131
if-match inbound-interface Ethernet1/0/0
Syntax
View
System view
3-25
Command Manual – QoS Chapter 3 Congestion Management Configuration
Comware V3 Commands
Parameter
flow-interval: QoS policy traffic statistical interval, in the range 1 to 30 minutes. The
default is 5 minutes.
update-interval seconds: Optional, QoS policy rate updating interval in seconds. It
takes the value of 10, 15, 20, 30, or 60 and defaults to 10. The smaller the interval, the
faster the updating rate.
Description
Use the flow-interval qos command to configure QoS policy traffic statistical interval
and QoS policy rate updating interval.
Use the undo flow-interval qos command to restore the default.
QoS traffic statistical information is displayed along with QoS policy configuration
displayed by the display qos policy command.
Related command: display qos policy.
Example
# Set the QoS policy traffic statistical interval to 10 minutes, and rate updating interval
to 15 seconds.
[H3C] flow-interval qos 10 update-interval 15
[H3C] display qos policy interface e0/0/0 outbound
Interface: Ethernet0/0/0
Direction: Outbound
Policy: test
Classifier: default-class
Matched : 0/0 (Packets/Bytes)
10 Min Rate: 0 bps
Rule(s) : if-match any
Behavior: be
-none-
Classifier: test
Matched : 0/0 (Packets/Bytes)
10 Min Rate: 0 bps
Operator: AND
Rule(s) : if-match any
Behavior: test
-none-
3-26
Command Manual – QoS Chapter 3 Congestion Management Configuration
Comware V3 Commands
3.5.9 gts
Syntax
View
Parameter
cir committed-information-rate: CIR, in the range of 8000 to 155,000,000 bps. Note that
in policy embedding, the CIR specified in a child policy could be less than 8 kbps.
cbs committed-burst-size: CBS, in the range of 15,000 to 155,000,000 bits. When the
CIR value is less than 30,000, the default CBS value is 15,000; when the CIR value is
greater than 30,000, the default CBS value is half of the CIR value.
ebs excess-burst-size: EBS, in the range of 0 to 155,000,000 bits.
queue-length queue-length: The maximum length of a queue, in the range 1 to 1024.
By default, committed-burst-size is half of committed-information-rate,
excess-burst-size is 0, and queue-length is 50.
Description
Example
# Configure GTS for a behavior. The normal traffic is 38400 bps. Burst traffic twice of
the normal traffic can pass initially and later the traffic is transmitted normally when the
rate is less than or equal to 38400 bps. When the rate exceeds 38400 bps, the traffic
will enter the queue buffer and the buffer queue length is 100.
[H3C] traffic behavior database
[H3C-behavior-database] gts cir 38400 cbs 76800 ebs 0 queue-length 100
3-27
Command Manual – QoS Chapter 3 Congestion Management Configuration
Comware V3 Commands
3.5.10 if-match
Syntax
View
Class view
Parameter
Note:
When packets of a certain class do not meet the packet type restrictions of a rule, the
rule is senseless and regarded as ineffective, and the system will neglect it when
performing process by class. Restrictions of rules on packet types are as follows:
z destination-mac, source-mac, and dot1p-cos are effective only for Ethernet packets.
z mpls-exp is effective in the inbound direction only for MPLS packets.
z mpls-exp (in the outbound direction), ip-precedence, dscp, rtp, and acl are effective
for IP and MPLS packets.
z fr-de, atm-clp, protocol, inbound-interface, any, and classifier are effective for all
packets.
Description
Example
3-28
Command Manual – QoS Chapter 3 Congestion Management Configuration
Comware V3 Commands
Direction: Outbound
Policy: test
Classifier: test
Matched : 0/0 (Packets/Bytes)
1 Min Rate: 0 bps
Operator: AND
Rule(s) : if-match destination-mac ffff-ffff-ffff
if-match inbound-interface e0/0/0
Behavior: test
-none-
In fact, if-match destination-mac is ineffective on ATM PVC. Therefore, the rule on the
ATM PVC is like this:
Classifier: test
Matched : 0/0 (Packets/Bytes)
1 Min Rate: 0 bps
Operator: AND
Rule(s) : if-match inbound-interface e0/0/0
Behavior: test
-none-
Syntax
View
Class view
Parameter
Description
3-29
Command Manual – QoS Chapter 3 Congestion Management Configuration
Comware V3 Commands
The match rules of the destination MAC address are only meaningful for the policies of
the outbound direction and the interface of Ethernet type.
The match rules of the source MAC address are only meaningful for the policies of the
input direction and the interface of Ethernet type.
Related command: traffic classifier.
Example
# Define that the match rule of class2 is to match the packets with the destination MAC
address 0050-ba27-bed3.
[H3C] traffic classifier class1
[H3C-classifier-class1] if-match destination-mac 0050-ba27-bed3
# Define the match rule of class2 as matching the packets with source MAC address
0050-ba27-bed2.
[H3C] traffic classifier class2
[H3C-classifier-class2] if-match source-mac 0050-ba27-bed2
Syntax
View
Class view
Parameter
Description
Example
3-30
Command Manual – QoS Chapter 3 Congestion Management Configuration
Comware V3 Commands
Syntax
View
Class view
Parameter
Description
Use the if-match any command to define the rule matching all packets.
Use the undo if-match any command to delete the rule matching all packets.
Related command: traffic classifier.
Example
Syntax
View
Class view
Parameter
Description
Use the if-match atmclp command to create a cell loss priority (CLP) bit match rule
defining that ATM cells with CLP bit set to 1 are matched.
Use the if-match not atmclp command to create a CLP bit match rule defining that
ATM cells with CLP bit set to 0 are matched.
Use the undo if-match atmclp command to delete the CLP bit match rule.
3-31
Command Manual – QoS Chapter 3 Congestion Management Configuration
Comware V3 Commands
CLP is the last bit in the fourth byte of ATM cell headers. As it can only take on 1 or 0,
setting CLP bit match rule is simple. When congestion occurs, ATM cells with CLP bit
set to 1 are more likely to be dropped than those with CLP bit set to 0.
Related command: traffic classifier.
Example
# Define a rule, setting that all ATM cells with CLP bit set to 1 are matched.
[H3C] traffic class class1
[H3C-classifier-class1] if-match atmclp
[H3C-classifier-class1] display traffic classifier user-defined class1
User Defined Classifier Information:
Classifier: class1
Operator: AND
Rule(s) : if-match atmclp
# Define a rule, setting that all ATM cells with CLP bit set to 0 are matched.
[H3C] traffic class class2
[H3C-classifier-class2] if-match not atmclp
[H3C-classifier-class2] display traffic classifier user-defined class2
User Defined Classifier Information:
Classifier: class2
Operator: AND
Rule(s) : if-match not atmclp
Syntax
View
Class view
Parameter
Description
3-32
Command Manual – QoS Chapter 3 Congestion Management Configuration
Comware V3 Commands
Example
# Define match rule of class2 and class1 must be used. Therefore, class1 is configured
first. The match rule of class1 is ACL 101 and the IP precedence is 5.
[H3C] traffic classifier class1
[H3C-classifier-class1] if-match ip-precedence 5
# Define the packet whose class is class2, match rule is class1 and destination MAC
address is 0050-BA27-BED3.
[H3C] traffic classifier class2
[H3C-classifier-class2] if-match classifier class1
[H3C-classifier-class2] if-match destination-mac 0050-BA27-BED3
Syntax
View
Class view
Parameter
Description
Use the if-match dot1p-cos command to define a COS field match rule for VLAN
packets.
Use the undo if-match atmclp command to delete the specified COS field match rule
for VLAN packets.
For a class, you can configure multiple COS field match rules. The COS values
specified by them are automatically arranged in ascending order.
3-33
Command Manual – QoS Chapter 3 Congestion Management Configuration
Comware V3 Commands
You can specify up to eight COS values in one if-match dot1p-cos command. In case
the same value is specified multiple times, only one of them is valid. If the COS value of
a VLAN packet matches one of the specified COS values, the system regards that a
match is found.
Related command: traffic classifier.
Example
# Define a rule, setting that the VLAN packets with COS field of 1, 3, or 6 are matched.
[H3C] traffic classifier class1
[H3C-classifier-class1] if-match dot1p-cos 1 3 6
Syntax
View
Class view
Parameter
Description
Example
# Define the match rule of class1 as matching the packets with the DSCP value as 1, 6
or 9.
[H3C] traffic classifier class1
[H3C-classifier-class1] if-match dscp 1 6 9
3-34
Command Manual – QoS Chapter 3 Congestion Management Configuration
Comware V3 Commands
Syntax
View
Class view
Parameter
None
Description
Example
# Define a matching rule for class1, specifying to match FR packets with the DE bit set
to 1.
[H3C] traffic classifier class1
[H3C-classifier-class1] if-match fr-de
# Define a matching rule for class2, specifying to match FR packets with the DE bit left
as 0.
[H3C] traffic classifier class1
[H3C-classifier-class1] if-match not fr-de
Syntax
View
Class view
Parameter
3-35
Command Manual – QoS Chapter 3 Congestion Management Configuration
Comware V3 Commands
Description
Use the if-match inbound-interface command to define ingress interface match rule
of a class.
Use the undo if-match inbound-interface command to delete ingress interface match
rule of a class.
Before specifying an interface, make sure that it has been created. If the specified
interface is a dynamic one, removing the interface can delete the rule.
Supported interface type: ATM, Ethernet, Serial, Tunnel, and VT.
Related command: traffic classifier.
Example
# Define that the class matches the packets entering from Ethernet6/0/0.
[H3C] traffic classifier class1
[H3C-classifier-class1] if-match inbound-interface Ethernet6/0/0
Syntax
View
Class view
Parameter
Description
3-36
Command Manual – QoS Chapter 3 Congestion Management Configuration
Comware V3 Commands
Example
# Define the match rule of class1 as matching the packets with the precedence value as
1 or 6.
[H3C] traffic classifier class1
[H3C-classifier-class1] if-match ip-precedence 1 6
Syntax
View
Class view
Parameter
interface-type: Interface type, which must support subinterfaces. It can be GE, FE, FR,
or MFR only at present.
interface-number.subinterface-number: Subinterface number.
Description
Example
3-37
Command Manual – QoS Chapter 3 Congestion Management Configuration
Comware V3 Commands
Syntax
View
Parameter
Class view
Description
Example
Syntax
View
Class view
Parameter
Description
Use the if-match rtp command to define port match rule of RTP.
Use the undo if-match rtp command to delete the port match rule of RTP.
This command can match RTP packets in the range of specified RTP port number, i.e.,
to match packets of even UDP port numbers between <starting-port-number> and <
3-38
Command Manual – QoS Chapter 3 Congestion Management Configuration
Comware V3 Commands
end-port-number >. If this command is frequently used under a class, the last
configuration will overwrite the previous ones.
Related command: traffic classifier.
Example
# Define the match rule of class1 as matching the packets whose RTP port number is
the even UDP port number between 16384 and 32767.
[H3C] traffic classifier class1
[H3C-classifier-class1] if-match rtp start-port 16384 end-port 32767
3.5.24 lr
Syntax
View
Parameter
Description
3-39
Command Manual – QoS Chapter 3 Congestion Management Configuration
Comware V3 Commands
Example
# For the specified behavior, set CIR to 38400 bps and CBS to 76800 bits. This allows
bursty traffic twice the CIR to pass at the first time. After that, traffic smaller than 38400
bps is sent and traffic larger than 38400 bps is put in queues.
[H3C] traffic behavior database
[H3C-behavior-database] lr cir 38400 cbs 76800
3.5.25 lr percent
Syntax
View
Parameter
Description
3-40
Command Manual – QoS Chapter 3 Congestion Management Configuration
Comware V3 Commands
Example
# For the specified behavior, set CIR to 50% of interface bandwidth and CBS to 200
milliseconds. This allows bursty traffic equivalent to 200 milliseconds x 50% of interface
bandwidth to pass at the first time. After that, traffic smaller than or equal to 50% of
interface bandwidth is sent and larger traffic is put in queues.
[H3C] traffic behavior database
[H3C-behavior-database] lr percent cir 50 cbs 200
Syntax
View
Interface view
Parameter
Description
Use the qos apply policy command to apply a service policy to the interface.
Use the undo qos apply policy command to delete the associated policy from the
interface.
To successfully apply the policy to the interface, you must make sure that the sum of
bandwidth specified for the AF and EF classes in the policy is smaller than the available
bandwidth of the interface. You can modify the available bandwidth of the current
interface. If the sum of their bandwidth still exceeds that modified value, the policy will
be deleted.
For a policy to be applied in the inbound direction, it cannot contain classes associated
with traffic behaviors specified using queue af, queue ef, queue wfq, or gts.
dynamic applies only to the dial-up or virtual template interfaces configured with MP.
Before applying a QoS policy to such a dial-up or VT interface, use the qos
max-bandwidth command to configure adequate bandwidth for running the policy.
3-41
Command Manual – QoS Chapter 3 Congestion Management Configuration
Comware V3 Commands
However, the policy you applied to the interface is not used immediately. Instead, it is
used dynamically depending on the actual bandwidth condition as follows:
z When the bandwidth of the bundle reaches the policy requirement (bandwidth > ef
+ af), the policy is enabled on the interface; but before that, the default FIFO
queuing applies.
z If bandwidth > ef + af, the policy is enabled to accommodate changes when a
channel comes up, goes down, or joins the bundle.
z When some channels in use are disconnected resulting in inefficient bandwidth
use, FIFO queuing applies.
Example
Syntax
View
Interface view
Parameter
Description
Use the qos max-bandwidth command to configure the maximum interface bandwidth
used when CBQ enqueues packets.
Use the undo qos max-bandwidth command to cancel the bandwidth configuration.
The maximum available bandwidth of an interface is preferred to be smaller than the
real available bandwidth of the physical interfaces or the logical links. For a serial
interface, the value defaults to 64 kbps. To modify it, you can change the interface rate
using the baudrate command to 2.048 Mbps for example, and then set a new value,
115.2 kbps for example.
Example
3-42
Command Manual – QoS Chapter 3 Congestion Management Configuration
Comware V3 Commands
Syntax
View
System view
Parameter
Description
Use the qos policy command to define a policy and enter policy view.
Use the undo qos policy command to delete a policy.
The policy cannot be deleted if it is applied on an interface. It is necessary to remove
application of the policy on the current interface before deleting it via the undo qos
policy command.
policy-name should not be the policy defined by the system. The “default” is the policy
defined by the system.
Related command: classifier behavior and qos apply policy.
Example
3.5.29 queue af
Syntax
View
Parameter
3-43
Command Manual – QoS Chapter 3 Congestion Management Configuration
Comware V3 Commands
Description
Use the queue af command to configure the class to perform the assured-forwarding
and the minimum bandwidth used.
Use the undo queue af command to cancel the configuration.
When associating the class with the queue af behavior in the policy, the following must
be satisfied.
z The sum of the bandwidth specified for the classes in the same policy to assured
forwarding (queue af) and expedited forwarding (queue ef) must be less than or
equal to the available bandwidth of the interface where the policy is applied.
z The sum of percentages of the bandwidth specified for the classes in the same
policy to assured forwarding (queue af) and expedited forwarding (queue ef) must
be less than or equal to 100.
z The bandwidth configuration for the classes in the same policy to assured
forwarding (queue af) and expedited forwarding (queue ef) must adopt the value of
the same type. For example, they all adopt the absolute value form or the
percentage form.
Note:
When the AF queue is configured with a large bandwidth on the outbound interface, the
disproportion ratio of AF queue bandwidth to default queue length may occur.
Therefore, you are recommended to use the queue-length command to increase the
queue length.
Example
# Configure traffic behavior named database and configure the minimum bandwidth of
the traffic behavior to 200 kbps.
[H3C] traffic behavior database
[H3C-behavior-database] queue af bandwidth 200
3.5.30 queue ef
Syntax
3-44
Command Manual – QoS Chapter 3 Congestion Management Configuration
Comware V3 Commands
undo queue ef
View
Parameter
Description
Example
# Configure packets to enter priority queue. The maximum bandwidth is 200 kbps and
burst is 5000 bytes by default.
[H3C] traffic behavior database
[H3C-behavior-database] queue ef bandwidth 200 cbs 5000
3-45
Command Manual – QoS Chapter 3 Congestion Management Configuration
Comware V3 Commands
Syntax
View
Parameter
total-queue-number: Number of fair queue, which can be 16, 32, 64, 128, 256, 512,
1024, 2048 and 4096 and the default value is 64.
Description
Use the queue wfq command to configure the default-class to use WFQ.
Use the undo queue wfq command to .delete the configuration.
The traffic behavior configured with the command can only be associated with the
default class. It can also be used together with the command like queue-length or
wred.
Related command: qos policy, traffic behavior, and classifier behavior.
Example
3.5.32 queue-length
Syntax
queue-length queue-length
undo queue-length
View
Parameter
queue-length: The maximum threshold value of the queue, in the range of 1 to 512. The
default drop mode is tail drop and the queue length is 64.
3-46
Command Manual – QoS Chapter 3 Congestion Management Configuration
Comware V3 Commands
Description
Example
# Configure tail drop and set the maximum queue length to 16.
[H3C] traffic behavior database
[H3C-behavior-database] queue af bandwidth 200
[H3C-behavior-database] queue-length 16
Syntax
View
Parameter
atmclp-value: Value of the cell loss priority (CLP) bit in ATM packets, 0 or 1.
Description
Use the remark atmclp command to have the system remark the CLP bit of ATM
packets in the class.
Use the undo remark atmclp command to disable remarking the CLP bit of ATM
packets.
By default, the CLP bit of ATM packets is not remarked.
The policy that includes CLP remark can apply only on the outbound direction of
interfaces or ATM PVCs. When congestion occurs, the router drops packets with a high
CLP bit value, if CLP remark is supported.
3-47
Command Manual – QoS Chapter 3 Congestion Management Configuration
Comware V3 Commands
Example
Syntax
View
Parameter
Description
Use the remark dot1p command to configure the 802.1p priority value in the VLAN
packets of a class.
Use the undo remark dot1p command to remove the 802.1p priority value from the
VLAN packets.
By default, VLAN packets have no 802.1p priority value.
802.1p priority value is the CoS domain value in VLAN packets. The level 2 switching
devices, such as Ethernet switch, set up forwarding policy according to this priority
value.
Example
Syntax
View
3-48
Command Manual – QoS Chapter 3 Congestion Management Configuration
Comware V3 Commands
Parameter
dscp-value: Preset DSCP value, in the range of 0 to 63, which can be any of these
keywords: ef, af11, af12, af13, af21, af22, af23, af31, af32, af33, af41, af42, af43, cs1,
cs2, cs3, cs4, cs5, cs7, or default.
af23 010110 22
af31 011010 26
af32 011100 28
af33 011110 30
af41 100010 34
af42 100100 36
af43 100110 38
cs1 001000 8
cs2 010000 16
cs3 011000 24
cs4 100000 32
cs5 101000 40
cs6 110000 48
cs7 111000 56
default 000000 0
Description
Use the remark dscp command to set a remarked DSCP value for IP packets
belonging to the class.
Use the undo remark dscp command to disable DSCP remark.
By default, DSCP remark is disabled.
3-49
Command Manual – QoS Chapter 3 Congestion Management Configuration
Comware V3 Commands
Example
Command
View
Parameter
Description
Use the remark fr-de command to set the remarked DE bit of frame relay packets.
Use the undo remark fr-de command to remove the setting.
By default, DE bit remark is disabled.
Related command: qos policy, traffic behavior, and classifier behavior.
Example
Syntax
View
3-50
Command Manual – QoS Chapter 3 Congestion Management Configuration
Comware V3 Commands
Parameter
Description
Example
Command
View
System view
Parameter
Description
Use the traffic behavior command you can define a traffic behavior and enter the
behavior view.
Use the undo traffic behavior command to delete a traffic behavior.
behavior-name shall not be the traffic behavior pre-defined by the system. The traffic
behaviors defined by the system include ef, af, and be.
Related command: qos policy, qos apply policy, and classifier behavior.
Example
3-51
Command Manual – QoS Chapter 3 Congestion Management Configuration
Comware V3 Commands
Syntax
View
System View
Parameter
and: Specifies the relation between the rules in the class as logic AND. That is, the
packet that matches all the rules belongs to this class.
or: Specifies the relation between the rules in the class as logic OR. That is, the packet
that matches any one of the rules belongs to this class.
tcl-name: Class name.
Description
Use the traffic classifier command to define a class and enter the class view.
Use the undo traffic classifier command to delete a class.
By default, the relation is operator and.
tcl-name shall not be the classes pre-defined by the system. The classes defined by the
system include: default-class, ef, af1, af2, af3, af4, ip-prec0, ip-prec1, ip-prec2,
ip-prec3, ip-prec4, ip-prec5, ip-prec6, ip-prec7, mpls-exp0, mpls-exp1, mpls-exp2,
mpls-exp3, mpls-exp4, mpls-exp5, mpls-exp6, and mpls-exp7.
Related command: qos policy, qos apply policy, and classifier behavior.
Example
3.5.40 traffic-policy
Syntax
traffic-policy policy-name
undo traffic-policy
View
3-52
Command Manual – QoS Chapter 3 Congestion Management Configuration
Comware V3 Commands
Parameter
Description
Example
# Embed the sub-policy Child in the policy for the traffic behavior database
[H3C] traffic behavior database
[H3C-behavior-database] traffic-policy Child
3.5.41 wred
Syntax
View
Parameter
dscp: Uses DSCP value for calculating drop probability for a packet.
ip-precedence: Uses IP precedence value for calculating drop probability for a packet.
Description
Use the wred command to configure drop mode as weighted random early detection
(WRED).
Use the undo wred command to delete the configuration.
By default, ip-precedence is configured.
This command can be used only after the queue af command has been configured.
The wred command and queue-length command can not be used simultaneously.
Other configurations under the random drop will be deleted when this command is
3-53
Command Manual – QoS Chapter 3 Congestion Management Configuration
Comware V3 Commands
Example
# Configure WRED for a traffic behavior named database and drop probability is
calculated by IP precedence.
[H3C] traffic behavior database
[H3C-behavior-database] wred
Syntax
View
Parameter
dscp-value: DSCP value, in the range of 0 to 63, which can be any of the following
keywords: ef, af11, af12, af13, af21, af22, af23, af31, af32, af33, af41, af42, af43, cs1,
cs2, cs3, cs4, cs5, cs6, cs7, or default.
3-54
Command Manual – QoS Chapter 3 Congestion Management Configuration
Comware V3 Commands
Description
Use the wred dscp command to set DSCP lower-limit, upper-limit and drop probability
denominator of WRED.
Use the undo wred dscp command to delete the configuration.
This command can be used only after the wred command has been used to enable
WRED drop mode based on DSCP.
The configuration of wred dscp will be deleted if the configuration of qos wred is
deleted.
The configuration of drop parameter will be deleted if the configuration of queue af is
deleted.
Related command: qos policy, traffic behavior, classifier behavior.
Example
# Set the queue lower-limit to 20, upper-limit to 40 and discard probability to 15 for the
packet whose DSCP is 3.
[H3C] traffic behavior database
3-55
Command Manual – QoS Chapter 3 Congestion Management Configuration
Comware V3 Commands
Syntax
View
Parameter
Description
Use the wred ip-precedence command to set precedence lower-limit, upper-limit and
drop probability denominator of WRED.
This command can be used only after the wred command has been used to enable
WRED drop mode based on IP precedence.
The configuration of wred ip-precedence will be deleted when wred configuration is
deleted.
The configuration of drop parameters will be deleted if queue af is deleted.
Related command: qos policy, traffic behavior, classifier behavior.
Example
# Set lower-limit to 20, upper-limit to 40 and discard probability to 40 for the packet with
the precedence 3.
[H3C] traffic behavior database
[H3C-behavior-database] wred
[H3C-behavior-database] wred ip-precedence 3 low-limit 20 high-limit 40
discard-probability 15
3-56
Command Manual – QoS Chapter 3 Congestion Management Configuration
Comware V3 Commands
Syntax
View
Parameter
Description
Use the wred weighting-constant command to set exponential for the calculation of
average queue length by WRED.
This command can be used only after the queue af command has been configured and
the wred command has been used to enable WRED drop mode.
The configuration of wred weighting-constant will be deleted if random-detect is
deleted.
Related command: qos policy, traffic behavior, classifier behavior.
Example
Syntax
View
Any view
Parameter
3-57
Command Manual – QoS Chapter 3 Congestion Management Configuration
Comware V3 Commands
Description
Use the display qos rtpq interface command to view information of the current IP
RTP Priority queue, including the current RTP queue depth and number of RTP packets
dropped, and display the RTP priority queue configuration and statistics on an interface
or on all interfaces.
Example
Syntax
View
Interface view
Parameter
Description
Use the qos reserved-bandwidth command to set the maximum reserved bandwidth
percentage.
Use the undo qos reserved-bandwidth command to restore the default value.
Usually the bandwidth configured for the QoS queue is less than 75 percent of the total
bandwidth, considering that part of the bandwidth should be used for controlling
protocol packets, layer 2 frame headers and so on.
Caution should be taken in using this command to the maximum preserved bandwidth.
Related command: qos rtpq.
Example
# Set the maximum reserved bandwidth allocated for RTP priority queue to 80% of the
available bandwidth.
[H3C-Serial1/0/0] qos reserved-bandwidth pct 80
3-58
Command Manual – QoS Chapter 3 Congestion Management Configuration
Comware V3 Commands
Syntax
View
Interface view
Parameter
first-rtp-port-number: Specifies the first UDP port number to initiate RTP messages.
last-rtp-port-number: Specifies the last UDP port number to initiate RTP messages.
bandwidth: Bandwidth for RTP priority queue, which is part of the maximum reserved
bandwidth in Kbps.
committed-burst-size: Committed burst size, in the range 1500 to 2000000 bytes.
Description
Use the qos rtpq command to enable RTP queue feature on an interface so as to
reserve a real-time service for the RTP packets sent to some UDP destination port
ranges.
Use the undo qos rtpq command to disable the RTP queuing feature of the interface.
By default, RTP queuing feature is disabled.
This command is applied to the delay-sensitive applications, real-time voice
transmission for example. Configured with the qos rtpq command, the system will
serve the voice services first among all other services.
The parameter "bandwidth" should be set greater than the service-required bandwidth
so as to prevent conflict caused by the burst traffic. However, the bandwidth should be
no greater than 75% of the total bandwidth. If you need to configure the bandwidth to be
greater than 75% of the total bandwidth, please first change the maximum reserved
bandwidth via qos reserved-bandwidth command.
In bandwidth allocation, the bandwidth for data load, IP header, UDP header and RTP
header is allocated, except that for the Layer2 frame header. Therefore, it is obligatory
to reserve 25% of the total bandwidth.
3-59
Command Manual – QoS Chapter 3 Congestion Management Configuration
Comware V3 Commands
Caution:
Except for interfaces encapsulated with X.25 or LAPB, all physical interfaces can use
RTPQ.
You can apply an RTPQ to a dialer interface successfully only when its physical
interfaces use default queuing and have adequate bandwidth.
Example
# Enable IP RTP Priority on Serial 1/0/0. The starting port number is 16384. The
starting port number is 16383. The RTP packets in the range of 16384 to 32767 of the
destination port use 64Kbps bandwidth. If network convergence happens, the packets
will enter IP RTP Priority queue.
[H3C-Serial1/0/0] qos rtpq start-port 16384 end-port 32767 bandwidth 64
Syntax
qmtoken token-number
undo qmtoken
View
Interface view
Parameter
Description
3-60
Command Manual – QoS Chapter 3 Congestion Management Configuration
Comware V3 Commands
If FTP applies, you are recommended to set the number of tokens sent by an interface
to 1.
Note:
After you configure this command on an interface, you must perform shutdown and
undo shutdown on the interface to have the function take effect.
So far, this command is supported only by Ethernet, serial, and BRI interfaces.
Example
3-61
Command Manual – QoS
Comware V3 Chapter 4 WRED Configuration Commands
Syntax
View
Any view
Parameter
Description
Use the display qos wred interface command to view WRED (weighed random early
detection) configuration and statistics of an interface.
If no interface is specified, WRED configuration and statistics of all interfaces will be
displayed.
Example
4-1
Command Manual – QoS
Comware V3 Chapter 4 WRED Configuration Commands
Syntax
qos wred
undo qos wred
View
Interface view
Parameter
None
Description
Example
# Apply WRED at Ethernet0/0/0 interface. (Provided that WFQ has already been
applied at the interface).
[H3C-Ethernet0/0/0] qos wred
Syntax
View
Interface view
Parameter
4-2
Command Manual – QoS
Comware V3 Chapter 4 WRED Configuration Commands
Description
Use the qos wred dscp command to set the lower limit, upper limit, and drop
probability denominator of a WRED DSCP.
Use the undo qos wred dscp command to restore the default settings.
Before configuring the WRED parameters, you must use the qos wred command to
apply the WRED to an interface. The thresholds limit the average queue length.
Related command: qos wred, display qos wred interface.
Example
# For DSCP 3, set the lower and upper average length limits of the queue to 20 and 40
respectively, and the drop probability denominator to 15.
[H3C-Ethernet0/0/0] qos wred dscp 3 low-limit 20 high-limit 40
discard-probability 15
Syntax
View
Interface view
Parameter
Description
Use the qos wred ip-precedence command to configure the minimum threshold,
maximum threshold and drop probability denominator for each precedence level in
WRED.
4-3
Command Manual – QoS
Comware V3 Chapter 4 WRED Configuration Commands
Use the undo qos wred ip-precedence command to restore the default value.
WRED parameters can be set only after the command qos wred has been used to
apply WRED at the interface. The thresholds are for the average quantity of packets in
queue.
Related command: qos wred, display qos wred interface.
Example
Syntax
View
Interface view
Parameter
exponent: Exponential used to calculate the average queue length, in the range 1 to 16.
It defaults to 9.
Description
Use the qos wred weighting-constant command to set exponential used to calculate
the average length of WRED queues.
Use the undo qos wred weighting-constant command to restore the default value.
Before you can configure WRED parameters on an interface, you must apply WRED
with the qos wred command on it.
Related command: qos wred, display qos wred interface.
Example
4-4
Command Manual – QoS
Comware V3 Chapter 5 Protocol Priority Configuration Commands
Syntax
display protocol-priority
View
Any view
Parameter
None
Description
Example
5.1.2 protocol-priority
Syntax
View
System view
5-1
Command Manual – QoS
Comware V3 Chapter 5 Protocol Priority Configuration Commands
Parameter
Description
Example
5-2
Command Manual – QoS
Comware V3 Chapter 6 Frame Relay QoS Commands
Syntax
View
Parameter
Description
Use the apply policy outbound command to set the frame relay virtual circuit queuing
to CBQ (Class-Based Queuing).
Use the undo apply policy outbound command to restore the frame relay virtual
circuit queuing to FIFO.
By default, FIFO queuing is adopted.
Example
# Apply a defined policy to the frame relay class named test 1 and set the queuing of
test 1 to CBQ.
[H3C] fr class test1
[H3C-fr-class-test1] apply policy policy1 outbound
6-1
Command Manual – QoS
Comware V3 Chapter 6 Frame Relay QoS Commands
6.1.2 cbs
Syntax
View
Parameter
inbound: Sets the committed burst size of the inbound packet, valid only when FRTP
(frame relay traffic policing) is enabled on the interface.
outbound: Sets the committed burst size of the outbound packet, valid only when
FRTS (frame relay traffic shaping) is enabled on the interface.
committed-burst-size: Committed burst size, in bits, ranging from 300 to 16000000. It
defaults to 56000 bits.
Description
Use the cbs command to set the committed burst size of frame relay virtual circuit.
Use the undo cbs command to restore the default value.
If the packet direction is not specified in configuration, the parameter will be set in both
inbound and outbound directions.
The committed burst size is the packet traffic that is committed to send on a frame relay
network within an interval of Tc. When there is no congestion on the network, the frame
relay network ensures this part of traffic could be sent successfully.
Related command: ebs, cir allow, and cir.
Example
# Set the committed burst size of the frame relay class named test1 as 64000 bits.
[H3C] fr class test1
[H3C-fr-class-test1] cbs 64000
6.1.3 cir
Syntax
cir committed-information-rate
undo cir
View
6-2
Command Manual – QoS
Comware V3 Chapter 6 Frame Relay QoS Commands
Parameter
Description
Use the cir command to set the CIR of frame relay virtual circuit.
Use the undo cir command to restore the default value.
The CIR is the minimum sending rate that can be provided by virtual circuit. It ensures
the user could still send data at this rate upon network congestion.
Upon network congestion, DCE will send a packet with a BECN flag bit of 1 to DTE.
After DTE receives this packet, it gradually reduces the sending rate of virtual circuit
from the allowed CIR (CIR ALLOW) to CIR. If DTE does not receive the packet with the
BECN flag bit of 1 any more within a certain period of time, it will restore the sending
rate of virtual circuit as CIR ALLOW.
Note:
The CIR must not exceed the CIR ALLOW.
Example
# Set the CIR of the frame relay class named test1 as 32000 bps.
[H3C] fr class test1
[H3C-fr-class-test1] cir 32000
Syntax
View
Parameter
inbound: Sets the CIR ALLOW of an inbound packet, valid only when FRTP is enabled
on the interface.
6-3
Command Manual – QoS
Comware V3 Chapter 6 Frame Relay QoS Commands
outbound: Sets the CIR ALLOW of an outbound packet, valid only when FRTS is
enabled on the interface.
committed-information-rate: CIR ALLOW, in bps, ranging from 1 to 45000000. It
defaults to 56000 bps.
Description
Use the cir allow command to set the CIR ALLOW of frame relay virtual circuit.
Use the undo cir allow command to restore the default value.
CIR ALLOW is the sending rate that can be normally provided by a frame relay network.
When there is no congestion on the network, it ensures the user could send data at this
rate.
If packet direction is not specified upon configuration, the parameter will be set in both
inbound and outbound directions.
Related command: cbs, ebs, and cir.
Example
# Set the CIR ALLOW of the frame relay class that is named test1 as 64000bps.
[H3C] fr class test1
[H3C-fr-class-test1] cir allow 64000
6.1.5 congestion-threshold
Syntax
View
Parameter
de: Discards the frame relay packet whose DE flag bit is 1 upon congestion.
ecn: Processes the flag bits, BECN and FECN, of frame relay packet upon congestion.
queue-percentage: Network congestion threshold, the utility ratio of virtual circuit
queue, namely the percentage of the current queue length of virtual circuit to the total
queue length, ranging from 1 to 100.
Description
6-4
Command Manual – QoS
Comware V3 Chapter 6 Frame Relay QoS Commands
When the percentage of current queue length to the total queue length of virtual circuit
exceeds the set congestion threshold, it will be regarded that congestion occurs on the
virtual circuit and congestion management will be performed on packets on virtual
circuit.
By default, congestion management function of frame relay virtual circuit is not
enabled.
Related command: fr congestion-threshold.
Example
# Set to discard the frame relay packet whose DE flag bit is 1 concerning the frame
relay class named test1, when the current queue length of virtual circuit exceeds 80%
of the total length.
[H3C] fr class test1
[H3C-fr-class-test1] congestion-threshold de 80
6.1.6 cq
Syntax
cq cql cql-index
undo cq
View
Parameter
cql cql-index: Group number of custom queuing list, ranging from 1 to 16.
Description
Use the cq command to set the queuing type of Frame Relay PVC to Custom Queuing.
Use the undo cq command to restore the queuing type of Frame Relay PVC to FIFO.
By default, the PVC queuing type is FIFO.
If this command is repeatedly used on the same Frame Relay class, the last
configuration will overwrite the previous one.
Related command: wfq, pq, fr pvc-pq
Example
#Apply group 10 of the Custom Queuing list to the Frame Relay class named test1.
[H3C] fr class test1
[H3C-fr-class-test1] cq cql 10
6-5
Command Manual – QoS
Comware V3 Chapter 6 Frame Relay QoS Commands
Syntax
View
Any view
Parameter
Description
Use the display fr class-map command to view information on frame relay class to
interface map, including DLCIs of interfaces, subinterfaces on the interfaces and their
DLCIs.
When configuring the command, you can specify an frame relay class name or main
interface, but not a subinterface.
Example
# Display information on the map of frame relay class to the interface serial 6/0/0.
[H3C]display fr class-map interface serial 6/0/0
Serial6/0/0
fr-class ts
fr dlci 100 Serial6/0/0
fr-class ts
Serial6/0/0.1
fr-class ts
fr dlci 200 Serial6/0/0.1
fr-class ts
6-6
Command Manual – QoS
Comware V3 Chapter 6 Frame Relay QoS Commands
fr-class ts
Serial6/0/1
fr-class ts
Syntax
View
Any view
Parameter
Description
Use the display fr del command to view the contents in the specified or all DE rule
lists.
After a DE rule list is applied on a frame relay VC, the VC sets the DE bit to 1 if the
received packets match the list. These packets are always discarded first when
congestion occurs.
You may add up to 100 rules to a DE rule list using the fr del inbound-interface and fr
del protocol commands. You may create up to 10 DE rule lists.
Related command: fr del inbound-interface, fr del protocol.
Example
6-7
Command Manual – QoS
Comware V3 Chapter 6 Frame Relay QoS Commands
Field Description
inbound-interface Specifies that the DE rule list is interface-based.
Specifies that the DE rule list is protocol-based. At
Protocol
present, only IP is available.
Syntax
View
Any view
Parameter
Description
Use the display fr fragment-info command to view the frame relay fragment
information.
Related command: fragment.
Example
Field Description
interface Interface
6-8
Command Manual – QoS
Comware V3 Chapter 6 Frame Relay QoS Commands
Field Description
Fragment type. Three options are available: FRF.12, FRF.11
type
Annex C and Motorola fragment.
size Fragment size
Number of received fragment packets/number of sent fragment
in/out/drop
packets/number of discarded fragment packets
Field Description
Fragment type. Three options are available: FRF.12,
type
FRF.11 Annex C and Motorola fragment.
size Fragment size
6-9
Command Manual – QoS
Comware V3 Chapter 6 Frame Relay QoS Commands
Syntax
View
Any view
Parameter
Description
Use the display mfr command to view configuration and status information of the
frame relay route to confirm the correctness of the configuration.
Related command: fr switch.
Example
# Display configuration and state information of all frame relay bundles and frame relay
# Display all the characters of the frame relay route.
[H3C] display fr switch-table all
Switch-Name Interface DLCI Interface DLCI State
test MFR4/0/100 100 MFR4/0/101 101 UP
Table 6-4 Description on the fields of the display fr switch-table all command
Field Description
Switch-Name the name of PVC used for switching
The first denotes local interface and the
Interface
second denotes remote interface
DLCI local and remote VC identifier
State Linkage status
Syntax
6-10
Command Manual – QoS
Comware V3 Chapter 6 Frame Relay QoS Commands
View
Any view
Parameter
Description
Use the display qos policy interface command to view information about CBQ
application on the interface.
Example
# Display the information about CBQ application of the virtual circuit with DLCI of 10 on
Serial1/0/0.
<H3C> display qos policy interface serial 1/0/0 dlci 100
MFR4/0/0, DLCI 25
Direction: Outbound
Policy: xujin
Class: default-class
Matched : 1/133 (Packets/Bytes)
Rule(s) : if-match any
Behavior:
Default Queue:
Flow Based Weighted Fair Queuing
Max number of hashed queues: 256
Matched : 0/0 (Packets/Bytes)
Enqueued : 0/0 (Packets/Bytes)
Discarded: 0/0 (Packets/Bytes)
Discard Method: Tail
Class: xujin
Matched : 0/0 (Packets/Bytes)
Operator: Logic AND
Rule(s): if-match acl 2001
Behavior:
Assured Forwarding:
Bandwidth 10 (Kbps)
6-11
Command Manual – QoS
Comware V3 Chapter 6 Frame Relay QoS Commands
6.1.12 ebs
Syntax
View
Parameter
inbound: Sets the EBS in inbound direction, valid only when FRTP is enabled on the
interface.
outbound: Sets EBS in outbound direction, valid only when FRTS is enabled on the
interface.
excess-burst-size: EBS in bits, ranging from 0 to 16000000. It defaults to 0 bits.
Description
Use the ebs command to set EBS of frame relay virtual circuit.
Use the undo ebs command to restore the default value.
EBS is the maximum of the part that packet traffic exceeds the committed burst size
(CBS) within an interval of Tc. When congestion occurs on the network, this part of
excess traffic will be first discarded.
When this command is used, the set EBS value will be valid in both inbound and
outbound directions if the parameters inbound and outbound are not specified.
Related command: cbs, cir allow, cir.
Example
# Set the EBS of the frame relay class named test1 to 32000 bits.
[H3C] fr class test1
[H3C-fr-class-test1] ebs 32000
Syntax
6-12
Command Manual – QoS
Comware V3 Chapter 6 Frame Relay QoS Commands
View
Parameter
queue-length: FIFO queue length, namely, the maximum number of packets that can
be held by the queue, ranging from 1 to 1024. By default, it is 40.
Description
Use the fifo queue-length command to set the FIFO queue length of frame relay
virtual circuit.
Use the undo fifo queue-length command to restore the default value.
When the router serves as DCE for switching, the FIFO queue length of DLCI can be
set if FRTS has been applied to DLCI.
Related command: fr class.
Example
# Set the FIFO queue of the frame relay class named test1 to hold 80 packets at most.
[H3C] fr class test1
[H3C-fr-class-test1] fifo queue-length 80
[H3C] fr del 1 protocol ip
6.1.14 fr class
Syntax
fr class class-name
undo fr class class-name
View
System view
Parameter
Description
Use the fr class command to create a frame relay class and enter frame relay class
view.
Use the undo fr class command to delete a specified frame relay class.
By default, no frame relay class is created.
6-13
Command Manual – QoS
Comware V3 Chapter 6 Frame Relay QoS Commands
Only after associating a frame relay class with an interface or virtual circuit and
enabling the frame relay QoS function on the corresponding interface, can the set
frame relay class parameter take effect.
When a frame relay class is deleted, the association between all interfaces or DLCIs
and the frame relay class will be released.
Related command: fr-class.
Example
6.1.15 fr congestion-threshold
Syntax
View
Parameter
de: Discards the frame relay packet whose DE flag bit is 1 when congestion occurs.
ecn: Processes the BECN and FECN flag bits of frame relay packets when congestion
occurs.
queue-percentage: Network congestion threshold, the occupation ratio of the interface
queue, equal to the percentage of current queue length to the total queue length of the
interface, ranging from 1 to 100. By default, it is 100.
Description
6-14
Command Manual – QoS
Comware V3 Chapter 6 Frame Relay QoS Commands
Note:
The command can only be used for frame relay DCE interfaces or NNI interfaces.
Example
# Set to process the flag bit of a frame relay packet when the interface queue length
exceeds 80% of the total length.
[H3C-Serial4/1/2] fr congestion-threshold de 80
6.1.16 fr de del
Syntax
View
Frame relay interface (main interface or subinterface) view, MFR interface view
Parameter
Description
Use the fr de del command to apply a DE rule list to the specified frame relay virtual
circuit.
Use the undo fr de del command to delete a DE rule list from virtual circuit.
By default, no DE rule list is applied to frame relay virtual circuit.
In the view of a frame relay main interface (or subinterface), this command can only
apply a DE rule list to the frame relay VCs on the main interface or (or subinterface).
After a DE rule list is applied to frame relay virtual circuit, those packets that match the
rule list will have their DE flag set to 1.
Related command: fr del inbound-interface and fr del protocol.
Example
# In the view of interface Serial 4/1/2, apply DE rule list 3 to DLCI 100 on the current
interface.
[H3C-Serial4/1/2] fr de del 3 dlci 100
6-15
Command Manual – QoS
Comware V3 Chapter 6 Frame Relay QoS Commands
# In the view of subinterface Serial 4/1/2.1 apply DE rule list 3 to DLCI 200 on
subinterface Serial 4/1/2.2.
[H3C-Serial4/1/2.1] fr de del 3 dlci 200
Syntax
View
System view
Parameter
Description
Example
# Add a rule to DE rule list 1. For the packet received from the interface Serial 4/1/2, if it
is needed to be forwarded by encapsulating frame relay protocol, flag the DE flag bit of
the packet as 1 before forwarding.
[H3C] fr del 1 inbound-interface serial 4/1/2
6-16
Command Manual – QoS
Comware V3 Chapter 6 Frame Relay QoS Commands
Syntax
View
System view
Parameter
Description
Use the fr del protocol ip command to configure an IP-based DE rule list. The DE flag
bit of the frame relay packet encapsulated with an IP packet matching the specified rule
will be flagged as 1.
Use the undo fr del protocol ip command to delete the specified DE rule from a DE
rule list.
By default, no DE rule list is created.
New rules can be added to a DE rule list by using this command repeatedly. At most,
100 rules can be configured in a DE rule list. The undo form of this command can once
delete one DE rule only. To delete a DE rule list, you must delete all DE rules in it.
Related command: fr de del and fr del inbound-interface.
6-17
Command Manual – QoS
Comware V3 Chapter 6 Frame Relay QoS Commands
Example
# Add a rule to DE rule list 1. For all frame relay packets encapsulated with IP packets,
flag their DE flag bits as 1.
[H3C] fr del 1 protocol ip
6.1.19 fr pvc-pq
Syntax
View
Parameter
top-limit: Length of top priority queue, ranging from 1 to 1024. By default, it is 20.
middle-limit: Length of middle priority queue, ranging from 1 to 1024. By default, it is 40.
normal-limit: Length of normal priority queue, ranging from 1 to 1024. By default, it is
60.
bottom-limit: Length of bottom priority queue, ranging from 1 to 1024. By default, it is
80.
Description
Use the fr pvc-pq command to set the queue type of a frame relay interface as PVC
PQ (PVC Priority Queuing) and set queue length, i.e. the maximum number of packets
that can be held by a queue, for each queue.
Use the undo fr pvc-pq command to restore the queue type of the interface into FIFO.
By default, the queuing type of a frame relay interface is FIFO.
After FRTS is enabled on an interface, the queuing type of the interface can only be
FIFO or PVC PQ.
PVC PQ is a new queuing mechanism of FRTS. Similar to PQ, it also has four queue
types: top, middle, normal and bottom, in descending order. Configure the queue of
PVC PQ that DLCI enters in frame relay class. When congestion occurs on an interface,
different DLCIs enter different PVC PQs. When sending data, according to queue
priority, data in higher priority queues will be sent before lower priority queues.
Related command: pvc-pq.
Example
# Set the queuing type of the interface Serial 2/0/0 as PVC PQ.
6-18
Command Manual – QoS
Comware V3 Chapter 6 Frame Relay QoS Commands
[H3C-Serial2/0/0] fr pvc-pq
6.1.20 fr traffic-policing
Syntax
fr traffic-policing
undo fr traffic-policing
View
Parameter
None
Description
Example
6.1.21 fr traffic-shaping
Syntax
fr traffic-shaping
undo fr traffic-shaping
View
Parameter
None
6-19
Command Manual – QoS
Comware V3 Chapter 6 Frame Relay QoS Commands
Description
Example
6.1.22 fragment
Syntax
View
Parameter
Description
Example
# Configure fragment size as 128 in the frame relay class named test1.
[H3C] fr class test1
[H3C-fr-class-test1] fragment 128
6-20
Command Manual – QoS
Comware V3 Chapter 6 Frame Relay QoS Commands
6.1.23 fr-class
Syntax
fr-class class-name
undo fr-class class-name
View
Parameter
class-name: Name of a frame relay class, in the form of character string, with a length
ranging from 1 to 30.
Description
Use the fr-class command to associate a frame relay class with the current frame relay
virtual circuit or frame relay interface.
Use the undo fr-class command to remove the association between a frame relay
class and the frame relay virtual circuit or frame relay interface.
By default, there is no association between a frame relay class and the frame relay
virtual circuit or frame relay interface.
If the specified frame relay class does not exist, the command will first create a frame
relay class before associating the frame relay class with the current virtual circuit or
interface. If the specified frame relay class does exist, the command will associate the
frame relay class with the current virtual circuit or interface without creating a new
frame relay class.
The undo command only removes the association between a specified frame relay
class and a virtual circuit or an interface rather than deletes the real frame relay class.
To delete a frame relay class, use the undo fr class command in system view.
After a frame relay class is associated with an interface, all virtual circuits on the
interface will inherit the frame relay QoS parameter of this frame relay class.
Related command: fr class and fr dlci.
Example
# Associate the frame relay class named test1 with the frame relay virtual circuit whose
DLCI is 200.
[H3C] interface serial 4/0/1
[H3C-Serial4/0/1] fr dlci 200
[H3C-fr-dlci-Serial4/0/1-200] fr-class test1
6-21
Command Manual – QoS
Comware V3 Chapter 6 Frame Relay QoS Commands
6.1.24 pq
Syntax
pq pql pql-index
undo pq
View
Parameter
Description
Use the pq command to set the queue type of frame relay virtual circuit as Priority
Queuing.
Use the undo pq command to restore the queue type of virtual circuit to FIFO.
By default, the queuing type of frame relay virtual circuit is FIFO.
Related command: cq, pvc-pq.
Example
# Apply the group10 of Priority Queuing to the frame relay class named test1.
[H3C] fr class test1
[H3C-fr-class-test1] pq pql 10
6.1.25 pvc-pq
Syntax
View
Parameter
top: Sets the top PVC PQ , namely, top priority queue, to accept the packets from the
VC.
middle: Sets the middle PVC PQ , namely, middle priority queue, to accept the
packets.
normal: Sets the normal PVC PQ , namely, normal priority queue, to accept the
packets.
6-22
Command Manual – QoS
Comware V3 Chapter 6 Frame Relay QoS Commands
bottom: Sets the bottom PVC PQ , namely, normal priority queue, to accept the
packets.
Description
Use the pvc-pq command to set the type of the PVC PQ that packets sent by frame
relay virtual circuit enter.
Use the undo pvc-pq command to restore the default PVC PQ type.
By default, the packets sent by frame relay virtual circuit enter into the normal PVC PQ.
PVC PQ falls into four groups: top, middle, normal and bottom. PVC PQ is relative to
DLCI. After the queue of an interface is set as PVC PQ, packets on each virtual circuit
can enter only one type of PVC PQ.
Related command: fr pvc-pq.
Example
# Set packets sent by virtual circuit which is associated with the frame relay class
named test1 to enter top PVC PQ.
[H3C-fr-class-one] pvc-pq top
6.1.26 rtpq
Syntax
Parameter
min-dest-port: Lower limit of a destination UDP port, ranging from 2000 to 65535.
max-dest-port: Upper limit of a destination UDP port, ranging from 2000 to 65535.
bandwidth bandwidth: Bandwidth of a RTP queue, in kbps, ranging from 0 to 2000.
View
Description
Use the rtpq command to configure to apply Realtime Transport Protocol (RTP) Priority
Queuing.
Use the undo rtpq command to remove the application.
The application of a frame relay class configured with RTPQ to a PVC results in the
creation of a strict priority queue on the PVC. Packets in the port range specified by
RTPQ of the destination UDP port will enter RTPQ. When congestion occurs in the
virtual circuit, the packets in the queue will be absolutely sent with preference without
6-23
Command Manual – QoS
Comware V3 Chapter 6 Frame Relay QoS Commands
exceeding the configured bandwidth. When congestion does not occur in the virtual
circuit, the RTP packets in the specified port range can occupy the available bandwidth
on the virtual circuit. Generally, the UDP port range used by VoIP can be configured as
from 16384 to 32767.
Example
# Configure RTP priority queue on the frame relay class named test1 with a bandwidth
of 20kbps.
[H3C] fr class test1
[H3C-fr-class-test1] rtpq start-port 16383 end-port 16384 bandwidth 20
Syntax
View
Parameter
Description
Use the traffic-shaping adaptation command to enable the adaptive traffic shaping
function of frame relay.
Use the undo traffic-shaping adaptation command to disable this function.
By default, traffic-shaping adaptation is enabled, and the ratio of each adaptation is set
to 25.
Related commands are fr traffic-shaping, cir allow, and cir.
Example
# Enable the frame relay traffic shaping function, by adjusting the packets with the
BECN flag.
[H3C] fr class test1
6-24
Command Manual – QoS
Comware V3 Chapter 6 Frame Relay QoS Commands
6.1.28 wfq
Syntax
View
Parameter
Description
Use the wfq command to set the queue type of the VC to be WFQ.
Use the undo wfq command to restore the queue type to FIFO.
Related command: cq, pq, and fr pvc-pq.
Example
6-25
Command Manual – QoS
Comware V3 Chapter 7 MPLS QoS Configuration Commands
Syntax
View
Class view
Parameter
Description
Use the if-match mpls-exp command to configure the matching rule for EXP domain
of MPLS.
Use the undo if-match mpls-exp command to delete the matching rule.
Multiple exp-values can be specified in the command and the maximum number is 8. If
multiple exp-values of the same value are specified, the system only takes one.
Relation between different values is “OR”. If this command is frequently configured
under one class, the last configuration will overwrite the previous ones. After this
command is configured, the exp-value will be sorted automatically in ascending order.
Related command: traffic classifier.
Example
Syntax
7-1
Command Manual – QoS
Comware V3 Chapter 7 MPLS QoS Configuration Commands
View
System view
Parameter
Description
Use the qos cql protocol mpls exp command to configure classification rule based on
the MPLS protocol.
Use the undo qos cql protocol mpls exp command to delete the corresponding
classification rule.
The system matches packets in the sequence that rules are configured. When the
packet is found to match a rule, the entire searching process comes to an end.
For the same group-number, this command can be used repeatedly to establish
multiple types of classification rules for IP packets.
Related command: qos cq.
Example
# Configure classification rule based on the MPLS protocol and sets EXP value of
MPLS to 1.
[H3C] qos cql 10 protocol mpls exp 1
Syntax
qos pql pql-index protocol mpls exp mpls-experimental-value queue { top | middle |
normal | bottom }
undo qos pql pql-index protocol mpls exp mpls-experimental-value
View
System view
Parameter
7-2
Command Manual – QoS
Comware V3 Chapter 7 MPLS QoS Configuration Commands
Description
Use the qos pql protocol mpls exp command to establish the classification rule
based on MPLS protocol.
Use the undo qos pql protocol mpls exp command to delete corresponding
classification rules.
The system matches packets in the sequence that rules are configured. When the
packet is found to match a rule, the entire searching process comes to an end.
For the same group-number, this command can be used repeatedly to establish
several types of classification rules for IP packets.
Related command: qos pql protocol.
Example
# Establish the classification rule based on MPLS protocol and sets the EXP value of
MPLS to 5.
[H3C] qos pql 10 protocol mpls exp top 5
Syntax
View
Parameter
Description
Use the remark mpls-exp command to configure MPLS EXP value to identify matched
packets.
Use the undo remark mpls-exp command to delete the configuration.
Related command: traffic classifier, qos policy, classifier behavior.
Example
7-3
Reliability
Command Manual – Reliability
Comware V3 Table of Contents
Table of Contents
i
Command Manual – Reliability
Comware V3 Chapter 1 Backup Center Configuration Commands
Syntax
View
User view
Parameter
Description
Use the debugging standby event command to enable debugging of the backup
center.
Use the undo debugging standby event command to disable debugging of the
backup center.
Example
Syntax
View
Any view
Description
Use the display standby flow command to view statistics about the traffic on the main
interfaces participating in backup load sharing.
1-1
Command Manual – Reliability
Comware V3 Chapter 1 Backup Center Configuration Commands
Example
# Set Serial 1/0/0, Serial 0/0/0 and Logic-channel0 to back up interface Serial 3/0/0 and
configure backup load sharing on Serial 3/0/0.
[H3C] interface serial3/0/0
[H3C-Serial3/0/0] standby interface serial1/0/0 10
[H3C-Serial3/0/0] standby interface serial0/0/0 30
[H3C-Serial3/0/0] standby interface logic-channel0
[H3C-Serial3/0/0] standby threshold 80 50
[H3C-Serial3/0/0] standby timer flow-check 100
[H3C-Serial3/0/0] standby bandwidth 9
# Display statistics about the traffic on the main interfaces participating in backup load
sharing.
[H3C-Serial3/0/0] display standby flow
Interfacename :Serial3/0/0
Flow-interval(s) : 100
LastInOctets : 868168
LastOutOctets : 1818667
InFlow(Octets) : 50070
OutFlow(Octets) : 100088
BandWidth(b/s) :9000
UsedBandWidth(b/s) : 8000
Table 1-1 Description on the fields of the display standby flow command
Field Description
Flow-interval(s) Intervals for checking traffic on the main interface.
The sum of the octets received on the main interface until
LastInOctets
the last check.
The sum of the octets sent on the main interface until the
LastOutOctets
last check.
The sum of the octets received on the main interface
InFlow(Octets)
during the last interval.
The sum of the octets sent on the main interface during
OutFlow(Octets)
the last interval.
BandWidth(b/s) Bandwidth of the main interface.
UsedBandWidth(b/s) Actual bandwidth of the interface during the last interval.
1-2
Command Manual – Reliability
Comware V3 Chapter 1 Backup Center Configuration Commands
Syntax
View
Any view
Description
Use the display standby state command to view information about the main and
standby interfaces.
The following table describes the information that the command provides and the
possible values.
Example
# Set Serial 1/0/0, Serial 0/0/0 and Logic-channel 0 to back up Serial 3/0/0, and
configure backup load sharing on Serial 3/0/0.
[H3C] interface Serial3/0/0
[H3C-Serial3/0/0] standby interface serial1/0/0 10
[H3C-Serial3/0/0] standby interface serial0/0/0 30
[H3C-Serial3/0/0] standby interface logic-channel0
1-3
Command Manual – Reliability
Comware V3 Chapter 1 Backup Center Configuration Commands
Standby-flag meaning:
M---MAIN S---Standby V---MOVED U---USED
D---LOAD P---PULLED G---LOGICCHANNEL
Syntax
View
Interface view
Parameter
Description
Use the standby bandwidth command to configure the actual bandwidth that the main
interface uses in backup load sharing.
Use the undo standby bandwidth command to restore the default, that is, 0, to
disable backup load sharing.
When the main interface participates in backup load sharing, the backup center uses
the backup bandwidth that you configured preferentially on the main interface. If it is not
configured, the backup center automatically obtains the information that the system
provides on the physical bandwidth of the main interface. In case the information is not
available, the backup center would require you to assign backup bandwidth to the main
interface.
Before you can use this command, you must use the standby interface command to
specify physical interfaces or logical channels to back up the interface.
1-4
Command Manual – Reliability
Comware V3 Chapter 1 Backup Center Configuration Commands
Example
# Configure interface Serial 0/0/0 to use interface Serial 1/0/0 for back up, and assign it
bandwidth for backup load sharing.
[H3C] interface serial0/0/0
[H3C-Serial0/0/0] standby interface serial1/0/0 50
[H3C-Serial0/0/0] standby bandwidth 10000
[H3C-Serial0/0/0] standby threshold 80 50
Syntax
View
Interface view
Parameter
Description
Use the standby interface command to specify a physical interface to back up the
interface.
Use the undo standby interface command to remove the specified standby interface.
By default, no standby interface is specified.
You can configure multiple standby interfaces for a main interface. The order in which
they are used depends on the assigned priority. The standby interface with higher
priority is used first.
Example
# Specify interface Serial 1/0/0 to back up interface Serial 0/0/0, and assign it the
priority of 50.
[H3C-Serial0/0/0] standby interface serial1/0/0 50
1-5
Command Manual – Reliability
Comware V3 Chapter 1 Backup Center Configuration Commands
Syntax
View
Interface view
Parameter
enable-threshold: Percentage of the available bandwidth that the traffic load must
exceed to bring up a standby interface or logical channel. It is in the range 2 to 99.
disable-threshold: Percentage of the available bandwidth that the traffic load must be
less than to close a standby interface or logical channel. It is in the range 1 to 98.
Description
Example
Syntax
1-6
Command Manual – Reliability
Comware V3 Chapter 1 Backup Center Configuration Commands
View
Interface view
Parameter
enable-delay: Failover delay, or the delay for the interface to switch its state from main
to standby. It is in the range 0 to 65535 seconds.
disable-delay: Fallback delay, or the delay for the interface to switch from backup to
main. It is in the range 0 to 65535 seconds. It defaults to 0.
Description
Use the standby timer delay command to set failover and fallback delays on the
interface, avoiding frequent switchover caused by instability of interface state.
Use the undo standby timer delay command to restore the default or 0, meaning
switching without delay.
Before you can use this command, you must use the standby interface command to
specify physical interfaces or logical channels to back up the interface.
Note:
When you switch the state of an interface from main to standby even if you set the
failover or fallback delay to zero, the main or standby interface will not go up
immediately. Instead, the interface needs to wait for 5 to 90 seconds to go up
depending on different types.
Example
# Configure interface Serial 0/0/0 to use interface Serial 1/0/0 for backup, and to
experience 10 seconds of delay before failover or fallback.
[H3C-Serial0/0/0] standby interface serial1/0/0
[H3C-Serial0/0/0] standby timer delay 10 10
Syntax
1-7
Command Manual – Reliability
Comware V3 Chapter 1 Backup Center Configuration Commands
View
Interface view
Parameter
Description
Use the standby timer flow-check command to configure the interval for checking the
traffic size on the main interface.
Use the undo standby timer flow-check command to restore the default or 30
seconds.
When the main interface participates in backup load sharing, the backup center
automatically checks the traffic size on the main interface at intervals configured using
this command.
Before you can use this command, you must use the standby interface command to
specify physical interfaces or logical channels to back up the interface.
Example
# Set Serial 1/0/0 to the standby interface of Serial 0/0/0, and configure the backup
bandwidth of the main interface on Serial 0/0/0.
[H3C] interface serial 0/0/0
[H3C-Serial0/0/0] standby interface serial10/0/0 50
[H3C-Serial0/0/0] standby bandwidth 10000
[H3C-Serial0/0/0] standby threshold 80 50
[H3C-Serial0/0/0] standby timer flow-check 60
1-8
Command Manual – Reliability
Comware V3 Chapter 2 VRRP Configuration Commands
Syntax
View
User view
Parameter
Description
Example
Syntax
View
Any view
Parameter
interface-name: Specifies an interface by its name. The type of the interface must be
Ethernet.
virtual-router-ID: Standby group number.
2-1
Command Manual – Reliability
Comware V3 Chapter 2 VRRP Configuration Commands
Description
Use the display vrrp command to view current configuration and state information
about VRRP.
If the interface name and standby group number are not specified, the state information
about all the standby groups on the router is displayed. If the interface name is
specified, the state information about all the standby groups on the interface is
displayed. If both arguments are specified, the status information about the specified
standby group is displayed.
Example
Syntax
View
2-2
Command Manual – Reliability
Comware V3 Chapter 2 VRRP Configuration Commands
Parameter
Description
Example
# Set the authentication mode and authentication key of all VRRP standby groups on
interface Ethernet 0/2/0.
[H3C-Ethernet0/2/0] vrrp authentication-mode simple h3c
Syntax
vrrp ping-enable
undo vrrp ping-enable
View
Parameter
None
2-3
Command Manual – Reliability
Comware V3 Chapter 2 VRRP Configuration Commands
Description
Use the vrrp ping-enable command to enable users to ping the virtual IP addresses of
standby groups.
Use the undo vrrp ping-enable command to disable users to ping the virtual IP
addresses of standby groups.
By default, users cannot ping the virtual IP addresses of standby groups.
Example
Syntax
View
Parameter
None
Description
Use the vrrp un-check ttl command to disable the VRRP standby group to check the
TTL field in VRRP packets.
Use the undo vrrp un-check ttl command to enable the VRRP standby group to check
the TTL field in VRRP packets. Any packet with TTL value other than 255 will be
dropped.
By default, TTL check on VRRP packets is enabled.
Example
# Disable the VRRP standby group to check the TTL field in VRRP packets.
[H3C-Ethernet0/0/0] vrrp un-check ttl
# Enable the VRRP standby group to check the TTL field in VRRP packets.
[H3C-Ethernet0/0/0] undo vrrp un-check ttl
2-4
Command Manual – Reliability
Comware V3 Chapter 2 VRRP Configuration Commands
Syntax
View
Parameter
Description
Use the vrrp vrid preempt-mode command to enable preemption on the router and
configure its preemption delay in the specified standby group.
Use the undo vrrp vrid preempt-mode command to disable preemption on the router
in the specified standby group.
The default mode is preemption without delay.
To allow a backup router in a standby group to preempt the current master when it has
a higher priority, you must enable preemption on it. If immediate preemption is not
desired, you can set a preemption delay. The delay automatically changes to 0 seconds
when preemption is disabled.
Example
Syntax
2-5
Command Manual – Reliability
Comware V3 Chapter 2 VRRP Configuration Commands
View
Parameter
Description
Use the vrrp vrid priority command to configure the priority of the router in the
specified standby group.
Use the undo vrrp vrid priority command to restore the default.
In VRRP, the role that a router plays in a standby group depends on its priority. A higher
priority means that the router is more likely to become the master. Note that priority 0 is
reserved for special use and 255 for the IP address owner.
Example
Syntax
View
Parameter
Description
Use the vrrp vrid timer advertise command to configure the Adver_Timer of the
specified standby group.
Use the undo vrrp vrid timer advertise command to restore the default.
The Adver_Timer controls the interval at which the master sends VRRP packets.
2-6
Command Manual – Reliability
Comware V3 Chapter 2 VRRP Configuration Commands
Example
# Set the master in standby group 1 to send VRRP packets at intervals of five seconds.
[H3C-Ethernet0/2/0] vrrp vrid 1 timer advertise 5
Syntax
View
Parameter
Description
Use the vrrp vrid track command to configure the interface to be tracked.
Use the undo vrrp vrid track command to disable tracking the specified interface.
The interface tracking function expands the backup functionality of VRRP. It provides
backup not only when routers fail but also when network interfaces go down.
After the monitored interface specified in this command goes down, the priority of the
router owning this interface automatically decreased by the value specified by
value-reduced, allowing a higher priority router in the standby group to take over as the
master. When the router is the IP address owner, however, you cannot configure
interface tracking on it.
Note:
VRRP monitored VT and Dialer interfaces only support MP, PPPoE, and PPPoA,
rather than the normal dial up such as the ISDN dialer interface.
Example
2-7
Command Manual – Reliability
Comware V3 Chapter 2 VRRP Configuration Commands
Syntax
View
Parameter
Description
Use the vrrp vrid virtual-ip command to create a standby group the first time that you
add a virtual IP address or add a virtual IP address to it after that. Each standby group
can accommodate up to 16 virtual IP addresses.
Use the undo vrrp vrid virtual-ip virtual-router-ID command to remove a standby
group.
Use the undo vrrp vrid virtual-router-ID virtual-ip virtual-address command to delete
a virtual IP address from the specified standby group.
The system removes a standby group after you delete all the virtual IP addresses in it.
If there is non-Ethernet interface in a bridge set, then VRRP is not allowed to be
configured on the bridge template corresponding to that bridge set.
By default, no standby group exists.
Example
2-8
Dial-up
Command Manual – Dial-up
Comware V3 Table of Contents
Table of Contents
i
Command Manual – Dial-up
Comware V3 Table of Contents
ii
Command Manual – Dial-up
Comware V3 Chapter 1 DCC Configuration Commands
Syntax
View
System view
Parameter
Description
Example
None
Syntax
View
Parameter
Description
Use the dialer bundle command to configure a dialer bundle used by a dialer interface.
Use the undo dialer bundle command to disassociate the dialer bundle from the dialer
interface.
By default, the Resource-Shared DCC is not enabled, neither is dialer bundle specified.
1-1
Command Manual – Dial-up
Comware V3 Chapter 1 DCC Configuration Commands
This command can be applied only on a dialer interface for configuring the dialer
bundle that the interface will use. Furthermore, a dialer interface can only use a dialer
bundle. This command can be used to specify a dialer bundle used by a dialer interface,
no matter what link-protocol, PPP or Frame Relay, runs on the interface.
Related command: dialer bundle-member.
Example
# Configure the interface Dialer1 to use dialer bundle3, in which the interface Serial0 is
included.
[H3C-Dialer1] dialer bundle 3
[H3C-Serial0/0/0] dialer bundle-member 3
Syntax
View
Parameter
Description
1-2
Command Manual – Dial-up
Comware V3 Chapter 1 DCC Configuration Commands
Note:
To enable the B channel of ISDN interface (BRI or PRI) to configure its link layer
protocol dynamically in terms of the Dialer interface it belongs to, link layer protocol that
the interface uses should be specified as PPP.
Example
# Make Bri1/0/0 a member of dialer bundle1 and dialer bundle2, and assigns it a priority
of 50.
[H3C] interface bri 1/0/0
[H3C-Bri1/0/0] dialer bundle-member 1 priority 50
[H3C-Bri1/0/0] dialer bundle-member 2 priority 50
Syntax
View
Parameter
user: Calls back according to the parameter user hostname configured in the dialer
route command.
dial-number: Calls back according to the parameter telephone-number configured in
the local-user callback-number command.
Description
Use the dialer callback-center command to enable the callback server function.
Use the undo dialer callback-center command to disable the callback server function
of a router.
By default, PPP callback server is not configured.
This command must be configured at the server end when PPP is used to implement
callback.
The parameter user indicates that DCC will call back according to the parameter
configured in the dialer route command. The parameter dial-number indicates that
1-3
Command Manual – Dial-up
Comware V3 Chapter 1 DCC Configuration Commands
DCC will call back the remote end according to the callback-number configured in the
local-user command.
When both user and dial-number are applied concurrently, the router will first attempt
to place a return call according to the first parameter. If the callback attempt fails, it will
try the second parameter for callback.
Related command: ppp callback, ppp authentication-mode.
Example
# Configure a remote username and set the router to call the user back.
[H3C] local-user H3Cb password simple H3Cb
[H3C] interface serial0/0/0
[H3C-Serial0/0/0] dialer route ip 1.1.1.2 user H3Cb 8810052
[H3C-Serial0/0/0] dialer callback-center user
Syntax
View
Parameter
remote-number: Used for matching the remote incoming call number. The character “*”
represents any character.
callback: When calling back the server end, the incoming number will match with the
dialer call-in command containing this keyword and originate a callback.
Description
Use the dialer call-in command to enable ISDN callback according to ISDN caller ID.
Use the undo dialer call-in command to cancel the configuration.
By default, ISDN callback according to ISDN caller ID is not configured.
This command must be configured at the server end when ISDN caller ID is applied for
callback. In Resource-Shared DCC, because both PPP and frame relay protocols can
be encapsulated on dialer interfaces, ISDN interface can encapsulate link layer
protocol dynamically according to corresponding dialer interface.
The caller first searches corresponding dialer interface by matching the caller number
with the dialer number command. The dialer call-in command is used to preprocess
the ISDN call-in number, determining whether the user with this number can be
1-4
Command Manual – Dial-up
Comware V3 Chapter 1 DCC Configuration Commands
permitted to access. If the PBX switch does not provide the caller number, refuse the
call directly.
Related command: dialer callback-center.
Example
Syntax
View
Parameter
number: Number of the dialer circular group, and a physical interface belongs to this
specified group, ranges from 0 to 1023. This number is defined through the interface
dialer command.
Description
Use the dialer circular-group command to add the physical interface to a dialer
circular group specified here.
Use the undo dialer circular-group command to cancel the configuration.
By default, the physical interface is not a member of any dialer circular group.
One physical interface can only be added to one dialer circular group, which may
contain multiple physical interfaces. When a call is originated on a dialer interface, the
highest priority physical interfaces in the circular group on the dialer interface will place
the call.
Related command: interface dialer.
Example
1-5
Command Manual – Dial-up
Comware V3 Chapter 1 DCC Configuration Commands
Syntax
View
Any view
Parameter
Description
Use the dialer disconnect command to clear the dial-up link or the session link on the
specified interface at the PPPoE/PPPoA client.
The type of the specified interface can be dialer, D channel (on a PRI or BRI interface
for example), or B channel (on an RI, BRI, AUX, Serial, or AM interface for example).
Related command: debugging dialer.
Example
# Clear the dial-up link or the session link on the specified interface at the PPPoE client.
[H3C] dialer disconnect interface dialer0
Syntax
dialer enable-circular
undo dialer enable-circular
View
Parameter
None
1-6
Command Manual – Dial-up
Comware V3 Chapter 1 DCC Configuration Commands
Description
Example
Syntax
View
Parameter
number: Number of the ISDN B channel for leased line connection. It is in the range 0 to
1 if the channel is on a BRI interface, and in the range 0 to 30 on a PRI interface, and 0
to 23 on a CT1/PRI interface.
Description
Use the dialer isdn-leased command to configure an ISDN B channel (can be either
the channel on a BRI or PRI interface) to be the leased line.
Use the undo dialer isdn-leased command to cancel the setting.
By default, no ISDN B channel is configured to be leased line.
The user can configure any ISDN B channel to be the leased line without affecting the
settings of other B channels.
1-7
Command Manual – Dial-up
Comware V3 Chapter 1 DCC Configuration Commands
Note:
On an ISDN BRI interface, you may configure ISDN BRI 128k leased line in addition.
For more information, refer to the dialer isdn-leased command in the chapter “ISDN
Configuration Commands” in the part “Link Layer Protocol” of this manual.
Related command: dialer isdn-leased (in the “Link Layer Protocol” part of this
manual).
Example
# Configure the first B channel on the interface Bri0/0/0 to be the leased line.
[H3C-Bri0/0/0] dialer isdn-leased 1
Syntax
View
Parameter
Description
Use the dialer number command to configure a dial number for placing a call to a
single remote end.
Use the undo dialer number command to cancel the configured dial number.
By default, no dial number is set for calling the remote end.
This command is used when the dialer interface of Circular DCC serves as caller end
and the dialer originates calls to only one destination address or the default address.
This command is only valid after at least one of the following requirements is satisfied:
z The dialer route command is not configured on the interface.
z The next hop address that sends packets cannot be found in the corresponding
dialer route command.
When dialer interfaces of Resource-Shared DCC run link protocol of PPP, the remote
user names, which are obtained via PPP authentication and configured with dialer
user respectively, will decide which dialer interface will receive the incoming call. In this
case, dialer user must be configured, and dialer number can be configured optionally.
1-8
Command Manual – Dial-up
Comware V3 Chapter 1 DCC Configuration Commands
When dialer interfaces run link protocol of Frame Relay, the calling numbers, which are
received from the incoming call and configured with dialer number respectively, will
decide which dialer interface will receive the incoming call. In this case, dialer number
must be configured, and dialer user can be configured optionally.
Note:
z If dialer-group command is not configured, DCC will not dial even if dialer number
command is configured.
z When using Resource-Shared DCC, the same dialer number can be configured on
different dialer interfaces at the calling side; but it is not the case at the called side;
otherwise, the call will fail. When using Circular DCC, the same dialer number can
be configured on different dialer interfaces at the calling side, and it is the same to
the called side.
Example
# Set the dialer number for dialer1 calling the remote end to “11111”.
[H3C] interface dialer 1
[H3C-Dialer1] dialer number 11111
Syntax
View
Parameter
priority: Indicates the priority level for a physical interface which belongs to a dialer
circular group, ranging from 1 to 127. By default, the priority is 1.
Description
Use the dialer priority command to configure a priority for a physical interface in a
dialer circular group in the Circular DCC configuration.
Use the undo dialer priority command to restore the default priority.
1-9
Command Manual – Dial-up
Comware V3 Chapter 1 DCC Configuration Commands
This command sets the order in which the available physical interfaces in a dialer
circular group are used. The physical interfaces with higher priority will be used first.
Related command: dialer circular-group.
Example
Syntax
View
Parameter
packets: Indicates the packet numbers buffered on this interface, ranging from 1 to 100.
By default, the value of max-threshold is 0.
Description
Use the dialer queue-length command to configure the number of packets which
comply with the "permit" statement that can be buffered before a link is set up.
Use the undo dialer queue-length command to restore the default number of the
packets that can be buffered.
In the link establishing process, the packets which comply with the "permit" statement
are held in the buffer queue to wait for transmission as soon as the link is set up. The
setting of packets decides the queue length.
Example
Syntax
1-10
Command Manual – Dial-up
Comware V3 Chapter 1 DCC Configuration Commands
View
Parameter
Description
Use the dialer route command to allow a DCC interface to call the specified
destination address (host or network address) or to receive calls from multiple remote
ends.
Use the undo dialer route command to remove a dialer route.
By default, no dialer route is defined.
To originate a call, the parameter dial-number must be configured. If the user keyword
is used, PPP authentication must be configured.
The user can configure multiple dialer routes for a dial port or a destination address.
1-11
Command Manual – Dial-up
Comware V3 Chapter 1 DCC Configuration Commands
Note:
If the dialer-group command is not configured, DCC will not dial.
Example
# Dial 888066 to set up link for the packets destined to network segment
192.168.1.0/24.
[H3C] dialer route ip 192.168.1.0 mask 24 888066
# Dial 888066 to set up link for the packets destined to host address 192.168.1.1 (not
recommended).
[H3C] dialer route ip 192.168.1.1 888066
Syntax
View
Parameter
traffic-percentage: Percentage of the actual traffic on the link over the bandwidth,
ranges from 0 to 99.
in: Only the inbound traffic is calculated.
in-out: Calculates the larger one of the inbound traffic and the outbound traffic in the
actual traffic calculation.
out: Only the outbound traffic is calculated.
Description
Use the dialer threshold command to configure the traffic threshold of a link on the
DCC interface so that another link can be enabled to call the same destination address
when the ratio of traffic on all connected links on the DCC interface to the available
bandwidth exceeds the preset percentage.
Use the undo dialer threshold command to restore the default value.
By default, MP flow control is not enabled.
1-12
Command Manual – Dial-up
Comware V3 Chapter 1 DCC Configuration Commands
If the ratio of the traffic on a link of a DCC interface to the bandwidth exceeds the
defined threshold, the second link is brought up to form an MP bundle with the first one.
When the ratio of traffic on the two links to the bandwidth exceeds the specified
threshold, the third link is brought up, so on and so forth.
On the contrary, when the ratio of the traffic on N (N is an integer greater than or equal
to 2) links to the bandwidth of N-1 links is less than the specified threshold, a link is
dropped. When only one link is left in the MP bundle, whether and when to disconnect it
depends on the timer configured using the dialer timer idle command. So far, this
command is not available with physical interfaces. It is only applicable to dialer
interfaces and must be used together with the ppp mp command.
With traffic-percentage set to 0, the router does not look at the ratio of traffic to
bandwidth when making calls to bring up links. Rather, all the available links come up
automatically. As for links that already exist, they are not torn down because of timeout.
Simply put, the dialer threshold 0 command voids the dialer timer idle command.
Related command: ppp mp and flow-interval.
Example
Syntax
View
Parameter
seconds: Interval before the next call attempt, ranging from 1 to 604800 in units of
second. The default interval is 300 seconds.
Description
Use the dialer timer autodial command to configure the automatic dialing interval of
DCC.
Use the undo dialer timer autodial command to resume the default interval.
This command should be used together with the auto-dial keyword in the dialer route
command. DCC will automatically attempt to dial at intervals of seconds until the
connection is established. The automatic dialing function is independent of the trigger
1-13
Command Manual – Dial-up
Comware V3 Chapter 1 DCC Configuration Commands
with data packets and the established connection will not be automatically cut for
timeout. That is, the configuration of the dialer timer idle command does not affect it.
Related command: dialer route.
Example
Syntax
View
Parameter
Seconds: Idle interval when contention occurs, ranges from 0 to 65535 seconds. By
default, the idle interval is 20 seconds.
Description
Use the dialer timer compete command to configure an idle interval for an interface
after call contention occurs on the interface.
Use the undo dialer timer compete command to restore the default interval.
Contention occurs if no free channel is available when DCC tries to originate a call.
Normally, after a link is set up, timer idle timing will take effect. However, if a call to a
different destination address is to be originated on this interface under the contention
circumstances, DCC replaces the timer idle timing with the timer compete timing.
Example
# Set timer idle and timer compete respectively to 50 seconds and 10 seconds on
Serial 0/0/0.
[H3C-Serial0/0/0] dialer timer idle 50
[H3C-Serial0/0/0] dialer timer compete 10
Syntax
1-14
Command Manual – Dial-up
Comware V3 Chapter 1 DCC Configuration Commands
View
Parameter
seconds: Interval for originating the next call, ranges from 5 to 65535 seconds. By
default, the interval is 5 seconds.
Description
Use the dialer timer enable command to configure an interval for the next call attempt
on an interface after the link is disconnected.
Use the undo dialer timer enable command to restore the default interval.
Example
# Set the interval for DCC to make the next call attempt to 15 seconds.
[H3C-Serial0/0/0] dialer timer enable 15
Syntax
View
Parameter
seconds: Time that a link is allowed to be idle, ranges from 0 to 65535 seconds. By
default, seconds is 120 seconds.
Description
Use the dialer timer idle command to configure the interval that a link is allowed to be
idle (in other words, the interval when there is no packets which comply with the
“permit” statements transmitted) after a call has been set up on the interface.
Use the undo dialer timer idle command to restore the default duration.
After a link is set up, the timer idle timer will take effect. If no interesting packets are
transmitted on the link within the specified time, DCC will automatically disconnect the
link. If timer idle is set to 0, the link will never be disconnected, regardless of whether
there are no packets, which comply with the “permit” statements, to be transmitted over
the link or not.
1-15
Command Manual – Dial-up
Comware V3 Chapter 1 DCC Configuration Commands
Example
Syntax
View
Parameter
seconds: Waiting time in seconds, ranges from 0 to 65535. By default, the time waiting
for a call connection is 60 seconds.
Description
Use the dialer timer wait-carrier command to configure the timeout time of
wait-carrier timer.
Use the undo dialer timer wait-carrier command to restore the default time of the
timer.
Wait-carrier timer begins to time after the DCC call is initiated. If the call connection fails
to be set up within the timeout time of this timer, the call will be terminated.
If the connection for a call is not established yet within the specified time, DCC will
terminate the call.
Example
# Set the maximum duration of the time that Serial 0/0/0 waits for call to establish to be
100 seconds.
[H3C-Serial0/0/0] dialer timer wait-carrier 100
Syntax
View
System view
1-16
Command Manual – Dial-up
Comware V3 Chapter 1 DCC Configuration Commands
Parameter
Description
Use the dialer timer warmup command to set the length of the warmup timer on the
router configured with the dial-up backup function. It is the time that the router must wait
for bringing the dial-up backup function into effect after a reboot.
Use the dialer timer warmup command to restore the default.
When the router reboots, it tries to dial the backup link only if the main link fails to come
up upon timeout of the warm-up timer. After the main link comes up, the router switches
traffic to it automatically.
Example
Syntax
View
Parameter
Description
Use the dialer user command to configure remote user name for authenticating
requests when calls are received.
Use the undo dialer user command to cancel the remote user name.
By default, no remote user name is set.
This command is only valid on dialer interfaces of Resource-Shared DCC.
Up to 255 Dialer users can be set on one Dialer interface. When one Dialer interface is
configured with multiple users, multiple physical interfaces can access this Dialer
interface.
1-17
Command Manual – Dial-up
Comware V3 Chapter 1 DCC Configuration Commands
When a Dialer interface encapsulates PPP, the remote user that have passed PPP
authentication decides the Dialer interface that receives calls. In this case, you the
option to configure dialer number command.
Related command: ppp pap local-user, ppp chap user.
Example
1.1.22 dialer-group
Syntax
dialer-group group-number
undo dialer-group
View
Parameter
group-number: sequence number of dialer access number, ranges from 1 to 255. This
group is set through the dialer-rule command.
Description
Use the dialer-group command to configure access control on the packets transmitted
on a DCC interface and to place the interface in an access control group.
Use the undo dialer-group command to cancel the interface from united with the
access control group.
By default, this command is not configured.
This command is used for associating a physical interface with an access control group.
Through the dialer-rule command, the user can associate an access control group
with the acl command. A DCC interface can only be the member of an access control
group. If it is configured to be a member of another access control group, this
configuration will replace the previous one.
Note:
In the default configuration of the interface, dialer-group is not configured. The user
must configure this command. Otherwise, DCC will be unable to transmit packets.
1-18
Command Manual – Dial-up
Comware V3 Chapter 1 DCC Configuration Commands
Example
1.1.23 dialer-rule
Syntax
View
System view
Parameter
Description
Use the dialer-rule command to configure the conditions of the data packet that can
trigger a DCC call.
Use the undo dialer-rule command to cancel the setting.
By default, no conditions of packet-triggering DCC calls are set for dial interfaces.
This command is used to set the DCC call packet-triggering control to which an access
control group corresponds. And a dial interface can be placed in an access control
group through the dialer-group command. Thereby, the DCC call’s packet-triggering
on the DCC interface can be controlled.
If an access control group cannot find the corresponding dialer-rule, DCC will regard
the packets as packets which do not comply with the “permit” conditions in ACL rule and
just drop them. No DCC call will be originated.
1-19
Command Manual – Dial-up
Comware V3 Chapter 1 DCC Configuration Commands
Example
# Set a dialer-rule.
[H3C] acl number 3101
[H3C-acl-adv-3101] rule permit ip source 0.0.0.0 255.255.255.255 destination
0.0.0.0 255.255.255.255
[H3C-acl-adv-3101] quit
[H3C] dialer-rule 1 acl 3101
[H3C] interface serial1/0/0
[H3C-Serial1/0/0] dialer-group 1
Syntax
View
Any view
Parameter
Description
Example
1-20
Command Manual – Dial-up
Comware V3 Chapter 1 DCC Configuration Commands
Field Description
Remote address associated with a dialer route on the
NextHop address
interface
Dialer Number Dial string corresponding to the dialer route
Dialer Timers(Secs) Setting of the dialer timer
Auto-dial Time set by the dialer timer autodial command
Compete Time set by the dialer timer compete command
Enable Time set by the dialer timer enable command
Idle Time set by the dialer timer idle command
Wait for carrier Time set by the dialer timer wait-carrier command
Total Channels Total number of channels
Syntax
View
System view
Parameter
number: Interface number; its value range varies with router model.
Description
Use the interface dialer command to create a dialer circular group for the Circular
DCC, or configure a dialer interface for the Resource-Shared DCC.
Use the undo interface dialer command to cancel the existing setting.
By default, no dialer interface is defined.
In Resource-Shared DCC, any dialer interface can use the services provided by
multiple physical interfaces, and individual physical interfaces can provide services for
multiple dialer interfaces at the same time. Therefore, authentication must be
configured on these physical interfaces, so as to use the user name of a dial-in party to
locate the corresponding dialer interface for the call. In this mode, physical interfaces
1-21
Command Manual – Dial-up
Comware V3 Chapter 1 DCC Configuration Commands
and dialer interfaces are dynamically bound. Furthermore, a dialer interface can only
call a destination address, which will be specified in the dialer number command.
The physical interfaces in Circular DCC and Resource-Shared DCC do not use
individual network addresses. Instead, they use the addresses of the corresponding
dialer interfaces.
Example
1.1.26 flow-interval
Syntax
flow-interval interval
undo flow-interval
View
System view
Parameter
interval: Traffic statistic interval. It is in the range 1 to 1500 seconds and defaults to 20
seconds.
Description
Example
1-22
Command Manual – Dial-up
Comware V3 Chapter 1 DCC Configuration Commands
Syntax
View
Parameter
Description
Use the ppp callback command to enable an interface to send or accept PPP callback
requests.
Use the undo ppp callback command to disable the interface to send or accept PPP
callback requests.
By default, sending or receiving callback request is disabled.
The callback function can be used to save the communication cost for the calling party
in the case that the calling party pays the charge for calls.
Related command: ppp callback ntstring.
Example
Syntax
View
Parameter
dial-number: Dial number for a Windows NT server to call back the router.
1-23
Command Manual – Dial-up
Comware V3 Chapter 1 DCC Configuration Commands
Description
Use the ppp callback ntstring command to configure the dial number required for a
Windows NT server to call back the router.
Use the undo ppp callback ntstring command to cancel the configured callback dial
number.
By default, no callback dial number is set for the Windows NT server.
When a router functions as the callback server to call a Windows NT server, this
command should be configured if the server needs the router to send the callback
number.
Related command: ppp callback.
Example
# Set the dial number for a Windows NT server to call back the router to “2489”.
[H3C-Dialer1] ppp callback NTString 2489
1-24
Command Manual – Dial-up Chapter 2 Dynamic Routing Standby Configuration
Comware V3 Commands
Syntax
View
Parameter
seconds: Delay for the dynamic routing standby module to disconnect the secondary
link. It is in the range 1 to 65535 and defaults to 0.
Description
Use the standby timer routing-disable command to specify a delay for the secondary
link to be disconnected after the primary link goes up to avoid route oscillation.
Use the undo standby timer routing-disable command to restore the default delay,
that is, 0.
By default, the secondary link is disconnected immediately.
Note:
A dial interface refers to a physical dial interface such as PRI and BRI, or a logical dial
interface, that is, dialer interface.
Example
# On the interface BRI 0/0/0 disconnect the secondary link five seconds after the
primary link resumes.
[H3C-Bri0/0/0] standby timer routing-disable 5
2-1
Command Manual – Dial-up Chapter 2 Dynamic Routing Standby Configuration
Comware V3 Commands
# On the interface BRI 0/0/0 disconnect the secondary link immediately after the
primary link resumes.
[H3C-Bri0/0/0] undo standby timer routing-disable
Syntax
View
Parameter
group-number: Number of the dynamic routing standby group, ranging from 1 to 255.
Description
Use the standby routing-group command to apply a dynamic routing standby group
on the secondary interface.
Use the undo standby routing-group command to remove the dynamic routing
standby group from the dialer interface.
Before applying a dynamic routing standby group on the interface, make sure you have
successfully configured the legacy DCC.
Example
# Remove dynamic routing standby group 1 from the interface BRI 0/0/0.
[H3C-Bri0/0/0] undo standby routing-group 1
Syntax
View
System view
2-2
Command Manual – Dial-up Chapter 2 Dynamic Routing Standby Configuration
Comware V3 Commands
Parameter
group-number: Number of the dynamic routing standby group, ranging from 1 to 255.
ip-address: Address of the network segment to be monitored, or the destination
address of the call placed after standby dialup is enabled.
ip-mask: IP address mask.
Description
Use the standby routing-rule command to create a dynamic routing standby group
and assign a monitored network segment to it.
Use the undo standby routing-rule command to delete a monitored network segment
from the specified dynamic routing standby group or to delete the dynamic routing
standby group.
If the network address or subnet mask is not configured properly on a monitored
network segment, the system will display the following output:”% Invalid IP address or
subnet mask!”
Note:
Each dynamic routing standby group may contain up to 255 monitored network
segments. The primary link of a dynamic routing standby group is regarded
disconnected only when the routes of all the monitored network segments in the group
are removed.
Example
# Delete dynamic routing standby group 1. The segments 20.0.0.0 and 30.0.0.0 will not
be monitored as the result.
[H3C] undo standby routing-rule 1
2-3
Command Manual – Dial-up
Comware V3 Chapter 3 Modem Configuration Commands
Syntax
debugging modem
View
User view
Parameter
None
Description
Example
None
3.1.2 modem
Syntax
View
User-interface view
Parameter
Description
Use the modem command to enable modem call-in and call-out on the interface.
3-1
Command Manual – Dial-up
Comware V3 Chapter 3 Modem Configuration Commands
Use the undo modem and undo modem both command to disable modem call-in and
call-out.
Use the undo modem [ call-in | call-out ] command to disable modem call-in or
call-out.
By default, both modem call-in and call-out are disabled on the interface.
This command can be used to set the authority of Modem dial-in and dial-out on an
interface.
Example
Syntax
modem auto-answer
undo modem auto-answer
View
Parameter
None
Description
Use the modem auto-answer command to have the external modem connected to the
asynchronous interface automatically answer or hook off.
Use the undo modem auto-answer command to disable the connected external
modem to answer automatically. In this case, the modem answers only when receiving
an AT instruction sent by software.
By default, the connected external modem is set to non-auto answer mode.
Use this command depending on the answer state of the connected external modem.
When the modem is in auto-answer mode (AA LED of the modem lights), configure the
modem auto-answer command to prevent the router from sending an answer
instruction after the modem answers automatically. If the modem is in non-auto answer
mode, configure the undo modem auto-answer command.
3-2
Command Manual – Dial-up
Comware V3 Chapter 3 Modem Configuration Commands
Note:
If the configuration of this command is not consistent with the current answer state of
the connected modem, anomalies may occur.
Example
# Set the answer mode of the modem connected to the asynchronous serial interface
UI-TTY1 to auto.
[H3C-ui-tty1] modem auto-answer
Syntax
View
Parameter
Description
Use the script trigger dial command to configure the Modem script that is used for
DCC dialing.
Use the undo script trigger dial command to cancel the feature.
By default, the system does not specify the script.
If this command is configured, the specified script will be executed for DCC dialing.
Related command: script-string, script trigger login, script trigger connect, script
trigger logout.
Example
3-3
Command Manual – Dial-up
Comware V3 Chapter 3 Modem Configuration Commands
3.1.5 script-string
Syntax
View
System view
Parameter
Description
3-4
Command Manual – Dial-up
Comware V3 Chapter 3 Modem Configuration Commands
the execution of the subsequent script, which will be otherwise terminated, will
continue.
z If the last string is a sending string, it indicates that the execution of the script will
be terminated after the string is sent without waiting for any receiving string.
z If the beginning of the script needs no sending string, but need to wait for receiving
string directly, the first string can be set as “”, the meaning of which will be
explained later.
z Except for ending with \c, the sending string will be automatically added with a
return to its end whenever it is sent.
z A receiving string is matched via the location-independent matching method. That
is, a match is considered successful as long as the received contents contain the
expected string.
z Concerning the match of receiving string, there can be multiple expected receiving
strings. The match operation on a receiving string will be considered successful if
the receiving string is matched with any expected receiving strings which are
separated by hyphens (“-“).
z The default timeout time waiting for a receiving string is 5 seconds. TIMEOUT
seconds can be inserted into the script to adjust the timeout time waiting for the
receiving string, which is valid till a new TIMEOUT is set in the same script. For its
meanings, refer to the following table.
Keyword Description
The string following ABORT will be compared with the
string sent from a Modem or a remote DTE device for a
ABORT receive-string full match. Multiple ABORT entries can be configured for a
script, and all of them take effect in the whole script
execution period.
The digit following TIMEOUT is used to set the timeout
interval that the device waits for receiving strings. If no
TIMEOUT seconds expected strings are received within the interval, the
execution of the script will be failed. Once being set, the
setting will be valid till a new TIMEOUT is set.
3-5
Command Manual – Dial-up
Comware V3 Chapter 3 Modem Configuration Commands
Related command: sendat, start-chat, script trigger login, script trigger connect,
script trigger logout, script trigger dial, script trigger init.
Example
3.1.6 sendat
Syntax
sendat at-string
View
3-6
Command Manual – Dial-up
Comware V3 Chapter 3 Modem Configuration Commands
Parameter
at-string: AT command string. The string “+++”, “A/”, or any string that starts with AT is
allowed.
Description
Note:
You can use the AT command on a modem only when it is in the AT command mode, if
the modem is in data mode, the AT command sent by the sendat at-string command is
invalid.
Example
Syntax
service modem-callback
undo service modem-callback
View
System view
Parameter
None
Description
3-7
Command Manual – Dial-up
Comware V3 Chapter 3 Modem Configuration Commands
Use the undo service modem-callback command to disable the callback function of
modems.
When a modem line is active, that is, when the modem detects the carrier or data is
being received, you may enable callback. As the service modem-callback command
uses modem scripts to implement callback before entering PPP, it enables callback
before accounting is started. This can thus help you save cost.
Example
3.1.8 start-script
Syntax
View
User view
Parameter
Description
Use the start-script command to configure executing the specified Modem script on an
interface.
This command provides the user with means of instantly executing the Modem script. If
another script is being executed on the corresponding interface, this command will not
be executed and an error will be reported.
Related command: script-string.
Example
3-8
Voice
Command Manual – Voice
Comware V3 Table of Contents
Table of Contents
i
Command Manual – Voice
Comware V3 Table of Contents
ii
Command Manual – Voice
Comware V3 Table of Contents
iii
Command Manual – Voice
Comware V3 Table of Contents
iv
Command Manual – Voice
Comware V3 Table of Contents
v
Command Manual – Voice
Comware V3 Table of Contents
vi
Command Manual – Voice
Comware V3 Table of Contents
vii
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
Syntax
View
Parameter
ip ip-address: Indicate a VoIP dial entity session destination, i.e. the called IP address.
ras: Router uses RAS recommendation to interact information with GK Server to map
the called phone number to the IP address of peer voice gateway. It is used only in the
networking configuration that uses GK (gatekeeper) to provide voice IP services.
Description
Use the address command to configure the voice routing policy to the peer voice
gateway.
Use the undo address command to cancel the voice routing policy that has been
configured.
By default, no routing policy is configured.
This command is used to configure the network address for the VolP voice entity. The
system supports the following two VolP routing policies at present.
z Static routing policy: Find the IP address of destination voice gateway in static
mode according to address ip ip-address command.
z Dynamic routing policy: The router and GK Server interact with RAS information
after the address ras command is configured. GK will dynamically send back the
peer voice gateway address that matches the called number to the router.
Related command: address sip, match-template.
Example
1-1
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
1.1.2 area
Syntax
View
Parameter
Description
Use the area command to configure the type of busy tone detection for FXO voice
subscriber-line.
Use the undo area command to restore the default value.
By default, europe busy tone type standard is set.
This command is used only for 2-wire loop trunk subscriber-line FXO, and it can only
perform configuration to the first voice subscriber-line on the voice card. If successful,
the configuration will be effective for all the voice subscriber-lines of the voice card.
When this subscriber-line is connected to a common user line of a program-controlled
switch, if the user on the switch side hooks on first, only by detecting the busy tone can
the router know the user on-hooking operation. Since different switches execute
different prompt tone schemes, there exist different frequency spectrum characteristics.
This command is used to set the frequency spectrum characteristic used by the router
to detect the existence of the busy tone.
Example
# Use north-america standard to detect the existence of the busy tone on voice
subscriber-line 0/0/1.
[H3C-voice-line0/0/1] area north-america
1-2
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
Syntax
area-id string
undo area-id
View
Parameter
string: Area ID, an integer in the range of 0 to 9. The “#” can be used.
Description
Example
# Configure the VoIP voice entity 101 with the area ID 6#.
[H3C-voice-dial-entity101] area-id 6#
1.1.4 busytone-t-th
Syntax
busytone-t-th time-threshold
undo busytone-t-th
View
Parameter
time-threshold: Threshold of busy tone detection. It ranges from 2 to 12, with a bigger
value meaning longer detection time. The threshold defaults to 2, that is, the device
hangs up upon two contiguous detections of busy tone.
Description
Use the busytone-t-th command to configure the threshold of busy tone detection.
1-3
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
Example
1.1.5 caller-permit
Syntax
caller-permit calling-string
undo caller-permit { calling-string | all }
View
Parameter
Character Meaning
1-4
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
Character Meaning
A wildcard. It can match any digit of a valid number. For
. example, 555. . . . matches any string that begins with 555 and
with four additional characters.
The character or characters right in front of it does not appear
! or appears once. For example, 56!1234 can match 51234 and
561234.
The character or characters right in front of it appears once or
+ several times. But its appearance at the beginning of the whole
number means the number is E.164-compliant.
Hyphen. It connects two values (the smaller one before it and
- the bigger one after it) to indicate a range. For example, “1-9”
means numbers from 1 to 9 (inclusive).
The character or characters right in front of it does not appear,
%
or appears once or several times.
Selects one character from the group. For example, [1-36A]
[]
can match only one character among 1, 2, 3, 6, and A.
Note:
z The character or characters in front of "!”, “%”, and “+” are not to be matched
accurately. They are handled similar to the wildcard “.”. Moreover, these symbols
cannot be used alone. There must be a valid digit or digits in front of them.
z If you want to use “[ ]” and “( )” at the same time, you must use them in the format
“( [ ] )”. Other formats, such as “[ [ ] ]” and “[ ( ) ]” are illegal.
z “-“ can only be used inside “[ ]”, and it only connects the same type of characters,
such as “0-9”. The formats like “0-A” are illegal.
Description
Use the caller-permit command to configure the calling numbers that are permitted to
call in.
Use the undo caller-permit command to delete the calling numbers that are permitted
to call in.
By default, no calling number is configured. That means there is no limitation on calling
numbers.
1-5
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
You can configure 32 calling numbers for a voice entity at most. If you only use “$”,
empty calling numbers are permitted to call in.
Related command: match-template.
Example
# Configure voice entity 2 to permit 660268 or empty calling numbers to call in.
[H3C-voice-dial-entity2] caller-permit 660268$
[H3C-voice-dial-entity2] caller-permit $
# Configure voice entity 2 to permit the calling numbers beginning with 20 to call in.
[H3C-voice-dial-entity2] caller-permit 20
Syntax
cid display
undo cid display
View
Parameter
None
Description
Example
1-6
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
Syntax
cid enable
undo cid enable
View
Parameter
None
Description
Use the cid enable command to enable CID on the FXO interface.
Use the undo cid enable command to disable CID on the FXO interface.
By default, CID is enabled on the FXO interface.
This command applies to FXO voice subscriber-lines only.
With CID enabled, the FXO interface can receive the modulated caller identification
data from an analog line between the first ring and second rings and then send the data
demodulated with FSK to the IP side.
With CID disabled, the local FXO interface does the following when the calling party
sends a calling number:
z If a number is configured in the match template for the POTS entity associated
with the local FXO interface, the interface substitutes this number for the calling
number and sends it to the called side.
z If wildcard dots (.) are used in the number configured in the match template for the
POTS entity associated with the local FXO interface, the interface substitutes
zeros for the calling number’s digits in the place of dots, for example, 1000 for 1…
and then sends the substitution number to the called side.
Example
Syntax
cid send
undo cid send
1-7
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
View
Parameter
None
Description
Use the cid send command to enable the FXO or FXS module to send calling numbers
to the IP side.
Use the undo cid send command to disable the FXO or FXS module to send calling
numbers to the IP side.
By default, calling numbers are sent to the IP side.
This command applies to FXS and FXO subscriber-lines only.
After you configure the undo cid send command, the FXO interface does not send any
number to the called side, regardless of whether the calling party has sent a calling
number and regardless of whether a number is configured in the match template for the
voice entity associated with the FXO interface.
Example
# Enable the FXO voice subscriber-line 3/0/0 to send calling numbers to the IP side.
[H3C-voice-line3/0/0] cid send
# Disable the FXS voice subscriber-line 1/0/0 to send calling numbers to the IP side.
[H3C-voice-line1/0/0] undo cid send
Syntax
View
Parameter
1-8
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
Description
Use the cid type command to configure the format of transmitted information about the
calling party.
Two formats are available: multiple data message format (MDMF) and single data
message format (SDMF). When the remote end supports one format only, you must
use the same setting at the local end.
This command applies to both FXO and FXS subscriber-lines.
Example
# Set the format of the transmitted caller identification information to SDMF on voice
subscriber line 1/0/0.
[H3C-voice-line1/0/0] cid type simple
1.1.10 cng-on
Syntax
cng-on
undo cng-on
View
Parameter
None
Description
Example
1-9
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
1.1.11 compression
Syntax
View
Parameter
1-10
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
Description
Use the compression command to configure the voice coding method according to
priority level.
Use the undo compression command to restore the default value.
By default, g729r8 coding mode is set.
g711alaw and g711ulaw coding provide high-quality voice transmission, while
requiring greater bandwidth.
g726r16, g726r24, g726r32, and g726r40 are widely adopted now for voice coding.
They use the ADPCM technology and provide multiple bandwidth options.
g723r53 and g723r63 coding provide silence suppression technology and comfort
noise, the relatively higher speed output is based on multi-pulse multi-quantitative level
technology and provides relatively higher voice quality to certain extent, and the
relatively lower speed output is based on the Algebraic-Code-Excited Linear-Prediction
technology and provides greater flexibility for application.
The voice quality provided by the g729r8 and g729a coding is similar to the ADPCM of
32 kbps, having the quality of a toll, and also featuring low bandwidth, lesser event
delay and medium processing complexity, hence it has a wide field of application.
clear-channel is clear channel transmission, which is a kind of data transmission
technology via VOIP. The data received from BRI or PRI is sent to IP network after
encapsulation without being dealt with.
The following table describes the relation between codec algorithms and bandwidth.
Usually, 8000 Hz is adopted to collect voice samples. The bandwidth without
compression is 64 kbps, and it is compressed using the ITU-T G series codec
algorithms. The table also shows the compression ratio.
Actual network bandwidth is related to packet assembly interval and network structure.
The longer the packet assembly interval is, the closer the network bandwidth is to the
media stream bandwidth. More headers consume more bandwidth. Longer packet
assembly interval results in longer fixed coding latency.
1-11
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
The following tables show the relevant packet assembly parameters without IPHC
compression, including packet assembly interval, bytes coded in a time unit, and
network bandwidth, etc. Thus, you can choose a suitable codec algorithm according to
idle and busy status of the line and network situations more conveniently.
1-12
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
G.726 r16 algorithm: media stream bandwidth 16 kbps, minimum packet assembly
interval 10 ms.
1-13
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
1-14
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
Note:
z Packet assembly interval is the duration to encapsulate information into a voice
packet.
z Bytes coded in a time unit = packet assembly interval X media stream bandwidth.
z Packet length (IP) = IP header + RTP header + UDP header + voice information
length = 20+12+8+data
z Packet length (IP+PPP) = PPP header + IP header + RTP header + UDP header +
voice information length = 6+20+12+8+data
z Network bandwidth = Bandwidth of the media stream X packet length / bytes coded
in a time unit
After IPHC+PPP
Before compression
Bytes compression
Coding
coded in a Packet Network Packet Network
modes
time unit length bandwidth length bandwidth
IP+PPP IP+PPP IP+PPP IP+PPP
G.729 30 76 20.3 kbps 34 9.1 kbps
G.723r63 24 70 18.4 kbps 28 7.4 kbps
1-15
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
Example
# Configure to select g723r53 compression method first, then to select the g729r8
compression method.
[H3C-voice-dial-entity1] compression 1st-level g723r53
[H3C-voice-dial-entity1] compression 2nd-level g729r8
1.1.12 cptone
Syntax
View
Parameter
Locale: Country mode, sets the prompt tone played on the current voice subscriber-line
to the specified country or area mode. Now, it supports up to 62 countries or areas.
cs: Custom, sets the prompt tone played on the current voice subscriber-line to the
customer-defined mode.
Type: Tone type, Now, it supports the following: dial-tone, special-dial-tone, busy-tone,
congestion tone, ringback-tone, waiting-tone.
all: All types of tone.
amplitude value: Sets the tone amplitude, in the range 200 to 2000. Sets the tone
amplitude for each tone type: busy-tone and congestion-tone default to 1000, the
others default to 600.
1-16
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
HU Hungary
IS Iceland
IN India
ID Indonesia
IR Iran
IE Ireland
IEU Ireland UK style
IL Israel
IT Italy
JP Japan
JO Jordan
KE Kenya
KR Korea Republic
LB Lebanon
LU Luxembourg
MY Malaysia
MX Mexico
NP Nepal
NL Netherlands
1-17
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
ZA South Africa
ES Spain
SE Sweden
CH Switzerland
TH Thailand
TR Turkey
GB United Kingdom
US United States
UY Uruguay
ZW Zimbabwe
Description
Use the cptone command to set the prompt tone played on the current voice
subscriber-line to the specified country mode or customer-defined mode.
Use the undo cptone command to restore the default, that is, CN.
1-18
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
Note:
The command will be valid for all the voice ports on the veneer of the current voice
subscriber-lines.
Example
Syntax
View
User view
Parameter
Description
Example
1-19
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
Syntax
debugging voice data-flow { all | verbose | error | fax | fax-error | jitter | jitter-error
| receive | send | vpp }
View
User view
Parameter
Description
Use the debugging voice data-flow command to enable debugging for voice data
processes.
Use the undo debugging voice data-flow command to disable the debugging.
Example
Syntax
View
User view
1-20
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
Parameter
Description
Use the debugging voice dpl command to enable the debugging of voice dial
program.
Use the undo debugging voice dpl command to disable the debugging.
Example
Syntax
View
User view
Parameter
Description
Use the debugging voice h225 command to enable debugging for the H.225.0
negotiation messages or events.
Use the undo debugging voice h225 command to disable the debugging.
Example
Syntax
1-21
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
View
User view
Parameter
Description
Use the debugging voice h245 command to enable debugging for the H.245
negotiation messages or events.
Use the undo debugging voice h245 command to disable the debugging.
Example
Syntax
debugging voice ipp { all | error | rtp-rtcp | socket | vcc | vpp | x691 }
View
User view
Parameter
Description
Use the debugging voice ipp command to enable H.323 recommendation suite
module debugging.
Use the undo debugging voice ipp command to disable this debugging.
Example
1-22
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
Syntax
View
User view
Parameter
Description
Use the debugging voice rcv command to enable the debugging of the RCV module.
Use the undo debugging voice rcv command to disable the debugging.
Example
Syntax
debugging voice vas { all | buffer | cid | command | dsp | em | error | fax | line | rcv
| receive | send }
View
User view
1-23
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
Parameter
Description
Use the debugging voice vas command to enable the VAS module debugging.
Use the undo debugging voice vas command to disable the debugging.
Example
Syntax
View
User view
Parameter
1-24
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
Description
Use the debugging voice vmib command to enable the voice MIB module debugging.
Use the undo debugging voice vmib command to disable the debugging.
Example
Syntax
debugging voice vpp { all | codecm | error | ipp | r2 | rcv | timer | vas | vcc }
View
User view
Parameter
1-25
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
Description
Use the debugging voice vpp command to enable the debugging of the VPP module.
Use the undo debugging voice vpp command. you can disable the debugging switch.
Example
Syntax
View
Parameter
Description
Use the default entity compression command to globally configure the mode of
coding and decoding as the default value.
Use the undo default entity compression command to restore the fixed value (i.e.
g729r8 code mode) in the system as the default value.
By default, the mode of coding and decoding is g729r8 coding mode.
The default entity compression command can be used to globally configure the
default value of the voice coding and decoding. In this case, all the voice entities and
newly created voice entities on this router, which have not been configured with this
function will inherit this configuration.
Related command: compression.
Example
# Adopt the g723r53 coding and decoding mode as the first selection globally.
[H3C-voice-dial] default entity compression 1st-level g723r53
1-26
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
Syntax
View
Parameter
None
Description
Use the default entity normal-connect slow-h245 command to globally disable the
calling end from actively initiating an H245 connection request to the called end before
the called end is hooked off.
Use the undo default entity normal-connect slow-h245 command to restore the
default value (that is, to allow the calling end to actively initiate an H245 connection
request to the called end before the called end is hooked off.).
By default, the calling end is allowed to actively initiate an H245 connection request to
the called end before the called end is hooked off.
Use the default entity normal-connect slow-h245 command to default to globally
disable the calling end from actively initiating the H245 connection request to the called
end before the called end is hooked off. In this case, all newly created voice entities and
voice entities which have not been configured with this function will inherit this
configuration.
Related command: normal-connect slow-h245.
Example
# Configure to globally disable the calling end from actively initiating an H245
connection request to the called end before the called end is hooked off.
[H3C-voice-dial] default entity normal-connect slow-h245
Syntax
1-27
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
View
Parameter
g711: Specifies the time length of voice packets with g711 coding. It can be 10
milliseconds, 20 milliseconds (the default), or 30 milliseconds.
g723: Specifies the time length of voice packets with g723 coding, in the range 30 to
180 milliseconds. It defaults to 30 milliseconds.
g726r16: Specifies the time length of voice packets with g726r16 coding. It ranges from
10 to 110 milliseconds and defaults to 30 milliseconds.
g726r24: Specifies the time length of voice packets with g726r24 coding. It ranges from
10 to 70 milliseconds and defaults to 30 milliseconds.
g726r32: Specifies the time length of voice packets with g726r32 coding. It ranges from
10 to 50 milliseconds and defaults to 30 milliseconds.
g726r40: Specifies the time length of voice packets with g726r40 coding. It ranges from
10 to 40 milliseconds and defaults to 30 milliseconds.
g729: Specifies the time length of voice packets with g729 coding, in the range10 to
180 milliseconds. It defaults to 20 milliseconds.
Description
Use the default entity payload-size command to configure the default time length of
voice packets with different coding formats.
Use the undo default entity payload-size command to restore the default.
Example
# Set the time length of voice packets with G.711 coding to 30 milliseconds.
[H3C-voice-dial] default entity payload-size g711 30
Syntax
View
Parameter
None
1-28
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
Description
Use the default entity service data command to globally configure enabling data call
service.
Use the undo default entity vad-on command to disable the global data call service.
By default, the global data call service is disabled.
Example
Syntax
View
Parameter
None
Description
Use the default entity vad-on command to globally configure enabling silence
detection as the default value.
Use the undo default entity vad-on command to restore the fixed value (i.e. disabling
the silence detection) to be the default value.
By default, the silence detection is disabled.
The default entity vad-on command is used to globally configure enabling silence
detection as the default value. In this case, all the voice entities and newly created
voice entities on this router, which have not been configured with this function, will
inherit this configuration.
Related command: vad-on.
Example
1-29
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
1.1.28 delay
Syntax
View
Parameter
dtmf milliseconds: Lasting duration of a DTMF signal on the FXO interface, which is in
the range of 50 to 500ms and defaults to 120ms.
dtmf-interval milliseconds: Interval between two DTMF signals on the FXO interface,
which is in the range of 50 to 500ms and defaults to 120ms.
start-dial seconds: Delay for dialing on the FXO interface. It ranges from 0 to 10
seconds and defaults to 1 second.
Description
Use the delay command to configure the relevant time parameters on an FXO or
analog E&M subscriber-line.
Use the undo delay command to restore the default values of these time parameters.
All the commands listed above are used for configuring the device of a calling party and
hence are only useful for the calling party.
Related command: timer.
Example
1.1.29 delay-reversal
Syntax
delay-reversal seconds
undo delay-reversal
View
1-30
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
Parameter
Description
Example
Syntax
description string
undo description
View
Parameter
string: Voice entity description string, with length ranging from 1 to 64 characters.
Description
Example
1-31
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
Syntax
description string
undo description
View
Parameter
Description
Example
1.1.32 dial-prefix
Syntax
dial-prefix string
undo dial-prefix
View
1-32
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
Parameter
string: Prefix code, a number of fixed length. The string is composed of any characters
from “0123456789 #*”, with the largest length of 31 characters. The meanings of the
characters are shown in the following table.
Character Means
Description
Use the dial-prefix command to configure the prefix of the telephone number dialed by
the voice entity.
Use the undo dial-prefix command to cancel the prefix of the telephone number dialed
by the voice entity.
This command only applies to the configuration of POTS voice entity. And the
dial-prefix command only applies to FXO, BSV and analog E&M interface. Whether to
send a second stage dialing tone is determined by the configuration of the PBX
connected to the router.
When a router with which a voice function is configured receives a voice call, it makes a
comparison between the number configured in the match-template of its own POTS
voice entity and the number received, and selects one POTS voice entity to continue
the call processing.
If send-number is set to its default value (truncate), the router will remove from the
called number the string that matches the match-template beginning from the left. If
the dial-prefix command is configured, the prefix will be added in front of the rest of the
called number. The router will initiate a call according to the new number string. For
example, supposing that the called number is 0102222, the called number template of
the voice entity that is configured by match-template is 010…., and the dial prefix is 0,
then “010” that accurately matches the template will be removed, and the rest part
“2222” will be added a prefix “0”. The router initiates a call to the new number 02222.
If the number with the added prefix contains more than 31 digits, only the first 31
characters will be sent.
Related command: match-template and send-number.
The router will remove the string of the called number that matches the match-template
starting from the left. If a dial-prefix is configured, the prefix will be added before the
1-33
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
remaining number string, and the router will make a call according to the new string
generated.
Suppose the called number is 0102222, the 010 on the left will be deleted because of
matching with the match-template. The remaining 2222 will be added with a prefix “0”
and will be dialed out again, that is, the number called by the router is 02222.
This command is used only for the POTS voice entity configuration. It is valid only for
FXO and E&M subscriber-lines.
Related command: match-template.
Example
# Use 0 as a prefix.
[H3C-voice-dial-entity3] dial-prefix 0
1.1.33 dial-program
Syntax
dial-program
View
Voice view
Parameter
None
Description
Use the dial-program command to enter the voice dial program view.
Use the quit command to return to the voice view.
Example
Syntax
View
Any view.
1-34
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
Parameter
callednumber number: Displays the call history of the specified called number.
callingnumber number: Displays the call history of the specified calling number.
cardnumber number: Displays the call history of the specified card number.
last number: Specifies the number of the last call history entries to be displayed.
remote-ip-addr ip-address: Displays the call history of the remote IP address.
brief: Displays information briefly.
Description
Note:
The specified called number cannot be greater than the actual voice subscriber-line
number; otherwise, the input is invalid.
Example
1-35
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
Field Description
Subscriber-line Index number of the subscriber-line
type Interface type of the subscriber-line
Line state Line status of the subscriber-line
Total number of outgoing calls and number of
start outgoing call
successful outgoing calls on the subscriber-line
Total number of incoming calls and number of
receive incoming call
successful incoming calls on the subscriber-line
The most recent ten called numbers out the
the latest 10 called number
subscriber-line
Syntax
View
Any view
Parameter
Description
Use the display voice call-info command to view the call information table, including:
channel number of the call, reference counter of all voice modules, module ID in use,
list of the voice entities that can be selected by the current call, and the voice entity
used by the current call.
Example
1-36
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
Syntax
View
Any view
Parameter
None
Description
Use the display voice default command to view the current default values and the
system-fixed default values for voice and fax. For example, truncated called number is
used according to the default settings and system-fixed default settings.
1-37
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
Example
# Display the current default values and the system-default default values.
[H3C] display voice default all
default entity fax ecm off(system: off)
default entity fax protocol t38(system: t38)
default entity fax protocol t38 hb-redundancy 0(system: 0)
default entity fax protocol t38 lb-redundancy 0(system: 0)
default entity fax level 15(system: 15)
default entity fax local-train threshold 10(system: 10)
default entity fax baudrate voice(system: voice)
default entity fax nsf-on off(system: off)
default entity fax support-mode rtp(system: rtp)
default entity fax train-mode ppp(system: ppp)
default entity compression 1st-level g729r8(system: g729r8)
default entity compression 2nd-level g711alaw(system: g711alaw)
default entity compression 3rd-level g711ulaw(system: g711ulaw)
default entity compression 4th-level g723r53(system: g723r53)
default entity vad-on off(system: off)
default entity payload-size g711 20(system: 20)
default entity payload-size g723 30(system: 30)
default entity payload-size g726r16 30(system: 30)
default entity payload-size g726r24 30(system: 30)
default entity payload-size g726r32 30(system: 30)
default entity payload-size g726r40 30(system: 30)
default entity payload-size g729 30(system: 30)
Table 1-15 Description on the fields of the display voice default command
Field Description
fax ecm ECM mode is used for Fax
fax protocol Fax protocol for intercommunication
Number of high-speed redundant packets,
fax redundancy hb-redundancy
available for Fax protocol H.323-T.38 or T.38
Number of low-speed redundant packets,
fax redundancy lb-redundancy
available for Fax protocol H.323-T.38 or T.38
fax level Gateway carrier transmitting energy level
fax local-train threshold Fax local training threshold percentage
fax baudrate Highest Fax rate
1-38
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
Field Description
fax nsf-on Fax capacity negotiation mode
fax support-mode Fax transmission format
fax train-mode Fax training mode
compression 1st-level Voice coding mode of the first priority
compression 2nd-level Voice coding mode of the second priority
compression 3rd-level Voice coding mode of the third priority
compression 4rd-level Voice coding mode of the fourth priority
cancel-truncate Truncation of called number canceled
vad-on Voice entity VAD
fast connect Fast connection of the calling VoIP voice entity
payload-size g711 Voice entity packet assembly interval (G.711)
payload-size g723 Voice entity packet assembly interval (G.723)
payload-size g729 Voice entity packet assembly interval (G.729)
Syntax
View
Any view
Parameter
Description
Use the display voice entity command to view the configuration information of voice
entities of different types.
Usually, you can view the information of all the interfaces that are active in the router
and the global configuration by executing the display current-configuration
1-39
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
command. But it will display a great deal of information. So if you just want to view the
configuration information of voice entities, you can use the display voice entity
command.
Example
Syntax
View
Any view
Parameter
ccb: Displays information about the call control block in the IPP module.
channel: Displays information of a voice channel in the IPP module.
statistic: Displays statistics about the IPP module.
all: Displays all statistics about the IPP module.
h225: Displays statistics about H.225 messages.
h245: Displays statistics about H.245 messages.
1-40
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
Description
Use the display voice ipp command to view statistics about the IPP module.
Example
1-41
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
Recv_FacilityTCSRequest : 0
Recv_FacilityTCSAck : 0
Recv_FacilityTCSReject : 0
Recv_FacilityOLCRequest : 0
Recv_FacilityOLCAck : 0
Recv_FacilityOLCReject : 0
Recv_FacilityMSDRequest : 0
Recv_FacilityMSDAck : 0
Recv_FacilityMSDReject : 0
Recv_FacilityCLCRequest : 0
Recv_FacilityCLCAck : 0
Recv_Unknow : 0
}
Syntax
View
Any view
Parameter
Description
Example
1-42
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
Output-format : 1408
!
End
Syntax
View
Any view
Parameter
None
Description
Use the display voice rcv ccb command to view the information related to the call
control block in the RCV module.
This command is used to display the information related to the incoming and outgoing
call control block, the connection status of modules, the caller status, the caller
numbers and the called numbers, etc.
Example
# Display the information related to the call control block in the RCV module.
[H3C] display voice rcv ccb
RCV : CCB [ 1 ]
{
CallID : 0x0043
CallState : TALK
VCCID : 0x004f
VCCpState : IPPS_CONNECTED
CCID : 0xffff
CCState : CCS_CONNECTED
VasID : 0xffff
CallType : OUTGOING
CallAttribute : 0x00000000
CallSignaling : 0x00000002
EncodeType : 0x0000001f
E1Slot : 0xffffffff
E1Port : 0xffffffff
TimeSlot : 0xffffffff
ChannelID : 0x00000003
1-43
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
VpuState : VS_CONNECTED
VccTimer : 0x00000000
CcTimer : 0x00000000
VpuTimer : 0x00000000
CcChanMsg : 0x00000000
E1ChanMsg : 0x00000000
CallerNumber : 111
CalledNumber : 660010
prev : 0x00000000
next : 0x01409500
}
RCV : CCB [ 2 ] {
CallID : 0x0042
CallState : TALK
IppID : 0x004e
IppState : IPPS_CONNECTED
CcID : 0xffff
CcState : CCS_CONNECTED
VasID : 0x0039
CallType : INCOMING
CallAttribute : 0x00000000
CallSignaling : 0x00000004
EncodeType : 0x00000009
E1Slot : 0xffffffff
E1Port : 0xffffffff
TimeSlot : 0xffffffff
ChannelID : 0x00000000
VpuState : VS_CONNECTED
IppTimer : 0x00000000
CcTimer : 0x00000000
VpuTimer : 0x00000000
CcChanMsg : 0x00000000
E1ChanMsg : 0x00000000
CallerNumber : 111
CalledNumber : 660010
prev : 0x01409000
next : 0x00000000
}
1-44
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
Field Description
CCB [ ] Index of call control block
CallID Flag or Identifier of the calling
Index of the VCC software module control block for the
VCCID
calling
Status of the VCC software module control block for the
VCCState
calling
Index of the CC software module control block for the
CCID
calling
Status of the CC software module control block for the
CCState
calling
Index of the VAS software module control block for the
VASID
calling
CallType Type of the calling
CallAttribute Attribute of the calling
CallSignaling Signaling of the calling
1-45
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
Syntax
display voice rcv statistic { all | call | cc | error | proc | r2 | timer | vas | vcc | vpp }
View
Any view
Parameter
Description
Use the display voice rcv statistic command to view the statistics information of
calling between the RCV module and the CC module, VAS module, and so on.
Example
# Display the statistics information of calling between the RCV module and other
modules.
[H3C] display voice rcv statistic call
Statistic about RCV calls :
{
RCV_CC_ACTIVE_CALL : 0
RCV_CC_ACTIVE_CALL_SUCCEEDED : 0
RCV_CC_ACTIVE_CALL_FAILED : 0
RCV_CC_PASSIVE_CALL : 0
RCV_CC_PASSIVE_CALL_SUCCEEDED : 0
1-46
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
RCV_CC_PASSIVE_CALL_FAILED : 0
RCV_R2_ACTIVE_CALL : 5
RCV_R2_ACTIVE_CALL_SUCCEEDED : 2
RCV_R2_ACTIVE_CALL_FAILED : 3
RCV_R2_PASSIVE_CALL : 4
RCV_R2_PASSIVE_CALL_SUCCEEDED : 1
RCV_R2_PASSIVE_CALL_FAILED : 3
RCV_VAS_ACTIVE_CALL : 39
RCV_VAS_ACTIVE_CALL_SUCCEEDED : 11
RCV_VAS_ACTIVE_CALL_FAILED : 28
RCV_VAS_PASSIVE_CALL : 18
RCV_VAS_PASSIVE_CALL_SUCCEEDED : 15
RCV_VAS_PASSIVE_CALL_FAILED : 3
}
Table 1-17 Description on call statistics about RCV module and other module
Field Description
Number of active call between self and
RCV_CC_ACTIVE_CALL
CC module
RCV_CC_ACTIVE_CALL_SUCCEEDE Successful number of active call
D between self and CC module
Failing number of active call between
RCV_CC_ACTIVE_CALL_FAILED
self and CC module
Number of passive call between self and
RCV_CC_PASSIVE_CALL
CC module
RCV_CC_PASSIVE_CALL_SUCCEED Successful number of passive call
ED between self and CC module
Failing number of passive call between
RCV_CC_PASSIVE_CALL_FAILED
self and CC module
Number of active call between self and
RCV_R2_ACTIVE_CALL
R2 module
RCV_R2_ACTIVE_CALL_SUCCEEDE Successful number of active call
D between self and R2 module
Failing number of active call between
RCV_R2_ACTIVE_CALL_FAILED
self and R2 module
Number of passive call between self and
RCV_R2_PASSIVE_CALL
R2 module
RCV_R2_PASSIVE_CALL_SUCCEED Successful number of passive call
ED between self and R2 module
Failing number of passive call between
RCV_R2_PASSIVE_CALL_FAILED
self and R2 module
1-47
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
Field Description
Number of active call between self and
RCV_VAS_ACTIVE_CALL
VAS module
RCV_VAS_ACTIVE_CALL_SUCCEED Successful number of active call
ED between self and VAS module
Failing number of active call between
RCV_VAS_ACTIVE_CALL_FAILED
self and VAS module
Number of passive call between self and
RCV_VAS_PASSIVE_CALL
VAS module
RCV_VAS_PASSIVE_CALL_SUCCEE Successful number of passive call
DED between self and VAS module
Failing number of passive call between
RCV_VAS_PASSIVE_CALL_FAILED
self and VAS module
Syntax
View
Any view
Parameter
None
Description
Use the display voice sip register-state command to view the registration state about
the SIP user agents (UAs).
Example
[ SIP-REG Information ]
+-------------------------------------------------+
1-48
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
Syntax
View
Any view
Parameter
Description
Use the display voice subscriber-line command to view the configuration information
about the type, status, codec mode, input gain and output attenuation of the subscriber
line.
Related command: subscriber-line.
Example
1-49
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
T_Predial = 1 (s)
T_DTMF = 120 (ms)
T_Interdigit= 120 (ms)
Field Description
line Index of voice subscriber-line
type Type of voice subscriber-line
state Status of voice subscriber-line
Status information Calling status of voice subscriber-line
Voice compression method of voice
Use as coding protocol
subscriber-line
Voice decompression method of voice
use as decoding protocol
subscriber-line
Current ANI Calling number of current call
Current DNIS Called number of current call
Current direction Direction of current call
1-50
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
Field Description
Timeout of wait digit dialed by user for
Wait-digit Time Out
subscriber-line
Pre-dial delay time Delay time of pre-dial on subscriber-line
Duration time of DTMF number on
DTMF digit duration
subscriber-line
Interdigit duration Interval time of DTMF number on subscriber-line
Syntax
View
Any view
Parameter
Description
Use the display voice voip data-statistic command to view statistics information of
voice data.
This command is used to display the following information: time for successfully
searching the voice table, total number of received data packets, time for searching the
table in fast and common modes and voice and fax of receive and transmit channels etc.
Used with the verbose keyword, this command displays detailed information of receive
and send channels (including detailed input/output statistics and jitter Buffer of
information packets).
Related command: vqa data-statistic and reset voice voip data-statistic.
Example
1-51
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
[NET] SearchVoiceTableSuccess : 0
[NET] ReceiveDatagramTotal : 0
[NET] FastSearchTableTimes : 0
[NET] NormalSearchTableTimes : 0
------------------------ Receive channel: 000 ----------------------
[NET] ReceiveDatagramTotal : 0
[COM] DiscardDatagramTotal : 0
[NET] ReceiveRtpDatagram : 0
[NET] ReceiveRtcpDatagram : 0
[COM] AddReceiveTable : 3
[COM] ClearReceiveTable : 0
[COM] FreeReceiveBuffer : 0
[COM] TrsmitDone : 462
VOICE DATA INFORMATION:
[NET] ReceiveDataTotal : 0
[NET] NormalProcessData : 0
FAX DATA INFORMATION:
[NET] ReceiveDataTotal : 0
[NET] NormalProcessData : 0
------------------------ Send channel: 000 ----------------------
COMMON INFORMATION:
[VPP] LinkReceiveDataTotal : 484
[VPP] LinkReceiveEmptyData : 0
[COM] AddTableTimes : 0
[COM] ClearTableTimes : 0
VOICE DATA INFORMATION:
[FSD] FSSend_ReceiveDataTotal : 483
[COM] DiscardDataTotal : 0
[NET] NormalSendDataTotal : 0
[NET] SendToIPDataTotal : 0
[LOC] SendToLocalDataTotal : 484
FAX DATA INFORMATION:
[FSD] FSSend_RcvFaxDataTotal : 0
[FDF] DiscardDataTotal : 0
[NET] SendToIPDataTotal : 0
[LOC] SendToLocalDataTotal : 0
Field Description
SearchVoiceTableSuccess Successful times of searching voice table
ReceiveDatagramTotal(summary) Number of total packets received
1-52
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
Field Description
FastSearchTableTimes Times of fast searching voice table
NormalSearchTableTimes Times of normal searching voice table
ReceiveDatagramTotal(channel) Number of total packets received in channel
DiscardDatagramTotal Number of total packets dropped in channel
Number of total RTP packets received in
ReceiveRtpDatagram
channel
Number of total RTCP packets received in
ReceiveRtcpDatagram
channel
AddReceiveTable Times of adding receiving table
ClearReceiveTable Times of resetting receiving table
FreeReceiveBuffer Times of clearing buffer on board
TrsmitDone Times of freeing transmit buffer
ReceiveDataTotal(voice) Number of total data received in channel
Number of total data processed normally in
NormalProcessData(voice)
channel
ReceiveDataTotal(fax) Number of total fax data received in channel
Number of total fax data processed normally in
NormalProcessData(fax)
channel
LinkReceiveDataTotal Number of total local data received in channel
Number of total null local data received in
LinkReceiveEmptyData
channel
AddTableTimes Times of adding sending table
ClearTableTimes Times of resetting sending table
1-53
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
Syntax
View
Any view
Parameter
Description
Use the display voice vpp command to view all the statistic information in the VPP
module.
This command is used to display the number of times of correct and incorrect
connection, the number of times of correct and incorrect disconnection, the number of
times of correct and incorrect code data receiving, the number of times of correct and
incorrect code data transmission, the number of times of correct and incorrect IPP data
receiving, the number of times of correct and incorrect IPP data transmission, the total
number of bytes of code data received, and the total number of bytes of IPP data
received in various voice channels.
Example
TimeJitterLess10msTimes = 0 TimeJitterLess20msTimes = 0
TimeJitterLess30msTimes = 0 TimeJitterLess40msTimes = 0
TimeJitterLess50msTimes = 0 TimeJitterLess60msTimes = 0
TimeJitterLess70msTimes = 0 TimeJitterLess80msTimes = 0
TimeJitterLess90msTimes = 0 TimeJitterLess100msTimes = 0
TimeJitterLess110msTimes = 0
RecvIppDataSeqHopeTimes = 0 RecvIppDataDisorderTimes = 0
1-54
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
RecvIppDataRecvSeqLessTimes = 0 RecvIppDataSeqMoreTimes = 0
ulSendNoBDTimes = 0 ulRecvExpirePacketTimes = 0
ulRecvDuplicatePacketTimes = 0 ulJitterBufferOverFlowTimes1 = 0
ulJitterBufferOverFlowTimes2= 0 ulEmptyPacketTimes = 0
ulSendDSPVOIPPacket = 0 ulSendDSPFOIPPacket = 0
ulCorputTimes = 0
Field Description
ConnectRightTimes Times of connecting correctly
1-55
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
Field Description
ulRecvDuplicatePacketTimes Times of receiving duplicate packets
ulJitterBufferOverFlowTimes1 Times 1 of JitterBuffer overflows
ulJitterBufferOverFlowTimes2 Times 2 of JitterBuffer overflows
ulEmptyPacketTimes Times of empty packets
ulSendDSPVOIPPacket Number of voice packets sending to DSP
ulSendDSPFOIPPacket Number of fax packets sending to DSP
ulCorputTimes Times of collision in JitterBuffer
1.1.46 dot-match
Syntax
View
Parameter
end-only: Reserve the digits that correspond to all the dots “.” at the end of the number
input format.
left-right: Reserve from left to right the digits that correspond to the dots in the number
input format.
right-left: Reserve from right to left the digits that correspond to the dots in the number
input format.
Description
Use the dot-match command to configure dot match rules of the number-substitute
rules.
Use the undo dot-match command to restore the default value. The configuration of
this command only applies to the rules of the number-substitute list in the current view.
By default, the dot match rule is set to end-only.
According to the configuration of the dot-match command, the dots can be reserved by
quantity and position of the dots configured in output format of the number-substitute
rules. There are three dot match modes in the number-substitute rules.
z Reserve the digits that correspond to all the dots at the end of the number input
format. It is the default mode.
1-56
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
z Reserve from left to right the digits that correspond to the dots in the number input
format.
z Reserve from right to left the digits that correspond to the dots in the number input
format.
The dots “.” here are virtual match digits. Virtual match digits are the digits that match
the variable part (such as + % ! []) in an expression. For example, when 1255 is
matched with 1[234]55, the virtual match digit is 2; when it is matched with 125+, the
virtual match digits are 5; when it is matched with 1..5, the virtual match digits are 25.
Note:
For details about dot match rules in number-substitute rules, refer to the rule
command.
Example
Syntax
View
Parameter
high: Sets the DTMF code detection sensitivity level as high. In this mode, the reliability
is lower, and some codes may be mistaken for DTMF codes.
low: Sets the DTMF code detection sensitivity level as low. In this mode, the reliability is
higher, but DTMF code may be missed.
Description
Use the dtmf sensitivity-level command to set the detection sensitivity level of DTMF
codes.
Use the undo dtmf sensitivity-level command to restore the default detection
sensitivity level.
1-57
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
Example
# Set the DTMF code detection sensitivity level of voice subscriber-line line 1/0/0 as
low.
[H3C-voice-line1/0/0] dtmf sensitivity-level low
Syntax
View
Parameter
dscp-value: DSCP value in the range 0 to 63 or the keyword ef, af11, af12, af13, af21,
af22, af23, af31, af32, af33, af41, af42, af43, cs1, cs2, cs3, cs4, cs5, cs6, cs7, ef, or
zero.
Description
Use the dscp media command to set the DSCP value in the ToS field in the IP packets
that carry the RTP stream of the voice entity.
Use the undo dscp media command to restore the default DSCP.
The function of this command is the same as that of the vqa dscp command.
Example
# Set the DSCP value in the ToS field in the IP packets that carry the RTP stream of
VoIP voice entity 2 to af41.
[H3C-voice-dial] entity 2 voip
[H3C-voice-dial-entity2] dscp media af41
Syntax
View
1-58
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
Parameter
high: Sets the DTMF code detection sensitivity level as high. In this mode, the reliability
is lower, and some codes may be mistaken for DTMF codes.
low: Sets the DTMF code detection sensitivity level as low. In this mode, the reliability is
higher, but DTMF code may be missed.
Description
Use the dtmf sensitivity-level command to set the detection sensitivity level of DTMF
codes.
Use the undo dtmf sensitivity-level command to restore the default detection
sensitivity level.
By default, the detection sensitivity level of DTMF codes is high.
This command is only valid for FXS/FXO interface.
Example
# Set the DTMF code detection sensitivity level of voice subscriber line 1/0 as low.
<H3C> system-view
[H3C] voice-setup
[H3C-voice] subscirber-line1/0
[H3C-voice-line1/0] dtmf sensitivity-level low
Syntax
View
Parameter
1-59
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
1-60
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
1-61
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
Description
Use the dtmf threshold command to configure the sensitivity of DTMF digit detection.
Use the undo dtmf threshold command to restore the default.
The dtmf threshold command issues the thresholds for DTMF dial tone detection to
the underlying layer DSP for the purpose of tuning detection sensitivity and reliability of
the device subtly. Inside the DSP, a set of generic default values have been configured.
They are 1400, 458, -9, -9, -9, -9, -3, -12, -12, 30, 300, 3200, 375, with their index being
0 through 12. Professionals can use this command to adjust the device when DTMF
digit detection fails. In normal cases, the defaults are adequate.
When the value2 argument is set to 0 or DTMF digit detection to insensitivity, the
neglect probability is decreasing and the detection error probability is increasing as the
DTMF digit collection tolerance becomes larger.
DTMF digit detection is implemented by calculating the spectrum of the input voice
signal. Its spectrum shape is restricted to the configured thresholds. A DTMF dial tone
is regarded valid only when all the constraints are met. To understand this, you must be
aware of DTMF dial tone, as shown in the following figure:
The tone of each telephone digit is composed of two single-frequency tones. For
example, the tone of the digit 1 is compounded by two sine wave signal tones of 697 Hz
and 1209 Hz. A valid key tone must last at least 45 milliseconds and have an inter-digit
delay of 23 milliseconds. Refer to ITU-T Q.24 recommendation for full information.
1-62
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
Figure 1-2 illustrates the spectrum of key 1. Compared with other frequency points, the
energy levels at frequency points of 697 Hz and 1209 Hz are relatively greater. The
underlying layer DSP regards the frequencies of 1209 Hz, 1336 Hz, 1477 Hz, and 1633
Hz as column frequency group and the frequencies of 697 Hz, 770 Hz, 852 Hz, and
941Hz as row frequency group. Each DTMF key tone is composed of one column
frequency and one row frequency. The DSP module determines whether the input
voice signal is a valid DTMF digit by its energy at the above eight frequencies and their
double frequencies. The maximum energy in the row frequency group is ROWMAX, its
double energy is ROW2nd; the maximum energy in the column frequency group is
COLMAX and its double energy is COL2nd.
Example
1.1.51 echo-canceller
Syntax
View
1-63
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
Parameter
Description
1-64
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
Signal leakage occurs only on the analog circuit part of the voice call path. Digital
networks do not suffer from this problem.
Note:
z The echo-canceller enable command must be used in pair with the
echo-canceller tail-length command.
z This command applies to FXO and FXS interfaces.
z After configuring the undo echo-canceller enable command, if you disable the
echo cancellation function, the echo-canceller parameter and the echo-canceller
tail-length commands cannot be executed; if you execute the echo-canceller
enable command and enable the echo cancellation function, the echo-canceller
parameter and echo-canceller tail-length commands can be executed. If these
two commands are applied on a data interface, when the echo cancellation function
is enabled, the echo-canceller parameter command can be executed, but the
echo-canceller tail-length command cannot be executed.
Example
1.1.52 em-phy-parm
Syntax
View
Parameter
Description
Use the em-phy-parm command to configure a wire scheme for the analog E&M
subscriber-line.
1-65
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
Use the undo em-phy-parm command to cancel an existing wire selection scheme.
By default, the 4-wire analog E&M wire scheme is selected.
This command is only applicable to analog E&M subscriber-line.
When analog E&M is used in PBX communication, its voice uses two or four wires, plus
two or four signaling wires. So, a 4-wire analog E&M actually has at least six wires.
2-wire mode provides full-duplex voice transmission, in which voice is transmitted
between two wires in both directions. 4-wire mode resembles the simplex mode. Every
two wires are responsible for voice transmission in one direction.
This command is used for the wire match between the voice router and remote end
equipment connected with it. It has influence on voice transmission only and has
nothing to do with signaling.
Example
1.1.53 em-signal
Syntax
View
Parameter
wink: Wink start mode. The caller end hooks off to seize the line through line E, and it
has to wait for a wink signal from the remote end before sending out the called number.
immediate: Immediate start mode. The caller end hooks off to seize the line through
line E and sends the called number. The prerequisite for using the immediate start
mode is: The equipment at the remote end should listen to the dial signal immediately
after identifying the off-hook signal.
delay: When using the delay start mode, the calling end occupies the trunk line, and the
called end, such as PBX, will also enter the hook-off state to respond the caller till it is
ready for receiving the called number.
Description
1-66
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
Example
1.1.54 entity
Syntax
View
Parameter
Description
Use the entity command to configure a voice entity and enter its view (at the same time
specify the working mode related to voice).
Use the undo entity command to cancel an existing voice entity.
In a global view, use the entity command to enter a Voice entity view, and use quit to
return to the dial program view.
Related command: line.
1-67
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
Note:
The entity-number assigned to a VoIP or POTS entity must be unique among all VoIP
and POTS entities.
Example
# Create and enter the Voice entity view to configure a POTS voice entity whose
identification is 10.
[H3C-voice] dial-program
[H3C-voice-dial] entity 10 pots
1.1.55 fast-connect
Syntax
fast-connect
undo fast-connect
View
Parameter
None
Description
1-68
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
Example
1.1.56 first-rule
Syntax
first-rule rule-number
undo first-rule
View
Parameter
Description
Use the first-rule command to configure the number-substitute rule that is first used in
the current number-substitute list.
Use the undo first-rule command to restore the default number-substitute rule.
By default, the configured rule with the smallest serial number is used first.
In a voice call, the system first uses the rule that is defined by the first-rule command
when it begins to use the number-substitute rules. If this rule fails, it will try all other
rules in order, till it finds the one that works or till it confirms all the rules do not work.
Example
1.1.57 first-rule
Syntax
first-rule rule-number
undo first-rule
1-69
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
View
Parameter
Description
Use the first-rule command to configure the number-substitute rule that is first used in
the current number-substitute list.
Use the undo first-rule command to restore the default number-substitute rule.
By default, the configured rule with the smallest serial number is used first.
In a voice call, the system first uses the rule that is defined by the first-rule command
when it begins to use the number-substitute rules. If this rule fails, it will try all other
rules in order, till it finds the one that works or till it confirms all the rules do not work.
Example
1.1.58 hookoff-time
Syntax
hookoff-time time
undo hookoff-time
View
Parameter
time: Length of the hangup timer, in the range 60 to 36000 seconds. By default, no
hangup timer is set.
Description
Use the hookoff-time command to configure the hangup timer. When this timer times
out, the interface hangs up.
Use the undo hookoff-time command to cancel the setting of the hangup timer.
In some countries, PBXs do not play busy tone; if they play, the busy tone only lasts a
short period of time. When noise is present on a transmission link, the silence-th-span
1-70
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
command may be inadequate for solving the problem that the FXO interface does not
hang up. In this case, you may use the hookoff-time command to address the
problem.
Once configured the hookoff-time command takes effect on all interfaces on the card.
Example
1.1.59 impedance
Syntax
impedance { country-name | R550 | R600 | R650 | R700 | R750 | R800 | R850 | R900 |
R950 }
undo impedance
View
Parameter
Description
Use the impedance command to configure the current electric impedance on a voice
subscriber-line.
1-71
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
Use the undo impedance command to restore the default electric impedance on the
voice subscriber-line.
You can specify an impedance value by specifying the country where the value applies.
You may just input the leading letters that uniquely identify the country however.
The default electric impedance on the voice line is China.
Example
1.1.60 line
Syntax
line line-number
undo line
View
Parameter
Description
Use the line command to associate the voice entity with a specified voice
subscriber-line.
Use the undo line command to cancel this association.
This command can be used in POTS Voice entity view only. It can take effect only on
FXS, FXO, analog E&M, and digital E&M interfaces.
solt 3 solt 2
solt 0 slot 1
1-72
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
The above figure displays the rear view of a router installed with four voice cards. The
first card provides two subscriber lines, while other three provides four subscriber lines
each. The voice subscriber-line numbers are set according to the card sequence from
the left to the right, and add 1 in order starting from 0.
Example
1.1.61 match-template
Syntax
match-template match-string
undo match-template
View
Parameter
Character Meaning
1-73
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
Character Meaning
A wildcard. It can match any digit of a valid number. For example,
. 555. . . . matches any string that begins with 555 and with four
additional characters.
The character or characters right in front of it does not appear or
!
appears once. For example, 56!1234 can match 51234 and 561234.
The character or characters right in front of it appears once or
+ several times. But its appearance at the beginning of the whole
number means the number is E.164-compliant.
Hyphen. It connects two values (the smaller one before it and the
- bigger one after it) to indicate a range. For example, “1-9” means
numbers from 1 to 9 (inclusive).
The character or characters right in front of it does not appear, or
%
appears several times.
Select one character from the group. For example, [1-36A] can
[]
match only one character among 1, 2, 3, 6, and A.
A group of characters. For example, (123A) means a string “123A”. It
is usually used with “!”, “%”, and “+”. For example, “408(12)+” can
()
match 40812 or 408121212. But it cannot match 408. That is, “12”
can appear continuously and it must at least appear once.
Note:
z The character or characters in front of "!”, “%”, and “+” are not to be matched
accurately. They are handled similar to the wildcard “.”. Moreover, these symbols
cannot be used alone. There must be a valid digit or digits in front of them.
z If you want to use “[ ]” and “( )” at the same time, you must use them in the format
“( [ ] )”. Other formats, such as “[ [ ] ]” and “[ ( ) ]” are illegal.
z “-“ can only be used in “[ ]”, and it only connects the same type of characters, such
as “0-9”. The formats like “0-A” are illegal.
Description
Use the match-template command to configure the match template for a voice entity.
Use the undo match-template command to delete this configuration.
1-74
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
The match template defined by the match-template command can be used to match
the number reaching the corresponding voice entity. The voice entity will complete the
call if the match is successful. The match template can be defined flexibly. It can not
only be a string of a unique number like 01016781234, but also an expression that can
match a group of numbers, such as “010[1-5]678…”. They are used to match the actual
numbers in the received call packets to complete the calls.
Note:
z COMWARE software does not check the validity of E.164 numbers.
z In E1 voice, “T”, “#”, and “*” are not supported currently.
Example
# Set the match template for the numbers beginning with 661, 662, 663, and 669, and
containing four other digits.
[H3C-voice-dial-entity1] match-template 66[1-39]....
# Set the match template for the numbers beginning with 66 and 6602 and containing
four other digits.
[H3C-voice-dial-entity1] match-template 66(02)!....
# Set the match template for the numbers beginning with 66 and within the length of 31
digits.
[H3C-voice-dial-entity1] match-template 66T
# Set the match template for the numbers beginning with any number and within the
length of 31 digits.
[H3C-voice-dial-entity1] match-template T
Syntax
1-75
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
View
Parameter
set-number: Specify a max-call set. Its value ranges from 1 to 2147483647. You can
configure 128 sets at most.
max-number: Specify the maximum number of call connections for a max-call set. It
ranges from 1 to 120.
All: All max-call sets.
Description
Use the max-call command to configure max-call sets (128 sets at most).
Use the undo max-call command to delete the specified set or all the max-call sets.
This command is used to limit the number of call connections for a voice entity or a
group of voice entities. It needs to be used with the max-call command in voice entity
view: It defines the serial number of a max-call set and the maximum call connections;
while the max-call command in voice entity view binds that voice entity to the max-call
set with the serial number.
Related command: max-call (voice entity).
Example
Syntax
max-call set-number
undo max-call
View
Parameter
Description
Use the max-call command to bind a voice entity to the max-call set specified by
set-number.
1-76
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
Use the undo max-call command to delete the binding. Each voice entity can only be
bound to one max-call set, but you can change the binding.
By default, no max-call set is bound. That means there is no limitation on the number of
call connections.
This command is used with the max-call command in voice dial program view: the
max-call command in voice dial program view sets the serial number of max-call set
and the maximum number of call connections; this command binds the voice entity to
the max-call set with the serial number.
Related command: max-call (voice dial program).
Example
Syntax
normal-connect slow-h245
undo normal-connect slow-h245
View
Parameter
None
Description
Use the normal-connect slow-h245 command to configure disabling the calling end
from actively initiating an H245 connection request to the called end before the called
end is hooked off in voice entity view.
Use the undo default entity normal-connect slow-h245 command to restore the
default value (that is, to allow the calling end to actively initiate an H245 connection
request to the called end before the called end is hooked off).
By default, the calling end is allowed to actively initiate an H245 connection request to
the called end before the called end is hooked off.
Use the normal-connect slow-h245 command to disable the calling end from actively
initiating an H245 connection request to the called end before the called end is hooked
off in voice entity view.
Related command: fast-connect, default entity normal-connect slow-h245.
1-77
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
Example
# Configure for VoIP voice entity 103 to disable the calling end from actively initiating
the H245 connection request to the called end before the called end is hooked off.
[H3C-voice-dial-entity103]normal-connect slow-h245
1.1.65 number-match
Syntax
View
Parameter
Description
Example
# Configure that the number match is performed according to the longest number.
[H3C-voice-dial] number-match longest
1-78
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
1.1.66 number-substitute
Syntax
number-substitute list-number
undo number-substitute { list-number | all }
View
Parameter
Description
Example
1.1.67 open-trunk
Syntax
View
Parameter
caller: Enables E&M non-signaling mode but not the monitoring function when voice
gateway works as the calling end.
1-79
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
monitor interval: Enables E&M non-signaling mode and the monitoring function at the
same time when voice gateway works as the calling end. The monitoring time is
specified by interval.
called: Enables E&M non-signaling mode when voice gateway works as the called
end.
Description
Note:
When you use the open-trunk caller monitor interval command to enable E&M
non-signaling mode and the monitoring function at the same time, execute the undo
open-trunk monitor command to delete the monitoring function (Note that the
execution of this command only disables the monitoring function but does not delete
E&M non-signaling mode.); If you use the undo open-trunk command, not only E&M
non-signaling mode will be deleted, but also the monitoring function will be disabled.
Example
# Configure to enable E&M non-signaling mode and the monitoring function at the
same time. The monitoring time is 120 seconds.
[H3C-voice-line3/0/0] open-trunk caller monitor 120
1.1.68 outband
Syntax
View
Parameter
1-80
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
Description
Use the outband command to configure transmission of DTMF code in the outband
mode.
Use the undo outband command to restore transmission of DTMF code to inband
mode.
By default, the inband transmission mode is adopted.
Once transmitting DTMF code in outband mode has been configured for
NON-STANDARD router, in order to confirm whether or not the peer gateway can
accept such transmission mode of DTMF, the ability negotiation must be fulfilled after
the connection is established. Currently, H3C series routers only reactively accept
transparent transmission ability negotiation of DTMF code. In no case will it actively
initiate the negotiation process mentioned above.
In order to transparently transmit DTMF code, it is demanded, during actual application,
to configure this command for VoIP voice entity on the calling gateway and also for
POTS voice entity for the called gateway.
Related command: fast-connect and tunnel-on.
Note:
z In VoIP voice entity view, only sip, h225 and h245 DTMF out-of-band transmission
modes can be displayed. When the VoIP voice entity adopts ip or ras routing
method, the h225 and h245 modes can be displayed, and when the sip routing
method is adopted, only the sip mode can be displayed.
z In POTS voice entity view, all of the four DTMF transmission modes h225, h245, sip
and vorf can be displayed.
z In VoIP voice entity view, normal connect mode is adopted, DTMF codes can be
directly transmitted through H.245 or H.225 protocol in outband mode, while fast
connect mode adopted, the DTMF codes can only be transmitted in outband mode
through H.225 protocol.
Example
# Configure DTMF code outband transmission in the fast connect mode for VoIP voice
entity 10.
[H3C-voice-dial-entity10] fast-connect
[H3C-voice-dial-entity10] outband h245
1-81
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
Syntax
View
Parameter
None
Description
Use the overlap voip h323 command to configure the calling party to support h323
overlap mode for sending numbers.
Use the undo overlap voip h323 command to restore the default configuration.
By default, h323 overlap mode is not supported by the calling party.
Example
# Configure the calling party to support h323 overlap mode for sending numbers.
[H3C-voice-dial]overlap voip h323
1.1.70 payload-size
Syntax
View
Parameter
g711: Specifies the time length of voice packets with g711 coding (g711alaw or
g711ulaw). It ranges from 10 to 30 milliseconds and defaults to 20 milliseconds.
g723: Specifies the time length of voice packets with g723 coding (g723r53 or
g723r63). It ranges from 30 to 180 milliseconds and defaults to 30 milliseconds.
g726r16: Specifies the time length of voice packets with g726r16 coding. It ranges from
10 to 110 milliseconds and defaults to 30 milliseconds.
1-82
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
g726r24: Specifies the time length of voice packets with g726r24 coding. It ranges from
10 to 70 milliseconds and defaults to 30 milliseconds.
g726r32: Specifies the time length of voice packets with g726r32 coding. It ranges from
10 to 50 milliseconds and defaults to 30 milliseconds.
g726r40: Specifies the time length of voice packets with g726r40 coding. It ranges from
10 to 40 milliseconds and defaults to 30 milliseconds.
g729: Specifies the time length of voice packets with g729 coding (g729r8 or g729a). It
ranges from 20 to 180 milliseconds and defaults to 30 milliseconds.
time-length: Duration for DSP to assemble a packet in the corresponding codec mode.
Description
Use the payload-size command to notify the underlying layer how much time DSP
spends assembling a voice packet, or the time length of each voice packet.
Use the undo payload-size command to restore the default.
This time length may differ by card type. Because voice entities, which are upper layer
relevant, are hardware independent, the upper-layer can only verify whether the
specified value is in the valid range for the applied codec mode. Whether this value is
valid within the range is decided by DSP based on hardware type. If valid, the value
delivered by the upper layer is used; if otherwise, the default value for the codec mode
is used.
If you find that the configured duration does not take effect, first check that the assigned
value is valid for the card type and codec mode.
Default
20 30 20 ––
(milliseconds)
In voice dial program view, you can use the default entity command to configure global
attributes for voice entities, namely the default time that DSP spends assembling a
packet in each codec mode.
1-83
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
Example
# Set the time that DSP spends assembling a voice packet in g711 mode to 30
milliseconds for voice entity 8801.
[route-voice-dial-entity8801] payload-size g711 30
# Restore the default time that DSP spends assembling a voice packet in g711 codec
mode for voice entity 8801.
[route-voice-dial-entity8801] undo payload-size g711
# Set the default time that DSP spends assembling a voice packet in g729 mode to 180
milliseconds.
[route-voice-dial] default entity payload-size g729 180
# Restore the initial default time that DSP spends assembling a packet in g729 codec
mode in voice dial program view.
[route-voice-dial] undo default entity payload-size g729
1.1.71 plc-mode
Syntax
View
Parameter
Description
Example
# Configure the voice gateway to use the universal packet loss compensation
algorithm.
1-84
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
1.1.72 priority
Syntax
priority priority-order
undo priority
View
Parameter
priority-order: Priority of a voice entity. Its value ranges from 0 to 10. The smaller the
number is, the higher the priority is. That means 0 is the highest priority and 10 is the
lowest priority.
Description
Use the priority command to configure the priority levels for voice entities.
Use the undo priority command to restore the default priority level.
By default, the priority level is set to 0.
If you have configured priority levels for voice entities and have configured priority in
voice entity select rule (see select-rule), the system will first select the voice entity of
the highest priority when it initiates a call. If the voice entity of the highest priority fails, it
will try those of lower priority levels to initiate the call.
Example
1.1.73 private-line
Syntax
private-line string
undo private-line
View
Parameter
string: E.164 telephone number of the destination end, and it may include these
characters: 0 to 9, *, and #.
1-85
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
Description
Use the private-line command to configure private auto-ring mode for the subscriber
line and the E.164 telephone number of the destination end.
Use the undo private-line command to cancel the specified connection mode.
By default, no private auto-ring mode is configured.
This command is applicable to FXO, FXS, analog E&M subscriber-lines and digital E1
voice subscriber-line.
The private-line command is used to specify a connection mode for subscriber-line.
The parameter string will serve as the called number of all the calls incoming to this
subscriber line, i.e., after off-hook, the user need not perform any operation and the
system will dial out the string as the called number automatically.
If the private-line command is not configured, when the subscriber-line enters an
off-hook status, the standard session application program will generate a dial tone until
enough numbers are collected and the call process is completed.
Example
# Set an automatic dialing to 5559262 after off-hook on the subscriber line 1/0/0.
[H3C-voice-line1/0/0] private-line 5559262
Syntax
View
Parameter
value: Voice input gain ranging from -14.0 to 14.0 in dB with one digit after the decimal
point. By default, the value is 0 dB.
Description
Use the receive gain command to configure the gain value at the voice subscriber-line
input end.
Use the undo receive gain command to restore the default value.
This command is applicable to FXO, FXS, analog E&M subscriber-lines and digital E1
voice subscriber-line.
1-86
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
When the voice signal on the line attenuates to a relatively great extent, this command
can be used to appropriately enhance the voice input gain.
Caution:
Adjusting the gain may cause voice calls unable to be established. Therefore, when
required, adjust the gain only under the direction of technical support staff.
Example
Syntax
View
User view
Parameter
None
Description
Use the reset voice call-history-record line command to clear the call history of all
voice subscriber lines, or information displayed by the display voice
call-history-record line command.
Example
1-87
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
Syntax
View
User view
Parameter
None
Description
Example
Syntax
View
User view
Parameter
None
Description
Example
1-88
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
Syntax
View
User view
Parameter
None
Description
Example
Syntax
View
User view
Parameter
None
Description
Use the reset voice voip data-statistic command to reset statistics information of
voice data.
After voice data statistics is enabled via the vqa data-statistic command, all statistics
items (time for successfully searching the voice table, total number of received data
packets, time for searching the table in fast and common modes and voice and fax of
receive and transmit channels) perform data accumulation until all counters are cleared
via the reset voice voip data-statistic command. After that, new statistics begins.
Related command: vqa data-statistic and display voice voip data-statistic.
1-89
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
Example
1.1.80 ring-generate
Syntax
ring-generate
undo ring-generate
View
Parameter
None
Description
Use the ring-generate command to configure the gateway at the called side to give a
ringback tone when in quick start mode.
Use the ring-generate command to remove the configuration and then the ringback
tone generated by the switch will be transmitted transparently.
By default, the gateway at the called side gives a ringback tone when in quick start
mode.
Note:
FXS subscriber-lines do not support this function.
Example
# Configure the gateway at the called side to give a ringback tone when in quick start
mode.
[H3C-voice-line2/0/0] undo ring-generate
1.1.81 rule
Syntax
1-90
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
View
Parameter
Character Meaning
0-9 Numbers from 0 to 9. Each means a digit.
# and * Each means a valid digit.
A wildcard. It can match any digit of a valid number. For example,
. 555. . . . matches any string that begins with 555 and with four
additional characters.
The character or characters right in front of it does not appear or
!
appears once. For example, 56!1234 can match 51234 and 561234.
The character or characters right in front of it appears once or several
+
times.
The character or characters right in front of it does not appear or
%
appears several times.
1-91
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
input-number-type: Input type number, the value of which are abbreviated, any,
international, national, network, reserved, subscriber, and unknown.
z abbreviated: Abbreviated number type.
z any: It is not a specific number type, meaning any input number type can match.
z international: International number type.
z national: National number type.
z network: Network-specific number type.
z reserved: Reserved for extension.
z subscriber: Subscriber number type.
z unknown: Unknown number type.
output-number-type: Output number type, refer to the argument input-number-type for
its value, excluding any.
z abbreviated: Abbreviated number type.
z international: International number type.
z national: National number type.
z network: Network-specific number type.
z reserved: Reserved for extension.
z subscriber: Subscriber number type.
z unknown: Unknown number type.
input-numbering-plan: Input numbering plan, the value of which are any, isdn, national,
private, reserved, telex, and unknown.
z any: It is not a specific numbering plan, meaning any input numbering plan can
match.
z data: Data numbering plan.
z isdn: ISDN telephone numbering plan.
z national: National standard numbering plan.
z private: Private numbering plan.
z reserved: Reserved for extension.
z telex: Subscriber telex numbering plan.
z unknown: Unknown numbering plan.
output-numbering-plan: Output numbering plan, refer to the argument
input-numbering-plan for its value, excluding any.
z data: Data numbering plan.
z isdn: ISDN telephone numbering plan.
z national: National standard numbering plan.
z private: Private numbering plan.
z reserved: Reserved for extension.
z telex: Subscriber telex numbering plan.
z unknown: Unknown numbering plan.
Pay attention to the following points:
1-92
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
The character or characters in front of "!”, “%”, and “+” are not to be matched accurately.
They are handled similar to the wildcard “.”. Moreover, these symbols cannot be used
alone. There must be a valid digit or digits in front of them.
Dots in input-number and output-number are handled in three ways:
z Treat dots in output-number as invalid. When you use the dot-match command to
configure the dot match rule as end-only (that is, only dots at the end of the input
format are handled), the dots in output-number are discarded immediately, and the
digits corresponding to all the dots at the end of input-number are added to the end
of output-number.
z Discards extra dots in output-number. When you use the dot-match command to
configure the dot match rule as right-left (from right to left) or left-right (from left
to right), and the dot digits in output-number are more than those in input-number,
all digits corresponding to the dots in input-number are selected to replace the dots
in output-number one by one from left to right. The dots not replaced in
output-number are discarded. That is, the dots to the right are discarded.
z Discards (the digits corresponding to) the extra dots in input-number. When you
use the dot-match command to configure the dot match rule as right-left (from
right to left) or left-right (from left to right), and the number of dot digits in
input-number are greater than or equal to that in output-number, two cases exist:
Case 1: For right-left matching, extract from right to left the digits corresponding to the
dots in input-number and use them to replace the dots in output-number one by one.
The digits corresponding to dots that are not extracted in input-number are discarded.
Case 2: For left-right matching, extract from left to right the digits corresponding to the
dots in input-number and use them to replace the dots in output-number one by one.
The digits corresponding to dots that are not extracted in input-number are discarded.
Description
Example
1-93
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
Syntax
select-rule rule-order 1 [ 2 [ 3 ] [ 4 ]]
undo select-rule rule-order
View
Parameter
2 Priority
3 Random select
4 Longest unused
Description
Use the select-rule rule-order command to configure the select rule of voice entities.
Use the undo select-rule rule-order command to restore the default value.
By default, the order of voice entity select rules is 1->2->3. That means exact match
first, voice entity priority second, and random select last.
Use the select-rule rule-order command to configure three rules of different priorities
at most. But you cannot configure the same rules. Order of priorities is the order of
select rules. If there are rules of multiple priorities, the system first select voice entities
according to the rule of first priority. If that rule cannot distinguish the priorities of the
voice entities, the rule of second priority will be used. The rule of third priority will be
used for the voice entities that cannot be distinguished by the first and second rules,
and so on. If all the rules cannot distinguish voice entity priorities, Identifiers of voice
entities are used for selection, and the voice entity with the smallest identifier will be
preferred.
1-94
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
Example
# Set the select rule of voice entities to exact match-> priority-> longest unused.
[H3C-voice-dial] select-rule rule-order 1 2 4
Syntax
View
Parameter
Description
Use the select-rule search-stop command to configure the maximum number of voice
entities found.
Use the undo select-rule search-stop command to restore the maximum number of
voice entities found to 128.
By default, no maximum number of the search for voice entities is configured. That is,
the maximum number of the search for voice entities is the default value 128.
There might be multiple voice entities that meet the call requirements during call
connection. If a voice entity fails, the system can search for other qualified ones and
continue the call. The select-rule search-stop command is used to define the
1-95
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
maximum number of qualified voice entities to be found before the search stops. If
there are multiple qualified voice entities, only the one of the highest priority is used to
initiate a call.
Related command: select-rule rule-order and select-rule type-first.
Example
Syntax
View
Parameter
1st-type: Serial number of the type of the first priority, ranging from 1 to 3. The
meanings of the serial numbers are shown in the following table.
2nd-type: Serial number of the type of the second priority, ranging from 1 to 3. It cannot
be the same number as 1st-type.
3rd-type: Serial number of the type of the third priority, ranging from 1 to 3. It cannot be
the same number as 1st-type or 2nd-type.
Description
Use the select-rule type-first command to configure the type-first select rules for voice
entities.
Use the undo select-rule type-first command to delete the type-first select rules.
By default, voice entities are not selected according to their types.
1-96
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
The command is used to configure the select order for voice entities according to their
types. If multiple voice entities (of different types) are qualified for a call connection, the
system will select a suitable voice entity according to the type-first rules configured by
the select-rule type-first command. The order of inputting the parameters determines
voice entity type priorities. The system selects the first type first and then the third type
last.
Related command: select-rule rule-order, select-rule search-stop.
Example
# Configure to select voice entities according to the type-first rules: VoIP-> POTS ->
VoFR.
[H3C-voice-dial] select-rule type-first 2 1 3
1.1.85 select-stop
Syntax
select-stop
undo select-stop
View
Parameter
None
Description
Use the select-stop command to disable the search for voice entities.
Use the undo select-stop command to re-enable the search for voice entities.
By default, the search for voice entities is enabled.
There might be multiple qualified voice entities for a call connection. If a voice entity
fails, the system can search for another one that meets the requirements and continue
the call. In that case, you can use this command to configure the system to stop the
search when it has found the specified voice entity.
Related command: select-rule rule-order, select-rule type-first.
Example
# Configure the system to stop the search once voice entity 10 is found.
[H3C-voice-dial-entity10] select-stop
1-97
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
1.1.86 send-busytone
Syntax
View
Parameter
Description
Use the send-busytone command to enable busy tone sending on the FXO interface.
Use the undo send-busytone command to disable busy tone sending on the FXO
interface.
This command is valid only on FXO interfaces.
By default, busy tone sending is disabled.
Example
# Enable FXO interface 1/0/0 to send busy tone that lasts 5 seconds.
[H3C-voice] subscriber-line 3/1
FXO interface encountered
[H3C-voice-line3/1] send-busytone enable
[H3C-voice-line3/1] send-busytone time 5
Syntax
View
Parameter
digit-number: Number of least significant digits that are sent, ranging from 0 to 31. It is
not larger than the total number of digits of the called number.
1-98
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
Description
Example
# Configure voice entity 10 to send the 6 least significant digits of the called number.
[H3C-voice-dial-entity10] send-number 6
Syntax
send-number
undo send-number
View
Parameter
None
Description
Use the send-number command to configure the FXS voice subscriber-line to allow
the FXS to send called numbers.
Use the undo send-number command to disable the FXS to send called numbers.
By default, the FXS is disabled to send called numbers.
Normally, the FXS interface is connected to a standard telephone, so the FXS does not
need to send called numbers. But sometimes, the FXS interface is connected to the
FXO interface. In this case, when the FXO receives a ring from the FXS, it imitates an
off-hook and sends dial tone for the second stage of dial. With the send-number feature
1-99
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
enabled, the FXS voice subscriber-line can send called numbers to the connected FXO
interface directly to free the calling party from the second stage of dial.
Example
# Enable the FXS to send called numbers on FXS voice subscriber-line 0/0/0.
[H3C-voice-line0/0/0] send-number
1.1.89 send-ring
Syntax
send-ring
undo send-ring
View
Parameter
None
Description
Use the send-ring command to enable the local end to play ringback tone.
Use the undo send-ring command to disable the local end to play ringback tone.
This configuration takes effect only in fast-connect mode.
By default, the local end does not play ringback tone.
Example
Syntax
service data
undo service data
View
1-100
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
Parameter
None
Description
Example
Syntax
shutdown
undo shutdown
View
Parameter
None
Description
Use the shutdown command in voice entity view to configure to change the
management status of specified voice entity from UP to DOWN.
Use the undo shutdown command in voice entity view to restore the voice entity
management status from DOWN to UP.
By default, the voice entity management status is UP.
Running command shutdown will cause the voice entity unable to make calls.
Example
Syntax
shutdown
1-101
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
undo shutdown
View
Parameter
None
Description
Use the shutdown command in voice subscriber-line view to configure the voice
subscriber-line from UP to DOWN.
Use the undo shutdown command in voice subscriber-line to restore the voice
subscriber-line from DOWN to UP.
By default, the voice subscriber-line status is UP.
This command is applicable to FXO, FXS, analog E&M subscriber-lines and digital E1
voice subscriber-line.
The function of the POTS voice subscriber-line specified by the command shutdown is
disabled, whereas using command undo shutdown will enable all the voice
subscriber-lines on the voice card.
Example
1.1.93 silence-th-span
Syntax
View
Parameter
threshold: Silence detection threshold. If the voice signal from the switch is smaller than
this value, the system regards it as silence. This threshold ranges from 0 to 200 and
defaults to 20. Normally, the signal amplitude on the links without traffic is in the range 2
to 5.
time-length: Duration of silence detection. Upon expiration of this duration, the system
goes on-hook automatically. It ranges from 2 to 7200 (default) seconds.
1-102
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
Description
Use the silence-th-span command to set the silence detection parameters that have
the system take automatic on-hook action.
Use the undo silence-th-span command to restore the default.
Silence detection-based disconnection applies to prevent an FXO interface from
hanging when the busy tone parameters provided by the connected PBX are special. In
normal cases, you need not to use this function to tune the busy tone detection
parameters and any misconfiguration may result in incorrect disconnection.
When configuring this command, you are recommended to test multiple parameter sets
for the one that allows quick resource release on the FXO interface after the user hangs
up while eliminating the likelihood of incorrect on-hook.
Example
1.1.94 special-service
Syntax
special-service enable
undo special-service enable
View
Parameter
Description
Example
1-103
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
1.1.95 subscriber-line
Syntax
subscriber-line line-number
View
Parameter
Description
Use the subscriber-line command to enter FXS, FXO, analog E&M, or digital E1/T1
voice subscriber-line view.
In the view, use subscriber-line command to enter the voice subscriber-line view.
When line-number is the FXS voice subscriber-line, the system will enter the FXS voice
subscriber-line view. When the line-number is the analog E&M voice subscriber-line,
the system will enter analog E&M voice subscriber-line view, etc.
Related command: entity.
Example
# Enter the view of the voice subscriber line 0/0/0 in AR46 series router voice view.
[H3C-voice] subscriber-line 0/0/0
FXO interface encountered
[H3C-voice-line0/0/0]
1.1.96 substitute
Syntax
View
Parameter
1-104
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
list-number: Serial number of the number-substitute list. Its value ranges from 1 to
2147483647.
Description
Use the substitute command to bind the calling/called number-substitute list to the
voice subscriber-line or voice entity.
Use the undo substitute command to delete the calling/called number-substitute list
that is bound to the voice subscriber-line or voice entity.
By default, no number-substitute list is bound to voice subscriber-line or voice entity.
That means the system does not substitute number.
Firstly, you should use the number-substitute list-number command to configure the
number-substitute lists in voice dial program view, and use the rule command to
configure the rules in the list. Secondly, you should use the substitute command to
apply the number-substitute list to the voice subscriber line or voice entity.
Note:
According to network requirements, you can complete number –substitute in the
following two ways.
z Before voice entities are matched, you can use the substitute command in the
voice subscriber-line view to substitute the calling/called numbers corresponding to
the specified subscriber-line.
z After voice entities are matched and before a call is initiated, you can use the
substitute command in voice entity view to substitute the specified calling/called
numbers.
Example
Syntax
View
1-105
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
Parameter
Description
Use the substitute incoming-call command to bind the calling/called numbers of the
incoming calls from the network side to the number-substitute list.
Use the undo substitute incoming-call command to cancel the binding.
By default, no number-substitute list is bound. That means the system does not
substitute any number.
First, you can use the number-substitute list-number command in voice dial program
view to create a number-substitute list, and then use the rule command to configure the
rules in the list. Second, you can use the substitute incoming-call command to apply
the number-substitute list to the strategy of incoming calls from the network.
You should follow these rules in using the command:
1) 32 number-substitute lists can be bound at most.
2) The system searches all the rules in the number-substitute lists in order, and it
stops the search once one rule works.
Note:
According to network requirements, before voice entities are matched, you can use the
substitute incoming-call command in the voice dial program view to substitute all the
calling/called numbers of the incoming calls from the network side.
Example
# Apply number-substitute list 5 to the called numbers of the incoming calls from the
network side.
[H3C-voice-dial] substitute incoming-call called 5
1-106
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
Syntax
View
Parameter
Description
Use the substitute outgoing-call command to bind the calling/called numbers of the
outgoing calls from the network side to the number-substitute list.
Use the undo substitute outgoing-call command to cancel the binding.
By default, no number-substitute list is bound. That means the system does not
substitute any number.
First, you can use the number-substitute list-number command in voice dial program
view to create a number-substitute list, and then use the rule command to configure the
rules in the list. Second, you can use the substitute outgoing-call command to apply
the number-substitute list to the policy of outgoing calls from the network.
You should follow these rules to use the command:
1) 32 number-substitute lists can be bound at most.
2) The system searches all the rules in the number-substitute lists in order, and it
stops the search once one rule works.
Note:
According to network requirements, before voice entities are matched, you can use the
substitute outgoing-call command in the voice dial program view to substitute all the
calling/called numbers of the outgoing calls from the network side.
1-107
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
Example
# Apply number-substitute lists 5, 6, and 8 to the called numbers of the outgoing calls
from the network side.
[H3C-voice-dial] substitute outgoing-call called 5
[H3C-voice-dial] substitute outgoing-call called 6
[H3C-voice-dial] substitute outgoing-call called 8
1.1.99 terminator
Syntax
terminator character
undo terminator
View
Parameter
character: Telephone number terminator. The valid characters are digits 0 through 9,
pound sign (#), and asterisk (*).
Description
Use the terminator command to configure a special character string as the terminator
of a telephone number whose length is variable.
Use the undo terminator command to cancel the existing setting.
By default, no terminator is configured.
In areas where telephone numbers with variable are used, a character can be specified
as a terminator in order to avoid that the system cannot dial until the dial is timeout.
Related command: match-template and timer.
Example
Syntax
1-108
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
View
Parameter
seconds: The maximum interval between two digits, which is in the range of 1 to 300
seconds, by default seconds is 10s.
Description
Use the timer dial-interval command to configure the timer that the system waits for a
subscriber to dial the next digit.
Use the undo timer dial-interval command to restore the default time settings.
This command is applied to FXO, FXS subscriber-lines.
This timer will restart whenever the subscriber dials a digit and will work in this way until
all the digits of the number are dialed. If the timer times out before the dialing is
completed, the subscriber will be prompted to hook up and the call is terminated.
Setting the argument seconds of a timer to 0 will disable this timer.
Example
# Set the maximum duration waiting for the next digit on voice line 0/0/0 to 5 seconds.
[H3C-voice-line0/0/0] timer dial-interval 5
Syntax
View
Parameter
seconds: The maximum time waiting for the first dial, which is in the range of 1 to 300
seconds, by default seconds is 10s.
Description
Use the timer first-dial command to configure the timer that the system waiting for a
subscriber to dial the first digit.
Use the undo timer first-dial command to restore the default time settings.
This command is applied to FXO, FXS subscriber-lines.
1-109
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
Upon the expiration of the timer, the subscriber will be prompted to hook up and the call
is terminated.
Setting the argument seconds of a timer to 0 will disable this timer.
Example
# Set the maximum duration waiting for the first dial on voice line 0/0/0 to 10 seconds.
[H3C-voice-line0/0/0] timer first-dial 10
Syntax
View
Parameter
seconds: Maximum duration of ringback tone, in the range 5 to 120 seconds. It defaults
to 60 seconds. This argument applies on interfaces that are analog E&M, digital E&M,
FXS, or FXO.
Description
Use the timer ring-back command to configure the maximum duration for the system
to send the ringback tone.
Use the undo timer ring-back command to restore the default.
This command applies only on interfaces that are analog E&M, digital E&M, FXS, or
FXO.
Example
# Set the maximum time duration for the system to send ringback tone to eight
seconds.
[H3C-voice-line0/0/0] timer ring-back 8
Syntax
1-110
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
View
Parameter
Description
Use the timer wait-digit command to configure the maximum time duration that the
system waits for a digit.
Use the undo timer wait-digit command to restore the default time settings.
This command is applied to analog E&M and digital E&M subscriber-lines.
Setting the argument seconds of a timer to 0 will disable this timer.
Example
# Set the maximum duration waiting for the first dial on voice line 0/0/0 to 10 seconds.
[H3C-voice-line0/0/0] timer first-dial 10
Syntax
View
Voice view
Parameter
packets: Number of voice packets, which is in the range of 1 to 10000 and defaults to
200.
Description
Use the trace interval command to configure the interval for information recording in
the debugging process, that is, the number of voice packets upon the pass of which a
record will be made.
Use the undo trace interval command to restore the default.
Example
1-111
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
Syntax
View
Parameter
value: Voice output gain ranging -14.0 to 14.0 in dB with one digit after the decimal point.
By default, the value is 0 dB.
Description
Use the transmit gain command to configure the voice subscriber-line output end gain
value.
Use the undo transmit gain command to restore the default value.
This command is applicable to FXO, FXS, analog E&M subscriber-lines and digital E1
voice subscriber-line.
When a relatively small voice signal power is needed on the output line, this command
can be used to properly increase the voice output gain value to adapt to the output line
signal requirement.
Related command: receive gain and subscriber-line.
Caution:
Adjusting the gain may cause voice calls unable to be established. Therefore, when
required, adjust the gain only under the direction of technical support staff.
Example
# Configure the voice output gain value as -6.7dB on subscriber line 0/0/0
[H3C-voice-line0/0/0] transmit gain -6.7
1-112
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
1.1.106 tunnel-on
Syntax
tunnel-on
undo tunnel-on
View
Parameter
None
Description
Example
1.1.107 type
Syntax
type { 1 | 2 | 3 | 5 }
undo type
1-113
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
View
Parameter
Description
Use the type command to configure the analog E&M subscriber-line signal type.
Use the undo type command to cancel the existing setting.
By default, the analog E&M subscriber-line signal type is type 5.
This command is only applicable to the analog E&M subscriber-line.
Of the analog E&M signaling types, a PBX transmits signals on the M line (M means
Mouth, indicating it is transmitted from a PBX), and receives signals from E line (E
means Ear, indicating it is received by the PBX). So, as to a router that has voice
function, the router receives the M signal of the PBX, and transmits E signal to the PBX.
The analog E&M subscriber-line has four data transmission (signal) lines, and two or all
the four lines are used according to different types:
E (“Ear” or “receive”): the signal line from the router side to the PBX side.
M (“Mouth” or “transmit”): the signal line from the PBX side to the router side.
SG (Signal Ground): used for some types of analog E&M only.
SB (Signal Battery): used for some types of analog E&M only.
Example
1.1.108 vad-on
Syntax
vad-on
undo vad-on
View
Parameter
None
1-114
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
Description
Example
Syntax
View
Voice view
Parameter
Description
Use the vi-card busy-tone-detect command to configure busy tone detection method
on FXO subscriber-line.
This command is only valid for FXO subscriber-lines, and can only be configured on the
first subscriber-line of each two-subscriber-line voice board or four-subscriber-line
voice board. Otherwise, the busy tone detection is not valid.
The system supports four types of busy tone detection features, which are identified by
the index parameter.
1-115
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
Example
Syntax
vi-card cptone-custom type arg0 arg1 arg2 arg3 arg4 arg5 arg6
undo vi-card cptone-custom { type | all }
View
Voice view
Parameter
Type: Prompt tone type, currently supporting the following types: dial-tone,
special-dial-tone, busy-tone, congestion tone, ringback-tone, and waiting-tone.
arg0: Combination mode, in the range of 0 to 2. 0 indicates the overlapping of the two
frequencies; 1 indicates the modulation of the two frequencies; 2 indicates the
alternation of the two frequencies.
arg1/arg2: Frequencies of the two single-frequency tones in Hz. The range of the two
frequencies is related to the combination mode (arg0). If the mode is overlapping or
alternation, the range of the two frequencies is 300 to 3400; if the mode is multiplication,
the range of the two frequencies is 0 to 3400 and the absolute value of the two
frequencies’ sum and difference must be in the range of 300-3400.
arg3: The on duration of the first on-off ratio in ms, in the range of 30 to 8191. If the
prompt tone is played continually, the value is set to 8192.
arg4: The off duration of the first on-off ratio in ms, in the range of 30 to 8191.
arg5: The on duration of the second on-off ratio in ms, in the range of 30 to 8191.
arg6: The off duration of the second on-off ratio in ms, in the range of 30 to 8191.
all: All types of prompt tones.
1-116
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
Description
Use the vi-card cptone-custom command to set the prompt tone parameters of the
system.
Use the undo vi-card cptone-custom command to delete the prompt tone
parameters.
Note:
After the configuration of the prompt tone parameters, these parameters cannot take
effect immediately. You must use the cptone cs command in subscriber line view to
validate your configuration.
Example
# Set the busy tone parameters, 425 Hz in single frequency, and the on or off duration is
350 ms.
[Router-voice] vi-card cptone-custom busy-tone 0 425 425 350 350 350 350
Syntax
View
Voice view
Parameter
Description
1-117
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
To reset a voice card will interrupt all the service on the voice card, and re-initialize the
card status. Generally, if the voice card works abnormally (e.g. the configuration is
correct but normal connection is not possible), this operation can be used. You can
view the card indicator status when resetting the voice card to judge whether to perform
the reset operation.
First use command display version to display the distributed slots of the voice cards in
the router.
Related command: display version.
Example
1.1.112 voice-setup
Syntax
voice-setup
undo voice-setup
View
System view
Parameter
None
Description
Use the voice-setup command to enter voice view and enable voice services.
Use the undo voice-setup command to disable all voice services.
By default, all voice services are disabled.
Example
1-118
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
[H3C]
Succeed in stopping voice service!
Syntax
View
Voice view
Parameter
Description
Use the voip calledtunnel enable command to enable the tunnel function on the
called gateway.
Use the undo voip calledtunnel enable command to disable the tunnel function on
the called gateway.
By default, the tunnel function on the called gateway is enabled.
When the router is a called gateway, it decides whether to use the tunnel function
depending on the configuration of the voip calledtunnel command. To interoperate
with devices that do not support tunneling using H.323 recommendation, you need to
disable with the undo form of this command the tunnel function on the called gateway.
Related command: tunnel-on.
Example
Syntax
View
Voice view
1-119
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
Parameter
Description
Use the voip call-start command to configure a call initialization mode for the called
GW.
Use the undo voip call-start command to restore the default.
By default, the fast mode is used.
As the process of faculty negotiation is omitted in fast connect procedures, the faculties
of the two parties are determined by the GW. If a router acts as a calling GW, you can
enable or disable fast connect for each channel of initiated calls. If it acts as a called
GW, it will use or not use the fast connect mode to initialize calls depending on the
parameters of the voip call-start command, in the case that the calling GW uses the
fast connect mode.
For related configurations, see fast-connect command.
Example
Syntax
View
Voice view
Parameter
descriptor: The description character string of H.323, in the length of 1 to 64. By default,
the descriptor is "Comware Gateway".
Description
Use the voip h323-descriptor command to configure the description character string
of the voice gateway H.323.
It is recommended to configure with default value, also you can configure according to
the actual requirements. If both ends are the device based on Comware, and the
1-120
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
attribute is configured at both ends (i.e., the default value is not adopted), the character
strings of both ends must be the same.
Example
Syntax
View
Voice view
Parameter
send-setup-wait: The maximum waiting time length before the second call after the
configuration of hooking dialup is implemented.
voip-to-pots: Delays waiting for switching from VoIP entity to backup POTS entity after
failure in configuring VoIP dialup.
seconds: Time length. When the voip timer send-setup-wait command is executed, it
ranges from 1 to 10 in second, and defaults to 3 seconds; when the voip timer
voip-to-pots command is executed, it ranges from 3 to 30 in second and defaults to 5
seconds.
Description
Use the voip timer command to set the VoIP-to-POTS timer, or the delay waiting for
switching from VoIP entity to backup POTS entity after a VoIP call is failed.
Use the undo voip timer command to restore the default.
Example
# Configure the system to wait five seconds before the second call after configuring
hooking dialup.
[H3C] voip timer send-setup-wait 5
Syntax
1-121
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
View
Voice view
Parameter
Description
Example
Syntax
View
Voice view
Parameter
media: Global DSCP value in the ToS field of the IP packets that carry RTP streams.
signal: Global DSCP value in the ToS field of the IP packets that carry voice signaling.
1-122
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
dscp-value: DSCP value in the range 0 to 63 or the keyword ef, af11, af12, af13, af21,
af22, af23, af31, af32, af33, af41, af42, af43, cs1, cs2, cs3, cs4, cs5, cs6, cs7, or
zero.
af31 011010 26
af32 011100 28
af33 011110 30
af41 100010 34
af42 100100 36
af43 100110 38
cs1 001000 8
cs2 010000 16
cs3 011000 24
cs4 100000 32
cs5 101000 40
cs6 110000 48
cs7 111000 56
zero 000000 0
Description
Use the vqa dscp command to set the global DSCP value in the ToS field in the IP
packets that carry the RTP stream or voice signaling.
Use the undo dscp media command to restore the default DSCP, that is, zero
(00000).
1-123
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
Note:
The function of this command is the same as the command used for setting DSCP in
the “QoS” part of this manual. If two DSCP values are configured, the one configured in
the “QoS” part takes priority. This command is valid for both SIP and H.323.
Example
# Set the DSCP value in the ToS field in the IP packets that carry voice signaling to
af41.
[H3C] voice-setup
[H3C-voice] vqa dscp signal af41
Syntax
View
Voice view
Parameter
buffer-time time: Duration of DSP buffer data monitoring, in the range of 180 to 480
ms.
Description
Use the vqa dsp-monitor command to set duration for DSP buffer data monitoring.
Use the undo vqa dsp-monitor buffer-time command to remove the setting.
By default, DSP data is not monitored.
If the DSP buffering duration exceeds the preset threshold, DSP will discard voice data
to keep the voice delay with a rational range.
A time value greater than 240 is recommended for too small duration value will result in
poor voice quality in the case of severe jitter.
Related command: ip-precedence.
Example
# Set the duration for DSP buffer data monitoring to 270 milliseconds.
[H3C-voice] vqa dsp-monitor buffer 270
1-124
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
Syntax
View
Voice view
Parameter
depth: Identifies the jitter buffer depth in the range of 0 to 10. Setting jitter buffer depth
to 0 indicates not to enable the jitter buffer function. The larger the value, the larger the
depth, that is, the more complexly the jitter buffer processes the voice packets. By
default, the jitter buffer depth is 3.
Description
Example
Syntax
View
Voice view
1-125
Command Manual – Voice
Comware V3 Chapter 1 VoIP Configuration Commands
Parameter
Description
Use the vqa performance command to configure the sending or receiving process of
voice data to fast or normal forwarding process.
Use the undo vqa performance command to restore the sending and receiving
process of voice data to normal forwarding process.
By default, the sending and receiving process of voice data is normal.
Example
# Configure the current sending process of voice data to fast forwarding process.
[H3C-voice] vqa performance send fast
The configuration works immediately!
1-126
Command Manual – Voice
Comware V3 Chapter 2 BSV Configuration Commands
2.1.1 permanent-active
Syntax
permanent-active
undo permanent-active
View
Parameter
None
Description
Example
2.1.2 power-source
Syntax
power-source
undo power-source
View
Parameter
None
Description
2-1
Command Manual – Voice
Comware V3 Chapter 2 BSV Configuration Commands
Note:
In network side mode, BSV V2 circuit board can provide remote power supply of 4w at
maximum.
Example
Note:
Other ISDN commands available with BSV interfaces include:
isdn bch-local-manage, isdn bch-select-way, isdn caller-number, isdn calling,
isdn check-called-number, isdn ignore connect-ack, isdn ignore hlc, isdn ignore
llc, isdn ignore sending-complete, isdn l3-timer, isdn link-mode, isdn
number-property, isdn overlap-sending, isdn protocol-mode, isdn protocol-type,
isdn statistics, and isdn two-tei. For detailed information, refer to Chapter 3 “ISDN
Configuration Commands” of Link Layer Protocol Command Manual.
2-2
Command Manual – Voice
Comware V3 Chapter 3 VoFR Configuration Commands
Syntax
View
Parameter
Description
Use the address command to configure a route to the peer voice gateway or assign an
X.121 address for a destination host.
Use the undo address command to cancel the setting.
By default, no route to the peer voice gateway is configured.
The X.121 address configured in this command must be the same X.121 address used
by the destination host.
Configuring the address of VoFR voice entity in switch mode includes configuring
output interface and outgoing DLCI number. Configuring the session target of VoFR
voice entity in FRF.11 trunk mode includes configuring output interface, outgoing DLCI
number, FRF.11 subchannel number and creating voice channel without delay. Voice
channel is deleted when deleting the address.
Related command: match-template, call-mode, vofr.
Example
3-1
Command Manual – Voice
Comware V3 Chapter 3 VoFR Configuration Commands
# Assign 100 to the DLCI for the session target Serial 1/0/0 corresponding to the called
number 12345.
[H3C-voice-dial-entity4] match-template 12345
[H3C-voice-dial-entity4] address vofr-dynamic serial1/0/0 100
3.1.2 call-mode
Syntax
View
Parameter
Description
Use the call-mode command to configure a call-mode for calls between local router
and peer router.
Use the undo call-mode command to restore the default value.
By default, the dynamic mode is adopted.
If dynamic is configured in this command, which call signaling should be adopted will
be specified by the vofr command on the DLCI.
Note:
If frf11-trunk is configured in this command, the trunk-id command must be configured
for the VoFR voice entity of the called party.
Example
3-2
Command Manual – Voice
Comware V3 Chapter 3 VoFR Configuration Commands
Syntax
View
DLCI view
Parameter
Description
Use the cid select-mode command to configure the route selection mode used by the
calling party to set up VoFR calls.
Use the undo cid select-mode command to restore the default.
By default, max-poll mode applies.
When multiple channels of voice are multiplexed onto the same DLCI, using the same
voice CID at both ends can cause call collision. To prevent this from happening and to
avoid call loss, you may configure different route selection modes on the two ends.
Related command: vofr.
Example
Syntax
debugging voice vofr { all | error | fax | intf | motorola | nonstandard | timer | vcc |
vofr | vpp }
View
User view
Parameter
3-3
Command Manual – Voice
Comware V3 Chapter 3 VoFR Configuration Commands
Description
Use the debugging voice vofr command to enable VoFR module debugging.
Example
Syntax
View
Any view
Parameter
Description
3-4
Command Manual – Voice
Comware V3 Chapter 3 VoFR Configuration Commands
Example
# Specify the interface and DLCI on which the Frame Relay VoFR information will be
displayed.
[H3C] display fr vofr-info
INTERFACE(DLCI) VOFR-MODE CID CID-TYPE
Serial1/0/0(200) VOFR-H3C 4 DATA
Serial1/0/0(200) VOFR-H3C 5 FRAG-DATA
Field Description
INTERFACE Interface unit
Syntax
View
Any view
Parameter
Description
Use the display voice vofr call command to view information of the current call.
This command is used to display the information of incoming and outgoing call control
blocks, the connection state of the modules, call state, calling number, called number,
etc.
Example
3-5
Command Manual – Voice
Comware V3 Chapter 3 VoFR Configuration Commands
Field Description
CCB VCC CRV Call reference value of VCC module
VOFR CRV Call reference value of VoFR module
Call Protocol Protocol type of VoFR presently
Status Status of present call
3-6
Command Manual – Voice
Comware V3 Chapter 3 VoFR Configuration Commands
Field Description
Mode of the call, such as calling, called and
Call Mode
idle
Call Attrib Attribute of the call, such as normal or busy
Release Type Cause of releasing the VoFR call
Fr Release Type Cause of releasing the FR connection
Timer Flag of timer of the call
FREX CCXID Call decryption identifier at interface of FREX
VPU Channel Channel of VPU module
Dialpeer Port Number Number of voice entity of the call
Voice Bandwidth Voice bandwidth of the call
Packet Size Packets length of the call
Encode Type Compression type of the call
3-7
Command Manual – Voice
Comware V3 Chapter 3 VoFR Configuration Commands
Field Description
Fax Release Reason Cause of releasing fax connection
Fax Bandwidth Bandwidth of fax
Syntax
display voice vofr statistic { all | call | error | timer | vcc | vofr | vpp }
View
Any view
Parameter
Description
Use the display voice vofr statistic command to view the call statistics between the
VoFR module and VCC, VPP and other modules.
Example
# Display the call statistics between the VoFR module and other modules.
[H3C] display voice vofr statistic call
Statistic about VOFR call :
{
Call number as Caller: 0
Succeed call number as Caller: 0
Fail call number as Caller: 0
Call number as Called: 0
Succeed call number as Called: 0
Fail call number as Called: 0
3-8
Command Manual – Voice
Comware V3 Chapter 3 VoFR Configuration Commands
Table 3-3 Description of call statistics between the VoFR module and other modules
Field Description
Call number as Caller Times of calling out
Succeed call number as Caller Times of calling out correctly
Fail call number as Caller Times of calling out wrongly
Call number as Called Times of calling in
Succeed as number from Called Times of calling in correctly
Fail call number as Caller Times of calling in wrongly
Send voice packets number Number of packets sent
Syntax
View
DLCI view
Parameter
start-svc: Start SVC for voice routing, in the range 1 to 4080. By default, the start SVC
for voice routing is 17.
Description
Use the motorola base-svc command to configure the start SVC for voice routing on a
DLCI.
Use the undo motorola base-svc command to restore the default.
The user is allowed to configure this command when the VoFR call control protocol on
the DLCI is Motorola-compatible.
Related command: vofr, motorola max-voice.
3-9
Command Manual – Voice
Comware V3 Chapter 3 VoFR Configuration Commands
Example
# Specify the start SVC for voice routing on DLCI 100 to 100.
[H3C-fr-dlci-Serial1/0/0-100] motorola base-svc 100
Syntax
View
DLCI view
Parameter
Description
Example
# Adopt RFC 1294 multi-protocol encapsulation for Motorola LCON on the DLCI 200.
[H3C-fr-dlci-Serial1/0/0-200] motorola encapsulation rfc1294
Syntax
View
DLCI view
3-10
Command Manual – Voice
Comware V3 Chapter 3 VoFR Configuration Commands
Parameter
max-number: The maximum number of voice channels, in the range 0 to 15. By default,
the maximum number of voice channels is 0.
Description
Use the motorola max-voice command to configure the maximum number of voice
channels created on a DLCI concurrently.
Use the undo motorola max-voice command to restore the default.
The user can configure this command only when the VoFR call control protocol used on
the DLCI is motorola-compatible. If it is set to 0, no voice will be sent.
Related command: vofr.
Example
Syntax
View
DLCI view
Parameter
Description
Example
3-11
Command Manual – Voice
Comware V3 Chapter 3 VoFR Configuration Commands
Syntax
outband vofr
undo outband
View
Parameter
None
Description
Example
3.1.13 priority
Syntax
priority priority-number
undo priority
View
Parameter
priority-number: Voice entity priority in the range 0 to 10, with 0 being the highest
priority and 10 being the lowest. The default is 0.
3-12
Command Manual – Voice
Comware V3 Chapter 3 VoFR Configuration Commands
Description
Example
3.1.14 seq-number
Syntax
seq-number
undo seq-number
View
Parameter
None
Description
Use the seq-number command to enable voice packets transmitted on the local
gateway to carry sequence numbers.
Use the undo seq-number command to disable voice packets to carry sequence
numbers.
By default, no sequence numbers are carried in voice packets.
The gateway at receiving end can know whether the voice packets have been dropped,
repeated or disordered according to the numbers, so that voice compensation can be
made. However, use of numbers requires more bandwidth. You must carefully consider
the trade-off between packet numbering and bandwidth.
Related command: compression.
3-13
Command Manual – Voice
Comware V3 Chapter 3 VoFR Configuration Commands
Note:
The configuration of this command will not affect CODEC numbering. If needed, DSP
will number CODEC, regardless of whether this command has been configured.
Example
# Configure that the voice packets should be numbered in the VoFR voice entity 10.
[H3C-voice-dial-entity10] seq-number
3.1.15 timestamp
Syntax
timestamp
undo timestamp
View
Parameter
None
Description
Use the timestamp command to enable the local end to send voice packets with
timestamps.
Use the undo timestamp command to disable voice packets to carry timestamps.
By default, voice packets do not carry timestamps.
Example
3.1.16 trunk-id
Syntax
trunk-id string
undo trunk-id
View
3-14
Command Manual – Voice
Comware V3 Chapter 3 VoFR Configuration Commands
Parameter
string: The number that the local end dials to call the PSTN side in FRF.11 trunk mode.
It is a digit string of 1 to 31 at length.
Description
Use the trunk-id command to configure the number that the local end dials to call the
PSTN side in FRF.11 trunk mode.
Use the undo trunk-id command to restore the local called number to null.
By default, no number is configured, that is means the parameter string is null.
This command can be used only for the VoFR voice entities in FRF.11 trunk mode.
FRF.11 does not provide end-to-end signaling management leased line. To create a
leased line, the trunk-id command must be configured.
Related command: match-template, call-mode.
Example
# Set the outgoing number to PSTN in VoFR voice entity 2001 to 2001.
[H3C-voice-dial-entity1] trunk-id 2001
3.1.17 vad-on
Syntax
vad-on
undo vad-on
View
Parameter
None
Description
3-15
Command Manual – Voice
Comware V3 Chapter 3 VoFR Configuration Commands
Example
3.1.18 vofr
Syntax
View
DLCI view
Parameter
Description
Use the vofr command to enable VoFR operation mode for a DLCI.
3-16
Command Manual – Voice
Comware V3 Chapter 3 VoFR Configuration Commands
Use the undo vofr command to disable VoFR operation mode for the DLCI.
By default, VoFR is not supported.
If call-mode static has been configured to use FRF.11 trunk mode, configuring
Motorola-compatible mode in this command will cause session failure.
In Motorola-compatible mode, a DLCI cannot carry both dynamic calling and FRF.11
trunk.
In H3C-switch or Motorola-compatible mode, use the T1.167 Annex G protocol. When
making configuration, set different ANNEX G control block types at both ends to
different modes, that is, one end to DTE and the other end to DCE.
Related command: call-mode.
Example
Syntax
View
Voice view
Parameter
time: Interval of Trunk Wait timer, in the range 10 to 600 seconds. The default interval is
30 seconds.
Description
Use the vofr frf11-timer command to configure the interval of Trunk Wait timer in
FRF.11 trunk mode.
All the local sessions in FRF.11 trunk mode use the same timer.
Related command: call-mode
3-17
Command Manual – Voice
Comware V3 Chapter 3 VoFR Configuration Commands
Example
# Set the period of the Trunk Wait timer in FRF.11 trunk mode to 40 seconds.
[H3C-voice] vofr frf11-timer 40
Syntax
View
Voice view
Parameter
length: Jitter buffer length in the range 0 to 8. If it is set to 0, jitter buffer will not be used.
The default jitter buffer length is 0.
Description
Example
Syntax
View
Parameter
reserved-bps: Maximum bandwidth for voice calls, in the range 8000 kbps to
45,000,000 kbps.
reserved: Reserves bandwidth for a call until it is terminated.
3-18
Command Manual – Voice
Comware V3 Chapter 3 VoFR Configuration Commands
Description
Use the voice bandwidth command to configure maximum bandwidth for voice calls.
Use the undo voice bandwidth command to restore the default.
By default, no reserved bandwidth is configured for voice calls.
Example
# Set maximum bandwidth to 200,000 kbps and enable bandwidth reservation for voice
calls.
[H3C-fr-class-1] voice bandwidth 200000 reserved
3-19
Command Manual – Voice
Comware V3 Chapter 4 E1/T1 Voice Configuration Commands
Syntax
ani { all | ka }
undo ani
View
R2 CAS view
Parameter
all: Requires the remote end to send the category of the calling party and calling
number.
ka: Requires the remote end to send the category of the calling party only.
Description
Use the ani command to enable or disable the terminating point to send the calling
party information (service category and calling number) to the originating point during
call connecting process.
Use the undo ani command to cancel the above configuration.
By default, the terminating point does not send the calling party information to the
originating point.
Note:
z Configure the local end with this command to support automatic number
identification.
z This command applies to E1 voice only.
z Normally the all keyword is configured. To prevent call failures, use the ka keyword
only when required by the connected switch.
4-1
Command Manual – Voice
Comware V3 Chapter 4 E1/T1 Voice Configuration Commands
Example
# Configure that the local exchange requests the opposite exchange to send the
category of the calling party and calling number during the connecting process.
[H3C-cas1/0/0:0] ani all
4.1.2 ani-offset
Syntax
ani-offset number
undo ani-offset
View
R2 CAS view
Parameter
number: The number quantity collected, with a value range being the integer from 1
to10. By default, the value of number is 1.
Description
Use the ani-offset command to configure the number of digits of the called number to
be collected prior to requesting the calling party information.
Use the undo ani-offset command to restore the default value.
This command applies to E1 voice only.
This command is used for setting the number of digits of the called number to be
collected prior to requesting the caller number or caller identifier. When the quantity of
the collected numbers is less than this value, the system will wait to the next number till
timeout, and in the waiting it will not request the caller number information from the
remote end. When the quantity of the collected numbers is equal to or exceeds this
value, it is able to request the caller number or caller identifier from the remote end.
Related command: cas, timer, reverse, renew.
Example
# Set to start requesting the caller number or caller identifier after receiving the 3-digit
numbers.
[H3C-cas1/0/0:0] ani-offset 3
4.1.3 answer
Syntax
4-2
Command Manual – Voice
Comware V3 Chapter 4 E1/T1 Voice Configuration Commands
View
R2 CAS view
Parameter
enable: The originating points requires that the terminating point must send answer
signal. Only after the originating point receives the signal, can the peers enter the
communicating state.
disable: The originating point does not require the terminating point to send answer
signal. In case the terminating point does not send answer signal, the originating point
automatically report the answer message to the upper layer when the timer times out to
have the peers enter the communicating state.
Description
Use the answer command to configure whether the terminating point is required to
send answer signal.
By default, the terminating point is required to send answer signal.
This command applies to E1 voice only.
In some countries, answer signals are not sent in the R2 line signaling coding scheme.
In this case, you can use the answer command to adjust this signaling coding scheme.
If the originating point does not require answer signals, the terminating point confirms
call connection after the specified time.
Related command: re-answer, timer dl re-answer.
Example
4.1.4 cas
Syntax
cas ts-set-number
View
Parameter
ts-set-number: The serial number of the Timeslot set predefined, with a value range
being the integer from 0 to 30.
4-3
Command Manual – Voice
Comware V3 Chapter 4 E1/T1 Voice Configuration Commands
Description
Use the cas command to enter the R2 CAS view and digital E&M signaling view.
The command cas is used to enter the custom R2 CAS view. Under this mode various
parameters of the R2 signaling in the E1 interface can be configured as required. To
validate the custom R2 parameters, it is required to keep the parameter of
ts-set-number in the command cas consistent with the parameter set-number in the
command timeslots-set.
Related command: timeslots-set, ani-offset, effect-time, reverse, select-mode,
timer, trunk-direction and renew.
Example
4.1.5 clear-forward-ack
Syntax
View
R2 CAS view
Parameter
Description
4-4
Command Manual – Voice
Comware V3 Chapter 4 E1/T1 Voice Configuration Commands
Example
Syntax
View
User view
Parameter
Description
4-5
Command Manual – Voice
Comware V3 Chapter 4 E1/T1 Voice Configuration Commands
Example
Syntax
View
User view
Parameter
r2: Enables the debugging between the RCV module and the R2 module of bottom
layer.
Description
Use the debugging voice rcv r2 command to enable the debugging between the RCV
module and the R2 module of bottom layer.
This command applies to E1 voice only.
Example
None
Syntax
View
User view
Parameter
r2: Enables the debugging between the VPP module and the R2 module of bottom
layer.
Description
Use the debugging voice vpp r2 command to enable the debugging between the VPP
module and the R2 module of bottom layer.
This command applies to E1 voice only.
4-6
Command Manual – Voice
Comware V3 Chapter 4 E1/T1 Voice Configuration Commands
Example
None
4.1.9 default
Syntax
default
View
R2 CAS view
Parameter
None
Description
Use the default command to restore the default of all the R2 configurations and reset
the R2 call statistics to 0.
The following table gives the configuration items affected by this command.
4-7
Command Manual – Voice
Comware V3 Chapter 4 E1/T1 Voice Configuration Commands
Example
4-8
Command Manual – Voice
Comware V3 Chapter 4 E1/T1 Voice Configuration Commands
4.1.10 delay
Syntax
View
Parameter
call-interval milliseconds: The call interval for digital E&M voice subscriber-line, in the
range of 200 to 2000ms. By default, the value is 200ms.
hold milliseconds: The maximum duration the caller will wait for the callee to hang up
so as to send the DTMF number in analog E&M subscriber-line delay-start mode. It
ranges from 100 to 5000ms, and is defaulted to 400ms.
rising milliseconds: The maximum duration the caller will wait from the sending of
off-hook signal to the callee's status detected in analog E&M subscriber-line delay-start
mode. It ranges from 20 to 2000ms, and is defaulted to 300ms.
send-dtmf milliseconds: The delay before the caller sends signal in analog E&M
subscriber-line immediate-start mode. It ranges from 50 to 5000ms, and is defaulted to
100ms.
dtmf milliseconds: The lasting duration of the DTMF signals in the range of 50 to
500ms. By default, the value is 120ms.
dtmf-interval milliseconds: The interval between two DTMF signals in the range of 50
to 500ms. By default, the value is 120ms.
wink-rising milliseconds: The maximum duration the caller will wait for the wink signals
after sending the seizure signals in analog E&M subscriber-line wink-start mode. It
ranges from 100 to 5000ms, and is defaulted to 500ms.
wink-hold milliseconds: The maximum lasting duration of the wink signals are received
by the caller in analog E&M subscriber-line wink-start mode. It ranges from 100 to
3000ms, and is defaulted to 500ms.
send-wink milliseconds: Specifies how long the called party will delay sending wink
signal after receiving the seizure signal on E&M interface. It ranges from 100 to 5000ms
and defaults to 500ms.
start-dial milliseconds: The delay for dialing. It is in the range of 1 to 10 seconds and
defaults to 1 second.
4-9
Command Manual – Voice
Comware V3 Chapter 4 E1/T1 Voice Configuration Commands
Description
Use the delay command to configure the related time parameters at the digital E&M
subscriber-line (E1 controller).
Use the undo delay command to restore these parameters to the default value.
On the digital E&M subscriber-line, the waiting duration of originating the next call set
by the delay call-interval milliseconds command is applicable to the immediate, wink
and delay start.
When the digital E&M subscriber-line uses the delay start mode, the calling party will
use the delay hold milliseconds command to set the longest time waiting for the delay
signals .
When the digital E&M subscriber-line uses the delay start mode, use the delay rising
milliseconds command to set the time waiting for the delay signals of called party after
the calling party sends out the off-hook signals, and then detect the device state of the
called party.
When the digital E&M subscriber-line uses the immediate start mode, use the delay
send-dtmf milliseconds command to set the delay time before the calling party sends
the called number.
The delay dtmf milliseconds command is used to set the duration that the DTMF
signals are being sent, and the delay dtmf-interval milliseconds command is used to
set the interval for sending the DTMF signals.
When the digital E&M subscriber-line uses the wink start mode, the delay wink-rising
milliseconds command is used to set the longest time it takes for the calling party to
wait for the wink signals after it sends the seizure signals.
When the digital E&M subscriber-line uses the wink start mode, the delay wink-hold
milliseconds command is used to set the longest duration that the wink signals sent by
the called party.
When the digital E&M subscriber-line uses the wink start mode, the delay send-wink
milliseconds command is used to set the longest time that the called party delays
before sending the wink signals.
Related command: timeslots-set, timer.
Example
# Set the longest delay-waiting duration to 3000 milliseconds on voice subscriber line
1/0/1:3.
[H3C-voice-line1/0/1:3] delay hold 3000
4-10
Command Manual – Voice
Comware V3 Chapter 4 E1/T1 Voice Configuration Commands
Syntax
View
Any view
Parameter
None
Description
Use the display voice em call-statistic command to view the call statistics of the
digital E&M subscriber-line.
This command applies to E1 voice only.
This command is used to display the statistics of the E&M signaling being placed in the
state of idle, seizure ready, seizure confirmation, transmitting numbers, receiving
numbers, conversation and clear ready.
Example
4-11
Command Manual – Voice
Comware V3 Chapter 4 E1/T1 Voice Configuration Commands
Field Description
Number of messages processed in idle
EM_IDLE
status by E&M module
Number of messages processed in waiting
EMCALLER_WAIT_OCCUPY
for seizure status by E&M module
Number of messages processed in the
EMCALLER_WAIT_SEND_NUMBER caller end waiting for sending phone
number status by E&M module
Number of messages processed in the
EMCALLER_SENDING_NUMBER caller end sending phone number status by
E&M module
Number of messages processed in the
EMCALLER_RINGING
caller end ringback status by E&M module
Number of messages processed in the
EMCALLER_TALKING
caller end talking status by E&M module
Number of messages processed in the
EMCALLER_CALLER_ONHOOK caller end hooking on status by E&M
module
Number of messages processed in the
EMCALLED_WAIT_SEND_OCCUPY called end waiting for seizure status by
E&M module
Number of messages processed in the
EMCALLED_WAIT_RECEIVE_NUM
called end waiting for receiving phone
BER
number status by E&M module
Number of messages processed in the
EMCALLED_RECEIVING_NUMBER called end receiving phone number status
by E&M module
Number of messages processed in the
EMCALLED_RINGING called end ringing back status by E&M
module
Number of messages processed in the
EMCALLED_TALKING
called end talking status by E&M module
Number of messages processed in the
EMCALLED_CALLED_ONHOOK called end hooking on status by E&M
module
Number of messages processed in the
EMCALLED_BUSYTONE
called end busy status by E&M module
Number of messages processed in
STATE_UNKNOWN
unknown status by E&M module
4-12
Command Manual – Voice
Comware V3 Chapter 4 E1/T1 Voice Configuration Commands
Syntax
View
Any view
Parameter
None
Description
Use the display voice em ccb command to view the information of call control block of
the E&M subscriber-line.
This command applies to E1 voice only.
This command is used to display the call status, call-ID, start type, signal type, channel
number, etc.
Example
4-13
Command Manual – Voice
Comware V3 Chapter 4 E1/T1 Voice Configuration Commands
Field Description
status Status of the call
em call ID Identifier of E&M module in calling status
start type Start mode of E&M connection
signal type Signal type of E&M connection
channel Channel number of E&M connection
rcv call ID Identifier of RCV module in calling status
sig-wait timer Timer of waiting for signal
sig-conf timer Timer of confirming signal
msg-wait timer Timer of waiting for message
Syntax
View
Any view
Parameter
None
Description
Use the display voice r2 call-statistics command to view the R2 call statistics.
This command applies to E1 voice only.
Related command: reset voice r2 call-statistics.
Example
4-14
Command Manual – Voice
Comware V3 Chapter 4 E1/T1 Voice Configuration Commands
Field Description
Total number of calls: total number of calls in E1 time
Call sumcount
slot group (sum of incoming and outgoing calls)
Number of successful calls: total number of successful
signaling connection, that is, R2 signaling connection is
call success
successfully completed, and the opposite exchange is
available for another call connection.
Number of failed calls: total number of failed signaling
exchange during call connecting process, such as peer
Call failure
subscriber line busy, null called number, and line failure,
etc.)
Call-in count Total number of incoming calls
Call-in success Total number of successful incoming calls
4-15
Command Manual – Voice
Comware V3 Chapter 4 E1/T1 Voice Configuration Commands
Field Description
Subscriber line busy times: number of subscriber line
Call-out busy busy signals received from the terminating point during
call connecting process.
Count of null calling numbers: number of null number
Call-out nullnum signals received from the terminating point during call
connecting process.
Number of received congestion: number of congestion
Call-out congestion signals received from the terminating point during call
connecting process.
Syntax
View
Any view
Parameter
None
Description
Use the display voice rcv statistic r2 command to view the information of call
statistics related to the R2 signaling in the RCV module.
This command applies to E1 voice only.
This command is used to display the interactive messages between the RCV module
and the R2 signaling module, including the number of sending the messages of the
connection request to acknowledge success and fail, the number of sending the
messages of activation acknowledgement of success and failure, the number of
sending the messages of on-hook and off-hook, the number of receiving the messages
of connection request, the number of receiving activation messages, and the number of
receiving such messages as release, ringing, and unknown.
Example
4-16
Command Manual – Voice
Comware V3 Chapter 4 E1/T1 Voice Configuration Commands
Send_R2_ActiveAck_SUCCESS : 0
Send_R2_ActiveAck_FAIL : 0
Send_R2_Onhook : 0
Send_R2_Offhook : 0
Send_R2_IPAlerting : 0
Recv_R2_ConnectReq : 0
Recv_R2_Active_TD_IN : 0
Recv_R2_Active_TD_OUT : 0
Recv_R2_Active_ELSE : 0
Recv_R2_Release : 0
Recv_R2_Alert_AP_ALERTING : 0
Recv_R2_Alert_ELSE : 0
Recv_R2_Unknow : 0
}
Field Description
Send_R2_ConnectReqAck_SUC Number of sending connection request
CESS success-acknowledge message to R2 module
Number of sending connection request
Send_R2_ConnectReqAck_FAIL
failure-acknowledge message to R2 module
Number of sending activation
Send_R2_ActiveAck_SUCCESS
success-acknowledge message to R2 module
Number of sending activation
Send_R2_ActiveAck_FAIL
failure-acknowledge message to R2 module
Number of sending onhook message to R2
Send_R2_Onhook
module
Number of sending offhook message to R2
Send_R2_Offhook
module
Number of sending IP side alerting message
Send_R2_IPAlerting
to R2 module
Number of receiving R2 connection request
Recv_R2_ConnectReq
message
Number of receiving R2 called end hooking off
Recv_R2_Active_TD_IN
message
Number of receiving R2 caller end hooking off
Recv_R2_Active_TD_OUT
message
Number of receiving R2 other hooking off
Recv_R2_Active_ELSE
message
Number of receiving R2 release request
Recv_R2_Release
message
Recv_R2_Alert_AP_ALERTING Number of receiving R2 alerting message
4-17
Command Manual – Voice
Comware V3 Chapter 4 E1/T1 Voice Configuration Commands
Field Description
Number of receiving R2 other alerting
Recv_R2_Alert_ELSE
message
Recv_R2_Unknow Number of receiving R2 unknown message
Syntax
View
Any view
Parameter
Description
Use the display voice subscriber-line command to view the subscriber line
configuration.
This command applies to E1 and T1 voice.
The command display voice subscriber-line e1-number:ts-set-number is mainly
used to display the Timeslot set corresponding to the E1 subscriber line, whether to
adopt the private-line auto-ring connection and connection number, the subscriber line
description, whether to start the echo cancellation function and echo cancellation
sampling time length, and whether to start the comfort noise function.
The command display voice subscriber-line e1-number:15 is mainly used to display
the configuration information of the subscriber line corresponding to the ISDN PRI set,
the command display voice subscriber-line t1-number:23 is mainly used to display
the configuration information of the subscriber line corresponding to the ISDN PRI set,
such as whether to adopt the private-line auto-ring connection, subscriber line
description, whether to start the echo cancellation function and set echo cancellation
sampling time length, input gain and output attenuation, whether to adopt the nonlinear
4-18
Command Manual – Voice
Comware V3 Chapter 4 E1/T1 Voice Configuration Commands
processing in echo cancellation, the time of waiting for the initial number and the dial-up
time interval between numbers, etc.
Example
Field Description
The voice line The signaling type of the subscriber line
this subscriber line The connection method of the subscriber line
The subscriber line's description The description of the subscriber line
The echo cancellation configuration of the
echo cancellation
subscriber line
The echo cancellation coverage of the
echo cancellation coverage
subscriber line
comfort noise The comfort noise of the subscriber line
The voice line was The signaling type of the subscriber line
this subscriber line The connection method of the subscriber line
receive gain The receive gain of the subscriber line
transmit gain The transmit gain of the subscriber line
4-19
Command Manual – Voice
Comware V3 Chapter 4 E1/T1 Voice Configuration Commands
Field Description
The timeout value after the subscriber dials
first-dial timer
the first digit
The timeout value between dialing the first
dial-interval Timer
digit and dialing the second digit
Syntax
View
Any view
Parameter
Description
Example
# Display the contents of the down interrupt queue between the E1/T1 voice card and
the router main card.
[H3C] display voice voip down-queue 5
V = 0,I = 0,P = 0,C = 0,E = E1/T1VI_NULL_EVENT, B = 0
V = 0,I = 1,P = 0,C = 0,E = E1/T1VI_NULL_EVENT, B = 0
V = 0,I = 2,P = 0,C = 0,E = E1/T1VI_NULL_EVENT, B = 0
……
V = 0,I = 255,P = 0,C = 0,E = E1/T1VI_NULL_EVENT, B = 0
E1VI board 0 down interrupt queue is empty :
4-20
Command Manual – Voice
Comware V3 Chapter 4 E1/T1 Voice Configuration Commands
Table 4-7 Field description of the down interrupt queue between the E1/T1 voice card
and the router main card.
Field Description
V Value flag of interrupt
I Sequence number of interrupt down-queue
P Port number of E1VI board
C Channel number of E1VI board
E Type of event
B Flag of queue ending
E1VI board 0 down interrupt
Interrupt down-queue of E1VI board is empty
queue is empty
4.1.17 dl-bits
Syntax
View
R2 CAS view
Parameter
4-21
Command Manual – Voice
Comware V3 Chapter 4 E1/T1 Voice Configuration Commands
Description
Use the dl-bits command to configure the bit value of all the signals of R2 line
signaling.
Use the undo dl-bits command to restore the values to defaults.
This command applies to E1 voice only.
You can use the dl-bits command to configure the ABCD bits value of R2 signaling for
different coding schemes in different countries.
Related command: seizure-ack {enable/disable} and answer {enable/disable}.
Example
# Configure ABCD bits value of the idle signal of receiving R2 signaling to 1101, and
that of the idle signal of transmitting R2 signaling to 1011.
[H3C-cas1/0/4:0] dl-bits idle receive 1101
[H3C-cas0:0] dl-bits idle transmit 1011
4.1.18 dtmf
Syntax
View
R2 CAS view
Parameter
4-22
Command Manual – Voice
Comware V3 Chapter 4 E1/T1 Voice Configuration Commands
Description
Use the dtmf command to configure the way of sending and receiving R2 signaling.
By default, MFC mode, not DTMF mode, is used to collect call number information.
This command applies to E1 voice only.
The dtmf command is used to configure whether to use MFC or DTMF for sending and
receiving R2 signaling. DTMF mode is used when you configure dtmf enable. MFC
mode is used when you configure dtmf disable.
Related command: timer dtmf.
Example
4.1.19 effect-time
Syntax
effect-time time
undo effect-time
View
R2 CAS view
Parameter
time: The lower threshold of the debounce time of line signaling, in the range 10 to 40
milliseconds. It defaults to 10 milliseconds.
Description
Use the effect-time command to configure the debounce time of line signaling.
Use the undo effect-time command to restore the default.
This command applies to E1 voice only.
The change of the line is regarded valid only when the duration of line signaling
exceeds this threshold.
Related command: timeslots-set, pri-set.
Example
# Set the debounce time of line signaling to 20 milliseconds for timeslot set 3 on the E1
subscriber-line 1/0/0.
[H3C-cas1/0/0:3] effect-time 20
4-23
Command Manual – Voice
Comware V3 Chapter 4 E1/T1 Voice Configuration Commands
4.1.20 final-callednum
Syntax
View
R2 CAS view
Parameter
Description
Use the final-callednum command to enable or disable the terminate signal to be sent
to the terminating point after the called number is sent.
By default, the called number terminate signal is disabled.
This command applies to E1 voice only.
In some countries, the R2 interregister signaling can be used to send the called number
terminate signal after the called number is sent out, indicating that the called number
transmission is completed. In this case, you can use this command to adjust the
signaling exchange approach. When the terminating point receives the terminate signal,
it stops requesting for the called number.
Related command: register-value digital-end.
Example
4.1.21 force-metering
Syntax
View
R2 CAS view
Parameter
4-24
Command Manual – Voice
Comware V3 Chapter 4 E1/T1 Voice Configuration Commands
Description
Example
4.1.22 group-b
Syntax
View
R2 CAS view
Parameter
Description
Use the group-b command to enable or disable Group-B stage signal to complete
register exchange.
By default, Group-B stage signal is used to complete register exchange, that is, the
command is in enable state.
This command applies to E1 voice only.
In some countries, R2 register exchange does not support Group-B stage signal
exchange, or cannot correctly interpret Group-B signal value. Then you can use the
group-b command to enable or disable Group-B signal exchange.
Related command: register-value req-switch-groupb.
4-25
Command Manual – Voice
Comware V3 Chapter 4 E1/T1 Voice Configuration Commands
Example
4.1.23 line
Syntax
View
Parameter
slot –number: Indicates the serial number of E1/T1 subscriber-line to which this
subscriber line belongs.
ts-set-number: Indicates the serial number of Timeslot set established successfully.
15: Indicates adopting the E1 voice ISDN PRI interface mode.
23: Indicates adopting the T1 voice ISDN PRI interface mode.
Description
Use the line command to configure the corresponding relationship between the POTS
voice entity and the logic subscriber line.
Use the undo line command to cancel the corresponding relationship between the
POTS peer and the logical subscriber line.
This command applies to E1 and T1 voice.
This command can be used in POTS voice entity view only and takes effect on E1/T1
voice subscriber-line only.
After configuring the destination mode of voice entity by using the command
match-template, it is required to use the command line to configure the corresponding
relationship between the POTS voice entity and logic line, that is, to specify that via
which line the routing should be performed toward this destination.
Use the command line e1-number:ts-set-number to select the subscriber line
corresponding to Timeslot set in this E1 subscriber-line as the routing output. Use the
command line e1-number:15 corresponding to the ISDN PRI set in this E1
subscriber-line as the routing output. Use the command line t1-number:23
corresponding to the ISDN PRI set in this T1 subscriber-line as the routing end.
Related command: timeslots-set, entity, pri-set.
4-26
Command Manual – Voice
Comware V3 Chapter 4 E1/T1 Voice Configuration Commands
Example
# Configure the corresponding relationship between POTS voice entity 3 and No.1
Timeslot set in E1 subscriber-line.
[H3C-voice-dial-entity3] line 1/0/1:1
4.1.24 loopback
Syntax
View
Parameter
Description
Use the loopback command to set the loopback mode on the interface.
Use the undo loopback command to restore the default.
Example
Syntax
View
R2 CAS view
Parameter
4-27
Command Manual – Voice
Comware V3 Chapter 4 E1/T1 Voice Configuration Commands
timeslots-list: Specifies a timeslot range. The expression includes the single digit, two
digits separated by “,”, a pair of digits separated by “-”, or the combination form (e.g.,
1-14, 15, 17-31). The value range of digits is the integer from 1 to 31.
Description
Use the mfc command to maintain of MFC channel of the specified timeslot.
This command applies to E1 voice only.
To block the MFC channel means that this channel will no longer load the R2
interregister signaling information, that is, this channel is set manually as unavailable.
To open the MFC channel is the processes inverse to the blocking operation, which can
re-set the channel as available and enable it to load R2 interregister signaling.
To query the MFC channel will display the busy/idle, opened/blocked status of channel
in a real time way.
Related command: cas, ts.
Example
# Block the timeslots 1-15 in No.5 Timeslot set, and query the channel status of the
timeslots 1-31.
[H3C-cas1/0/0:5] mfc block timeslots 1-15
[H3C-cas1/0/0:5] mfc query timeslots 1-31
4.1.26 mode
Syntax
View
R2 CAS view
Parameter
zone-name: Name of the country or region. By default, it is set to the mode of ITU-T. It
can be:
z argentina: Uses Argentinean R2 signaling standard.
z australia: Uses Australian R2 signaling standard.
z china: Uses Chinese R2 signaling standard.
z bengal: Uses Bengalee R2 signaling standard.
z brazil: Uses Brazilian R2 signaling standard.
z custom: Uses the R2 signaling mode defined by customer.
z hongkong: Uses Hongkong R2 signaling standard.
4-28
Command Manual – Voice
Comware V3 Chapter 4 E1/T1 Voice Configuration Commands
Description
Use the mode command to configure the R2 signaling mode in a country or region.
Use the undo mode command to restore the default, as you would with the mode itu-t
default-standard command.
The default R2 signaling mode is ITU-T mode.
This command applies to E1 voice only.
The implementation and parameters of R2 signaling vary in different countries.
Therefore, the mode needs to be adjusted to enable H3C router to exchange R2
signaling with the switching devices of different countries or regions. According to the
configuration, the system automatically selects the appropriate subscriber-line state,
service type, metering signal, and the signal values of C and D bits, etc. At present, it
supports the modes in Brazil, Mexico, Argentina, India, New Zealand, Thailand, Bengal,
South Korea, Hongkong, Indonesia, as well as the countries and regions that comply
with ITU-T standards.
If the default-standard parameter is configured, then the system will initialize the
subscriber line status, service type, metering signal and C signaling bit and D signaling
bit and other parameters according to the national standards of the countries or
regions.
In the custom mode, you can configure the specific signaling exchange process and
signal values of R2 signaling, so as to adjust the R2 signaling in your country in a more
flexible way.
You can execute this command only when the register-enable off command is
configured.
Related command: register-value, force-metering, effect-time.
Example
4-29
Command Manual – Voice
Comware V3 Chapter 4 E1/T1 Voice Configuration Commands
4.1.27 open-trunk
Syntax
View
Parameter
caller: Indicates the voice gateway can enable E&M non-signaling mode but cannot
enable monitoring function when it works as the calling end.
monitor interval: Indicates the voice gateway can enable both E&M non-signaling
mode and the monitoring function when it works as the calling end. The monitoring time
is decided by the argument interval.
called: Indicates the voice gateway can enable E&M non-signaling mode when it works
as the called end.
Description
Note:
After using the open-trunk caller monitor interval command to enable E&M
non-signaling mode and enable the monitoring function, you should use the undo
open-trunk monitor command to delete this monitoring function (Note that the
execution of this command will just disable monitoring function but not E&M
non-signaling mode.); while executing the undo open-trunk command will not only
disable E&M non-signaling mode but also the monitoring function.
Example
# Configure to enable E&M non-signaling mode and enable the monitoring function at
the same time. The monitoring time is 120 seconds.
[H3C-voice-line3/0/0] open-trunk caller monitor 120
4-30
Command Manual – Voice
Comware V3 Chapter 4 E1/T1 Voice Configuration Commands
4.1.28 pcm
Syntax
View
Parameter
a-law: Companding A-law, used in most part of the world other than North America and
Japan, such as China, Europe, Africa, and South America.
µ-law: Companding µ-law, used in North America and Japan.
Description
Use the pcm command to configure a companding law used for quantizing signals.
Use the undo pcm command to restore the default.
By default, A-law applies.
Companding laws are usually adopted to quantize signals unevenly for the purpose of
reducing noise and improving signal to noise ratio. Underpinning this approach is the
statistics about voice signals, which indicate that lower power signals are more likely
present than high power signals.
According to CCITT, when two countries use different companding schemes
communicate, the side using µ-law is responsible for converting signals to A-law.
Example
4.1.29 pri-set
Syntax
View
4-31
Command Manual – Voice
Comware V3 Chapter 4 E1/T1 Voice Configuration Commands
Parameter
Description
Use the pri-set command to bundle timeslots on the CT1/PRI or CE1/PRI interface into
a pri-set.
Use the undo pri-set command to remove the timeslot bundle.
By default, no timeslots are bundled into pri-sets.
When creating a pri-set on a CE1/PRI interface, note the following:
z Timeslot 16 is D channel for transmitting signaling; it cannot form a bundle that
includes itself only. The attempt to bundle only timeslot 16 will fail.
z In a pri-set formed by timeslot bundling on a CE1/PRI interface, timeslot 0 is used
for frame synchronization control (FSC), timeslot 16 as a D channel for signaling
transmission, and other timeslots as B channels for data transmission. You may
bundle the timeslots except for timeslot 0 into a pri-set (as the D channel, timeslot
16 is automatically bundled). The logic features of this pri-set will be the same like
those of an ISDN PRI interface. If no timeslot is specified, all timeslots except for
timeslot 0 are bundled into an interface similar to an ISDN PRI interface in the form
of 30B+D.
z The system automatically creates a serial interface after timeslot bundling on the
interface. This serial interface has the same logic features of ISDN PRI interface.
The serial interface is numbered in the form of serial number:15, where number is
maximum serial interface number plus 1.
z Only one timeslot bundling mode is supported on one CE1/PRI interface at a time.
In other words, you cannot use this command and the channel-set command
together.
When creating a pri-set on a CT1/PRI interface, note the following:
z Timeslot 24 is D channel for transmitting signaling; it cannot form a bundle that
includes itself only. The attempts to bundle only timeslot 24 will fail.
z In a pri-set formed by timeslot bundling on a CT1/PRI interface, timeslot 24 is used
as D channel for signaling transmission, and other timeslots as B channels for data
transmission. You may randomly bundle these timeslots into a pri-set (as the D
channel, timeslot 24 is automatically bundled). The logic features of this pri-set will
be the same like those of an ISDN PRI interface. If no timeslot is specified, all the
timeslots are bundled into an interface similar to an ISDN PRI interface in the form
of 23B+D.
4-32
Command Manual – Voice
Comware V3 Chapter 4 E1/T1 Voice Configuration Commands
z The system automatically creates a serial interface after timeslot bundling on the
interface. This serial interface has the same logic features of ISDN PRI interface.
The serial interface is numbered in the form of serial number:23, where number is
maximum serial interface number plus 1.
z Only one timeslot bundling mode is supported on a CT1/PRI interface at a time. In
other words, you cannot use this command and the channel-set command
together.
Example
4.1.30 re-answer
Syntax
View
R2 CAS view
Parameter
Description
Use the re-answer command to enable or disable the originating point to support
re-answer signal process.
By default, the originating point does not support re-answer signal process.
This command applies to E1 voice only.
In some countries, re-answer process is needed in R2 signaling. When the terminating
point sends a clear-back signal, the originating point does not release the line right
away, but maintains the call state instead. If it receives the re-answer signal from the
terminating point in the specified time, it continues the call; otherwise, it disconnects the
call after timeout.
Related command: answer, timer dl re-answer.
Example
4-33
Command Manual – Voice
Comware V3 Chapter 4 E1/T1 Voice Configuration Commands
4.1.31 register-number
Syntax
register-number
undo register-number
View
Parameter
None
Description
Use the register-number command to enable the gateway (the VoIP-enabled router)
to register the number of the voice entity with the H.323 gatekeeper or SIP server.
Use the undo register-number command to disable the gateway to register the
number of the voice entity when registering with the H.323 gatekeeper or SIP server.
By default, the number of the voice entity is registered.
You need to use the undo register-number command to disable the gateway to
register the numbers of some voice entities with a gatekeeper or SIP server in the
situations where:
z POTS entities with the same number exist on multiple gateways on the same
network. But for their gatekeeper or SIP server, the number of a POTS entity must
be unique. Therefore, those POTS entities cannot register with the gatekeeper or
SIP server at the same time.
z The user needs to register the numbers of some ports with the gatekeeper or SIP
server but not the numbers of others for special purposes.
This command is only applicable to the configurations of POTS voice entities.
Caution:
After configuring this command, use the ras-on command in GK-client view or the
register-enable command in SIP view to register the number with the gatekeeper or
SIP server to make the configuration effective.
4-34
Command Manual – Voice
Comware V3 Chapter 4 E1/T1 Voice Configuration Commands
Example
4.1.32 register-value
Syntax
View
R2 CAS view
Parameter
billingcategory value: Specifies the billing category value, in the range 1 to 16. It
defaults to 1.
callcreate-in-groupa value: Specifies the directly created calling signal value, in the
range 1 to 16. It defaults to 6.
callingcategory value: Specifies calling category value, in the range 1 to 16. It defaults
to 1.
congestion value: Specifies congestion value, in the range 1 to 16. It defaults to 4.
demand-refused value: Specifies demand-refused value, in the range 1 to 16. It
defaults to 12.
digit-end value: Specifies digit-end value, in the range 1 to 16. It defaults to 15.
nullnum value: Specifies null number value, which ranges from 1 to 16. It defaults to 5.
4-35
Command Manual – Voice
Comware V3 Chapter 4 E1/T1 Voice Configuration Commands
req-billingcategory value: Specifies request billing category value, in the range 1 to 16.
It defaults to 3.
req- callednum-and-switchgroupa value: Specifies request next called number and
switch Group-A value, in the range 1 to 16. It defaults to 1.
req-callingcategory value: Specifies request calling category value, in the range 1 to
16. It defaults to 3.
req- currentcallednum-in-groupc value: Specifies request current called number
value in Group C, in the range 1 to 16. It defaults to 16.
req-currentdigit value: Specifies request current digit value, in the range 1 to 16. It
defaults to 16.
req- firstcallednum-in-groupc value: Specifies request first called number value in
Group C, in the range 1 to 16. It defaults to 16.
req-firstcallingnum value: Specifies request first calling number value, in the range 1
to 16. It defaults to 5.
req-firstdigit value: Specifies request first digit value, in the range 1 to 16. It defaults to
16.
req-nextcallednum value: Specifies request next called number value, in the range 1
to 16. It defaults to 1.
req-nextcallingnum value: Specifies request next calling number value, in the range 1
to 16. It defaults to 5.
req-lastfirstdigit value: Specifies request last first digit value, in the range 1 to 16. It
defaults to 2.
req-lastseconddigit value: Specifies request last second digit value, in the range 1 to
16. It defaults to 7.
req-lastthirddigit value: Specifies request last third digit value, in the range 1 to 16. It
defaults to 8.
req- nextcallednum value: Specifies request next called number value, in the range 1
to 16. It defaults to 1.
req- nextcallingnum value: Specifies request next calling number value, in the range 1
to 16. It defaults to 5.
req-switch-groupb value: Specifies request switch Group-B value, in the range 1 to 16.
It defaults to 3.
subscriber-abnormal value: Specifies subscriber line abnormal value, in the range 1
to 16. It defaults to 16.
subscriber-busy value: Specifies subscriber line busy value, in the range 1 to 16. It
defaults to 3.
subscriber-charge value: Specifies subscriber line idle and charge value, in the range
1 to 16. It defaults to 1.
4-36
Command Manual – Voice
Comware V3 Chapter 4 E1/T1 Voice Configuration Commands
subscriber-idle value: Specifies subscriber line idle value, in the range 1 to 16. It
defaults to 6.
Description
Use the register-value command to configure the value of all register signals of R2
signaling.
Use the undo register-value command to restore the default value. Signal value 16
means the corresponding signal function does not exist. For example, if the request last
first digit function does not exist in some countries, the value of req-lastfirstdigit is 16.
This command applies to E1 voice only.
By configuring the register-value command, you can send the specified request signal
and require the opposite exchange to send back the corresponding answer signal. For
example, using the register-value callingcategory command, you can enable the
terminating point to send the specified signal to require the originating point to send
back the calling category.
The register-value billingcategory command is used to configure KA signal of R2
signaling. That is, the originating point sends a calling category signal to the originating
toll office or originating international exchange, which provides two kinds of information:
billing category of this connection (paid at the specified time or at once, or toll free) and
subscriber level (with or without priority).
The register-value callingcategory command is used to configure KD signal of R2
signaling, i.e., calling category. It functions to identify whether break-in and forced-
release can be implemented by or on the calling party.
The register-value subscriber-idle command is used to configure KB signal of R2
signaling. It indicates subscriber status (such as idle), and acknowledges and controls
connection. You should make sure that KB values of the both ends are the same.
Otherwise, call connection might not be established even if the called party is idle. If
H3C routers are used at both ends, you should make sure that KB values of the both
ends are the same. If PBX is used at one end, and a router is used at the other end, you
should adjust the KB value of the router to keep it consistent with that of the PBX.
Note:
In some countries, the register signal encoding scheme does not necessarily support
all the register signals described above. For example, there is no billingcategory but
callingcategory in ITU-T recommendation. Therefore, it is recommended that you use
the default values and do not configure unless there are special requirements.
4-37
Command Manual – Voice
Comware V3 Chapter 4 E1/T1 Voice Configuration Commands
Example
4.1.33 renew
Syntax
renew ABCD
undo renew
View
R2 CAS view
Parameter
ABCD: Indicates the default of each signal bit in transmission, with the value being 0 or
1. It defaults to 1111.
Description
Use the renew command to configure the signal values of C bit and D bit.
Use the undo renew command to restore the default value.
This command applies to E1 voice only.
In the R2 signaling A-bit and B-bit are used to transmit the valid information, and the
actual transmission signal has nothing to do with the setting value. C-bit and D-bit do
not transmit the valid information, and generally the set signal value is adopted as the
transmission signals. Therefore, for the R2 signaling, this command only makes sense
to C-bit and D-bit.
Using this command, you can adjust the values of C and D bits according to the line
signaling encoding standards in different countries. For example, in China, the values
of C and D bits of R2 signaling are fixed to 1 and 1 respectively. However, in most other
countries, the values of C and D bits are 0 and 1 respectively.
Related command: cas, reverse.
4-38
Command Manual – Voice
Comware V3 Chapter 4 E1/T1 Voice Configuration Commands
Note:
This command takes effect only after the mode zone-name {custom| standard}
command is configured , and is invalid after the command mode custom is configured,
namely the values of C and D will not be changed. With mode custom configured, all
signal values of R2 signaling are set manually. With mode zone-name custom
configured, some signals values are set as required, while most signal values comply
with the standard of the zone-name country.
Example
# Configure the signal values of both the C-bit and D-bit of R2 line signaling as 1.
[H3C-cas1/0/0:5] renew 0011
Syntax
reset voice em
View
User view
Parameter
None
Description
Use the reset voice em command to reset the call statistics on the digital E&M
interface.
This command applies to E1 voice lines only.
Related command: display voice em call-statistics.
Example
Syntax
reset voice r2
4-39
Command Manual – Voice
Comware V3 Chapter 4 E1/T1 Voice Configuration Commands
View
User view
Parameter
None
Description
Use the reset voice r2 command to reset the call statistics of R2 signaling.
This command applies to E1 voice only.
Related command: display voice r2 call-statistics.
Example
4.1.36 reverse
Syntax
reverse ABCD
undo reverse
View
R2 CAS view
Parameter
ABCD: Indicates whether to perform the inversion of each signal bit, with the value of
each bit being 0 or 1. The default ABCD is 0000, that is, the function of inversion is
disabled.
Description
Use the reverse command to configure the inversion mode of line signals.
Use the undo reverse command to restore the default value.
This command applies to E1 voice only.
This command can be used to perform the inversion change to A, B, C, and D bits prior
to sending and after receiving the line signal, that is, 0 is changed to 1, and 1 to 0. If the
value of one bit is 1, it indicates this bit is needed to invert.
Related command: cas, renew.
Example
4-40
Command Manual – Voice
Comware V3 Chapter 4 E1/T1 Voice Configuration Commands
4.1.37 seizure-ack
Syntax
View
R2 CAS view
Parameter
Description
Use the seizure-ack command to enable or disable the terminating point to send
seizure acknowledgement signal.
By default, the terminating point sends seizure acknowledgement signal.
This command applies to E1 voice only.
Normally, the terminating point sends seizure acknowledgement signal when it
receives a seizure signal from the originating point. However, in some countries R2
signaling encoding scheme allows the terminating point not to send seizure
acknowledgement signal. In this case, you can use the seizure-ack command to adjust
the signaling encoding scheme. If the originating point does not require
acknowledgement signal, the terminating point has no need to send back the signal
when it receives a seizure signal.
Related command: timer dl seizure.
Example
4.1.38 select-mode
Syntax
View
R2 CAS view
4-41
Command Manual – Voice
Comware V3 Chapter 4 E1/T1 Voice Configuration Commands
Parameter
Description
Example
# Configure the trunk selection mode as max for the No.5 Timeslot set in No.0 E1
subscriber-line.
[H3C-cas1/0/0:5] select-mode max
4-42
Command Manual – Voice
Comware V3 Chapter 4 E1/T1 Voice Configuration Commands
4.1.39 sendring
Syntax
View
R2 CAS view
Parameter
Description
Use the sendring command to enable or disable the terminating point to send
ring-back tone or busy tone signal to the calling party.
By default, the ring-back tone and busy tone signals are sent.
This command applies to E1 voice only.
In some regions a PBX, as the originating point, might not send ring-back tone to the
calling party during call connecting process. To avoid call connection failure due to the
calling party not able to hear the corresponding tone, you can manually configure the
sendring command. If H3C router works as the terminating point, it sends the
corresponding tone to the originating point according to call connection situations.
Related command: timer ringring.
Example
# When time slot 5 on the E1 port 0 works as the terminating point, enable it to send
ring-back tone to the originating point.
[H3C-cas1/0/0:5] sendring ring-back enable
4.1.40 signal-value
Syntax
View
4-43
Command Manual – Voice
Comware V3 Chapter 4 E1/T1 Voice Configuration Commands
Parameter
Description
Use the signal-value command to configure the digital E&M subscriber-line to receive
and transmit the ABCD bits of idle signaling and seizure signaling.
Use the undo signal-value command to restore the bits of the corresponding signaling
to the default value.
This command applies to E1 voice only.
When the router and its peer device, such as a PBX, communicate using the digital
E&M signaling, it should be ensured that they interpret the ABCD bits of the received
and transmitted idle signaling and seizure signaling in the same way. That is, the
signaling of the same type should have the same bit value at both ends.
Related command: subscriber-line.
Example
# Set the ABCD bits of seizure signaling transmitted by the digital E&M subscriber-line
are 1011.
[H3C-voice-line1/0/0:0] signal-value transmit seize 1011
4.1.41 special-character
Syntax
View
R2 CAS view
Parameter
4-44
Command Manual – Voice
Comware V3 Chapter 4 E1/T1 Voice Configuration Commands
Description
Note:
z Do not use the special-character command to configure one special character to
different signal codes.
z Up to six special characters can be configured with register signal codes.
z Different special characters must use different signaling values; otherwise, calling
may be affected.
Example
4.1.42 subscriber-line
Syntax
View
Voice view
Parameter
slot-number: Indicates the subscriber line number generated in creating Timeslot set or
ISDN PRI set, determined by the slot number of the E1V1 module.
ts-set-number: Indicates the number of Timeslot set created successfully.
15: Indicates the subscriber line is generated in creating the ISDN PRI set on E1
subscriber line.
23: Indicates the subscriber line is generated in creating the ISDN PRI set on T1
subscriber line.
4-45
Command Manual – Voice
Comware V3 Chapter 4 E1/T1 Voice Configuration Commands
Description
Example
Syntax
View
Parameter
dial-interval seconds: Sets the max waiting time between two digit numbers, it is any
integer in the 0 to 300 seconds. By default, the dial-interval seconds is 4 seconds.
ring-back seconds: Sets the timeout time for the calling party to wait for the ringback
response from the called party. It is any integer in the range 5 to 60000 seconds. By
default, the ring-back seconds is 60 seconds.
4-46
Command Manual – Voice
Comware V3 Chapter 4 E1/T1 Voice Configuration Commands
wait-digits second: Sets the timeout time for the called party to wait for the called
number. It is any integer in the range 3 to 600 seconds. By default, the wait-digits
seconds is 5 seconds.
infinity: Indicates that there is no time limit, that is, timeout will not occur.
Description
Use the timer command to configure the timeout values of the signals in the digital
E&M signaling.
Use undo timer command to restore them to defaults.
This command applies to E1 voice only.
The timer ring-back seconds command can be used at the digital E&M subscriber-line
to set the timeout time for a calling party to wait for the ringback response from the
called party.
The timer wait-digit seconds command can be used at the digital E&M subscriber-line
to set the timeout time for a called party to wait for the called number.
Example
Syntax
View
R2 CAS view
Parameter
time: Interval at which R2 signaling sends DTMF signals, in the range 50 to 10000
milliseconds. It defaults to 50 milliseconds.
Description
Use the timer dtmf command to configure the time interval for sending DTMF signals.
Use the undo timer dtmf command to restore the default value.
This command applies to E1 voice only.
Normally, the originating point sends a DTMF signal upon receiving the line seizure
acknowledgement signal. Using this command, you can configure the device at the
4-47
Command Manual – Voice
Comware V3 Chapter 4 E1/T1 Voice Configuration Commands
originating point to send a DTMF signal after the specified time interval, so as to make
it appropriate to the number receiving process of the peer PBX,
Related command: dtmf { enable | disable }.
Example
# Configure the R2 signaling to send a DTMF signal 800 milliseconds after the
reception of the seizure acknowledgement signal.
[H3C-cas1/0/0:0] timer dtmf 800
Syntax
View
R2 CAS view
Parameter
persistence time: Duration time of the register pulse signal of R2 signaling, ranging
from 100 to 1,000 milliseconds. By default, it is set to 150±30 milliseconds.
Description
Use the timer pulse command to configure the persistence time of the register pulse
signal of R2 signaling (A3, A4 and A6, etc.).
Use the undo timer pulse command to restore the default value.
This command applies to E1 voice only.
When the terminating point sends a backward register pulse signal, such as A3, the
signal must persist for a specified time range. When the originating point receives the
pulsed A3 signal, it has to send a forward Group II signal. When the originating point
recognizes the pulse signal A4, A6, or A15, it stops sending any forward signal, and
terminates the register signal exchange.
Related command: timer register-complete.
Example
# Set the persistence time of the register pulse signal of R2 signaling to 300ms.
[H3C-cas1/0/0:0] timer register-pulsepersistence 300
4-48
Command Manual – Voice
Comware V3 Chapter 4 E1/T1 Voice Configuration Commands
Syntax
View
R2 CAS view
Parameter
group-b time: Timeout value in which the originating point waits for Group-B signal of
R2 signaling. The terminating point should send Group-B signal in the specified time
when switching to Group-B exchange. It ranges from 100 to 90,000ms. By default, it is
set to 30,000ms.
Description
Use the timer register-complete command to configure the timeout value for register
signals of R2 signaling.
Use the undo timer register-complete command to restore the default value.
This command applies to E1 voice only.
Related command: timer dl.
Example
Syntax
View
R2 CAS view
Parameter
ringback time: Time interval before ring-back tone is sent, ranging from 1,000 to
90,000ms. By default, it is set to 60,000ms.
4-49
Command Manual – Voice
Comware V3 Chapter 4 E1/T1 Voice Configuration Commands
ringbusy time: Time interval before busy tone is sent, ranging from 1,000 to 90,000ms.
By default, it is set to 30,000ms.
Description
Use the timer ring command to configure the maximum time range before the signal
tone of R2 signaling is sent.
Use the undo timer ring command to restore it to the default value.
This command applies to E1 voice only.
By manually configuring the sending command, you can enable the device at the
originating point to send ring-back and busy tones to the calling party. The timer ring
command helps you identify these signals.
Related command: sendring.
Example
Syntax
View
R2 CAS view
Parameter
answer time: Timeout interval during which R2 waits for an answer signal. The
terminating point should send back an answer signal in the specified time after a
seizure acknowledgement signal is sent. It ranges from 10 to 120000 milliseconds and
defaults to 60000 milliseconds.
clear-back time: Timeout interval of R2 clear-back signal. After it sends a clear-back
signal, the terminating point should recognize the forward signal sent by the originating
point in the specified time. It ranges from 100 to 60000 milliseconds. By default, it is set
to 10000 milliseconds.
clear-forward time: Timeout interval of R2 clear-forward signal. After the originating
point sends a clear-forward signal, the terminating point should send back a
corresponding line signal in the specified time, such as clear-back signal or release
4-50
Command Manual – Voice
Comware V3 Chapter 4 E1/T1 Voice Configuration Commands
guard signal. It ranges from 100 to 60000 milliseconds. By default, it is set to 10000
milliseconds.
seizure time : Timeout value of R2 seizure signal. After the originating point sends a
seizure signal, the terminating point should send back a seizure acknowledgement
signal in the specified time. It ranges from 100 to 5000 milliseconds. By default, it is set
to 1000 milliseconds.
re-answer time: Timeout interval of R2 re-answer signal. When the originating point
recognizes the clear-back signal, if the terminating point does not send a re-answer
signal in the specified time, the originating point releases the line. It ranges from 100 to
60000 milliseconds. By default, it is set to 1000 milliseconds.
release-guard time: Timeout interval of R2 release guard signal. When the originating
point sends a clear-forward signal, the terminating point should send a release guard
signal in the specified time after it sends back a clear-back signal. It ranges from 100 to
60000 milliseconds. By default, it is set to 10000 milliseconds.
Description
Use the timer dl command to configure the timeout value of line signals of R2
signaling.
Use the undo timer dl command to restore the default value.
This command applies to E1 voice only.
Related command: timer complete.
Example
4.1.49 timeslot-set
Syntax
View
Parameter
ts-set-number: Specifies the identification number of a certain Timeslot set, with the
value ranging from 0 to 30.
4-51
Command Manual – Voice
Comware V3 Chapter 4 E1/T1 Voice Configuration Commands
timeslots-list: Specifies a timeslot range. The expression includes the single digit, two
digits separated by “,”, a pair of digits separated by “-”, or the combination form (e.g.,
1-14, 15, 17-31). The value range of digits is the integer from 1 to 31.
signal: Specifies the binding signaling mode of this Timeslot set, which is generally
used to configure the signaling mode adopted by the central office. It includes the
following types of signaling:
z e&m-delay: Adopts the delay-start mode in the digital E&M signaling.
z e&m-immediate: Adopts the immediate-start mode in the digital E&M signaling.
z e&m-wink: Adopts the wink-start mode in the digital E&M signaling.
z r2: Specifies that the signaling mode adopt ITU-T Q.421 digital line signaling R2,
which is the most common configuration signaling.
Description
Use the timeslot-set command to configure the timeslot set to perform R2 signaling
and digital E&M signaling configurations.
Use the undo timeslot-set command to cancel the specified timeslot set.
By default, no TS set is configured, and if the digital E&M signaling is used, then adopts
e&m-immediate mode.
This command applies to E1 voice only.
The Timeslot set is actually the logical subscriber line abstracted from the physical E1
interface, mainly used for configuring R2 signaling, digital E&M signaling and other
voice functions. In one E1 interface only one Timeslot set can be defined. In defining
the timeslot range of Timeslot set, the timeslot range can be distributed is 1-15 and
17-31, and the No.16 timeslot is reserved as the transmission channel of the
out-of-band signaling.
When using the digital E&M signaling delay-start mode (e&m-delay), If the calling side
off-hooks to occupy the trunk line, the connected peer (e.g., PBX) will also enter the
off-hook state to answer the calling party and will remain in that state until it is ready for
receiving the address message. In this case, the PBX enters the hook-up state (this
interval is the delay-dial period). The calling party sends the address message, and
PBX connects this call to the called party, and thus the two parties can begin their
communications.
When the digital E&M signaling e&m-immediate mode is adopted, the calling party
off-hooks to wait for the confirmation of time, and then it sends the dialing address
message to the connected peer such as a PBX. During the process, it does not detect
whether the PBX is ready to receive.
When the digital E&M signaling e&m-wink mode is adopted, the calling party first
off-hooks to occupy the trunk line while the connected peer (e.g., a PBX) remains in the
hook-up state until it receive the connecting signal from the calling party. In this case,
the wink signal sent by the PBX indicates that it has been ready. Upon receiving the
4-52
Command Manual – Voice
Comware V3 Chapter 4 E1/T1 Voice Configuration Commands
wink signal, the calling party begins to send the address message and the PBX will
connect the call to the called party and thus the two parties can begin their
communications.
Only after establishing TS set successfully can the command subscriber-line be used
to enter the subscriber line and configure the voice-related attributes.
Related command: subscriber-line, cas.
Example
4.1.50 trunk-direction
Syntax
View
R2 CAS view
Parameter
timeslots-list: Specifies the range of trunk timeslot. The expression includes the single
digit, two digits separated by “,”, a pair of digits separated by “-”, or the combination
form (e.g., 1-14, 15, 17-31). The value range of digits is the integer from 1 to 31.
in: Indicates the trunk is the incoming trunk.
out: Indicates the trunk is the outgoing trunk.
dual: Indicates the trunk is the bidirectional trunk.
Description
4-53
Command Manual – Voice
Comware V3 Chapter 4 E1/T1 Voice Configuration Commands
Example
# Configure the trunk direction as bidirectional trunk for timeslot set 5 on E1 port 1/0/0.
[H3C-cas1/0/0:5] trunk-direction timeslots 1-31 dual
4.1.51 ts
Syntax
View
R2 CAS view
Parameter
Description
Use the ts command to maintain the trunk circuit of the specified timeslot.
This command applies to E1 voice only.
To block the trunk circuit means that the circuit no longer loads the service information,
that is, this circuit is set manually as unavailable.
To open the trunk circuit is the inverse process of the blocking operation, which can
reset the trunk circuit as available and enable it to load service information.
4-54
Command Manual – Voice
Comware V3 Chapter 4 E1/T1 Voice Configuration Commands
To query the trunk circuit will display the busy/idle, opened/blocked status of the circuit
in a real time way.
To reset the trunk circuit refers to re-initializing the state of trunk circuit. Generally, if the
circuit state cannot be restored to normal in blocking or opening the circuit manually, it
is required to perform the resetting. If the circuit cannot be reset automatically and
correctly because of other reasons,, it is generally required to reset manually the circuit,
too.
Related command: cas, mfc.
Example
# Reset the circuit of timeslots 1-15 in No.5 Timeslot set and query the status of the
circuit of timeslots 1-31.
[H3C-cas1/0/0:5] ts reset timeslots 1-15
[H3C-cas1/0/0:5] ts query timeslots 1-31
4-55
Command Manual – Voice
Comware V3 Chapter 5 Fax Configuration Commands
Syntax
View
Parameter
Description
Use the cngced-detection command to set the threshold parameters for CNG/CED
signal detection.
Use the undo cngced-detection command to restore the default.
CNG is generated when the fax machine at the calling end starts, while CED is
generated when the fax machine at the called end starts.
A voice gateway determines fax state by detecting CNG/CED. The likelihood of
detection failure or error exists however depending on the environment where the
device is deployed. As a solution, you can use this command to tune the CNG/CED
detection sensitivity and reliability.
As the threshold value is increasing, detection reliability increases; if you assign a value
that is too large, however, detection may fail as well. The same applies to the setting of
the times argument.
The times argument specifies the lower limit of the CNG/CED duration. For instance,
the default of times is 10; this means the CNG/CED signal must last at least 300
milliseconds to be regarded valid. As the times value is incrementing by one, the
minimum CNG/CED signal duration increases by 30 milliseconds.
5-1
Command Manual – Voice
Comware V3 Chapter 5 Fax Configuration Commands
Example
# Set the threshold argument to 5 and the times argument to 20 in voice subscriber-line
view for CNG/CED signal detection.
[H3C-voice-line0] cngced-detection 5 20
Syntax
View
User view
Parameter
Description
5-2
Command Manual – Voice
Comware V3 Chapter 5 Fax Configuration Commands
specific item, you must enable debugging for it with the corresponding command. The
debugging voice fax all command enables debugging for all items except for channel.
The undo debugging voice fax all command are not completely independent of the
undo debugging voice fax channel command. The undo debugging voice fax all
command also disables debugging for channel, while the undo debugging voice fax
channel command disables debugging only for channel.
Example
Syntax
default entity fax baudrate { 2400 | 4800 | 9600 | 14400 | disable | voice }
default entity fax ecm
default entity fax level level
default entity fax local-train threshold value
default entity fax nsf-on
default entity fax protocol { standard-t38 | t38 | nonstandard } [ hb-redundancy
number | lb-redundancy number ]
default entity fax protocol { none | pcm { g711alaw | g711ulaw } { private |
standard } }
default entity fax support-mode { rtp | sip-udp | vt }
default entity fax train-mode { local | ppp }
undo default entity fax { baudrate | ecm | level | local-train threshold | nsf-on |
protocol | support-mode | train-mode }
View
Parameter
baudrate: Specifies the maximum transmission speed of the fax. It defaults to voice.
z 2400: Sets the maximum transmission speed to 2400 bps.
z 4800: Sets the maximum transmission speed to 4800 bps.
z 9600: Sets the maximum transmission speed to 9600 bps.
z 14400: Sets the maximum transmission speed to 14400 bps.
z disable: Disables the fax forwarding faculty.
z voice: Sets the fax speed to the allowed maximum voice speed.
5-3
Command Manual – Voice
Comware V3 Chapter 5 Fax Configuration Commands
Description
Use the default entity fax command to set the default fax parameter settings globally.
Use the undo default entity fax command to restore the system-default default
settings.
5-4
Command Manual – Voice
Comware V3 Chapter 5 Fax Configuration Commands
Note:
When G.711 voice encoding/decoding recommendation is configured for the two
parties, the fax baudrate disable command functions the same as the default entity
fax protocol pcm command.
Example
# Globally configure the fax protocol for the voice entity to PCM coding/decoding.
<H3C> system-view
[H3C] voice-setup
[H3C-voice] dial-program
[H3C-voice-dial] default entity fax protocol pcm g711alaw standard
Syntax
View
Parameter
Description
Use the default entity modem compatible-param command in the case that you fail
to use standard Modem PCM to interoperate with devices from other vendors.
5-5
Command Manual – Voice
Comware V3 Chapter 5 Fax Configuration Commands
Use the undo default entity modem compatible-param command to restore the
voice entity Modem compatible parameter globally to the default.
By default, the Modem compatible parameter for global voice entity is 100.
Example
# Configure the Modem compatible parameter for the global voice entity to 98.
<H3C> system-view
[H3C] voice-setup
[H3C-voice] dial-program
[H3C-voice-dial] default entity modem compatible-param 98
Syntax
View
Parameter
Description
Use the default entity modem protocol none command to globally disable Modem
function of voice entity.
Use the default entity modem protocol pcm command to globally configure PCM
Modem protocol type of voice entity, including coding/decoding and Modem negotiation
mode.
Use the undo default entity modem protocol command to restore the Modem
protocol to default value.
By default, Modem protocol for global voice entity is none, that is, the Modem function
is disabled.
5-6
Command Manual – Voice
Comware V3 Chapter 5 Fax Configuration Commands
Example
# Globally configure the Modem protocol for voice entity to PCM coding/decoding.
<H3C> system-view
[H3C] voice-setup
[H3C-voice] dial-program
[H3C-voice-dial] default entity modem protocol pcm g711alaw standard
Syntax
View
Any view
Parameter
Description
Use the display voice fax command to view the fax statistics in the fax module and the
statistics in the fax transformation module as well.
Example
5-7
Command Manual – Voice
Comware V3 Chapter 5 Fax Configuration Commands
V21Data_WithRedundance_Packets: 0
T4Data_WithOutRedundance_Packets: 0
T4Data_WithRedundance_Packets: 0
Fax_ECM_Times: 0
Fax_NoECM_Times: 0
}
Statistic of FOIP to FOFR
{
Create_FaxTransformNode_Times: 0
Send_Data_Packets: 0
Recieve_Data_Packets: 0
Recieve_InvalidData_Packets: 0
V21Data_WithOutRedundance_Packets: 0
V21Data_WithRedundance_Packets: 0
T4Data_WithOutRedundance_Packets: 0
T4Data_WithRedundance_Packets: 0
}
Field Description
Times of transform node created from
Create_FaxTransformNode_Times
IP fax side to FR fax side
Number of packets sent from IP fax
Send_Data_Packets
side to FR fax side
Number of packets received at IP fax
Recieve_Data_Packets
side from FR fax side
Number of invalid packets received at
Recieve_InvalidData_Packets
IP fax side from FR fax side
Number of packets sent from IP fax
V21Data_WithOutRedundance_Packets side to FR fax side without redundancy
V.21 data
Number of packets sent from IP fax
V21Data_WithRedundance_Packets side to FR fax side with redundancy
V.21 data
Number of packets sent from IP fax
T4Data_WithOutRedundance_Packets side to FR fax side without redundancy
T.4 data
Number of packets sent from IP fax
T4Data_WithRedundance_Packets side to FR fax side with redundancy T.4
data
Times of fax communication using ECM
Fax_ECM_Times
at IP fax side
5-8
Command Manual – Voice
Comware V3 Chapter 5 Fax Configuration Commands
Field Description
Times of fax communication using
Fax_NoECM_Times
non-ECM at IP fax side
Times of transform node created from
Create_FaxTransformNode_Times
FR fax side to IP fax side
Number of packets sent from FR fax
Send_Data_Packets
side to IP fax side
Number of packets received at FR fax
Recieve_Data_Packets
side from IP fax side
Number of invalid packets received at
Recieve_InvalidData_Packets
FR fax side from IP fax side
Number of packets sent from FR fax
V21Data_WithOutRedundance_Packets side to IP fax side without redundancy
V.21 data
Number of packets sent from FR fax
V21Data_WithRedundance_Packets side to IP fax side with redundancy V.21
data
Number of packets sent from FR fax
T4Data_WithOutRedundance_Packets side to IP fax side without redundancy
T.4 data
Number of packets sent from FR fax
T4Data_WithRedundance_Packets side to IP fax side with redundancy T.4
data
Syntax
View
Parameter
14400: Negotiates first according to V.17 fax protocol, the highest fax baudrate is
14400bit/s.
2400: The first fax baudrate is 2400bps.
4800: Negotiates first according to V.27 fax protocol, the highest fax baudrate is
4800bps.
9600: Negotiates first according to V.29 fax protocol which has the priority, the highest
fax baudrate is 9600bps.
disable: Disables fax function.
5-9
Command Manual – Voice
Comware V3 Chapter 5 Fax Configuration Commands
voice: Decides the highest rate enabled by fax first according to the different voice
encoding/decoding protocols. By default, the parameter of voice is adopted to decide
the max fax baudrate.
Description
Use the fax baudrate command to configure the highest fax baudrate enabled by the
gateway.
If the rate is set to be others rather than “disable” and “voice”, rate negotiation is
performed first according to the fax protocol which is correspondent to the rate. Here
the rate is the highest rate enabled but not specified one.
When the rate is set as voice, decide the highest rate enabled by fax first according to
the difference of voice encoding/decoding protocols.
z If G.711 voice encoding/decoding protocol is used, the fax baudrate is 14400bit/s
and the corresponding fax protocol is V.17.
z If G.723.1 Annex A voice encoding/decoding protocol is used, the fax baudrate is
4800bit/s and the corresponding fax protocol is V.27.
z If G.726 voice encoding/decoding protocol is used, the fax baudrate is 14400 bit/s,
and the corresponding fax protocol is V.17.
z If G.729 voice encoding/decoding protocol is used, the fax baudrate is 9600bit/s
and the corresponding fax protocol is V.29.
If the rate is set as “disable”, fax function is disabled.
Note:
When G.711 voice encoding/decoding protocol is configured for the two parties, the fax
baudrate disable command functions the same as the default entity fax protocol
pcm command.
Example
# Set the gateway to use V.29 fax protocol to perform rate negotiation.
[H3C-voice-dial-entity1] fax baudrate 9600
Syntax
fax ecm
undo fax ecm
5-10
Command Manual – Voice
Comware V3 Chapter 5 Fax Configuration Commands
View
Parameter
None
Description
Use the fax ecm command to configure the forced adoption of ECM mode at the
gateway, that is, to make the facsimiles at both ends support ECM mode.
Use the undo fax ecm command to cancel the ECM mode at the gateway.
By default, the ECM mode is not used on the gateway.
This command is used to perform the forced limitation at the gateway. If the facsimile
terminals at both ends support ECM mode, but the non-ECM mode has been
configured at the gateway, then the non-ECM mode is selected. If one or two of the
facsimile terminals at both ends do not support the ECM mode, the non-ECM mode is
selected. Only when the facsimile terminals at both ends support the ECM mode, and
the gateway doesn’t perform the forced limitation to enable the non-ECM mode, is the
ECM mode selected.
You must enable ECM mode for the POTS and VoIP entities corresponding to the fax
sender and receiver in ECM mode.
Example
Syntax
View
Parameter
level: Gateway carrier transmitting energy level, namely the transmit energy level
attenuation value, ranging from 3 to 60 dBm. By default, it is 15, meaning a carrier
transmit energy level of 15 dBm. The greater the level value, the higher the energy. The
smaller the level value, the greater the attenuation.
5-11
Command Manual – Voice
Comware V3 Chapter 5 Fax Configuration Commands
Description
Use the fax level command to configure the gateway carrier transmitting energy level.
Use the undo fax level command to restore it to the default value.
Usually the default of the gateway carrier transmitting energy level is acceptable. If fax
still can’t be sent when other configurations are correct to try to adjust the gateway
carrier transmitting energy level. The smaller the level is, the greater the energy is.
Example
Syntax
fax nsf-on
undo fax nsf-on
View
Parameter
None
Description
Use the fax nsf-on common to configure the fax faculty transmission mode as Not
Standard mode.
Use the undo nsf-on command to restore the default fax faculty transmission mode.
By default, the fax faculty transmission mode is undo nsf-on.
This command is only applied to IP Fax.
In some occasions like communicating with encrypted fax, the Not Standard Faculty, or
NSF for short, is rather important for fax communication. It is necessary to configure the
fax nsf-on command, so that the fax terminals on both sides will first exchange NSF
message at the beginning of transmission, and then complete the follow-up fax
negotiation according to NSF and communicate with each other. NSF messages are
T.30 compliant and carry private information.
To allow NSF field to be carried during fax faculty signal transmission, the following
conditions must be met:
z Fax terminals must support NSF transmission mode.
5-12
Command Manual – Voice
Comware V3 Chapter 5 Fax Configuration Commands
z The fax faculty signal transmission mode must be set to Not Standard in the POTS
and VoIP entities for the participating fax terminals.
Example
Syntax
View
Parameter
t38: Uses T.38 fax protocol. With this protocol, fax setup speed is high.
standard-t38: Uses the standard T38 negotiation mode specified by H323 or SIP to fax
lb-redundancy number: Configures the number of low-speed redundant packets.
number ranges from 0 to 5, and default value is 0.
hb-redundancy number: Configures the number of high-speed redundant packets.
number ranges from 0 to 2, and default value is 0.
nonstandard: Uses the fax protocol compatible with the mainstream devices of the
industry.
none: Disables the fax function.
pcm: Uses PCM coding/decoding.
z g711alaw: Enables PCM G.711A-law voice coding/decoding.
z g711ulaw: Enables PCM G.711 μ-law voice coding/decoding.
private: Private PCM Modem negotiation mode owned by our company.
standard: Standard PCM Modem negotiation mode in the industry.
Description
Use the fax protocol command to configure the protocol for intercommunication with
other devices or enable the fax Passthrough mode, and configure the number of
redundant packets sent via the T.38 fax protocol.
5-13
Command Manual – Voice
Comware V3 Chapter 5 Fax Configuration Commands
Use the undo fax protocol command to restore the default number of redundant
packets and disable the fax Passthrough.
The argument standard-t38 indicates the standard T38 negotiation mode specified by
H323 or SIP adopted.
By default, fax Passthrough mode is disabled and fax protocol for single voice entity is
that for global voice entity.
This command is only applied to IP Fax.
Low-speed data refers to the V.21 command data, and high-speed data refers to the
TCF and graphic data.
To intercommunicate with the mainstream fax terminals of the industry, the mainstream
fax protocol must be used. Likewise, to intercommunicate with other fax terminals
supporting the T.38 protocol, the T.38 protocol must be adopted. As the mainstream
devices do not support local training mode for fax, the end-to-end training mode must
be adopted in order to implement intercommunication with the mainstream devices of
the industry.
Increasing the number of redundant packets will improve reliability of network
transmission and reduce packet loss ratio. A great amount of redundant packets,
however, can increase bandwidth consumption to a great extent and thereby, in the
case of low bandwidth, affect the fax quality seriously. Therefore, the number of
redundant packets should be selected properly according to the network bandwidth.
The fax Passthrough is easily influenced by such factors as loss of packet, jitter and
delay, so the clock on both sides of the communication must be kept synchronous. At
present, only G.711Alaw and G.711μlaw compression methods are supported, and the
voice activity detection (VAD) function should be disabled for fax Passthrough.
Example
# Configure the number of high-speed redundant packets sent through the T.38 fax
recommendation as 2.
[H3C-voice-dial-entity1] fax protocol t38 hb-redundancy 2
5-14
Command Manual – Voice
Comware V3 Chapter 5 Fax Configuration Commands
Syntax
View
Parameter
Description
Use the fax support-mode command to configure the fax interworking mode with
other equipments.
Use the undo fax support-mode command to restore the fax interworking mode with
other equipment to its default.
By default, the RTP mode is adopted.
This command is only applied to IP Fax.
Under common conditions, use the rtp mode. When interworking with the VocalTec
gateway, the vt mode is adopted.
Example
Syntax
View
5-15
Command Manual – Voice
Comware V3 Chapter 5 Fax Configuration Commands
Parameter
Description
Use the fax train-mode command to configure the training mode used by the gateway.
Use the undo fax train-mode command to restore the training mode used by the
gateway to the default.
By default, the ppp mode is adopted.
The local training mode means that the gateway participates in the rate training
between the facsimile terminals at both ends. In this mode, first carry on the training
between the facsimile terminals and between the gateways respectively, then the
receiving gateway will transmit the training result of the receiving end to the gateway at
the transmitting end. The transmitting gateway will decide the final packet transmission
rate according to the training results of both ends.
The end-to-end training mode means that the gateway does not participates in the rate
training between the facsimile terminals at both ends. In this mode, the rate training is
carried on between the facsimile terminals at both ends, and it is transparent to the
gateway.
Example
# Set the mode used by the gateway as the local training mode.
[H3C-voice-dial-entity4] fax train-mode local
Syntax
View
parameter
Description
Use the modem compatible-param command in the case that you fail to use standard
Modem PCM to interoperate with devices from other vendors.
5-16
Command Manual – Voice
Comware V3 Chapter 5 Fax Configuration Commands
Use the undo default entity modem compatible-param command to restore the
voice entity Modem compatible parameter globally to the default.
By default, the Modem compatible parameter for global voice entity is 100.
Example
Syntax
View
parameter
Description
Use the modem protocol none protocol to disable Modem function for single voice
entity.
Use the modem protocol pcm command to configure PCM Modem protocol type for
single voice entity, including coding/decoding and Modem negotiation mode.
Use the undo modem protocol command to restore the Modem protocol for single
voice entity to the default value.
By default, Modem protocol for single voice entity is that for global voice entity.
Example
5-17
Command Manual – Voice
Comware V3 Chapter 5 Fax Configuration Commands
<H3C> system-view
[H3C] voice-setup
[H3C-voice] dial-program
[H3C-voice-dial] entity 100
[H3C-voice-dial-entity100] modem protocol pcm g711alaw standard
Syntax
View
User view
Parameter
None
Description
Use the reset voice fax statistics command to reset fax statistics.
Example
Syntax
View
User view
Parameter
None
5-18
Command Manual – Voice
Comware V3 Chapter 5 Fax Configuration Commands
Description
Use the reset voice fax trans-statistics command to reset the statistics for the FAX
transform module.
Example
Syntax
View
Voice view
Parameter
None
Description
Use the voip h323-conf tcs-t38 command to enable the voice gateway to include the
T.38 capability description in its capability set when it is in H.323 slow-start mode.
Use the undo voip h323-conf tcs-t38 command to disable the voice gateway to
include the T.38 capability description in its capability set when it is in H.323 slow-start
mode.
By default, T.38 description is included.
As NetMeeting does not support T.38 capability description parsing, you must disable
the voice gateway in H.323 slow-start mode to include the T.38 capability description in
its capability set in order to work with NetMeeting.
Note:
As this command is globally effective, the configuration of its undo form can disable all
the voice entities to carry the T.38 capability description in their capability sets. If
interoperability with NetMeeting is required only by a voice entity, you can disable fax
using the fax baudrate disable command or set the fax mode to a non-T.38 mode,
pcm, or nonstandard for example.
5-19
Command Manual – Voice
Comware V3 Chapter 5 Fax Configuration Commands
Example
# Disable the voice gateway to carry T.38 capacity description in its capacity set when it
is in H.323 slow-start mode.
[H3C-voice] undo voip h323-conf tcs-t38
5-20
Command Manual – Voice
Comware V3 Chapter 6 Voice RADIUS Configuration Commands
Syntax
aaa-client
View
Voice view
Parameter
None
Description
Example
6.1.2 authentication
Syntax
authentication
undo authentication
View
Parameter
None
6-1
Command Manual – Voice
Comware V3 Chapter 6 Voice RADIUS Configuration Commands
Description
Use the authentication command to enable user authentication and authorization for
the access service number.
Use the undo authentication command to disable user authentication and
authorization for the access service number.
By default, user authentication and authorization is disabled for all access service
numbers.
If user authentication and authorization is enabled for an access service number, the
user who uses this access service number can be authorized and dial the IP phone only
after it has been authenticated.
If user authentication and authorization is disabled, the user who uses this access
service number can directly dial the IP phone without being authenticated.
Related command: gw-access-number, accounting optional, authentication-did.
Example
# Enable user authentication and authorization for the two-stage dial access service
number 2005.
[H3C-voice-dial-anum2005] authentication
6.1.3 authentication-did
Syntax
authentication-did
undo authentication-did
View
Parameter
None
Description
Use the authentication-did command to enable authentication for all one-stage dial
(direct dial) users.
Use the undo authentication-did command to disable authentication for one-stage
dial users.
By default, authentication is disabled for one-stage dial users.
This command is available to one-stage dial (that is, dialing the called number directly)
users but not to two-stage dial (that is, dialing the access service number) users.
6-2
Command Manual – Voice
Comware V3 Chapter 6 Voice RADIUS Configuration Commands
After this command is configured, the calling number in a call from a one-stage dial user
is extracted and sent to the RADIUS Server for authentication. Only after passing
authentication can the user obtain services. If the authentication fails, the user is
disconnected and cannot make the IP phone call.
If authentication is disabled for one-stage dial users, one-stage dial users can directly
dial IP phones without being authenticated.
For related commands, see accounting.
Example
Syntax
View
Parameter
immediate: Places a call immediately after all digits of the called number are collected.
terminator: Places a call only after a pound sign (#), the terminator, is received.
Description
Use the callednumber receive-method command to enable the device to place a call
immediately after all digits of the called number are collected or after a pound sign (#),
the terminator, is received.
Use the undo callednumber receive-method command to restore the default.
By default, the terminator keyword applies.
Normally, in a two-stage dial procedure, the user needs to input a pound sign (#) to
indicate the end of a called number. To free the user from the trouble of inputting the
terminator, you may configure the callednumber receive-method immediate
command allowing the router to place a call immediately after all digits of the called
number are collected.
Example
# Set the called number receive-method to immediate for access number 17990.
[H3C-voice-dial-anum17990] callednumber receive-method immediate
6-3
Command Manual – Voice
Comware V3 Chapter 6 Voice RADIUS Configuration Commands
6.1.5 card-digit
Syntax
card-digit card-digit
View
Parameter
card-digit: The card digits, in the range from 1 to 31. By default, the user card number is
in 12 digits.
Description
Use the card-digit command to configure the number of digits in a card number for an
access service number.
This command is used to configure digits of the card number of the two-stage dialing
card number process (use the card number/password for ID authentication) user. Once
the digits are specified, all users using this access service number must enter the card
number in specified digits.
If the dialing process of the access service number to be configured is not specified as
the card number process through the process-config command, this command will
not take effect. Only after the dialing process is set as the card number process, can
this command function properly in the Voice access-number view.
Related command: gw-access-number, process-config, password-digit.
Example
# Set the user card number in 10 digits for the access service number 18901.
[H3C-voice-dial-anum18901] card-digit 10
6.1.6 cdr
Syntax
View
Parameter
buffer: Saves the call records by setting the upper limit of the number of records.
6-4
Command Manual – Voice
Comware V3 Chapter 6 Voice RADIUS Configuration Commands
size-number: Number of the saved call detail records, in the range from 0 to 500, with
the value 0 indicating that no call detail record is saved. In max-size mode, the default
value of size-number is 50.
duration: Saves the call records by setting the maximum retaining time of records
(start from the moment when a conversation ends).
timer-number: Retaining time of call detail records, in minutes, with the value range
from 0 to 2147483647, and the value 0 indicating that no call detail record is saved. In
max-size mode, the default value of timer-number is 15.
threshold threshold: Threshold for call history output, in the range 0 to 100. It defaults
to 80.
default: Default threshold for call history output.
Description
Use the cdr command to configure the saving rule for call detail record.
Use the undo cdr command to restore the default saving rule.
This command is used to set the saving rule for call detail records. The system will save
certain amount of call detail record information according to the rule set by the user.
Related command: display aaa unsent-h323-call-record, display voice
call-history-record.
Note:
In Comware (Versatile Routing Platform), at most 500 call detail records can be saved.
That is, even if it is specified that call detail records should be saved according to the
maximum retaining time, no more than 500 records can be saved in the system. If a
large amount of traffic occurs in a certain period of time and more than 500 call detail
records to be stored are generated which satisfy the time requirement, the excessive
records that end earlier will be deleted, though they comply with the saving rule.
Example
# Specify that the detail records of the conversation ending within 10 minutes should be
saved.
[H3C-voice-aaa]cdr duration 10
6-5
Command Manual – Voice
Comware V3 Chapter 6 Voice RADIUS Configuration Commands
Syntax
debugging voice vcc { all | cm | error | ipp | proc | rcv | timer | vpp | line
line-number }
undo debugging voice vcc { all | cm | error | ipp | proc | radius | rcv | timer | vpp |
line line-number }
View
User view
Parameter
Description
Use the debugging voice vcc command to enable the debugging at various levels of
the VCC module.
This command is used to enable the debugging of the VCC module, and to specify the
levels and types of the debugging.
6-6
Command Manual – Voice
Comware V3 Chapter 6 Voice RADIUS Configuration Commands
Note:
When specifying the levels and types of the debugging, pay attention to the following
points:
z No character other than figures can appear in the specified line number, If any
character other than figures appears in the entered line-number, this enter is invalid.
z The specified line number cannot be greater than the number of the actual
subscriber lines. If the specified line-number is greater than the number of the actual
subscriber lines, this enter is invalid.
Example
# Debug the messages sent to the VPP module from the VCC module.
<H3C> debugging voice vcc vpp
Syntax
View
Any view
Parameter
None
Description
Use the display aaa unsent-h323-call-record command to view the detail record
information about the calls failed to be sent.
If the mode for RADIUS Client (i.e. the router system) to process the accounting
request/responding packets is set as start-ack, for a call, once RADIUS Server does
not return the response to an accounting request message within the specified time,
VoIP of this call cannot be established. Then the system will save the failed call and
initiate an accounting request again to RADIUS Server later to set up connection. This
command is used to display the history records of the calls that are not established at
the VoIP side because RADIUS Server has not returned the response to the accounting
start message. The output information of this command can help the user confirm
which calls have failed, so as to analyze, locate and eliminate the faults.
6-7
Command Manual – Voice
Comware V3 Chapter 6 Voice RADIUS Configuration Commands
Example
# Display the history records of the calls that are not established at the VoIP side.
[H3C] display aaa unsent-h323-call-record
Index = 1
Acct_session_Id = 10
CallOrigin = Answer
CallType = Telephony
Callernumber = 1000
Callednumber = 1001
CallDuration = 00:00:03
TransmitPackets = 1000
TransmitBytes = 32000
ReceivePackets = 1100
ReceiveBytes = 35200
Table 6-1 Description of detailed record about the calls failed to be sent
Field Description
Index Index of a call failure history record
RADIUS session ID, negotiated by RADIUS Server and
Acct_session_Id
Client
Call direction, indicating whether the local end is the caller
CallOrigin
or called
CallType Call type, classified into Telephony and Fax
Callernumber Caller number
Callednumber Called number
CallDuration Call duration
TransmitPackets Number of packets sent from the local end
TransmitBytes Number of bytes sent from the local end
ReceivePackets Number of packets received at the local end
ReceiveBytes Number of bytes received at the local end
Syntax
View
Any view
6-8
Command Manual – Voice
Comware V3 Chapter 6 Voice RADIUS Configuration Commands
Parameter
None
Description
Use the display voice aaa-client configuration command to view information about
voice AAA.
Example
Syntax
View
Any view
Parameter
callednumber: Displays the call history records according to the called number
filtering.
called-number: The called E.164 number, being a character string within 31 characters.
callingnumber: Displays the call history records according to the calling number
filtering.
calling-number: The calling E.164 number, being a character string within 31
characters.
cardnumber: Displays the call history records according to the prepaid card number.
card-number: The prepaid card number, being a character string within 31 characters.
6-9
Command Manual – Voice
Comware V3 Chapter 6 Voice RADIUS Configuration Commands
remote-ip-addr: Displays the call history records according to the IP address of the
called user.
a.b.c.d: The IP address of the called user, in the dotted decimal format.
last: Displays the call history records according to the specified number of the latest
conversation records.
last-number: The number of the latest conversation records, in the value range from 0
to 500.
line: Displays the call history records according to the voice subscriber-line receiving
calls on the router.
line-number: The number of the voice subscriber-line receiving calls on the router, and
its value range is decided according to the type and quantity of voice cards actually put
into operation on the router.
brief: Uses a brief format to display call history records.
Description
Use the display voice call-history-record command to view the information about call
history records.
If such parameters as callednumber, callingnumber, cardnumber, remote-ip-addr,
last, line are not entered, all the saved call history records should be output by default.
If it is specified that call history records are displayed according to the number of the
latest conversation records (in “last” mode), the default number of records are 10.
The display format of call history records can be customized by setting the display and
filtering rule. The possible information display formats are as follows:
1) If the parameter brief is specified, the records will be displayed in a brief format.
2) If the parameter brief is not specified, the records will be displayed in a detailed
format.
If it is required to search according to the specified last-number, the records will be
displayed according to the number of records actually retrieved. If no record is found or
the record found is null, the prompting information as follows will appear:
Not found any record.
6-10
Command Manual – Voice
Comware V3 Chapter 6 Voice RADIUS Configuration Commands
Note:
When setting the display and filtering rule, pay attention to the following points:
z No unacceptable character is allowed to appear in the calling number or called
number. If any character other than figures and “*”, “#”, “T”, “.” appears in the
entered called-number or calling-number, the enter is invalid.
z No character other than figures is allowed to appear in the specified number of the
latest conversation records times and voice subscriber-line number. If any character
except figures appears in the entered last-number/line-number, the enter is invalid.
z The digits of the specified called number and calling number cannot be over 31. If
the entered called-number or calling-number has over 31 characters, the enter is
invalid.
z The specified number of the latest conversation records cannot be over 500. If the
specified last-number is greater than 500, the enter is invalid.
z The specified voice subscriber-line number cannot be greater than the number of
available subscriber lines. If the specified line-number is greater than the number of
available subscriber lines, the enter is invalid.
Example
# Display the call history records according to the number of 10 of the latest
conversation records.
[H3C] display voice call-history-record last 10
!
CallRecord[30]:
CallerNum = 4000
CalledNum = 2000
EncodeType = 711u
PeerAddress = 127.0.0.1
DisconnectCause = 0
6-11
Command Manual – Voice
Comware V3 Chapter 6 Voice RADIUS Configuration Commands
Table 6-2 Description on the fields of the display voice call-history-record command
Field Description
CallRecord[30] Number of call record
6-12
Command Manual – Voice
Comware V3 Chapter 6 Voice RADIUS Configuration Commands
Field Description
Number of packets received on network side
Received(voip)
(packet/byte)
SetupTime(pstn) Call setup time on PSTN side
ConnectTime(pstn) Call connecting time on PSTN side
DisconectTime(pstn) Call disconnecting time on PSTN side
Number of packets transported on PSTN side
Transmit (pstn)
(packet/byte)
Number of packets received on PSTN side
Received(pstn)
(packet/byte)
Syntax
display voice vcc { channel [ line-number ] } | { statistic { all | error | ipp | proc | rcv
| timer | vpp } }
View
Any view
Parameter
channel: Displays the status information of the call channel on the specified subscriber
line.
line-number: Subscriber line number, the value range of it is decided by the type and
quantity of the voice cards actually put into operation.
statistic: Displays the statistics of the VCC module.
all: Displays all the statistics of the VCC module.
error: Displays the error statistics of the VCC module.
ipp: Displays the statistics of the interaction messages between the VCC module and
the IPP module.
proc: Displays the statistics of the interaction messages between the VCC module and
the system process.
rcv: Displays the statistics of the interaction messages between the VCC module and
the RCV module.
timer: Displays the statistics of the interaction messages between the VCC module
and the timer.
vpp: Displays the statistics of the interaction messages between the VCC module and
the VPP module.
6-13
Command Manual – Voice
Comware V3 Chapter 6 Voice RADIUS Configuration Commands
Description
Use the display voice vcc command to view the information about the call channel
status and call statistics.
If it is required to display the status information of the call channel on the subscriber line,
but the parameter line-number is not entered, the status information of all voice
subscriber-lines will be displayed by default.
Related command: reset voice vcc, debugging voice vcc.
Note:
When setting the filtering rule, pay attention to the following points:
The specified voice subscriber-line number cannot be greater than the number of the
actual subscriber lines. If the specified line-number is greater than the number of the
actually available subscriber lines, this enter is invalid.
Example
# Display the call status information of the 2VI board voice subscriber-line 1.
[H3C] display voice vcc channel 1
!
GENERIC:
Index = 12
CallerNum = 100
CalledNum = 200
EncodeType = 729
PeerAddress = 127.0.0.1
DisconnectCause = 0
DisconnectText = Normal release
CallDuration = 00h 00m 17s
VoiceCallDuration = 00h 00m 17s
FaxCallDuration = 00h 00m 00s
ImgPages = 0
CallOrigin = 1
!
VoIP:
SetupTime(voip) = Mar 29, 2006 15:37:21
ConnectTime(voip) = Mar 29, 2006 15:37:24
DisconectTime(voip) = Mar 29, 2006 15:37:41
TransmitPackets(voip) = 531
TransmitBytes(voip) = 17126
6-14
Command Manual – Voice
Comware V3 Chapter 6 Voice RADIUS Configuration Commands
ReceivePackets(voip) = 550
ReceiveBytes(voip) = 23100
!
PSTN:
SetupTime(pstn) = Mar 29, 2006 15:37:06
ConnectTime(pstn) = Mar 29, 2006 15:37:06
DisconectTime(pstn) = Mar 29, 2006 15:37:41
TransmitPackets(pstn) = 550
TransmitBytes(pstn) = 16500
ReceivePackets(pstn) = 913
ReceiveBytes(pstn) = 18130
Field Description
Index Index of current call in channel
CallerNum Caller number of current call in channel
CalledNum Called number of current call in channel
Compression/Decompression type of current call in
EncodeType
channel
PeerAddress IP address of Peer GW of current call in channel
Cause code of disconnection of current call in
DisconnectCause
channel
Cause explanation of disconnection of current call in
DisconnectText
channel
CallDuration Call duration of current call in channel
Total voice duration of current call in channel at PSTN
VoiceTxDuration
side
Total fax duration of current call in channel at PSTN
FaxTxDuration
side
ImgPages Total pages of sending/receiving fax
Direction of current call in channel, it means local end
CallOrigin is caller end or called end corresponding with 1 or 2
respectively
SetupTime(voip/pstn) Time of current call is setup(VoIP/PSTN)
Connect start time of current call in
ConnectTime(voip/pstn)
channel(VoIP/PSTN)
Disconnect start time of current call in
DisconnectTime(voip/pstn)
channel(VoIP/PSTN)
Number of packets sent at local end of current call in
TransmitPackets
channel
6-15
Command Manual – Voice
Comware V3 Chapter 6 Voice RADIUS Configuration Commands
Field Description
Number of bytes sent at local end of current call in
TransmitBytes
channel
Number of packets received at local end of current
ReceivePackets
call in channel
Number of bytes received at local end of current call
ReceiveBytes
in channel
6.1.12 gw-access-number
Syntax
gw-access-number access-number
undo gw-access-number [ access-number ]
View
Parameter
access-number: The specified access service number (such as 169, 17900, etc.). The
value is a character string within 31 characters, and the acceptable symbols include the
figures from 0 to 9, the wildcard “.” and the character “T”, and other English characters.
The “.” wildcard indicates a character. The character “T" is control character, it
indicating that the dial string is a string whose length is variable. At most 100 access
service numbers can be configured.
Description
6-16
Command Manual – Voice
Comware V3 Chapter 6 Voice RADIUS Configuration Commands
Note:
When setting an access service number, pay attention to the following points:
z No unacceptable character is allowed to appear in the access service numbers, if
any of these characters (such as English characters, etc.) appears in the entered
access-number, this enter is invalid.
z The digits of an access service number cannot be more than 31, if those of the
entered access-number are over 31, this enter is invalid.
z At most 100 access service numbers are allowed to be set in the system, if 100
pieces of access-number have been set, no more access service number can be
added. To continue with adding settings, please delete some records.
Example
# Add the access service number 18901 and enter the voice access-number view.
[H3C-voice-dial] gw-access-number 18901
[H3C-voice-dial-anum18901]
# Delete all the access service numbers that have been set in the system.
[H3C-voice-dial] undo gw-access-number
6.1.13 password-digit
Syntax
password-digit password-digit
View
Parameter
password-digit: The password digit, in the range from 1 to 16.By default, the user
password is in 6 digits.
Description
Use the password-digit command to configure the user password digits of a certain
access service number in the card number process.
This command is used to configure the password digit of two-stage dialing card number
process (use the card number/password to authenticate a user’s ID) users.
If the dialing process of the access service number to be configured is not specified as
the card number process through the process-config command, this command
6-17
Command Manual – Voice
Comware V3 Chapter 6 Voice RADIUS Configuration Commands
cannot take effect. Only after the dialing process is set as the card number process, can
the access service number be retrieved, and can this command function properly.
Related command: gw-access-number, process-config, card-digit.
Example
# Set the password in 4 digits for the access service number 18901.
[H3C-voice-dial-anum18901] password-digit 4
6.1.14 process-config
Syntax
View
Parameter
callernumber: Caller number process. After a user dials the access service number,
the system continues to send dialing tones to the user, so that he can enter the called
number. Under this process, the user’s ID is authenticated by identifying the caller
number.
cardnumber: Card number process. After a user dials the access service number, the
system continues to send prompting tones to the user, so that he can enter the prepaid
card number and password. Under this process, the user’s ID is authenticated by
identifying the prepaid card number/password.
voice-caller: Voice caller number process. Configured with it, the system plays voice
messages to users after they dial the access number, asking them to select language
and input the called numbers. In this process, users are authenticated using calling
number identification (CNI).
When the user changes the current dial process (that is, between the calling number
dial process and the card number dial process), the system restores the involved
parameters (for example, card number/PIN, and redial times in the card number
process) to the defaults automatically.
Description
Use the process-config command to configure the dialing process of a certain access
service number.
By default, all access service numbers use the card number process.
Each access service number has a specific dialing process. For a certain access
service number, all the users to whom it belongs must implement call establishment in
the same process.
6-18
Command Manual – Voice
Comware V3 Chapter 6 Voice RADIUS Configuration Commands
With Comware, three dial processes are available: calling number process, card
number process, and voice caller number process.
z Caller number process: It is actually the caller number authentication process,
which is the authentication, authorization and accounting process carried out
according to the caller number of the user. The caller number process does not
require further parameter setting in the process.
z Voice caller number process: uses calling numbers for authentication. After a user
dials the access number, the voice gateway plays voice messages to prompt the
user to select prompt language and dial the called number. This is different from
the caller number process where the voice gateway displays only dial tone (long
tone) after a user dials the access number.
z Card number process: As its name implies, the user should dial its own card
number and password to complete the authentication process after dialing an
access service number, and he cannot dial the called number to set up a call until
it is authenticated. The parameters in a card number process can be set through
the such commands as card-digit, password-digit and redialtimes.
Related command: gw-access-number, card-digit, password-digit, redialtimes.
Example
# Specify the user access process of the access service number 18901 as the card
number process.
[H3C-voice-dial-anum18901] process-config cardnumber
6.1.15 redialtimes
Syntax
redialtimes redialtimes-number
View
Parameter
Description
Use the redialtimes command to configure the number of times of dialing in each
dialing phase for a certain access service number.
When the card number procedure or the caller number procedure with IVR is adopted,
the user, after getting through to the access number, needs to follow voice prompts to
6-19
Command Manual – Voice
Comware V3 Chapter 6 Voice RADIUS Configuration Commands
operate. To avoid mistake in a dial segment from causing the failure of the entire dial
process, you may specify the maximum number of dial attempts that a user can make
to provide the correct number in each dial segment.
For the caller number procedure without IVR, skip this configuration.
Related command: gw-access-number, process-config, card-digit,
password-digit.
Note:
z For the caller number procedure, the number of dial attempts allowed in each
segment also makes sense. The setting can limit the number of attempts that the
user can make to dial the called number after getting through to the access number.
z For the card number procedure and the caller number procedure with IVR, the
setting is effective for each dial segment. For example, for the card number
procedure, the numbers of attempts that the user can make to input card number,
password, and called number are the same.
z The redialtimes-number argument specifies the number of dial attempts rather than
redials. For example, to allow a user to redial three times in each dial segment, set
the redialtimes-number argument to 4.
Example
# Configure the number of redialing times of the card number/password of the access
service number 18901 to be 4 (the number can be dialed for 5 times).
[H3C-voice-dial-anum18901] redialtimes 5
Syntax
View
User view
Parameter
6-20
Command Manual – Voice
Comware V3 Chapter 6 Voice RADIUS Configuration Commands
Description
Use the reset voice vcc command to reset the information related to VCC.
All or part of the information related to VCC module which is stored in the system can
be cleared according to the information categories.
Related command: display voice vcc, debugging voice vcc.
Example
6.1.17 selectlanguage
Syntax
View
Parameter
Description
Use the selectlanguage command to enable or disable the voice gateway to play the
prompt language selection message in the voice caller number process. This
command only applies to the voice caller number process.
With language selection enabled, the voice gateway plays a message asking the user
to select a prompt language and then to input the called number. If language selection
is disabled, the called number input prompt is played in Chinese after authentication.
By default, language selection is disabled.
Example
6-21
Command Manual – Voice
Comware V3 Chapter 7 GK Client Configuration Commands
Syntax
area-id string
undo area-id [string ]
View
Parameter
string: Indicates the area ID. The value range is the integer between 0 and 9, which can
be separated by “,” or "#".
Description
Use the area-id command to configure the H.323 gateway area ID.
Use the undo-area-id command to cancel all area IDs.
Use the undo-area-id string command to cancel the specified area ID.
By default, no H.323 gateway area ID is configured.
The area-id is mainly used to facilitate the identifying of gateway type by the GK Server.
The gateway and the GK Server reach an agreement on the gateway type in advance,
for example, consider that the area-id 1# represents the voice gateway and that the
area-id 2# represents the video gateway, etc. When the gateway communicates
normally with the GK Server, the GK will judge the gateway type according to the
area-id information sent by the gateway.
To set the H.323 area ID in the Voice GK client voice is mainly to facilitate the GK
Server to identify the types of GK client. An agreement on the related types is reached
beforehand between the GK client and the GK Server, e.g. area ID 1# represents a
voice GK client, prefix 2# represents a video GK client, etc. When a normal
communication is going on between the GK client and the GK Server, the GK judges
the client type according to the area ID information received. Up to 30 area-ides can be
configured in voice GK client view.
Related command: match-template, entity.
7-1
Command Manual – Voice
Comware V3 Chapter 7 GK Client Configuration Commands
Example
Syntax
View
User view
Parameter
Description
Use the debugging voice ras command to enable the debugging information output
switch of RAS messages interacted between GK Client and GK Server.
Example
Syntax
View
Any view
Parameter
None
Description
Use the display voice gateway command to view the gateway registration state
information to GK Server.
This command is used to display the gateway registration information to GK Server and
gateway alias name list etc.
7-2
Command Manual – Voice
Comware V3 Chapter 7 GK Client Configuration Commands
Example
Field Description
GW_Statue State of the current GW terminal
7.1.4 gk-client
Syntax
gk-client
View
Voice view
Parameter
None
Description
Use the gk-client command to enter Voice GK client view, and configure the GK
parameters for voice.
Use the quit command to exit this view.
Related command: area-id, gk-2nd-id, gk-id, gw-address, gw-id, ras-on.
7-3
Command Manual – Voice
Comware V3 Chapter 7 GK Client Configuration Commands
Example
7.1.5 gk-2nd-id
Syntax
View
Parameter
Description
Use the gk-2nd-id command to configure the name and IP address of the backup GK
Server corresponding to the gateway.
Use the undo gk-2nd-id command to cancel the name and IP address of the backup
GK Server corresponding to the gateway.
When the communication between the GK Client and the master GK Server is
abnormal (e.g. timeout) or the master GK Server fails, the H3C router can also send
registration requests to the backup GK Server.
Use the gk-2nd-id command to configure the IP address, name and port of the backup
GK Server.
Note:
The gk-id command must be used first to configure the name and address of the
master GK Server, before those of the backup GK Server can be configured.
Example
# Configure the backup GK Server as follows: The IP address is 1.1.1.2, the name is
"gk-backup", and use the default port.
[H3C-voice-gk] gk-id gk-center gk-addr 1.1.1.1
7-4
Command Manual – Voice
Comware V3 Chapter 7 GK Client Configuration Commands
7.1.6 gk-id
Syntax
View
Parameter
Description
Use the gk-id command to configure the GK Server name and IP address
corresponding to the gateway.
Use the undo gk-id command to cancel the GK Server name and IP address
corresponding to the gateway.
Use the command gk-id to configure such information as the IP address, name, and
port of GK Server to facilitate the research for the right GK Server equipment by the GK
Client according to this information, so as to implement the register task of gateway in
the GK Server.
Related command: area-id, gw-id, gk-2nd-id, gw-address, ras-on.
Example
# Configure the IP address of the GK Server as 1.1.1.1, name as gk-center, port as the
default.
[H3C-voice-gk] gk-id gk-center gk-addr 1.1.1.1
Syntax
7-5
Command Manual – Voice
Comware V3 Chapter 7 GK Client Configuration Commands
View
Parameter
None
Description
Use the gk-security call enable command to enable security calls on the GK Client
(router).
Use the undo gk-security call enable command to disable security calls on the GK
Client (router).
By default, enable security calls.
To let the router acting as a GK client pass calling tokens of a GK Server, you need to
configure GK security calls. After a call is originated, the calling gateway obtains the
calling token from the calling GK server and transparently transports it to the called
gateway that will then pass the token to the called GK server.
In some voice network environments, the called GK Servers cannot process calling
tokens; in this case you must disable the GK Client security calls.
Example
Syntax
View
Parameter
Description
7-6
Command Manual – Voice
Comware V3 Chapter 7 GK Client Configuration Commands
Example
7.1.9 gw-address
Syntax
gw-address ip-address
undo gw-address
View
Parameter
Description
Use the gw-address command to configure the source IP address used by the voice
gateway.
Use the undo gw-address command to cancel the source IP address used by the
voice gateway.
By default, the source IP address used by the voice gateway is not configured.
Caution:
This command takes effect immediately after it is configured, disregarding whether the
GK client has been enabled (using the ras-on command) or not.
Example
7-7
Command Manual – Voice
Comware V3 Chapter 7 GK Client Configuration Commands
7.1.10 gw-id
Syntax
gw-id namestring
undo gw-id
View
Parameter
namestring: Gateway alias (gateway ID), a string of 1 to 128 case sensitive characters.
Description
Example
7.1.11 ras-on
Syntax
ras-on
undo ras-on
View
Parameter
None
Description
7-8
Command Manual – Voice
Comware V3 Chapter 7 GK Client Configuration Commands
Example
7-9
Command Manual – Voice
Comware V3 Chapter 8 SIP Client Commands
Syntax
View
Parameter
Description
Use the address sip command to set routing policy for reaching the remote voice
gateway (VG) to SIP.
Use the undo address command to restore the default.
By default, no routing policy is configured for reaching the remote VG.
If address sip ip ip-address port port-number is configured, SIP packets in a call are
routed directly to the address specified in the command.
If address sip proxy is configured, the SIP interaction process involves a SIP proxy
server.
Configure the command appropriate to the call routing policy applies to the network.
Related command: address.
Note:
After configuring this command, the area-id command and the fast-connect command,
if configured, do not take effect any more.
8-1
Command Manual – Voice
Comware V3 Chapter 8 SIP Client Commands
Example
# Configure the current voice entity to complete SIP interaction through a SIP proxy
server.
[H3C-voice-dial-entity1] address sip proxy
Syntax
debugging voice sip { all | calls | error | message { all | call | register } | register |
warning }
undo debugging voice sip { all | calls | error | message | register | warning }
View
User view
Parameter
Description
Example
Syntax
View
Any view
8-2
Command Manual – Voice
Comware V3 Chapter 8 SIP Client Commands
Parameter
None
Description
Use the display voice sip call-statistics command to view all statistic information
about the SIP client.
Example
8-3
Command Manual – Voice
Comware V3 Chapter 8 SIP Client Commands
SIPResp4AddrIncomplete : 0
SIPResp4BusyHere : 0
SIPResp4RequestTerminated : 0
SIPResp4Other : 0
SIPResp5InternalError : 0
SIPResp5NotImplemented : 0
SIPResp5BadGateway : 0
SIPResp5ServiceUnavailable : 0
SIPResp5GatewayTimeout : 0
SIPResp5BadSipVersion : 0
SIPResp5MessageTooLarge : 0
SIPResp5Other : 0
SIPResp6xx : 0
Table 8-1 Description of the fields of the display voice sip call-statistics command
Field Description
REGISTER requests sent and received by the SIP
SIPRegisters
gateway
INVITE requests sent and received by the SIP
SIPInvites
gateway
SIPAcks ACKs sent and received by the SIP gateway
PACK requests sent and received by the SIP
SIPPracks
gateway
BYE requests sent and received by the SIP
SIPByes
gateway
CANCEL requests sent and received by the SIP
SIPCancels
gateway
INFO requests sent and received by the SIP
SIPInfos
gateway
Successful REGISTER requests sent and received
SIPOKRegisters
by the SIP gateway
Successful INVITE requests sent and received by
SIPOKInvites
the SIP gateway
Successful ACK requests sent and received by the
SIPOKAcks
SIP gateway
Successful PACK requests sent and received by
SIPOKPracks
the SIP gateway
Successful BYE requests sent and received by the
SIPOKByes
SIP gateway
8-4
Command Manual – Voice
Comware V3 Chapter 8 SIP Client Commands
Field Description
Successful CANCEL requests sent and received
SIPOKCancels
by the SIP gateway
300 (Multiple Choices) responses received by the
SIPResp3MultipleChoice
SIP gateway
301 (Moved Permanently) responses received by
SIPResp3MovedPermanently
the SIP gateway
302 (Moved Temporarily) responses received by
SIPResp3MovedTemporarily
the SIP gateway
305 (Use Proxy) responses received by the SIP
SIPResp3UseProxy
gateway
SIPResp3Other Other 3xx responses received by the SIP gateway
400 (Bad Request) responses received by the SIP
SIPResp4BadRequest
gateway
401 (Unauthorized) responses received by the SIP
SIPResp4Unauthorized
gateway
403 (Forbidden) responses received by the SIP
SIPResp4Forbidden
gateway
404 (Not Found) responses received by the SIP
SIPResp4NotFound
gateway
405 (Method Not Allowed) responses received by
SIPResp4MethodNotAllowed
the SIP gateway
406 (Not Acceptable) responses received by the
SIPResp4NotAcceptable
SIP gateway
SIPResp4ProxyAuthRequire 407 (Proxy Authentication Required) responses
d received by the SIP gateway
408 (Request Timeout) responses received by the
SIPResp4ReqTimeout
SIP gateway
413 (Request Entity Too Large) responses
SIPResp4ReqEntityTooLarge
received by the SIP gateway
414 (Request-URI Too Long) responses received
SIPResp4ReqURITooLarge
by the SIP gateway
SIPResp4UnsupportedMedia 415 (Unsupported Media Type) responses
Type received by the SIP gateway
SIPResp4UnsupportedURISc 416 (Unsupported URI Scheme) responses
heme received by the SIP gateway
420 (Bad Extension) responses received by the
SIPResp4BadExtension
SIP gateway
421 (Extension Required) responses received by
SIPResp4ExtensionRequired
the SIP gateway
8-5
Command Manual – Voice
Comware V3 Chapter 8 SIP Client Commands
Field Description
484 (Address Incomplete) responses received by
SIPResp4AddrIncomplete
the SIP gateway
486 (Busy Here) responses received by the SIP
SIPResp4BusyHere
gateway
SIPResp4RequestTerminate 487 (Request Terminated) responses received by
d the SIP gateway
SIPResp4Other Other 4xx responses received by the SIP gateway
500 (Server Internal Error) responses received by
SIPResp5InternalError
the SIP gateway
501 (Not Implemented) responses received by the
SIPResp5NotImplemented
SIP gateway
502 (Bad Gateway) responses received by the SIP
SIPResp5BadGateway
gateway
503 (Service Unavailable) responses received by
SIPResp5ServiceUnavailable
the SIP gateway
504 (Server Time-Out) responses received by the
SIPResp5GatewayTimeout
SIP gateway
505 (Version Not Supported) responses received
SIPResp5BadSipVersion
by the SIP gateway
513 (Message Too Large) responses received by
SIPResp5MessageTooLarge
the SIP gateway
SIPResp5Other Other 5xx responses received by the SIP gateway
SIPResp6xx 6xx responses received by the SIP gateway
8.1.4 early-media-183
Syntax
early-media-183
undo early-media-183
View
Parameter
None
Description
Use the early-media-183 command to enable 183 to perform early media negotiation.
8-6
Command Manual – Voice
Comware V3 Chapter 8 SIP Client Commands
Use the undo early-media-183 command to disable 183 to perform early media
negotiation.
By default, 183 early media negotiation is disabled.
Example
Syntax
early-media disable
undo early-media disable
View
Parameter
None
Description
Example
Syntax
View
Parameter
8-7
Command Manual – Voice
Comware V3 Chapter 8 SIP Client Commands
Description
Use the mode command to set the registration mode of the gateway.
Use the undo mode command to restore the default registration mode, or the gateway
mode.
In gateway mode, the router can register multiple numbers while in phone mode it can
register only the one specified by the number argument.
Example
# Set the gateway registration mode to phone and the number to be registered to 1688.
[H3C-voice-sip] mode phone number 1688
8.1.7 register-enable
Syntax
register-enable { on | off }
undo register-enable
View
Parameter
Description
Use the register-enable command to enable or disable the SIP registration function.
By default, the SIP registration function is not enabled.
You can disable the SIP registration function by executing either undo register-enable
or register-enable off.
Example
8-8
Command Manual – Voice
Comware V3 Chapter 8 SIP Client Commands
Syntax
Parameter
None
View
User view
Description
Use the reset voice sip command to reset all the statistic information about the SIP
client.
Example
8.1.9 sip
Syntax
sip
View
Voice view
Parameter
None
Description
Example
8-9
Command Manual – Voice
Comware V3 Chapter 8 SIP Client Commands
8.1.10 sip-call
Syntax
View
Parameter
Description
Example
8.1.11 sip-comp
Syntax
View
Parameter
8-10
Command Manual – Voice
Comware V3 Chapter 8 SIP Client Commands
Description
Note:
The sip-comp from command can be used in the case that voice gateway has passed
sip proxy call authentication and the IP addresses of From and To field are the same.
Do not configure this command in other cases.
Example
# Configure the device to use the IP address in the To field as the IP address in the
From field when sending a SIP request.
[H3C-voice-sip] sip-comp from
Syntax
View
Parameter
Description
Use the sip-comp agent command to configure including user-agent field in SIP
request.
Use the undo sip-comp command to configure not including user-agent field in SIP
request.
By default, user-agent field is not included in SIP request.
8-11
Command Manual – Voice
Comware V3 Chapter 8 SIP Client Commands
Example
# Configure the user-agent field to be included in SIP request, and the value is h3c.
[H3C-voice-sip] sip-comp agent h3c
# Configure the user-agent field to be included in SIP request, and uses the default
value.
[H3C-voice-sip] sip-comp agent
8.1.13 sip-domain
Syntax
sip-domain domain-name
undo sip-domain
View
Parameter
Description
Use the sip-domain command to configure the domain name of a SIP server.
Use the undo sip-domain command to delete the domain name of the SIP server.
By default, a SIP server is identified by its IP address instead of domain name.
Example
8.1.14 sip-id
Syntax
View
8-12
Command Manual – Voice
Comware V3 Chapter 8 SIP Client Commands
Parameter
id: SIP ID of router, which is a case sensitive character string in the range 0 to 9, a to z,
A to Z, !, %, *, -, _, +, ‘, ., and @. @ cannot be used as the last character. ID ranges from
1 to 31 and defaults to Comware-GATEWAY.
simple: Displays the configuration of SIP-ID password in plain text.
cipher: Displays the configuration of SIP-ID password in ciphertext.
password: SIP authentication password of the gateway, which defaults to
Comware-SIP.
Description
Use the sip-id command to set ID of the local gateway and configure its SIP
authentication password.
Use the undo sip-id command to restore the default.
By default, SIP ID of gateway is Comware-GATEWAY and authentication password is
Comware-SIP.
During the SIP message interaction, the local device may be required by the remote
SIP device to provide SIP ID and password for authentication. You can use this
command however only when the register-enable off command is configured.
Example
# Set SIP ID of the router to h3c, password to 1234, and display mode to ciphertext.
[H3C-voice-sip] sip-id h3c password cipher 1234
8.1.15 sip-server
Syntax
View
Parameter
8-13
Command Manual – Voice
Comware V3 Chapter 8 SIP Client Commands
Description
Use the sip-server command to configure address information of SIP proxy server and
define call requests that can be accepted.
Use the undo sip-server command to restore the default.
By default, all the SIP call requests are accepted.
You can use this command to configure master and slave SIP proxy servers. During an
interaction, requests are sent to the slave proxy server if the master is not available.
If the inbound keyword applies, only SIP call requests from the specified proxy server
are acceptable; if the all keyword applies, all the SIP call requests are acceptable.
You can use this command however only when the register-enable off command is
configured.
The address configured here should be consistent with that assigned to the specified
SIP proxy server at the time of networking.
Example
# Set the address of master SIP proxy server to 169.54.5.10 and port number to 1120.
[H3C-voice-sip] sip-server master 169.54.5.10 port 1120 all
8.1.16 source-ip
Syntax
source-ip ip-address
undo source-ip
View
Parameter
Description
Use the source-ip command to bind a source IP address to the gateway when it
functions as a User Agent (UA).
By default, no SIP source IP address is configured.
Note that this source address should be the IP address of an existing interface on the
gateway.
8-14
Command Manual – Voice
Comware V3 Chapter 8 SIP Client Commands
You can use this command however only when the register-enable off command is
configured.
Example
Syntax
wildcard-register enable
undo wildcard-register
View
Parameter
None
Description
Note:
You may use the function of fuzzy telephone number registration only when it is
supported on both SIP client and SIP server.
Example
8-15
Non-IP Architecture
Command Manual – Non-IP Architecture
Comware V3 Table of Contents
Table of Contents
i
Command Manual – Non-IP Architecture
Comware V3 Table of Contents
ii
Command Manual – Non-IP Architecture
Comware V3 Table of Contents
iii
Command Manual – Non-IP Architecture
Comware V3 Table of Contents
iv
Command Manual – Non-IP Architecture
Comware V3 Table of Contents
v
Command Manual – Non-IP Architecture
Comware V3 Chapter 1 OSI Layer 2 Configuration Commands
Syntax
View
User view
Parameter
Description
Use the debugging hdlc clns command to enable debugging for HDLC OSI packets.
Use the undo debugging hdlc clns command to disable debugging for HDLC OSI
packets.
CLNP packets, ES-IS packets, and IS-IS packets are all HDLC OSI packets.
Debugging for HDLC OSI packets is disabled by default.
Example
Syntax
1-1
Command Manual – Non-IP Architecture
Comware V3 Chapter 1 OSI Layer 2 Configuration Commands
View
Any view
Parameter
interface-name: Name of the ATM interface. Provide this argument in this form:
interface-name = interface-type interface-num
interface-type: Interface type.
interface-num: Interface number.
pvc-name: Name of the permanent virtual circuit (PVC). This argument can be up to 16
characters in length and is not case-sensitive. For an ATM interface, the name of a PVC
must be unique and cannot be a valid VPI/VCI pair. For example, The VPI/VCI pair 1/20
cannot be the name of a PVC. (VPI: virtual path identifier, VCI: virtual channel identifier)
vpi/vci: VPI/VCI pair. VPI ranges from 0 to 255. The available range of VCI depends on
interface type and is listed in Table 1-1. Do not specify a VCI value within a range of 0 to
31, which is reserved for special use.
ATMOC3 0 to 1023
ATM25 0 to 511
ATME3 0 to 1023
ATMT3 0 to 1023
IMA-E1/T1 0 to 511
Description
Use the display atm map-info command to display upper layer protocol map
information about a specified ATM interface.
If you do not specify an interface, then upper layer protocol map information about all
ATM interfaces is displayed.
Example
# Display upper layer protocol map information about all ATM interfaces of the device.
<H3C> display atm map-info
Atm1/0/0.1, PVC 1/33, CLNS, State UP
1-2
Command Manual – Non-IP Architecture
Comware V3 Chapter 1 OSI Layer 2 Configuration Commands
Syntax
View
Any view
Parameter
Description
Use the display fr map-info command to display frame relay (FR) address map
information.
You can use this command to check to see if static address maps are correctly
configured and dynamic address maps operate properly.
Example
Field Description
Map Statistics for interface Serial1/0/2 A message that prompts you whose
(DTE) information is displayed
Syntax
1-3
Command Manual – Non-IP Architecture
Comware V3 Chapter 1 OSI Layer 2 Configuration Commands
View
Any view
Parameter
None
Description
Use the display x25 map command to display X.25 address map information.
X.25 address map can be configured by using the x25 map command or the x25 pvc
command. The display x25 map command can be used to show all X.25 address
mappings.
Example
Table 1-3 Description on the fields of the display x25 map command
Field Description
Interface:Serial3/0/0(protocol status is up): The mapped interface and its state
ip address:202.38.162.2 X.121 address: The IP address and corresponding
22 X.121 address of the interface
map-type: SVC_MAP The map type is SVC_MAP
VC-number: 0 Number of the virtual circuits
1-4
Command Manual – Non-IP Architecture
Comware V3 Chapter 1 OSI Layer 2 Configuration Commands
Field Description
Facility:
ACCEPT_REVERSE;
—
BROADCAST;
PACKET_SIZE: I 512 O 512 ;
Clns enabled CLNS is enabled
Syntax
View
Any view
Parameter
lci: Logical channel identifier ranging from 1 to 4095. If you do not provide this
argument, all X.25 virtual circuits are displayed.
Description
Use the display x25 vc command to display information about X.25 virtual circuits.
Switched virtual circuits (SVC) are established on demand by X.25 network signaling.
Whereas permanent virtual circuits (PVC) are established by manually configuring and
remain regardless of data transmission. When operating in X.25 switching mode, a
router can also establish virtual circuits as needed to switch data. You can use this
command to check virtual circuits of all these types. But the displayed fields may differ.
Example
1-5
Command Manual – Non-IP Architecture
Comware V3 Chapter 1 OSI Layer 2 Configuration Commands
1-6
Command Manual – Non-IP Architecture
Comware V3 Chapter 1 OSI Layer 2 Configuration Commands
SVC 59
State: P4
PAD: UI-130 From remote 130 connected to local 220
Window size: input 2 output 2
Packet Size: input 128 output 128
Local PS: 3 Local PR: 1 Remote PS: 1 Remote PR: 2
Local Busy: FALSE Reset times: 0
Input/Output:
DATA 9/11 INTERRUPT 0/0
RR 6/2 RNR 0/0 REJ 0/0
Bytes 53/363
Snd Queue(Current/Max): 0/200
Syntax
View
Interface view
Parameter
Description
Use the fr map clns command to add an FR mapping for OSI packets.
Use the undo fr map clns command to remove an FR mapping established for OSI
packets.
Address mapping can be achieved through manually configuring or reverse address
resolution protocol (RARP). Static address mapping can be achieved through manually
configuring, which is applicable when there are few peer ESs or the default routes exist.
Whereas dynamic address mapping can be achieved through RARP, which is
applicable when the peer router supports RARP and the network is relatively complex.
As OSI packets cannot be forwarded through Layer 3 address mapping, you can only
map by protocol for OSI packets. There can only be one mapping for OSI packets. So
you must remove the existing map before you create a new one.
1-7
Command Manual – Non-IP Architecture
Comware V3 Chapter 1 OSI Layer 2 Configuration Commands
Example
# With a virtual circuit (DLCI = 40) existing on Serial1/0/0 interface, configure a static
address mapping.
[H3C-Serial1/0/0] fr map clns 40
Syntax
map clns
undo map clns
View
Parameter
None
Description
Use the map clns command to create a CLNSOA mapping for a PVC.
Use the undo map clns command to remove existing CLNSOA mapping.
You can configure only one CLNS mapping for a virtual circuit on a point-to-multipoint
interface. So you must remove the existing one before you create another map on the
same interface.
No CLNSOA mapping is established by default.
Example
Syntax
View
Interface view
1-8
Command Manual – Non-IP Architecture
Comware V3 Chapter 1 OSI Layer 2 Configuration Commands
Parameter
Description
Use the x25 default-protocol command to set the upper layer protocol for an X.25
interface that X.25 protocol carries by default.
Use the undo x25 default-protocol command to revert to the default upper layer
protocol.
The default upper layer protocol carried by X.25 protocol is IP.
During course of establishing a X.25 SVC, the called party checks the CUD (call user
data) fields in X.25 call request packets and reject the call request if the CUD fields
cannot be recognized. You can specify a default upper layer protocol that X.25 carries,
through which an call request packet with unrecognized CUD field is treated as the
PDU (protocol data unit) of the default upper layer protocol.
Example
# Set the default upper layer protocol that the X.25 interface Serial0/0/0 carries to OSI
protocol.
[H3C-Serial0/0/0] x25 default-protocol clns
Syntax
View
Interface view
Parameter
Description
Use the x25 map clns command to configure a CLNS address mapping for an X.121
address.
Use the undo x25 map command to remove an existing mapping.
1-9
Command Manual – Non-IP Architecture
Comware V3 Chapter 1 OSI Layer 2 Configuration Commands
1-10
Command Manual – Non-IP Architecture
Comware V3 Chapter 1 OSI Layer 2 Configuration Commands
Example
Syntax
View
Interface view
Parameter
pvc-number: PVC number ranging from 1 to 4094 (include). This argument must be
within PVC channel range.
protocol-address: Protocol address of the peer of the PVC.
compressedtcp: Specifies to enable compressed TCP.
x.121-address: X.121 address of the peer of the PVC.
option: Attributes of the PVC.
Description
1-11
Command Manual – Non-IP Architecture
Comware V3 Chapter 1 OSI Layer 2 Configuration Commands
accommodates it. (Refer to the x25 packet-size and x25 window-size command for
ways to set the flow control parameters of an X.25 interface.)
You can configure only one X.25 CLNS PVC for a point-to-multipoint X.25 interface. So
you must remove the existing one first if you want to configure another X.25 CLNS PVC
for the same interface.
Upon the establishment of a PVC, the corresponding address mapping is automatically
created. So to create the corresponding address mapping first is unnecessary (and
actually impossible).
Before create a PVC, be sure to enable the PVC channel range. The PVC channel
range refers to channels with channel numbers ranging from 1 (include) to the lower
limit (exclude) of the nearest channel range of enabled channels. If the lower limit itself
is 1, the PVC channel range is disabled. Table 1-4 lists typical PVC channel ranges.
Example
# Configure X.25 as the link layer protocol of Serial0/0/0 interface and enable PVC
channel range to create a PVC.
[H3C] interface serial 0/0/0
[H3C-Serial0/0/0] link-protcol x25
[H3C-Serial0/0/0] x25 vc-range bi-channel 8 1024
1-12
Command Manual – Non-IP Architecture
Comware V3 Chapter 1 OSI Layer 2 Configuration Commands
1-13
Command Manual – Non-IP Architecture
Comware V3 Chapter 2 OSI Layer 3 Configuration Commands
Syntax
clns enable
undo clns enable
View
System view
Parameter
None
Description
Example
Syntax
View
System view
2-1
Command Manual – Non-IP Architecture
Comware V3 Chapter 2 OSI Layer 3 Configuration Commands
Parameter
None
Description
Use the clns erpacket enable command to enable generation of error report packets.
Use the undo clns erpacket enable command to disable generation of error report
packets.
Generation of error report packets is enabled by default.
Example
Syntax
View
System view
Parameter
integer: Integer that specifies the minimum interval in milliseconds to generate two
successive error report packets. This argument ranges from 0 to 4294967295.
Description
Use the clns erpacket interval command to set the minimum interval to generate two
successive error report packets.
Use the undo clns erpacket interval command to revert to the default minimum
interval to generate two successive error report packets.
The default minimum interval to generate two successive error report packets is 10
milliseconds.
Example
# Set the minimum interval to generate two successive error report packets to 200
milliseconds.
<H3C> system-view
2-2
Command Manual – Non-IP Architecture
Comware V3 Chapter 2 OSI Layer 3 Configuration Commands
Syntax
View
System view
Parameter
NSAP: Address of the static neighboring ES in the format of ##.####. ... .##. The
address is 8 to 20 bytes in length.
interface-type interface-number: Type and number of the interface to which the ES is
connected. The interface-type argument can be ATM, Ethernet, NULL, Serial, Tunnel,
MFR, MP-group, Virtual-Template, and Loopback.
SNPA: Layer 2 address of the ES in the format of ####.####.####. Only available for
Ethernet interfaces. A Layer 2 address can be 8 to 20 bytes in length.
all: Specifies to remove all configured static neighboring ESs. This keyword is only for
the undo command.
Description
Example
Syntax
2-3
Command Manual – Non-IP Architecture
Comware V3 Chapter 2 OSI Layer 3 Configuration Commands
View
System view
Parameter
address: Network entity title of the IS in hexadecimal form. This argument can be 8 to
20 bytes in length and must be ended with 00.
Description
Use the clns net command to assign an NET address to the IS.
Use the undo clns net command to remove the NET address of the IS.
Example
Syntax
View
System view
Parameter
None
Description
Use the clns rdpacket enable command to enable the router to send RD packets.
Use the undo clns rdpacket enable command to disable the router to send RD
packets.
A router sends RD packets by default.
Note that:
z A router sends RD packets regardless of whether or not the router has ES-IS
protocol employed.
z A router sends RD packets when the outbound and inbound interfaces of its
NPDU are the same.
2-4
Command Manual – Non-IP Architecture
Comware V3 Chapter 2 OSI Layer 3 Configuration Commands
Example
Syntax
View
System view
Parameter
Description
Use the clns rdpacket interval command to set the minimum interval to generate RD
packets.
Use the undo clns rdpacket interval command to revert to the default minimum
interval to generate RD packets.
Example
Syntax
2-5
Command Manual – Non-IP Architecture
Comware V3 Chapter 2 OSI Layer 3 Configuration Commands
View
System view
Parameter
NSAP prefix: Prefix of the destination address of an OSI static route. Provide this
argument in the format of ##.####. ... .##.
interface-type interface-number: Type and number of the outbound interface leads to
the next hop of the route. The interface-type argument can be ATM, Ethernet, NULL,
Serial, Tunnel, MFR, MP-group, Virtual-Template, and Loopback.
SNPA: Layer 2 address of the next hop in the format of ####.####.####. Only available
for Ethernet interfaces.
default-nsap-prefix: Specifies to use the default destination address prefix. This
keyword is used to configure default routes.
reject: Specifies the route to be an unreachable route.
blackhole: Specifies the route to be a blackhole route.
all: Specifies to remove all static routes. This keyword is only for the undo command.
Description
Example
Syntax
View
System view
2-6
Command Manual – Non-IP Architecture
Comware V3 Chapter 2 OSI Layer 3 Configuration Commands
Parameter
Description
Use the clns timer rdpacket holding command to set the holding time of the
information a RD packet carries.
Use the undo clns timer rdpacket holding command to revert to the default holding
time.
Example
# Set the holding time of the information the transmitted RD packets carry to 60
seconds.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C]clns timer rdpacket holding 60
Syntax
View
User view
Parameter
None
Description
Use the debugging clns echo command to enable debugging for Echo packets.
Use the undo debugging clns echo command to disable debugging for Echo packets.
The information displayed includes source and destination addresses, invalid ERQ
packet source addresses, packet type error information and so on.
Debugging for Echo packets is disabled by default.
Example
2-7
Command Manual – Non-IP Architecture
Comware V3 Chapter 2 OSI Layer 3 Configuration Commands
Syntax
View
User view
Parameter
None
Description
Use the debugging clns clnp command to enable debugging for CLNS packets to
display the contents of all received/transmitted CLNP packets.
Use the undo debugging clns clnp command to disable debugging for CLNS
packets.
Example
Syntax
debugging clns rd
undo debugging clns rd
View
User view
Parameter
None
Description
Example
2-8
Command Manual – Non-IP Architecture
Comware V3 Chapter 2 OSI Layer 3 Configuration Commands
Syntax
View
User view
Parameter
None
Description
Use the debugging clns routing command to enable debugging for Layer 3 routing
tables.
Use the undo debugging clns routing command to disable debugging for Layer 3
routing tables.
Example
Syntax
View
User view
Parameter
None
Description
Use the debugging isis es-adjacency command to enable debugging for IS-IS
protocol-related events occur on neighboring ESs.
Use the undo debugging isis es-adjacency command to disable debugging for IS-IS
protocol-related events occur on neighboring ESs.
2-9
Command Manual – Non-IP Architecture
Comware V3 Chapter 2 OSI Layer 3 Configuration Commands
You can display information about IS-IS protocol-related events occur on neighboring
ESs by enable this type of debugging, such as state (up/down) changes.
Debugging for IS-IS protocol-related events occur on neighboring ESs is disabled by
default.
Example
Syntax
View
User view
Parameter
None
Description
Use the debugging isis is-adjacency command to enable debugging for IS-IS
protocol-related events occur on neighboring ISs.
Use the undo debugging isis is-adjacency command to disable debugging for IS-IS
protocol-related events occur on neighboring ISs.
You can display information about IS-IS protocol-related events occur on neighboring
ISs by enable this type of debugging, such as state (up/down) changes of the
neighboring ISs, information about receiving/transmitting IIH packets.
Debugging for IS-IS protocol-related events occur on neighboring ISs is disabled by
default.
Example
Syntax
2-10
Command Manual – Non-IP Architecture
Comware V3 Chapter 2 OSI Layer 3 Configuration Commands
View
User view
Parameter
None
Description
Use the debugging esis event command to enable debugging for ES-IS
protocol-related events. You can display event information using this command, such
as changes of neighbor states, entries in Level 0 routing table, and interface states.
Use the undo debugging esis event command to disable debugging for ES-IS
protocol-related events.
Use the debugging esis packet command to enable debugging for ES-IS packets.
You display information about received/transmitted ES-IS packets, such as packet size,
packet type, packet HT, and Layer 2 and Layer 3 address.
Use the undo debugging esis packet command to disable debugging for ES-IS
packets.
Example
Syntax
display clns
View
Any view
Parameter
None
Description
Example
2-11
Command Manual – Non-IP Architecture
Comware V3 Chapter 2 OSI Layer 3 Configuration Commands
NET: 47.0000.0000.0000.0000.00
Current CLNP status: Enable
Current error report status: Disable
Current minimum error report interval (milliseconds):100
Current CLNP redirect status: Enable
Current CLNP redirect holding time: 180s
Current minimum CLNP redirection packet interval (milliseconds):100
Field Description
NET Net address
Syntax
View
Any view
Parameter
None
Description
Use the display isis routing clns command to display CLNS routing information
generated by IS-IS protocol.
Example
2-12
Command Manual – Non-IP Architecture
Comware V3 Chapter 2 OSI Layer 3 Configuration Commands
The information above is the contents of Level 1 and Level 2 routing table generated by
IS-IS protocol. Table 2-2 describes the fields in it.
Table 2-2 Description on fields of the display isis route clns command
Field Description
System Id System ID
Nexthop The address of the next hop
Syntax
View
Any view
Parameter
2-13
Command Manual – Non-IP Architecture
Comware V3 Chapter 2 OSI Layer 3 Configuration Commands
Description
Use the display clns interface command to display CLNS related information about a
specified interface.
If you do not specify the interface-type interface-number argument, this command
displays CLNS related information about all interfaces.
Example
0 packets sent
0 bytes sent
Field Description
Ethernet0/0/0 is up The state of Ethernet0/0/0 interface
Syntax
View
Any view
2-14
Command Manual – Non-IP Architecture
Comware V3 Chapter 2 OSI Layer 3 Configuration Commands
Parameter
Description
Use the display clns routing-table command to display all active CLNS routes,
including those in Level 0, Level 1, and Level 2 routing tables.
Example
+#47.0001.0001.0000.0000.065b.00
Protocol:ES-IS Cost:0 Pre:10
*NextHop:N/A SNPA:00e0.fc12.4448 Interface:Ethernet1/0/0
+#47.0001.0001.0000.0000.650b.00
Protocol:ES-IS Cost:0 Pre:10
*NextHop:N/A SNPA:00e0.fc12.4448 Interface:Ethernet1/0/0
+#47.0001.0001.0000.0000.065a.00
Protocol:DIRECT Cost:0 Pre:0
*NextHop:N/A SNPA:N/A Interface:InLoopBack0
@47.0001.0002
@47.0001.0001
2-15
Command Manual – Non-IP Architecture
Comware V3 Chapter 2 OSI Layer 3 Configuration Commands
@47.0001.0003
+#0000.0000.280c
Protocol:IS-IS Cost:20 Pre:15
*NextHop:0000.0000.028b SNPA:00e0.fc3a.5ee3
Interface:Ethernet1/0/1
+#0000.0000.028c
Protocol:IS-IS Cost:20 Pre:15
*NextHop:0000.0000.028b SNPA:00e0.fc3a.5ee3
Interface:Ethernet1/0/1
+#0000.0000.280b
Protocol:IS-IS Cost:10 Pre:15
*NextHop:0000.0000.028b SNPA:00e0.fc3a.5ee3
Interface:Ethernet1/0/1
+#0000.0000.028b
Protocol:IS-IS Cost:10 Pre:15
*NextHop:0000.0000.028b SNPA:00e0.fc3a.5ee3
Interface:Ethernet1/0/1
+#0000.0000.065b
Protocol:IS-IS Cost:10 Pre:15
*NextHop:0000.0000.065b SNPA:00e0.fc12.4448
Interface:Ethernet1/0/0
+#0000.0000.046a
Protocol:IS-IS Cost:20 Pre:15
*NextHop:0000.0000.046b SNPA:00e0.fc35.1d94
Interface:Ethernet1/0/2
+#0000.0000.046b
Protocol:IS-IS Cost:10 Pre:15
*NextHop:0000.0000.046b SNPA:00e0.fc35.1d94
Interface:Ethernet1/0/2
+#0000.0000.065a
Protocol:IS-IS Cost:0 Pre:15
*NextHop:N/A SNPA:N/A Interface:InLoopBack0
2-16
Command Manual – Non-IP Architecture
Comware V3 Chapter 2 OSI Layer 3 Configuration Commands
+#47.0002.0001
Protocol:IS-IS Cost:84 Pre:15
*NextHop:0000.0000.046b SNPA:00e0.fc35.1d94
Interface:Ethernet1/0/2
Table 2-4 Description on the fields of the display clns routing-table command
Field Description
Directly connecting (Level 0) routing
L0 Routing-table
table
L1 Routing-table Intra-area (Level 1) routing table
2-17
Command Manual – Non-IP Architecture
Comware V3 Chapter 2 OSI Layer 3 Configuration Commands
Field Description
CLNS Level-1 Routing Area Address The address of the reachable area
Syntax
View
Any view
Parameter
None
Description
Use the display clns statistic command to display statistics information about CLNS
flow.
Example
Total sent: 20
Total received: 20
To local: 0
Local out: 0
Error report packet generated: 0
Forwarded: 20
Out discarded: 0
In discarded: 0
Fragmented: 0
Fragments generated: 0
Format errors: 0
Header syntax errors: 0
Checksum errors: 0
Lifetime timeout errors: 0
Unsupported option errors: 0
Can't fragment: 0
Duplicated option: 0
2-18
Command Manual – Non-IP Architecture
Comware V3 Chapter 2 OSI Layer 3 Configuration Commands
Table 2-5 Description on the fields of the display clns statistics command
Field Description
Total sent Total number of the CLNP packets sent
Total received Total number of the CLNP packets received
Number of the CLNP packets destined for the
To local
local IS
Local out Number of the CLNP packet sent by the IS
Number of the error report packets generated
Error report packet generated
by the IS
Forwarded Number of the packets forwarded by the IS
Number of the packets discarded when being
Out discarded
sent
Number of the packets discarded upon
In discarded
received
Number of the packets generated after
Fragments generated
fragmentation
Format errors Number of the packets with format errors
Number of the packets with header syntax
Header syntax errors
errors
Checksum errors Number of the packets with checksum errors
Lifetime timeout errors Number of the packets with lifetime timing out
Number of the packets with unsupported
Unsupported option errors
options
Number of the packets that cannot be
Can't fragment
fragmented
Duplicated option Number of the packets with duplicated options
Number of the packets that are of unknown
Unknown data type
data type
2-19
Command Manual – Non-IP Architecture
Comware V3 Chapter 2 OSI Layer 3 Configuration Commands
Field Description
Number of the packets with unreachable
Destination address unreachable
destinations
Number of the packets that are of unknown
Unknown protocol version
protocol version
Incomplete packet errors Number of incomplete packets
Number of the packets with reassembling
Reassemble errors
errors
Reassembled Number of the packets that are reassembled
Number of the packets generated by
Reassemble generated
reassembling
Number of the packets that time out when being
Reassemble timeout
reassembled
Number of the packets that conflict when being
Reassemble interfere
reassembled
No route Number of the packets that fail to be routed
RD sent Number of the RD packets sent
Syntax
display esis
View
Any view
Parameter
None
Description
Use the display esis command to display current ES-IS protocol state, such as the
configuration timer (CT) to send ISH packets, the holding time (HT) of the information
ISH packets carry.
Example
2-20
Command Manual – Non-IP Architecture
Comware V3 Chapter 2 OSI Layer 3 Configuration Commands
Syntax
View
Any view
Parameter
Description
Use the display esis interface command to display ES-IS related information about a
specified interface.
If you do not specify the interface-type interface-number argument, this command
display ES-IS related information about all interfaces.
Example
Table 2-6 Description on the fields of the display esis interface command
Field Description
Ethernet0/0/0 is up The current state of the interface
2-21
Command Manual – Non-IP Architecture
Comware V3 Chapter 2 OSI Layer 3 Configuration Commands
Syntax
View
Any view
Parameter
None
Description
Use the display esis peer command to display information about the neighbors
dynamically discovered by ES-IS protocol (including dynamic ES and IS neighbors).
Example
47.0000.0000.0000.0000
Interface:Fa0/0 SNPA:000e-84ba-fd91 HoldTime:250s Type:ES
49.0000.0647.0001.1100
Interface:Fa0/0 SNPA:000e-84ba-fd92 HoldTime:300s Type:ES
47.0000.0647.0001.1100
Interface:Fa0/0 SNPA:000e-84ba-fd94 HoldTime:220s Type:IS
47.0000.0647.0001.1101
Interface:Fa0/0 SNPA:000e-84ba-fd94 HoldTime:220s Type:IS
Syntax
View
Any view
2-22
Command Manual – Non-IP Architecture
Comware V3 Chapter 2 OSI Layer 3 Configuration Commands
Parameter
None
Description
Use the display esis statistic command to display statistics information about ES-IS
flow.
Example
Total sent:10
Total received:20
Total discarded: 0
ESH sent:0
ESH received:10
ISH sent:10
ISH received:0
Table 2-7 Description on the fields of the display esis statistics command
Field Description
Total sent Total number of the packets sent
Total received Total number of the packets received
Total discarded Total number of the packets discarded
2.1.26 esis
Syntax
esis
undo esis
View
System view
2-23
Command Manual – Non-IP Architecture
Comware V3 Chapter 2 OSI Layer 3 Configuration Commands
Parameter
None
Description
Use the esis command to employ ES-IS protocol globally and enter ES-IS view.
Use the undo esis command to disable ES-IS protocol.
ES-IS protocol is not employed by default.
Example
Syntax
esis enable
undo esis enable
View
Interface view
Parameter
None
Description
Use the esis enable command to employ ES-IS protocol on the interface.
Use the undo esis enable command to disable ES-IS protocol on the interface.
ES-IS protocol is not employed on an interface by default.
Example
2-24
Command Manual – Non-IP Architecture
Comware V3 Chapter 2 OSI Layer 3 Configuration Commands
Syntax
View
Interface view
Parameter
tag: Name of the IS-IS routing process specified by the configuration of the isis
command in system view. If not specified, it is empty.
Description
Use the isis enable clns command to enable CLNS-based IS-IS routing process for a
specified interface.
Use the undo isis enable clns command to delete the enabled IS-IS process on a
specified interface.
By default, IS-IS process is not enabled on the interface.
To make IS-IS protocol operate normally, you must use the isis command to enable
IS-IS process, use the network-entity command to set a net entity name (NET) for the
router, and use the isis enable command to enable the interfaces which need to run
IS-IS process in turn, Only after these configurations are finished can IS-IS protocol be
started.
Related command: isis and network-entity.
Note:
Currently, IS-IS process can be enabled on up to 255 interfaces on one router
(including logical interfaces such as subinterfaces).
Example
# Create an IS-IS routing process named 123 and enable this process on interface
Serial1/0/0.
[H3C] isis 123
[H3C-isis] network-entity 10.0001.1010.1020.1030.00
[H3C-isis] quit
[H3C] interface serial1/0/0
2-25
Command Manual – Non-IP Architecture
Comware V3 Chapter 2 OSI Layer 3 Configuration Commands
Syntax
View
Any view
Parameter
NSAP: Layer 3 address of the destination in the format of ##.####. ... .##.
Description
Use the ping clns command to test the reachability to a specified destination.
This command sends a CLNP ECHO REQUEST (ERQ) packet to the destination and
waits for its corresponding ECHO RESPONSE (ERP) packet. A ping operation is
successful if the source receives an ERP packet in three seconds after it sends an ERQ
packet to the destination. Otherwise, it is unsuccessful.
Example
Syntax
2-26
Command Manual – Non-IP Architecture
Comware V3 Chapter 2 OSI Layer 3 Configuration Commands
View
IS-IS view
Parameter
Description
Use the preference clns command to set the preference of the CLNS routes
discovered by IS-IS protocol.
Use the undo preference clns command to revert the preference of the CLNS routes
discovered by IS-IS protocol to the default.
As a router can have multiple dynamic routing protocols employed, multiple routes lead
to the same destination may coexist on the router. You can assign a preference value to
each of these protocols to enable the router to select the route with the highest
preference when selecting from multiple routes discovered by protocols with different
preference values.
The default preference value of CLNS routes discovered by IS-IS protocol is 15.
Example
# Set the preference value of CLNS routes discovered by IS-IS protocol to 35.
[H3C-isis] preference clns 35
Syntax
View
User view
Parameter
None
Description
Use the reset clns statistics command to reset statistics information about CLNS flow.
This command clears interface statistics and global statistics. Note that changes of
interface state (UP/DOWN) do not affect the statistics. And the statistics information
about an interface gets lost when you remove the interface.
2-27
Command Manual – Non-IP Architecture
Comware V3 Chapter 2 OSI Layer 3 Configuration Commands
Example
Syntax
View
User view
Parameter
None
Description
Use the reset esis statistics command to reset statistics information about ES-IS flow.
This command clears interface statistics and global statistics. Note that changes of
interface state (UP/DOWN) do not affect the statistics. And the statistics information
about an interface gets lost when you disable ES-IS protocol on the interface or remove
the interface.
Example
Syntax
View
ES-IS view
Parameter
seconds: Interval in seconds to send ISH packets. This argument ranges from 1 to
65535 and defaults to 60.
Description
Use the timer configuration command to set the interval to send ISH packets.
2-28
Command Manual – Non-IP Architecture
Comware V3 Chapter 2 OSI Layer 3 Configuration Commands
Use the undo timer configuration command to revert to the default interval to send
ISH packets.
Note that:
z Make sure the interval to send ISH packets (CT) is less than or equal to one third
of the holding time (HT) of the information ISH packets carry. Otherwise, you are
prompted with configuration error messages.
z HT value must be at least three times of that of CT. So, with CT larger than 60, if
you try to revert to the default HT (180) by executing the undo timer holding
command, you are prompted with an error message and the operation stops. You
can execute the undo timer holding command to revert to the default HT
successfully only when CT is less than or equal to 60.
Related command: timer holding.
Example
Syntax
View
ES-IS view
Parameter
seconds: Holding time of the information ISH packets sent carry. The Holding Time field
of an ISH packet holds the holding time of its information. This argument ranges from 1
to 65535 and defaults to 180.
Description
Use the timer holding command to set the holding time of the information ISH packets
sent carry.
Use the undo timer holding command to revert to the default holding time.
Note that:
2-29
Command Manual – Non-IP Architecture
Comware V3 Chapter 2 OSI Layer 3 Configuration Commands
z Make sure the holding time (HT) of the information ISH packets carry is at least
three times to the interval to send ISH packets (CT). Otherwise, you are prompted
with configuration error messages.
z HT value must be at least three times of that of CT. So, with CT larger than 60, if
you try to revert to the default HT (180) by executing the undo timer holding
command, you are prompted with an error message and the operation stops. You
can execute the undo timer holding command to revert to the default HT
successfully only when CT is less than or equal to 60.
Example
# Set the interval to send ISH packets to 20 seconds, and the holding time of the
information ISH packets sent carry to 60 seconds.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] esis
[H3C-esis] timer configuration 20
[H3C-esis] timer holding 60
Syntax
View
Any view
Parameter
-m max-TTL: Sets the maximum time to live (TTL) value available for echo request
(ERQ) packets. The max-TTL argument ranges from 1 to 255 and defaults to 30.
-n n-request: Sets the maximum number of ERQ packets that can be sent for a specific
TTL. The n-request argument ranges from 0 to 65535 and defaults to 3.
-t timeout: Sets the interval in seconds to wait for response packets. The timeout
argument ranges from 0 to 65535 and defaults to 5.
-v: Specifies to display descriptions of errors the error numbers in returned error report
packets correspond to.
NSAP: Destination Layer 3 address in the format of ##.####. ... .##. A Layer 3
addresses can be 8 to 20 bytes in length.
Description
Use the tracert clns command to track the nodes along the route that leads to a
specified destination.
2-30
Command Manual – Non-IP Architecture
Comware V3 Chapter 2 OSI Layer 3 Configuration Commands
This command can be used to test the reachability of a specified network and
troubleshoot network problems.
Upon executed, the command first sends an ERQ packet with a TTL of 1 to the
destination. It sends another ERQ packet with a TTL of 2 when being replied with a TTL
timeout packet. The command continues sending ERQ packets to the destination, each
with its TTL 1 larger than that of its predecessor, until a TTL timeout packet sent from
the destination is received. You can obtain the nodes of the route that leads to the
destination by checking the source addresses of these TTL timeout packets.
If you use the clns erpacket interval command to set a longer interval for error report
packet, the executing of the tracert clns command may result in packet loss. Therefore,
you are recommended to check error report packet interval on all routers and set the
interval to 0 before using the tracert clns command. And then after executing the
tracert clns command restore the interval to the original one.
When executing the tracert clns command, make sure that:
z The IS is assigned a NET address. (Refer to the clns net command.)
z CLNS is enabled globally. (Refer to the clns enable command.)
z Generation of ER packets is enabled globally. (Refer to the clns erpacket enable
command.)
Field Description
* No response packet received when times out
Error report packet received before times out (Error types are
!
described as follows)
N Unknown error type
D Duplicated options
T Unsupported packet type
A Destination unreachable
2-31
Command Manual – Non-IP Architecture
Comware V3 Chapter 2 OSI Layer 3 Configuration Commands
Field Description
R Error in reassembling
Example
# Execute the tracert clns command with local NET address not configured.
[H3C] tracert clns 49.0001.0000.0000.026a.00
No local Network Entity Title (NET) to use
2 *
*
*
3 47.0001.0002.0001.000c.0035.00 20ms !A
Destination address unreachable
47.0001.0002.0001.000c.0036.00 10ms
47.0001.0002.0001.000c.0035.00 10ms !A
Destination address unreachable
4 47.0001.0001.0001.000a.0025.11 39ms
47.0001.0001.0001.000a.0025.11 39ms
47.0001.0001.0001.000a.0025.11 19ms
2-32
Command Manual – Non-IP Architecture
Comware V3 Chapter 3 IPX Configuration Commands
Syntax
View
User view
Parameter
Description
Use the debugging ipx packet command to enable IPX packet debugging switch to
view the contents of IPX packet received and transmitted.
Use the undo debugging ipx packet command to disable the debugging switch. By
default, IPX packet debugging switch is disabled.
Example
3-1
Command Manual – Non-IP Architecture
Comware V3 Chapter 3 IPX Configuration Commands
Table 3-1 Description of display information of the debugging ipx packet command
Field Description
Length of packet in decimal format (not including MAC
pktlen =
address header).
hops = How many routers the packet has passed through.
pkttype = Packet type in hexadecimal format.
dstnet = Destination network number of the packet.
dstnode = Destination node address of the packet.
dstsocket = Destination socket of the packet.
srcnet = Source network number of the packet.
srcnode = Source node address of the packet.
srcsocket = Source socket of the packet.
Prompt of how router processes the packet and reasons of
prompt:
discarding packet.
Syntax
View
User view
Parameter
None
Description
Use the debugging ipx ping command to enable IPX Ping packet debugging switch to
view the contents of Ping packet received and transmitted.
Use the undo debugging ipx ping command to disable the debugging switch.
By default, IPX Ping packet debugging switch is disabled.
Example
3-2
Command Manual – Non-IP Architecture
Comware V3 Chapter 3 IPX Configuration Commands
Table 3-2 Description of display information of the debugging ipx ping command
Field Description
Src = Source address of Ping packet.
Dst = Destination address of Ping packet.
Syntax
View
User view
Parameter
Description
Use the debugging ipx rip command to enable RIP debugging switch to view
information on RIP packet received and transmitted, routing changes and timer expiry.
Use the undo debugging ipx rip command to disable RIP debugging switch.
By default, IPX RIP debugging switch is disabled.
Example
3-3
Command Manual – Non-IP Architecture
Comware V3 Chapter 3 IPX Configuration Commands
Syntax
View
User view
Parameter
None
Description
Use the debugging ipx rtpro-flash command to turn on the debugging switch of route
refreshing in the IPXRM module.
Use the command to turn off the debugging switch of route refreshing in the IPXRM
module.
This kind of debugging information is generated when routes are refreshed for the sake
of route change.
Example
3-4
Command Manual – Non-IP Architecture
Comware V3 Chapter 3 IPX Configuration Commands
<H3C>
Syntax
View
User view
Parameter
None
Description
Use the debugging ipx rtpro-interface command to turn on the debugging switch of
interface change in the IPXRM module.
Use the undo debugging ipx rtpro-interface command to turn off the debugging
switch of interface change in the IPXRM module.
Such debugging information is generated whenever IPXRM module receives interface
change messages. These messages are generated when interface status changes
between up and down, or interface is added or removed.
Example
3-5
Command Manual – Non-IP Architecture
Comware V3 Chapter 3 IPX Configuration Commands
Syntax
View
User view
Parameter
None
Description
Use the debugging ipx rtpro-routing command to turn on the debugging switch of
route change in the IPXRM module.
3-6
Command Manual – Non-IP Architecture
Comware V3 Chapter 3 IPX Configuration Commands
Use the command to turn off the debugging switch of route change in the IPXRM
module.
This kind of debugging information is generated when route changes as addition,
deletion or attribute adjustment occur.
Example
Syntax
View
User view
Parameter
3-7
Command Manual – Non-IP Architecture
Comware V3 Chapter 3 IPX Configuration Commands
Description
Use the debugging ipx sap command to enable IPX SAP debugging switch to view
information on SAP packet received and transmitted, routing changes and timer expiry.
Use the undo debugging ipx sap command to disable IPX SAP debugging switch.
Enabling IPX SAP debugging switch, you can confirm whether SAP packet is received.
Normally, a router or server sends out an SAP update packet every minute. By default,
each SAP packet includes up to seven service information items at most. If a lot service
information needs advertising on the network, the router sends out multiple packets per
update. For example, if a router has 20 service information items in SIT, it sends three
SAP packets per update. The first SAP includes the first seven items, the second SAP
includes the next seven items, and the last update includes the last six items.
Note:
The debugging ipx sap command generates significant amount of output, use it with
caution on networks that have many interfaces and a great deal of service information.
Disable debugging switch immediately after debugging to reduce effect to normal
services as possible.
Example
3-8
Command Manual – Non-IP Architecture
Comware V3 Chapter 3 IPX Configuration Commands
Syntax
View
Any view
Parameter
Description
Use the display ipx interface command to view IPX interface configuration
information and interface parameters in communication devices.
Example
3-9
Command Manual – Non-IP Architecture
Comware V3 Chapter 3 IPX Configuration Commands
Table 3-3 Description of display information of the display ipx interface command
Field Description
In terms of physical layer and link layer status, the
Ethernet1/0/0 is ... current interface is UP, DOWN or administratively
DOWN.
IPX network ID and node value of the current
IPX address is ... interface. Refer to the commands ipx network and
ipx enable for details of network ID and node value.
[up] IPX protocol status of the current interface.
SAP is … Whether SAP is enabled on the current interface.
Whether split horizon is enabled on the current
Split horizon is …
interface. The related command is ipx split-horizon.
Whether trigger update is enabled on the current
Update change only is … interface. The related command is ipx
update-change-only.
Whether IPX type 20 propagation packet is permitted
Forwarding of IPX type 20
to be forwarded on the current interface. The related
propagation packet is ...
command is ipx netbios-propagation.
Delay of this IPX interface, Delay value of the current interface. The value is
in ticks is ... configured by the ipx tick command.
Whether SAP GNS reply is enabled on the current
SAP GNS response is ... interface. The related command is ipx sap
gns-disable-reply.
RIP packet maximum size Maximum size of RIP updating packet on the current
is ... bytes interface. The related command is ipx rip mtu.
SAP packet maximum size Maximum size of SAP updating packet on the current
is ... bytes interface. The related command is ipx sap mtu.
Total number of packets received on the current
received
interface.
sent Total number of packets sent on the current interface.
Total number of bytes received on the current
bytes received
interface.
bytes sent Total number of bytes sent on the current interface.
Total number of IPX RIP packets received on the
RIP received
current interface.
Total number of IPX RIP packets sent on the current
RIP sent
interface.
Total number of IPX RIP packets discarded on the
RIP discarded
current interface.
RIP specific requests Total number of IPX RIP specific requests received
received on the current interface.
3-10
Command Manual – Non-IP Architecture
Comware V3 Chapter 3 IPX Configuration Commands
Field Description
RIP specific responses Total number of IPX RIP specific responses sent on
sent the current interface.
RIP general requests Total number of IPX RIP general requests received
received on the current interface.
RIP general responses Total number of IPX RIP general responses sent on
sent the current interface.
Total number of SAP packets received on the current
SAP received
interface.
Total number of SAP packets sent on the current
SAP sent
interface.
Total number of SAP packets discarded on the
SAP discarded
current interface.
Total number of SAP requests received on the
SAP requests received
current interface.
Total number of SAP responses sent on the current
SAP responses sent
interface.
Syntax
View
Any view
Parameter
3-11
Command Manual – Non-IP Architecture
Comware V3 Chapter 3 IPX Configuration Commands
Description
Use the display ipx routing-table command to view active IPX routing information.
Use the display ipx routing-table verbose command to view detailed IPX routing
information, including active and inactive routes.
Use the display ipx routing-table network command to view active IPX routing
information to specified destination network ID.
Use the display ipx routing-table network verbose command to view detailed IPX
routing information to specified destination network ID, including active and inactive
routes.
Use the display ipx routing-table protocol { rip | static | default | direct } command
to view IPX routing information for specified destination type, including active and
inactive routes.
Use the display ipx routing-table protocol { rip | static | default | direct } verbose
command to view detailed IPX routing information for specified destination type,
including active and inactive routes.
Example
The following table explains the contents in the above displayed information:
Table 3-4 Description on the fields of the display ipx routing-table command
Field Description
Dest_Ntwk_ID Destination network ID of the route
Proto Protocol type of the route
3-12
Command Manual – Non-IP Architecture
Comware V3 Chapter 3 IPX Configuration Commands
# Display detailed IPX routing information, including active and inactive routes.
<H3C> display ipx routing-table verbose
Routing tables:
Destinations: 103 Routes: 103
Destination Network ID: 0x11
Protocol: Direct Preference: 0
Ticks: 6 Hops: 0
Nexthop: 0.0000-0000-0000 Time: 0
Interface: 11.0000-0165-6400(Serial0)
State: <Active>
Destination Network ID: 0x22
Protocol: RIP Preference: 100
Ticks: 7 Hops: 1
Nexthop: 11.0000-0165-6401 Time: 15
Interface: 11.0000-0165-6400(Serial0)
State: <Active>
Destination Network ID: 0x33
Protocol: Direct Preference: 0
Ticks: 1 Hops: 0
Nexthop: 0.0000-0000-0000 Time: 0
Interface: 33.0000-0165-6400(Ethernet0)
State: <Active>
Destination Network ID: 0x100
Protocol: Static Preference: 60
Ticks: 6 Hops: 1
Nexthop: 0.0000-0000-0000 Time: 0
Interface: 11.0000-0165-6400(Serial0)
State: <Active>
Table 3-5 Description on the fields of the display ipx routing-table verbose
command
Field Description
Aging time value of the route. Without aging, the value of interface
Time
route and static route is 0.
State can be <Active>, <Inactive> or <Delete>. <Active> indicates
State active route, <Inactive> indicates inactive route and <Delete>
indicates the route is being deleted.
3-13
Command Manual – Non-IP Architecture
Comware V3 Chapter 3 IPX Configuration Commands
Syntax
View
Any view
Parameter
None
Description
Use the display ipx routing-table statistics command to view IPX routing statistics.
Example
Syntax
display ipx service-table [ [ type service-type | name name | network network | order
{ network | type } ] | [ inactive ] ] [ verbose ]
View
Any view
Parameter
3-14
Command Manual – Non-IP Architecture
Comware V3 Chapter 3 IPX Configuration Commands
Description
Use the display ipx service-table command to view contents of IPX service
information table. The output information of the command helps users with IPX SAP
troubleshooting.
Example
3-15
Command Manual – Non-IP Architecture
Comware V3 Chapter 3 IPX Configuration Commands
Syntax
View
Any view
Parameter
None
Description
Use the display ipx statistics command to view statistics and type of IPX packet
transmitted and received.
Example
3-16
Command Manual – Non-IP Architecture
Comware V3 Chapter 3 IPX Configuration Commands
Table 3-6 Description on the fields of the display ipx statistics command
Field Description
Received Statistics for received messages
0 total Total number of received messages
Total number of messages whose headers are
0 packets pitched
re-pitched
Total number of discarded messages due to packet
0 packets size errors
size errors
Total number of discarded messages due to
0 format errors
encapsulation format errors
Total number of messages whose hop field values
0 bad hops
exceed 16
Total number of messages whose hop field values
0 discarded(hop=16)
are 16
Total number of discarded messages due to other
0 other errors
errors
Total number of messages which have local
0 local destination
destinations
0 can not be dealt Total number of messages that can not be dealt with
Sent: Statistics for sent messages
0 forwarded Number of messages which need to be forwarded
3-17
Command Manual – Non-IP Architecture
Comware V3 Chapter 3 IPX Configuration Commands
Field Description
0 specific requests received Number of received SAP specific request messages
0 GNS requests received Number of received SAP GNS request messages
0 general responses sent Number of sent SAP general response messages
0 specific responses sent Number of sent SAP specific response messages
0 GNS responses sent Number of sent SAP GNS response messages
Number of SAP periodic update messages sent by
0 periodic updates
router
0 errors Number of error SAP messages
PING Statistics about pings
10 requests sent The sent ICMP requests
0 requests received The received ICMP requests
0 responses sent The sent ICMP responses
Syntax
View
System view
Parameter
node: node value of the router. It is a 48-bit value represented by a triplet of four-digit
hexadecimal numbers separated by “-“. It is neither a broadcasting address nor a
multicast address. If the parameter is not configured, the router will assign MAC
address of the first Ethernet interface as its node value.
3-18
Command Manual – Non-IP Architecture
Comware V3 Chapter 3 IPX Configuration Commands
Note:
If there is no Ethernet interface in the router, the system will assign a random node
value based on the system clock.
Description
Example
# Enable IPX.
[H3C] ipx enable
# Disable IPX.
[H3C] undo ipx enable
Syntax
View
3-19
Command Manual – Non-IP Architecture
Comware V3 Chapter 3 IPX Configuration Commands
Parameter
Description
Use the ipx encapsulation command to set IPX frame encapsulation format on
Ethernet interface.
Use the undo ipx encapsulation command to restore the default IPX frame
encapsulation format.
By default, IPX frame encapsulation format on Ethernet interface is dot3
(Ethernet_802.3).
In WAN interfaces, IPX frame only supports PPP encapsulation.
Example
# Restore the default IPX frame encapsulation format on the interface Ethernet0/1/0.
[H3C-Ethernet 0/1/0] undo ipx encapsulation
Syntax
ipx netbios-propagation
undo ipx netbios-propagation
View
Interface view
Parameter
None
Description
Use the ipx netbios-propagation command to configure the router to forward type 20
broadcast packets on the current interface.
Use the undo ipx netbios-propagation command to disable the forwarding of type 20
packets.
3-20
Command Manual – Non-IP Architecture
Comware V3 Chapter 3 IPX Configuration Commands
By default, type 20 broadcast packets will be discarded by the router rather than
forwarded.
IPX type 20 packet is a packet for NetBIOS (Network Basic Input/Output System)
defined by Novell NetWare.
Example
Syntax
View
Interface view
Parameter
Description
Example
# Configure the interface Ethernet0/1/0 as IPX interface and assign it with a network ID.
[H3C-Ethernet 0/1/0] ipx network 675
Syntax
3-21
Command Manual – Non-IP Architecture
Comware V3 Chapter 3 IPX Configuration Commands
View
System view
Parameter
Description
Use the ipx rip import-route static command to import static routes into RIP. RIP adds
them in their route updates.
Use the undo ipx rip import-route static command to disable the importation of static
routes.
Example
Syntax
View
Interface view
Parameter
bytes: Maximum RIP updating packet size in byte, ranging from 432 to 1500. By default,
it is 432.
Description
Use the ipx rip mtu command to configure RIP updating packet size.
Use the undo ipx rip mtu command to restore the default configuration.
By default, the maximum size of RIP updating packets is 432 bytes. In RIP updating
packets, the size of each routing information item is 8 bytes and the size of IPX header
and RIP header is 32 bytes. So an updating packet can carry up to 50 routing
information items at most.
3-22
Command Manual – Non-IP Architecture
Comware V3 Chapter 3 IPX Configuration Commands
Example
# Configure the maximum size of RIP updating packets on the interface Ethernet1/0/0
to 500 bytes.
[H3C-Ethernet1/0/0] ipx rip mtu 500
Syntax
View
System view
Parameter
multiplier: It is used to calculate the aging period of RIP routing information table items,
ranging from 1 to 1000. By default, the value is 3. The actual aging time is the value of
multiplier multiplied by the RIP updating interval.
Description
Use the ipx rip multiplier command to configure the aging period of RIP routing
information table items.
Use the undo ipx rip multiplier command to restore the default configuration.
By default, RIP aging period is 3 times of updating interval.
Routers may contain a timer for each item in their routing information table, which
keeps track of elapsed time since the route was received. Every time the updating
packet containing the routing information is received, the timer is reset to zero. If RIP
route is not updated in a period of time, the system will regard the route is no longer
valid and delete it from the routing table.
Related command: ipx rip timer update.
Example
# Configure RIP aging period of routing information table items is 5 times of updating
interval.
[H3C] ipx rip multiplier 5
Syntax
3-23
Command Manual – Non-IP Architecture
Comware V3 Chapter 3 IPX Configuration Commands
View
System view
Parameter
Description
Use the ipx rip timer update command to configure RIP updating interval.
Use the undo ipx rip timer update command to restore the default value of RIP
updating interval.
By default, the RIP updating interval is 60 seconds.
On a network, routers need constantly exchange routing information with each other to
keep routing information consistent with actual network topology. In RIP, directly
connected routers periodically send updating packets to each other.
The changes of RIP updating interval will affect aging period.
Related command: ipx rip multiplier.
Example
Syntax
View
System view
Parameter
3-24
Command Manual – Non-IP Architecture
Comware V3 Chapter 3 IPX Configuration Commands
interface-type: Outgoing interface type, only supporting the interface with PPP
encapsulation. It can be Serial or POS interface.
interface-num: Outgoing interface number.
preference: Route preference. The preference of directly connected routes is fixed to 0
and cannot be changed. By default, the preference of active IPX static route is 60 and
can be configured. The preference of dynamic IPX routes is fixed to 100 and cannot be
changed.
value: Route preference value, in the range 1 to 255. The less the value, the higher the
preference.
ticks: It indicates the necessary time to destination network (1 tick = 1/18 second). By
default, it is the tick value of outgoing interface. Interfaces of different types have
different default tick values. The tick value of Ethernet interface is 1 and that of Serial
interface is 6. When the tick value of an interface is modified, the tick value of the
corresponding static route will also be changed.
hops: Number of routers which are passed by to destination network. By default, the
value is 1.
all: All IPX static routes.
Description
Example
# Configure an IPX static route with destination network ID being 0x5a, the next hop
being 1000.0-0c91-f61f, ticks 10 and hops 2.
[H3C] ipx enable
[H3C] ipx route-static 5a 1000.0-0c91-f61f tick 10 hop 2
# Configure the default IPX route with the next hop being 3.4a-60-7, ticks 10, hops 2
and preference 20.
[H3C] ipx enable
[H3C] ipx route-static FFFFFFFE 3.4a-60-7 preference 20 tick 10 hop 2
# Configure an IPX static route with destination network ID being 3a, outgoing interface
being Serial1/0/0, ticks 10, hops 2 and preference 30.
[H3C] ipx enable
[H3C] ipx route-static 3a serial 0/0/0 preference 30 tick 10 hop 2
3-25
Command Manual – Non-IP Architecture
Comware V3 Chapter 3 IPX Configuration Commands
Syntax
View
System view
Parameter
paths: The maximum equivalent route number to the same destination address,
ranging from 1 to 64. By default, the value is 1.
Description
Use the ipx route load-balance-path command to configure the equivalent route
number to the same destination address.
Use the undo ipx route load-balance-path command to restore the default
configuration.
The equivalent route number to the same destination address is the maximum number
of active equivalent routes in the current system. If the newly configured value is less
than the current active route number, the system will change the excessive active
routes to inactive status.
Example
# Configure the equivalent route number to the same destination address to 30.
[H3C] ipx route load-balance-path 30
Syntax
View
System view
Parameter
paths: The maximum dynamic route number to the same destination address, ranging
from 1 to 255. By default, the value is 4.
3-26
Command Manual – Non-IP Architecture
Comware V3 Chapter 3 IPX Configuration Commands
Description
Use the ipx route max-reserve-path command to configure the maximum dynamic
route number to the same destination address.
Use the undo ipx route max-reserve-path command to restore the default
configuration.
When the dynamic route number to the same destination address exceeds the
maximum value configured, the newly found dynamic routes will not be added into the
routing table, discarded directly. If the newly configured value is less than the original
one, the excessive routes in the current routing table will not be deleted until they get
aging themselves or are deleted manually.
Example
# Configure the maximum dynamic route number to the same destination address to
200.
[H3C] ipx route max-reserve-path 200
Syntax
View
Interface view
Parameter
None
Description
Use the ipx sap disable command to disable SAP on the current interface.
Use the undo ipx sap disable command to enable SAP on the current interface.
By default, the interface SAP is enabled as soon as IPX is enabled.
Example
3-27
Command Manual – Non-IP Architecture
Comware V3 Chapter 3 IPX Configuration Commands
Syntax
View
Interface view
Parameter
None
Description
Use the ipx sap gns-disable-reply command to disable IPX GNS reply on the current
interface.
Use the undo ipx sap gns-disable-reply command to enable IPX GNS reply on the
current interface.
By default, GNS reply is enabled on an interface.
Example
Syntax
View
System view
Parameter
None
Description
Use the ipx sap gns-load-balance command to configure the router to respond GNS
request in Round-robin method, that is, all servers respond GNS request in turn.
3-28
Command Manual – Non-IP Architecture
Comware V3 Chapter 3 IPX Configuration Commands
Use the undo ipx sap gns-load-balance command to configure the nearest server to
respond GNS request.
By default, for GNS request, a router will inform all servers it knows to respond in
Round-robin method to avoid overload of one server.
Related command: ipx sap gns-disable-reply.
Example
Syntax
View
System view
Parameter
length: The length of the dynamic service information reserve queue, ranges from1 to
2048. By default, the value is 2048.
Description
Use the ipx sap max-reserve-servers command to configure the length of the service
information reserve queue.
Use the undo ipx sap max-reserve-servers command to restore the default
configuration.
If the newly configured service information queue length is less than the present one,
the items in SIT will not be deleted. If the service information item number for the same
service type exceeds the maximum value configured, the new service information will
not be added.
Example
3-29
Command Manual – Non-IP Architecture
Comware V3 Chapter 3 IPX Configuration Commands
Syntax
View
Interface view
Parameter
bytes: The maximum SAP packet size in byte, ranging from 480 to 1500. By default, the
value is 480.
Description
Use the ipx sap mtu command to configure the maximum size of SAP updating
packet.
Use the undo ipx sap mtu command to restore the default configuration.
By default, the maximum size of SAP updating packet is 480 bytes. The size of IPX
header and SAP header is 32 bytes, so a 480-byte SAP updating packet contains 7
service information items (64 bytes each).
Example
# Set the maximum size of SAP updating packet on the interface Ethernet1/0/0 to 674
bytes (carrying 10 service information items at most).
[H3C-Ethernet0/0/0] ipx sap mtu 674
Syntax
View
System view
Parameter
multiplier: It is used to calculate the aging period of SAP service information table items,
ranging from 1 to 1000. By default, the value is 3. When the updating interval is 60
seconds, the aging period is 60*3 = 180 seconds.
3-30
Command Manual – Non-IP Architecture
Comware V3 Chapter 3 IPX Configuration Commands
Description
Use the ipx sap multiplier command to configure the aging period of SAP service
information table items.
Use the undo ipx sap multiplier command to restore the default value of SAP aging
period.
By default, the aging period of SAP service information table items is 3 times of SAP
updating interval.
Related command: ipx sap timer update.
Example
# Set the aging period of SAP service information table items is 5 times of updating
interval.
[H3C] ipx sap multiplier 5
Syntax
View
System view
Parameter
seconds: SAP updating interval, ranging from 10 to 60000 seconds. By default, the
value is 60 seconds.
Description
Use the ipx sap timer update command to configure SAP updating interval.
Use the undo ipx sap timer update command to restore the default value of SAP
updating interval.
When an interface adopts trigger update method, the command configuration does not
take effect.
Related command: ipx sap multiplier, ipx update-change-only.
Example
3-31
Command Manual – Non-IP Architecture
Comware V3 Chapter 3 IPX Configuration Commands
Syntax
View
System view
Parameter
Description
Use the ipx service command to add a static service information item to SIT.
Use the undo ipx service command to delete a static service information item from
SIT.
The NetWare server uses SAP to advertise service information and stores the service
information to SIT which is dynamically updated by SAP. Adding a service information
item to SIT, users can access the service.
Example
# Add a static service information item with service type 4, service name “FileServer”,
server network ID 130, node value 0000-0a0b-abcd, server hops 1 and server
preference 60.
3-32
Command Manual – Non-IP Architecture
Comware V3 Chapter 3 IPX Configuration Commands
Service information with server type 114 will not be advertised if there is no active route
to the network 199.
Syntax
ipx split-horizon
undo ipx split-horizon
View
Interface view
Parameter
None
Description
Use the ipx split-horizon command to enable split horizon on the current interface.
Use the undo ipx split-horizon command to disable split horizon on the current
interface.
By default, split horizon is enabled on the interface.
Split horizon is a way to avoid routing loops, that is, routing information received from
an interface is not permitted to be sent from the interface. The function does not take
effect to point-to-point connection links.
Example
Syntax
3-33
Command Manual – Non-IP Architecture
Comware V3 Chapter 3 IPX Configuration Commands
View
Interface view
Parameter
ticks: Delay time in tick, ranging from 0 to 30000. One tick is 1/18 second
(approximately 55 ms). By default, the delay of Ethernet interface is 1 tick, that of the
asynchronous serial port is 30 ticks and that of WAN port is 6 ticks.
Description
Use the ipx tick command to configure the delay of interface sending IPX packets.
Use the undo ipx tick command to restore the default value of interface delay.
As the IPX RIP delay field, the delay value configured by the ipx tick command is a
basis for the optimal routing selection.
Example
Syntax
ipx update-change-only
undo ipx update-change-only
View
Interface view
Parameter
None
Description
Use the ipx update-change-only command to enable trigger update on the current
interface.
Use the undo ipx update-change-only command to disable trigger update on the
current interface.
By default, trigger update is disabled on the interface.
IPX RIP and SAP periodically advertise updating broadcast packets. Users can
configure trigger update to avoid broadcast flood.
3-34
Command Manual – Non-IP Architecture
Comware V3 Chapter 3 IPX Configuration Commands
Example
Syntax
View
Any view
Parameter
Note:
The 0s in front of node value cannot be omitted.
count: Number of Ping packets that are sent. By default, the value is 5.
timeout: The time waiting for Ping response. By default, the value is 2 seconds.
size: Ping packet size. By default, the value is 100 bytes.
Description
Use the ping ipx command to check host reachability and network connectivity in IPX
network.
Example
3-35
Command Manual – Non-IP Architecture
Comware V3 Chapter 3 IPX Configuration Commands
Syntax
View
User view
Parameter
None
Description
Use the reset ipx statistics command to clear IPX statistics by the system.
Example
Syntax
reset ipx routing-table statistics protocol [ all | default | direct | rip | static ]
View
User view
Parameter
Description
The reset ipx routing-table statistics command is used to clear the statistical
information of a specified type of IPX route. Such information can be shown upon the
terminal using the display ipx routing-table statistics command.
Example
# Add 5 IPX static routes to the router, then delete them, and then add anther 9 IPX
static routes. The IPX route statistical information would be as follows:
3-36
Command Manual – Non-IP Architecture
Comware V3 Chapter 3 IPX Configuration Commands
Total 10 10 15 5 5
[H3C]
# The displayed statistical information shows that all three items (add, delete, freed) of
static route have changed to 0, and the below Total item has also changed accordingly.
<H3C> display ipx routing-table statistics
Routing tables:
Proto/State route active added deleted freed
Direct 1 1 1 0 0
Static 9 9 0 0 0
RIP 0 0 0 0 0
Default 0 0 0 0 0
Total 10 10 1 0 0
<H3C>
3-37
Command Manual – Non-IP Architecture
Comware V3 Chapter 4 DLSw Configuration Commands
Syntax
bridge-set bridge-set-number
undo bridge-set bridge-set-number
View
Parameter
Description
Use the bridge-set (in Synchronous serial interface system view) command to add
the synchronous serial interface encapsulated into SDLC into the bridge group.
Use the undo bridge-set (in synchronous serial interface view) command to delete
the interface from the DLSw bridge group.
By default, no synchronous serial port is added into the bridge group.
In order for the SDLC encapsulated synchronous serial port to join the DLSw
forwarding, the SDLC interface is needed to added into a bridge group by using this
command. What is different is that the bridge group on the Ethernet interface joins the
local forwarding, while the bridge group configured on the SDLC only joins the DLSw
forwarding, that is, all the data on it will be forwarded onto the TCP tunnel. If it is
configured in the Ethernet Interface view, the Ethernet interface of the same group
number on the router can forward packets transparently. But packets cannot be
transferred transparently between the serial ports. Each serial port only exchanges
packet with the remote end.
Example
# Add the Serial1/0/0 into the DLSw bridge group numbered 20.
[H3C] dlsw bridge-group 20
[H3C] interface Serial1/0/0
[H3C-Serial1/0/0] bridge-set 20
4-1
Command Manual – Non-IP Architecture
Comware V3 Chapter 4 DLSw Configuration Commands
Syntax
bridge-set bridge-set-number
undo bridge-set bridge-set-number
View
Parameter
bridge-set-number: The bridge group number that the Ethernet interface is added into,
ranging from 1 to 63.
Description
Use the bridge-set (in the Ethernet Interface view) command to add the Ethernet
interface into the bridge.
Use the undo bridge-set (in the Ethernet Interface view) command to delete the
interface from the DLSw bridge group.
By default, no Ethernet interface is added into the bridge group.
After an Ethernet interface is added into the bridge group, the LLC2 packets on the
Ethernet interface can be sent to the remote peer through the related TCP tunnel.
Example
# Add the Ethernet1/0/0 interface into the DLSw bridge group numbered 20.
[H3C] dlsw bridge-group 20
[H3C] interface Ethernet1/0/0
[H3C-Ethernet1/0/0] bridge-set 20
Syntax
code nrzi
undo code
View
Parameter
None
4-2
Command Manual – Non-IP Architecture
Comware V3 Chapter 4 DLSw Configuration Commands
Description
Use the code nrzi command to configure the NRZI encoding of the synchronous serial
port.
Use the undo code nrzi command to remove the NRZI encoding of the synchronous
serial port.
By default, the NRZ encoding is configured on the synchronous serial port.
There are two coding schemes, NRZI and NRZ, available on the synchronous serial
port. The NRZ coding scheme is generally used in our router. The serial port coding
scheme of some SNA devices is the NRZI coding scheme. Therefore the coding
scheme of the router needs to be changed according to the encoding of the connected
device.
Example
Syntax
View
User view
Parameter
Description
Example
4-3
Command Manual – Non-IP Architecture
Comware V3 Chapter 4 DLSw Configuration Commands
Syntax
View
User view
Parameter
Description
Use the debugging dlsw packet command to enable SSP packet debugging for
DLSw.
Use the undo debugging dlsw packet command to disable SSP packet debugging for
DLSw.
By default, SSP packet debugging for DLSw is disabled.
Table 4-1 Description on the fields of the debugging dlsw packet command
Field Description
The DLSw sends switch-to-switch protocol (SSP)
DLSW_PACKET 4.4.4.2
packets over the TCP connection to the remote peer
( TCP Output)
4.4.4.2.
DLSW_PACKET 4.4.4.2 The DLSw receives SSP packets over the TCP
( TCP Input) connection from the remote peer 4.4.4.2.
DLSW_PACKET 4.4.4.2 The DLSw sends SSP packets through UDP to the
( UDP Output) remote peer 4.4.4.2.
DLSW_PACKET 4.4.4.2 The DLSw receives SSP packets through UDP from
( UDP Input) the remote peer 4.4.4.2.
Example
4-4
Command Manual – Non-IP Architecture
Comware V3 Chapter 4 DLSw Configuration Commands
Syntax
View
User view
Parameter
Description
Example
4-5
Command Manual – Non-IP Architecture
Comware V3 Chapter 4 DLSw Configuration Commands
Syntax
View
User view
Parameter
None
Description
Use the debugging llc2 packet command to enable U frame debugging for LLC2.
Use the undo debugging llc2 packet command to disable U frame debugging for the
LLC2.
By default, U frame debugging is disabled for the LLC2.
Table 4-2 Description on the fields of the debugging dlsw packet command
Field Description
LLC2_PACKET Ethernet1/0/0 The LLC2 sends U frames to the Ethernet1/0/0
(Output) U frame interface.
LLC2_PACKET Ethernet1/0/0 LLC2 module receives U frames from the
(Input) U frame Ethernet1/0/0 interface.
Example
4-6
Command Manual – Non-IP Architecture
Comware V3 Chapter 4 DLSw Configuration Commands
Syntax
View
User view
Parameter
Description
Example
Syntax
View
Any view
Parameter
4-7
Command Manual – Non-IP Architecture
Comware V3 Chapter 4 DLSw Configuration Commands
Description
Use the display dlsw bridge-entry command to view the bridge-set information.
Example
Syntax
View
Any view
Parameter
Description
Use the display dlsw circuits command to view the DLSw virtual circuits.
The output information of the command helps the user understand the information
regarding DLSw virtual circuits.
Example
Table 4-3 Description on the fields of the display dlsw circuits command
Field Description
circuit-Id Distinguishes circuits.
Local MAC address, with the “lsap” being the last SAP
local-MAC
used by the local peer.
Remote MAC address, with the “rsap” being the last SAP
remote-MAC
used by the remote peer.
4-8
Command Manual – Non-IP Architecture
Comware V3 Chapter 4 DLSw Configuration Commands
Field Description
State Link state
lifetime Duration of the connection
Syntax
View
Any view
Parameter
Description
Use the display dlsw information command to view the DLSw exchange capability
information. The output information of the command facilitates the user to understand
the status of the DLSw virtual circuit and perform fault diagnosis.
Example
4-9
Command Manual – Non-IP Architecture
Comware V3 Chapter 4 DLSw Configuration Commands
Table 4-4 Description on the fields of the display dlsw information command
Field Description
Version number RFC 1795
Release number Release version of RFC 1795
Init Pacing Window Size of the initiated window
Num of TCP sessions Number of TCP sessions
Mac address exclusive Reachable MAC address registered in the router
NetBIOS Name exclusive Reachable NetBIOS address registered in the router
Mac address List Reachable MAC address list
NetBIOS Name List Reachable NetBIOS address
Configured IP address Local IP address
Version string Version of Huawei-3Com router operation system
Syntax
View
Any view
4-10
Command Manual – Non-IP Architecture
Comware V3 Chapter 4 DLSw Configuration Commands
Parameter
ip-address: Displays the information of the remote peer with specified IP address.
Description
Use the display dlsw remote command to view the information of the remote peers.
The output information helps the user to understand the connection state between the
DLSw and the remote peers.
Example
Table 4-5 Description on the fields of the display dlsw remote command
Field Description
Indicates that the peer can set up connection. If no asterisk sign is
*
placed before TCP, the peer is an inactive standby peer.
IP address IP address of the peer.
Syntax
View
Any view
Parameter
None
4-11
Command Manual – Non-IP Architecture
Comware V3 Chapter 4 DLSw Configuration Commands
Description
Example
Syntax
View
Any view
Parameter
Description
Example
4-12
Command Manual – Non-IP Architecture
Comware V3 Chapter 4 DLSw Configuration Commands
Syntax
View
System view
Parameter
Description
Use the dlsw bridge-set command to configure the bridge group to connect DLSw.
Use the undo dlsw bridge-set command to delete the bridge.
In order to forward packets of specified bridge group to the remote end through the TCP
connection, a local bridge group needs to be connected with DLSw by using this
command, that is, packets of the local bridge group can be sent to the remote end
through the TCP tunnel. This command can be used many times to connect many
bridge groups with DLSw, and make them all capable of joining the forwarding through
the TCP tunnel.
Example
# Configure the bridge group connected with DLSw, with the ID of the bridge group
being 20.
[H3C] dlsw bridge-set 20
Syntax
dlsw enable
undo dlsw enable
View
System view
Parameter
None
Description
4-13
Command Manual – Non-IP Architecture
Comware V3 Chapter 4 DLSw Configuration Commands
Example
Syntax
View
System view
Parameter
4-14
Command Manual – Non-IP Architecture
Comware V3 Chapter 4 DLSw Configuration Commands
Description
Use the dlsw local command to create the DLSw local peer.
Use the undo dlsw local command to delete the local peer or restore the default.
Creating a TCP tunnel is the first step for establishing the DLSw connection. In order to
create the TCP tunnel, the DLSw local peer is to be first configured to specify the local
IP address that creates the TCP connection before receiving the TCP connection
request initiated by the remote router. A router can only have one local peer.
Example
# Create the DLSw local peer, with the IP address being 1.1.1.1, the size of the local
response window being 50, time interval for sending the “keepalive” being 40 seconds,
both the maximum length of the packet max-frame-size and the size of the maximum
local response window being the default value.
[H3C] dlsw local 1.1.1.1 init-window 50 keepalive 40
Syntax
View
System view
Parameter
Description
Use the dlsw reachable command to configure locally reachable MAC and SAP
addresses.
Use the undo dlsw enable command to cancel the configuration.
After you configure the dlsw reachable command, the router sends a packet to all the
connected routers, notifying of the locally reachable MAC or SAP address. Based on
4-15
Command Manual – Non-IP Architecture
Comware V3 Chapter 4 DLSw Configuration Commands
the information, these routers can decide whether to send packets to this router without
exploring.
Note that you must change the configuration in time to accommodate to changes on the
local network.
Example
# Allow the router to access the MAC addresses beginning with 1212.
[H3C] dlsw reachable mac-address 1212-1212-1212 mask ffff-0000-0000
Syntax
View
System view
Parameter
mac-address: MAC address of the SNA device connected to the peer router.
ip-address: IP address of the peer router.
Description
Use the dlsw reachable-cache command to add the reachability information of the
specified SNA device to the reachable-cache. You can specify this SNA device by
specifying its MAC address and IP address of the router to which it is connected.
Use the undo dlsw reachable-cache command to remove the configured reachability
information.
This configuration allows the router to send packets without exploring. If the remote
network is prone to changes however, this configuration is unreliable.
Example
4-16
Command Manual – Non-IP Architecture
Comware V3 Chapter 4 DLSw Configuration Commands
Syntax
View
System view
Parameter
Description
Use the dlsw remote command to create the DLSw remote peer.
Use the undo dlsw remote command to delete the remote peer.
After the local peer is configured, the remote peer needs to be configured to create the
TCP tunnel. The router will keep attempting to create the TCP connection with the
remote router. A router can be configured with several remote peers so as to create the
TCP tunnel with several remote routers.
When creating a remote backup peer, note the following:
1) In order to create a remote backup peer at the backup-address argument, the
ip-address argument should be the IP address of the backup peer, and the
backup-peer backup-address should be the IP address of the remote primary
peer with the TCP connection already being created. In other words, before
4-17
Command Manual – Non-IP Architecture
Comware V3 Chapter 4 DLSw Configuration Commands
creating the remote backup peer connection, the user should ensure that the local
end has created the TCP connection with a remote primary peer. If the peer end
backup peer is created the same time the remote peer being first created, the
system will prompt the following information:
Primary peer ip address does not exist
This prompt indicates that the user should first create a remote primary peer before
creating the backup peer.
2) If the backup link still exists after the TCP connection of the primary link is
interrupted, the TCP link can be retained (use the display dlsw remote command
and a TCP connection can be found still exist) till the backup link linger minutes is
also timeout.
Example
# Create the DLSw remote peer, with the IP address being 2.2.2.2, the transmission
cost being 2, the time interval for sending the “keepalive” being 40 seconds, the
maximum length lf-size of the packet being the default value, and the size of the TCP
sending/receiving queue being 300.
[H3C] dlsw remote 2.2.2.2 priority 2 keepalive 40 max-queue 300
Syntax
View
System view
Parameter
connected seconds: The holding time of a connection, ranging from 1 second to 65535
seconds. The default value is 300 seconds.
explorer-wait seconds: The waiting time of local explorer frames, ranging from 1
second to 65535 seconds. The default value is 30 seconds.
local-pending seconds: The local pending time, ranging from 1 second to 65535
seconds. The default value is 30 seconds.
remote-pending seconds: The remote pending time, ranging from 1 second to 65535
seconds. The default value is 30 seconds.
4-18
Command Manual – Non-IP Architecture
Comware V3 Chapter 4 DLSw Configuration Commands
cache seconds: Address saving time in SNA cache, ranging from 1 second to 65535
seconds. The default value is 120 seconds.
explorer seconds: The waiting time of remote explorer frames, ranging from 1 second
to 65535 seconds. The default value is 30 seconds.
Description
Use the dlsw timer command to configure the DLSw timer parameters.
Use the undo dlsw timer command to restore the default value of the DLSw timer
parameters.
By configuring the DLSw timer, the various kinds of timers used for the DLSw to create
the virtual circuit can be revised. But the user is suggested not to revise the DLSw timer
parameters randomly.
Example
# Configure the DLSw timer parameters, with the connected timeout being 200
seconds, the waiting timeout of the local explorer frame being 15 seconds, the local
waiting timeout being 15 seconds, the remote peer waiting timeout being 25 seconds,
the SNA cache address timeout being the default value and the waiting timeout of the
remote explorer frame being the default value.
[H3C] dlsw timer connected 20
[H3C] dlsw timer explorer-wait 15
[H3C] dlsw timer local-pending 15
[H3C] dlsw timer remote-pending 25
4.1.22 idle-mark
Syntax
idle-mark
undo idle-mark
View
Parameter
None
Description
Use the idle-mark command to configure the idle coding scheme of the synchronous
serial port.
Use the undo idle-mark command to restore the default idle coding scheme of the
synchronous serial port.
4-19
Command Manual – Non-IP Architecture
Comware V3 Chapter 4 DLSw Configuration Commands
By default, the synchronous serial port adopts the “7E” coding scheme.
H3C series routers encapsulate “7E” in the packets to identify the free time of the SDLC
serial interface, but some SDLC devices adopt full “1” high level instead. In order to be
better compatible to this kind devices, the idle coding scheme of the router needs to be
changed.
Sometimes when connecting with the AS/400, this command needs to be configured to
change the idle coding scheme and accelerate the AS/400 polling speed.
Example
# Configure the idle coding scheme of the synchronous serial port on the Serial1/0/0 as
idle-mark.
[H3C-Serial1/0/0] idle-mark
Syntax
link-protocol sdlc
View
Parameter
None
Description
Use the link-protocol sdlc command to change the link layer encapsulation protocol
of the synchronous serial interface into SDLC.
By default, the encapsulated link layer protocol of the synchronous serial interface is
PPP.
The SDLC is a kind of link layer protocol relative to the SNA, with working principal
similar to that of the HDLC. In order for the DLSw to work normally, the link layer
encapsulation protocol of the synchronous serial interface should be changed into
SDLC.
Note all the IP related commands on the interface should be removed before
encapsulating the SDLC, as the SDLC link protocol cannot be used to carry the IP
protocol, for example, to delete the IP address on the interface, etc.
Example
4-20
Command Manual – Non-IP Architecture
Comware V3 Chapter 4 DLSw Configuration Commands
Syntax
View
Parameter
length: Length of the LLC2 advanced response window, ranging from 1 to 127.
Description
Use the llc2 max-ack command to configure the length of the advance response
window before the LLC2 sending the acknowledgement frame.
Use the undo llc2 max-ack command to restore the default length of the advance
response window before the LLC2 sending the acknowledgement frame.
By default, the length of the LLC2 advance response window is 3.
The LLC2 advance response window refers to the maximum receivable information
frames before sending the acknowledgement frame, that is, to send the response
packet in advance on receiving the packet n.
Example
# Configure the length of the advanced response window before the LLC2 sends the
acknowledgement frame as 5.
[H3C-Ethernet1/0/0] llc2 max-ack 5
Syntax
View
Parameter
length: The queue length sending the LLC2 packet, ranging from 20 to 200.
4-21
Command Manual – Non-IP Architecture
Comware V3 Chapter 4 DLSw Configuration Commands
Description
Use the llc2 max-send-queue command to configure the queue length sending the
LLC2 packet.
Use the undo llc2 max-send-queue command to restore the default queue length
sending the LLC2 packet.
By default, the queue length sending the LLC2 packet is 50.
Example
Syntax
View
Parameter
Description
Use the llc2 max-transmission command to configure the retransmission times of the
LLC2.
Use the undo llc2 max-transmission command to restore the default retransmission
times of the LLC2.
By default, the number of the transmission retries of the LLC2 is 3.
The LLC2 retransmission times refers to the times of resending information frames
before the acknowledgement frame is received from the peer end.
Example
Syntax
llc2 modulo n
4-22
Command Manual – Non-IP Architecture
Comware V3 Chapter 4 DLSw Configuration Commands
View
Parameter
Description
Use the llc2 modulo command to configure the modulus of the LLC2.
Use the undo llc2 modulo command to restore the default modulus of the LLC2.
By default, the modulus of the LLC2 is 128.
LLC2, like X25, adopts modulus mode to number information packets, and the modulus
of LLC2 is 8 or 128. Ethernet generally uses modulus 128.
Example
Syntax
View
Parameter
Description
Use the llc2 receive-window command to configure the maximum packets that can be
sent before the LLC2 receives the acknowledgement frame.
Use the undo llc2 receive-window command to restore the default value of the
maximum packets that can be sent before the acknowledgement frame is received.
By default, the length of the LLC2 local response window is 7.
The LLC2 local response window refers to the maximum packets that can be sent
continuously before the acknowledgement frame is received.
4-23
Command Manual – Non-IP Architecture
Comware V3 Chapter 4 DLSw Configuration Commands
Example
# Configure the maximum packets that can be sent before the LLC2 receives the
acknowledgement frame as 10.
[H3C-Ethernet1/0/0] llc2 receive-window 10
Syntax
View
Parameter
Description
Use the llc2 timer ack command to configure the LLC2 local response time.
Use the undo llc2 timer ack command to restore the default value of the LLC2 local
response time.
By default, the LLC2 local response time is 200ms.
The LLC2 local response time refers to the maximum waiting time for the response
from the peer end after an LLC2 data packet is sent.
Example
Syntax
View
4-24
Command Manual – Non-IP Architecture
Comware V3 Chapter 4 DLSw Configuration Commands
Parameter
Description
Use the llc2 timer ack-delay command to configure the local acknowledgement delay
time when the LLC2 receives information frames.
Use the undo llc2 timer ack-delay command to restore the default value of the local
acknowledgement delay time when the LLC2 receives information frame.
By default, the LLC2 local acknowledgement delay time is 100ms.
The LLC2 local acknowledgement delay time refers to the maximum waiting time for
delayed acknowledgement on receiving an LLC2 data packet.
Example
# Configure the local acknowledgement delay time for received information frames as
200 milliseconds.
[H3C-Ethernet1/0/0] llc2 timer ack-delay 200
Syntax
View
Parameter
Description
Use the llc2 timer busy command to configure the LLC2 BUSY time.
Use the undo llc2 timer busy command to restore the default value of the LLC2 BUSY
time.
By default, the LLC2 BUSY time is 300ms.
The LLC2 BUSY time refers to the waiting time before repolling a busy station.
Example
4-25
Command Manual – Non-IP Architecture
Comware V3 Chapter 4 DLSw Configuration Commands
Syntax
View
Parameter
Description
Use the llc2 timer poll command to configure the P/F waiting time of the LLC2.
Use the undo llc2 timer poll command to restore the default value of the LLC2 P/F
waiting time.
By default, the LLC2 P/F waiting time is 5000ms.
The LLC2 P/F waiting time refers to the time of waiting for the acknowledgement frame
after the frame P is sent.
Example
Syntax
View
Parameter
Description
Use the llc2 timer reject command to configure the REJ time of the LLC2.
4-26
Command Manual – Non-IP Architecture
Comware V3 Chapter 4 DLSw Configuration Commands
Use the undo llc2 timer reject command to restore the default value of the LLC2 REJ
time.
By default, the LLC2 REJ time is 500ms.
The LLC2 REJ time refers to the waiting time for the acknowledgement frame to come
after a deny frame is sent.
Example
Syntax
View
User view
Parameter
None
Description
Use the reset dlsw bridge-entry command to clear the entry cache information in the
DLSw bridge group.
Example
Syntax
View
User view
Parameter
4-27
Command Manual – Non-IP Architecture
Comware V3 Chapter 4 DLSw Configuration Commands
Description
Use the reset dlsw circuits command to clear the DLSw virtual circuit information.
Use this command with caution; it can disconnect circuits.
Example
# Clear the virtual circuit information with the virtual circuit number of 100.
<H3C> reset dlsw circuits 100
Syntax
View
User view
Parameter
None
Description
Use the reset dlsw reachable-cache command to clear information from the
reachable-cache of the DLSw.
Example
Syntax
View
Parameter
4-28
Command Manual – Non-IP Architecture
Comware V3 Chapter 4 DLSw Configuration Commands
Description
Use the sdlc controller command to configure the secondary station address of the
SDLC.
Use the undo sdlc controller command to delete the secondary station address of the
SDLC.
By default, the secondary station address of the SDLC is not configured.
The SDLC protocol permits several virtual circuits running on a single SDLC physical
link, with one end connected with the primary station and the other end connected with
the secondary station. In order to distinguish each virtual circuit, their SDLC addresses
need to be designated. Because the SDLC is in unbalanced mode, a primary device
can connects with several secondary devices through the medium of shared machine
or SDLC switch, while the secondary devices cannot be connected with each other.
And there can exist one and only primary device if any. In this sense, the SDLC devices
in the same group can be guaranteed to communicate with each other normally only if
the addresses of the secondary devices are specified. This command specifies the
SDLC address, which is unique on a physical interface, for the virtual circuit. The
configured SDLC address on synchronous serial interface is virtually the address of the
SDLC secondary station.
The SDLC address ranges from 0x01 to 0xFE. The SDLC address of a router is only
valid on one physical interface, that is, the SDLC addresses configured on different
interfaces can be same.
Example
# Configure the secondary station address of the SDLC on the Serial1/0/0 as 0x05.
[H3C-Serial1/0/0] sdlc controller 05
Syntax
View
Parameter
4-29
Command Manual – Non-IP Architecture
Comware V3 Chapter 4 DLSw Configuration Commands
Description
Use the sdlc mac-map local command to configure the virtual MAC address of the
SDLC.
Use the undo sdlc mac-map local command to delete the virtual MAC address of the
SDLC.
By default, the SDLC has no virtual MAC address.
Example
Syntax
View
Parameter
Description
Use the sdlc mac-map remote command to configure the SDLC peer.
Use the undo sdlc mac-map remote command to delete the SDLC peer.
By default, the synchronous serial interface has no peer.
This command is used to specify the MAC address of a peer end for an SDLC virtual
circuit so as to provide the destination MAC address on the transformation from the
SDLC to the LLC2. When configuring the DLSw, an SDLC address should be
configured a related partner (peer). The MAC address of the partner (peer) should be
the MAC address of the remote SNA device (physical addresses of such devices as the
Ethernet and the Token-Ring), or the MAC address of the peer end compounded by the
SDLC.
Example
4-30
Command Manual – Non-IP Architecture
Comware V3 Chapter 4 DLSw Configuration Commands
Syntax
sdlc max-pdu n
undo sdlc max-pdu
View
Parameter
n: The maximum receivable frame length of the SDLC, ranging from 1 to 17600 bytes.
Description
Use the sdlc max-pdu command to configure the maximum receivable frame length of
the SDLC.
Use the undo sdlc max-pdu command to restore the default value of the SDLC
maximum receivable frame length.
By default, the maximum receivable frame length of the SDLC is of 265 bytes.
The SDLC maximum frame length refers to the bytes of the largest packet that can be
received and sent, excluding the parity bit and the start/stop bit.
The maximum receivable frame length of some PU2.0 devices is of 265 bytes, and that
of IBM AS/400 is generally of 521 bytes. Usually we need to configure it the same value
as the connected SDLC device.
Example
Syntax
View
Parameter
length: The queue length sending the SDLC packet, ranging from 20 to 255.
4-31
Command Manual – Non-IP Architecture
Comware V3 Chapter 4 DLSw Configuration Commands
Description
Use the sdlc max-send-queue command to configure the queue length sending the
SDLC packet.
Use the undo sdlc max-send-queue command to restore the default value of the
queue length sending the SDLC packet.
By default, the queue length sending the SDLC packet is 50.
Example
# Configure the queue length sending the SDLC packet on the Serial1/0/0 as 30.
[H3C-Serial1/0/0] sdlc max-send-queue 30
Syntax
View
Parameter
retries: The SDLC timeout retransmission times, ranging from 1 to 255 times.
Description
Example
Syntax
sdlc modulo n
4-32
Command Manual – Non-IP Architecture
Comware V3 Chapter 4 DLSw Configuration Commands
View
Parameter
Description
Use the sdlc modulo command to configure the modulus of the SDLC.
Use the undo sdlc modulo command to restore the default modulus of the SDLC.
By default, the SDLC modulus is 8.
SDLC, like X25, adopts modulus mode to number information packets, and the
modulus of SDLC is 8 or 128. Generally modulus 8 is selected.
Example
Syntax
View
Parameter
lsap: The virtual SAP address set by the device connected with the local interface.
sdlc-addr: The SDLC address.
Description
Use the sdlc sap-map local command to configure the SAP address on transforming
the SDLC into the LLC2.
Use the undo sdlc sap-map local command to restore the default value of the LLC2
SAP address.
By default, lsap is 04.
When the SDLC packet is translated into the LLC2 packet, the SAP address is needed
besides the MAC address.
4-33
Command Manual – Non-IP Architecture
Comware V3 Chapter 4 DLSw Configuration Commands
Generally speaking, the SAP address of the SNA protocol is 0x04 or 0x08 or 0x0C.
For related configuration, please see the sdlc sap-map remote command.
Example
# Configure the SAP address on translating the SDLC into the LLC2.
[H3C-Serial1/0/0] sdlc sap-map local 08 05
Syntax
View
Parameter
dsap: The SAP address of the DLSw peer device. By default, dsap is 04.
sdlc-addr: The SDLC address.
Description
Use the sdlc sap-map remote command to configure the remote DLSw device SAP
address when SDLC is translated into LLC2.
Use the undo sdlc sap-map remote command to restore the default value.
When the SDLC packet is translated into the LLC2 packet, the SAP address is needed
besides the MAC address.
Generally speaking, the SAP address of the SNA protocol is 0x04 or 0x08 or 0x0C.
For related configuration, please see sdlc sap-map local.
Example
# Configure the remote DLSw device SAP address when SDLC is translated into LLC2.
[H3C-Serial1/0/0] sdlc sap-map remote 0C 05
Syntax
sdlc simultaneous
undo sdlc simultaneous
4-34
Command Manual – Non-IP Architecture
Comware V3 Chapter 4 DLSw Configuration Commands
View
Parameter
None
Description
Use the sdlc simultaneous command to configure the SDLC data to use the
bidirectional transmission mode.
Use the undo sdlc simultaneous command to stop the SDLC data to use the
bidirectional transmission mode.
By default, the SDLC data are transmitted in bidirectional mode.
This command configures the synchronous serial interface to work in bidirectional data
simultaneous transmission mode. That is, the SDLC primary station can send data to
the secondary station and receive data at the same time.
Example
Syntax
View
Parameter
primary: The primary station of the end, controlling the whole connection process.
secondary: The secondary station of the end, controlled by the primary station.
Description
Use the sdlc role command to configure the SDLC role the device acts.
Use the undo sdlc role command to restore the default SDLC role.
By default, the device has no role.
The SDLC is a kind of link layer protocol in unbalanced mode. That is, the statuses of
the devices on the two connected ends are unequal: one is primary and the other is
4-35
Command Manual – Non-IP Architecture
Comware V3 Chapter 4 DLSw Configuration Commands
secondary. The primary side, being the primary station, whose role is primary, plays
the dominant role and controls the whole connection process. While the other side,
being the secondary station, whose role is secondary, receives control passively.
Therefore, the user needs to configure the role for the interface encapsulated with
SDLC protocol. On the SDLC role configuration, the roles should be decided by the
status of the SDLC device connected with the local router. If the SDLC device
connected with the local interface is primary, the local interface is to be set secondary,
and vice versa.
In general, the central IBM mainframe is primary, whereas terminal devices, including
UNIX hosts and ATM, are secondary.
Example
# Configure the SDLC device connected with the Serial1/0/0 as primary, and the local
interface as secondary.
[H3C-Serial1/0/0] sdlc role secondary
Syntax
View
Parameter
mseconds: The SDLC primary station response waiting time, ranging from 1 to
60000ms.
Description
Use the sdlc timer ack command to configure the SDLC primary station response
waiting time (mseconds).
Use the undo sdlc timer ack command to restore the default value of the SDLC
primary station response waiting time.
By default, the configured SDLC primary station response waiting time is 3000ms.
The primary station response waiting time (mseconds) refers to the waiting time for the
response from the secondary station after the primary station sends information
frames.
4-36
Command Manual – Non-IP Architecture
Comware V3 Chapter 4 DLSw Configuration Commands
Example
# Configure the SDLC primary station response waiting time (mseconds) as 2000ms.
[H3C-Serial1/0/0] sdlc timer ack 2000
Syntax
View
Parameter
mseconds: The SDLC secondary station response waiting time, ranging from 1 to
60000ms.
Description
Use the sdlc timer lifetime command to configure the SDLC secondary station
response waiting time (mseconds).
Use the undo sdlc timer lifetime command to restore the default value of the SDLC
secondary station response waiting time.
By default, the SDLC secondary station response waiting time (mseconds) is 500ms.
The secondary station response waiting time (mseconds) refers to the waiting time for
the response from the primary station after the secondary station sends information
frames.
Example
Syntax
View
4-37
Command Manual – Non-IP Architecture
Comware V3 Chapter 4 DLSw Configuration Commands
Parameter
Description
Use the sdlc timer poll command to configure the SDLC poll pause timer.
Use the undo sdlc timer poll command to restore the default value of the SDLC poll
pause timer.
By default, the SDLC poll pause timer is 1000ms.
The SDLC poll pause timer refers to the waiting interval between the two SDLC nodes
polled by the SDLC primary station.
Example
Syntax
View
Parameter
Description
Use the sdlc window command to configure the length of the SDLC local response
window.
Use the undo sdlc window command to restore the default length of the SDLC local
response window.
By default, the default length of the SDLC local response window is 7.
The SDLC local response window refers to the maximum packets number that can be
sent continuously without waiting for the response from the peer end.
Example
# Configure the length of the SDLC local response window on the Serial1/0/0 as 5.
[H3C-Serial1/0/0] sdlc window 5
4-38
Command Manual – Non-IP Architecture
Comware V3 Chapter 4 DLSw Configuration Commands
Syntax
View
Parameter
sdlc-address: The SDLC address of the XID, which should be configured beforehand.
xid-number: An integer with a length of 4 bytes, ranging from 1 to 0xFFFFFFFF. The
first 12 bits are network numbers, and the last 20 bytes are node numbers.
Description
Use the sdlc xid command to configure the XID of the SDLC.
Use the undo sdlc xid command to delete the XID of the SDLC.
By default, the synchronous serial interface has no XID of the SDLC.
The XID is the ID of a device in the SNA world. Generally speaking, there are two kinds
of devices: PU2.0 and PU2.1. The XID has been automatically configured on the PU2.1
devices and they can announce their IDs by exchanging the XID. The PU2.0 devices
did not exchange the ID, so they can not get ID automatically. Therefore, this command
needs not to be configured on PU2.1 typed devices, whereas it is needed to specify an
XID for PU2.0 typed devices.
Example
Note:
This section does not cover all commands supported by DLSw2.0 but those
DLSw2.0-specific commands.
4-39
Command Manual – Non-IP Architecture
Comware V3 Chapter 4 DLSw Configuration Commands
Syntax
View
User view
Parameter
None
Description
Use the debugging dlsw filter command to enable debugging for DLSw filtering.
Use the undo debugging dlsw filter command to disable debugging for DLSw
filtering.
After you enable debugging for DLSw filtering, the system will display information about
all packets that are filtered out.
Example
Table 4-6 Description on the fields of the debugging dlsw filter command
Field Description
ACL 4000 Number of the ACL used for filtering
rule 2 Number of the ACL rule by which the packet is denied
Not found Discarded because no match is found in the ACL
Packet Len = 110 Length of the discarded packet
FF FF….. Header of the discarded packet
Syntax
4-40
Command Manual – Non-IP Architecture
Comware V3 Chapter 4 DLSw Configuration Commands
View
User view
Parameter
None
Description
Use the debugging dlsw udp command to enable UDP packet debugging for DLSw.
Use the undo debugging dlsw udp command to disable UDP packet debugging for
DLSw.
Example
Table 4-7 Description on the fields of the debugging dlsw udp command
Field Description
DLSw_UDP: Failed to create udp socket Failed to create a UDP socket.
DLSw_UDP: Failed to bind udp socket Failed to bind the UDP socket.
DLSw_UDP: Failed to specify udp Failed to set attributes for the UDP
socket options socket.
DLSW_UDP: Failed to specify Failed to set the ADD_MEMBERSHIP
‘ADD_MEMBERSHIP' socket option attribute for the UDP socket.
DLSW_UDP: Failed to specify Failed to set the IP_MULTICAST_TTL
‘IP_MULTICAST_TTL' socket option attribute for the UDP socket.
DLSW_UDP: Failed to specify Failed to set the ADD_MEMBERSHIP
‘IP_MULTICAST_IF' socket option attribute for the UDP socket.
Failed to set the input/output attribute for
DLSw_UDP: Failed to specify ioctl for
the 2067 port on the local peer
port 2067 of local peer 192.168.10.1
192.168.10.1.
DLSW_UDP: Failed to create Error occurred when creating a
CANUREACH_ex packet CANUREACH_ex packet.
DLSW_UDP: Remote The sending queue of the remote peer
peer(192.168.10.20)'s sending queue is 192.168.10.20 is full, and no packet can
full be sent.
DLSW_UDP: Local The sending queue of the local peer
peer(192.168.10.1)'s sending queue is 192.168.10.1 is full, and no packet can
full be sent.
DLSW_UDP: Send UDP to remote peer Unicasted a UDP packet to the remote
192.168.10.20 peer (192.168.10.20).
4-41
Command Manual – Non-IP Architecture
Comware V3 Chapter 4 DLSw Configuration Commands
Field Description
DLSW_UDP: Remote peer's status is The remote peer is in a wrong
wrong connection state.
DLSW_UDP: The sending packet is The packet that needs sending is
wrong illegitimate.
DLSW_UDP: Send a multicast packet to A multicast packet was sent to a
224.0.10.10 multicast address.
DLSW_UDP: No found UDP socket No UDP socket was found.
DLSW_UDP: Failed to allocate memory Memory allocation failed.
DLSW_UDP: Failed to send UDP Failed to send a UDP packet to the
packets to 192.168.10.20 remote peer 192.168.10.20. The part
DLSW_UDP: The length has sent is 70 that was sent is 70 bytes.
Syntax
View
Any view
Parameter
4-42
Command Manual – Non-IP Architecture
Comware V3 Chapter 4 DLSw Configuration Commands
Description
Use the display dlsw information command to display DLSw capability exchange
information. The output of this command can help you understand the status of DLSw
virtual circuits.
Example
Table 4-8 Description on the fields of the debugging dlsw udp command
Field Description
Version number Version of RFC 1795
Release number Release of RFC 1795
4-43
Command Manual – Non-IP Architecture
Comware V3 Chapter 4 DLSw Configuration Commands
Syntax
View
Any view
Parameter
Description
Use the display dlsw remote command to display information about the specified or
all remote peers.
The output of the command may help you get aware of the connection state between
DLSw and its remote peers.
Example
Table 4-9 Description on the fields of the display dlsw remote command
Field Description
The asterisk leading the IP address of a peer indicates that the peer is
* available for TCP connection setup.
A peer without the asterisk sign is a backup peer in inactive state.
IP address IP address of the peer
frame-in Number of the packets received by the peer.
4-44
Command Manual – Non-IP Architecture
Comware V3 Chapter 4 DLSw Configuration Commands
Field Description
Connection state, which can be one of the following:
CONNECT, meaning a TCP connection is present
state
DISCONNECT, meaning no TCP connection is present
CONNECTING, meaning a TCP connection is being set up.
life-time Connection time
Syntax
View
System view
Parameter
acl acl-num: Specifies the ACL for filtering packets from the peers. The ACL number
must be in the range from 4000 to 4999.
Description
Use the dlsw filter acl command to specify to filter packets from any peer.
Use the undo dlsw filter acl command to disable filtering of packets from peers.
Example
# Specify to use ACL 4000 to filter packets from all peers, including those learned
dynamically. That is, permit only packets with a MAC address of 3-2-3 to pass through.
[H3C] acl number 4000
[H3C-acl-ethernetframe-4000] rule 3 permit source-mac 0003-0002-0003
ffff-ffff-ffff
[H3C-acl-ethernetframe-4000] quit
[H3C] dlsw filter acl 4000
Syntax
4-45
Command Manual – Non-IP Architecture
Comware V3 Chapter 4 DLSw Configuration Commands
View
System view
Parameter
Description
Use the dlsw multicast command to enable the multicast function of DLSw2.0.
Use the undo dlsw multicast command to disable the multicast function of DLSw2.0.
By default, the multicast function of DLSw2.0 is disabled.
Related command: dlsw enable, igmp enable, pim dm, pim sm.
Example
Syntax
View
System view
Parameter
retries: Sets the maximum number of the attempts to send an explorer frame. It defaults
to 5.
Description
Use the dlsw max-transmission command to set the maximum number of the
attempts to send an explorer frame.
Use the undo dlsw max-transmission command to restore the default.
Each time the origin DLSw2.0 router sends an explorer frame in a UDP multicast or
unicast packet, an explorer timer starts. If no response is received before the explorer
timer times out, the router retransmits the explorer frame and restarts the explorer timer.
If no response packet is received after the maximum number of explorer frame sending
attempts are made, the router stops sending attempt.
You can use this command only after enabling DLSw2.0.
4-46
Command Manual – Non-IP Architecture
Comware V3 Chapter 4 DLSw Configuration Commands
Example
Syntax
View
System view
Parameter
Description
Use the dlsw remote command to create a remote DLSw peer and specifies its version
and filtering rule.
Use the undo dlsw remote command to remove a remote DLSw peer.
You can find the description on the other keywords of the commands in the description
on the dlsw remote command in DLSw1.0.
Example
# Create a DLSw remote peer 192.168.100.10 and sets its DLSw version to 2.0.
[H3C] dlsw remote 192.168.100.10 version 2
# Specify to filter packets from peer 1.1.1.1 using ACL 4000. That is, for packets from
1.1.1.1, permit only packets with a MAC address of 3-2-3 to pass through.
[H3C] acl number 4000
[H3C-acl-ethernetframe-4000] rule 3 permit source-mac 0003-0002-0003
ffff-ffff-ffff
[H3C-acl-ethernetframe-4000] quit
[H3C] dlsw remote 1.1.1.1 acl 4000
4-47
Command Manual – Non-IP Architecture
Comware V3 Chapter 4 DLSw Configuration Commands
Syntax
View
User view
Parameter
Description
Use the reset dlsw tcp command to reestablish or delete all connection to all the
remote peers.
Use the reset dlsw tcp ip-address command to reestablish a TCP connection or delete
the connection to the specified remote peer.
If a remote peer is learned dynamically by DLSw, this command deletes the remote
peer. If the specified remote peer is configured statically, this command reestablishes
the TCP connection to the remote peer.
Example
Table 4-10 Description on the fields of the reset dlsw tcp command
Field Description
The remote peer 4.4.4.2 is leaned
DLSw_TCP 4.4.4.2:The remote peer is
dynamically and therefore is deleted by
learned dynamically ,it will be deleted
DLSw.
DLSW_TCP 4.4.4.3 : rebulid tcp with the The TCP connection to remote peer
peer 4.4.4.3 is reestablished.
Error: Invaild IP address You have entered an invalid IP address.
Error: No specified peer is found The specified peer does not exist.
4-48
Command Manual – Non-IP Architecture
Comware V3 Chapter 4 DLSw Configuration Commands
Syntax
View
User view
Parameter
None
Description
Use the debugging dlsw ethernet-backup command to enable debugging for DLSw
Ethernet redundancy.
Use the undo debugging dlsw ethernet-backup command to disable debugging for
DLSw Ethernet redundancy.
Example
4-49
Command Manual – Non-IP Architecture
Comware V3 Chapter 4 DLSw Configuration Commands
Field Description
The Ethernet interface with the MAC
Sending MP frame from 0007.3f54.909c address of 0007.3f54.909c on the router
to 9999.9999.9999 is sending an MP frame to multicast
address 9999.9999.9999.
A device configured with the same
multicast address is detected on the
neighbour 0007.3ff0.2c12 is created! LAN. The MAC address of the device is
0007.3ff0.2c12. The router records the
device as its neighbor.
The router is sending a SABME frame to
Sending SABME frame from
0007.3ff0.2c12 for establishing an LLC
0007.3f54.909c to 0007.3ff0.2c12
circuit.
The status of the DLSw Ethernet
DISC -> SABMESENT redundancy circuit changes from DISC
to SABMESENT.
An LLC circuit is created between the
A LLC2 circuit is created!
two routers.
receive UA frame from Ethernet 3/0/1 Ethernet 3/0/1 receives a UA response.
The status of the DLSw Ethernet
SABMESENT -> CONNECT redundancy circuit changes from
SABMESENT to CONNECT.
receive MP frame from Ethernet 3/0/1 Ethernet 3/0/1 receives an MP frame.
Sending MC frame from 0007.3f54.909c An MC frame is being sent back to
to 0007.3ff0.2c12 0007.3ff0.2c12.
The master/slave status of the DLSw
INIT -> MASTER-PENDING router changes from INIT to
MASTER-PENDING.
Sending DN frame from 0007.3f54.909c A DN frame is being sent to
to 0007.3ff0.2c12 0007.3ff0.2c12.
receive MA frame from Ethernet 3/0/1 Ethernet 3/0/1 receives an MA frame.
The master/salve status of the DLSw
MASTER-PENDING -> MASTER router changes to MASTER. That is, the
router is elected as the master router.
receive IWANTIT frame from Ethernet Ethernet 3/0/1 receives an IWANIIT
3/0/1 frame.
4-50
Command Manual – Non-IP Architecture
Comware V3 Chapter 4 DLSw Configuration Commands
Field Description
The master router receives from a slave
Receive IWANTIT 0020.357b.e065
router an IWANTIT frame, requesting to
0000.1738.6dfd 04 04, create a temp
establish a DLSw circuit between
CKT
0000.1788.6d6f and 0020.357b.e065.
Start hold timer interval = 5 The master router starts the hold timer.
Hold timeout on circuit 0020.357b.e065
The wait time expires.
0000.1738.6dfd 04 04
Syntax
View
User view
Parameter
None
Description
Example
4-51
Command Manual – Non-IP Architecture
Comware V3 Chapter 4 DLSw Configuration Commands
Field Description
The router receives a frame with the source MAC address
Rcv 0000.1738.6dfd of 0000.1738.6d6f from a peer with the IP address of
from:1.1.1.1 1.1.1.1, which indicates that the MAC address can be
NEW_ENTRY reached through 1.1.1.1. This MAC address is recorded in
the remote reachability information table.
RCH_NOT_FOUND The remote reachability information status changes from
->RCH_WAITING RCH_NOT_FOUND to RCH_WAITING.
REQ_DMAC:
0020.357b.e065 The MAC address of 0020.357b.e065 is found in the local
from:1.1.1.1 status: reachability information table.
FOUND
NO SPECIFIC
Since the status of the remote reachability information for
TARGET TO SEND
0000.1738.6d6f changes to waiting, the router does not
ICANREACH_ex.DR
send any ICANREACH-ex frames to the remote peer.
OP
0000.1738.6dfd
The remote reachability information status changes from
RCH_WAITING ->
RCH_WAITING to RCH_FOUND.
RCH_FOUND
Syntax
View
Any view
Parameter
None
4-52
Command Manual – Non-IP Architecture
Comware V3 Chapter 4 DLSw Configuration Commands
Description
Use the display dlsw ethernet-backup circuit command to display information about
circuit backup after you enable DLSw Ethernet redundancy.
On the elected master router, the command displays information about all the created
circuits, including those requested by slave routers and those created by the master
router. On a slave router, only information about the circuits created by the slave router
is displayed.
Example
Field Description
MAC address of the local Ethernet interface with Ethernet
Self
redundancy enabled
MAC address of the Ethernet interface with Ethernet redundancy
Neighbour
enabled on the neighbor
Local Mac MAC address of the source SNA host or terminal
Remote Mac MAC address of the destination SNA host or terminal
Lsap Local SAP address
Rsap Remote SAP address
Note: A service access point (SAP) is a sign for differentiating a circuit. For example, an
LLC2 frame with a destination SAP of 0x94 indicates that the master router and the
slave router are communicating with each other. A frame with any other SAP address
such as 0x04 or 0x08 indicates that the IBM host is communicating with an SNA
terminal and the router should transparently forward the frame to the remote router.
4-53
Command Manual – Non-IP Architecture
Comware V3 Chapter 4 DLSw Configuration Commands
Syntax
View
Any view
Parameter
None
Description
Use the display dlsw ethernet-backup map command to display information about
address translation after you configure the Ethernet switch support feature.
Example
Field Description
Local_mac Local virtual MAC address
Remote_mac MAC address of the remote SNA device
Type Address translation type, which can be Configure or Learned.
Status Address translation status, which can be Enable or Disabled.
Syntax
View
Any view
Parameter
None
4-54
Command Manual – Non-IP Architecture
Comware V3 Chapter 4 DLSw Configuration Commands
Description
Use the display dlsw ethernet-backup neighbour command to display all neighbors
of the current router.
Example
Field Description
Self indicates the current router, while Neighbor indicates a
Role
neighbor of the current router.
Mac-Address MAC address of the Ethernet interface on the router
Master/slave status of the router, which can be master, slave,
Status
master-pending, slave-pending, or init.
Status of the LLC circuit between the master router and the
LLC2-Circuit slave router, which can be connect, disconnect, or
SABMESENT.
Syntax
View
Any view
Parameter
Description
4-55
Command Manual – Non-IP Architecture
Comware V3 Chapter 4 DLSw Configuration Commands
Example
Field Description
DLSW local MAC
DLSW local reachability information
addresses in cache
DLSW remote MAC
DLSW remote reachability information
addresses in cache
MAC address Destination MAC address
Syntax
View
4-56
Command Manual – Non-IP Architecture
Comware V3 Chapter 4 DLSw Configuration Commands
Parameter
Description
Note:
For routers with the same priority, the one with the smallest MAC address is elected as
the master router.
Example
Syntax
View
4-57
Command Manual – Non-IP Architecture
Comware V3 Chapter 4 DLSw Configuration Commands
Parameter
Description
Use the dlsw ethernet-backup map command to enable the Ethernet switch support
feature for DLSw Ethernet redundancy, that is, to map the MAC address of a remote
SNA device to a local virtual MAC address.
Use the undo dlsw ethernet-backup map command to remove the map entries
between the MAC address of the specified remote SNA device and the local virtual
MAC address.
After you configure the dlsw ethernet-backup map command, the router handles
frames in this way:
z When receiving a frame from the WAN, the router translates the source MAC
address of the frame (that is, the MAC address of the remote SNA device) into its
local virtual MAC address before forwarding the frame to the Ethernet.
z When receiving a frame from the Ethernet, the router translates the destination
MAC address into the MAC address of the remote SNA device before forwarding
the frame to the WAN.
After you enable the Ethernet switch support feature and specify the MAC address of a
neighbor on a DLSw router, the router sends its MAC address map to the neighbor for
backup. In case the DLSw router fails, the neighbor takes over the address translation
responsibility by using the backup map.
DLSw Ethernet redundancy supports up to 200 map entries.
Example
# Enable the Ethernet switch support feature for DLSw Ethernet redundancy.
[H3C] interface ethernet 1/0/0
[H3C-Ethernet1/0/0] dlsw ethernet-backup enable 9999-9999-9999 priority 10
[H3C-Ethernet1/0/0] dlsw ethernet-backup map local-mac 8888-8888-8888
remote-mac 0000-1738-6dfd
4-58
Command Manual – Non-IP Architecture
Comware V3 Chapter 4 DLSw Configuration Commands
Syntax
View
Parameter
value: Time for which the master router waits before sending a positive or negative
response to the slave router upon receipt of a circuit establishing request. It is in the
range 100 to 5,000 ms and defaults to 500 ms.
Description
Use the dlsw ethernet-backup timer command to configure the time for which the
master DLSw router waits before sending a positive or negative response to the slave
DLSw router upon receipt of a circuit establishing request.
Use the undo dlsw ethernet-backup timer command to restore the default wait time.
With DLSw Ethernet redundancy, when a slave router wants to set up a circuit, it sends
an IWANTIT frame to the master router to request one. Upon receipt of the IWANTIT
frame, the master router needs to wait for a while before responding with a UGOTIT or
CKT_TKN frame to acknowledge or deny the setup request. The dlsw
ethernet-backup timer command is used to set the wait time.
Example
# Configure the master router in DLSw Ethernet redundancy to wait 1,500 ms before
responding to an IWANTIT frame.
[H3C] interface ethernet 1/0/0
[H3C-Ethernet1/0/0] dlsw ethernet-backup enable 9999-9999-9999 priority 10
[H3C-Ethernet1/0/0] dlsw ethernet-backup timer 1500
Syntax
View
System view
4-59
Command Manual – Non-IP Architecture
Comware V3 Chapter 4 DLSw Configuration Commands
Parameter
Description
Use the dlsw reverse command to convert a MAC address from Ethernet order to
token ring order or vice versa.
This command serves as a MAC address translation tool, helping you avoid mistakes
introduced by manual translation.
Example
# Translate MAC address 0012-3578-4521 back into an address in the original format.
[H3C] dlsw reverse 0048-ac1e-a284
Deversed MAC address: 0012-3578-4521
Syntax
View
User view
Parameter
None
Description
Use the reset dlsw ethernet-backup circuit command to clear information about all
circuits that the router and its neighbors have established with the remote peers since
DLSw Ethernet redundancy is enabled.
This command does not tear down the circuits; it only clears information about the
circuits. When new circuits are set up, the router will learn and record information about
them.
Example
# Clear the records about all circuits that the router and its neighbors have established
since DLSw Ethernet redundancy is enabled.
<H3C> reset dlsw ethernet-backup circuit
4-60
Command Manual – Non-IP Architecture
Comware V3 Chapter 4 DLSw Configuration Commands
Syntax
View
User view
Parameter
None
Description
Use the reset dlsw ethernet-backup map command to clear the MAC address map of
the Ethernet switch support feature.
Example
# Clear the MAC address map of the Ethernet switch support feature.
<H3C> reset dlsw ethernet-backup map
4-61
Command Index
Command Manual – Command Index
Comware V3 Appendix A Command Index
The command index includes all the commands in the Comware V3 Command Manual, which are
arranged alphabetically.
ABCDEFGHIJKLMNOPQRSTUVWXYZ
A
aaa-client Voice 6-1
abr-summary Routing Protocol 3-1
access-limit Security 1-1
accounting Security 1-1
accounting Security 1-20
accounting Security 1-53
accounting commands System Management 5-1
accounting domain Network Protocol 9-4
accounting optional Security 1-2
accounting-on Security 1-21
acl System Management 5-2
acl Security 3-1
acl-reflect timeout Security 3-2
activate Interface 5-26
activate Interface 5-39
activation-key System Management 5-2
address Voice 1-1
address Voice 3-1
address sip Voice 8-1
adsl standard Interface 5-40
adsl tx_attenuation Interface 5-42
adv-factor System Management 3-1
aggregate Routing Protocol 5-1
aggregate Multicast Protocol 5-1
aging-time Security 4-7
A-1
Command Manual – Command Index
Comware V3 Appendix A Command Index
A-2
Command Manual – Command Index
Comware V3 Appendix A Command Index
A-3
Command Manual – Command Index
Comware V3 Appendix A Command Index
B
balance Routing Protocol 5-2
band-based-sharing Routing Protocol 1-18
baudrate Interface 4-2
bert Interface 4-66
bert (CT1/PRI Interface) Interface 4-30
bert (CT3 Interface) Interface 4-80
bgp Routing Protocol 5-3
bims boot request System Management 8-1
bims device-id System Management 8-1
bims enable System Management 8-2
bims interval System Management 8-2
bims ip address System Management 8-3
bims request System Management 8-4
bims sharekey System Management 8-4
bims source ip-address System Management 8-5
bims specify-time System Management 8-5
bims-server Network Protocol 9-6
binary System Management 4-25
boot bootrom System Management 1-45
bootfile backup System Management 4-4
bootfile dir System Management 4-1
bootfile main System Management 4-2
bridge aging-time Link Layer Protocol 9-1
bridge bridge-set enable Link Layer Protocol 9-13
bridge bridging Link Layer Protocol 9-1
bridge enable Link Layer Protocol 9-2
bridge learning Link Layer Protocol 9-3
bridge mac-address Link Layer Protocol 9-4
bridge routing Link Layer Protocol 9-5
bridge routing-enable Link Layer Protocol 9-6
bridge stp ieee Link Layer Protocol 9-7
A-4
Command Manual – Command Index
Comware V3 Appendix A Command Index
C
ca identifier Security 8-1
cable Interface 4-15
cable Interface 5-4
cable Interface 5-18
cable (CT1/PRI Interface) Interface 4-31
cable (CT3 Interface) Interface 4-81
cache-sa-enable Multicast Protocol 4-1
callednumber receive-method Voice 6-3
caller-permit Voice 1-4
call-mode Voice 3-2
car QoS 3-17
card-digit Voice 6-4
cas Voice 4-3
cbs QoS 6-2
A-5
Command Manual – Command Index
Comware V3 Appendix A Command Index
A-6
Command Manual – Command Index
Comware V3 Appendix A Command Index
A-7
Command Manual – Command Index
Comware V3 Appendix A Command Index
D
dampening Routing Protocol 5-7
A-8
Command Manual – Command Index
Comware V3 Appendix A Command Index
A-9
Command Manual – Command Index
Comware V3 Appendix A Command Index
A-10
Command Manual – Command Index
Comware V3 Appendix A Command Index
A-11
Command Manual – Command Index
Comware V3 Appendix A Command Index
A-12
Command Manual – Command Index
Comware V3 Appendix A Command Index
A-13
Command Manual – Command Index
Comware V3 Appendix A Command Index
A-14
Command Manual – Command Index
Comware V3 Appendix A Command Index
dh Security 7-3
dhcp enable Network Protocol 9-1
dhcp relay information Network Protocol 9-49
dhcp relay information strategy Network Protocol 9-50
dhcp relay release Network Protocol 9-50
dhcp select (in Interface View) Network Protocol 9-1
dhcp select (in System View) Network Protocol 9-3
dhcp server accounting domain (in Interface View) Network Protocol 9-9
dhcp server accounting domain interface (in System View) Network Protocol 9-8
dhcp server bims-server (Interface View) Network Protocol 9-10
dhcp server bims-server interface (System View) Network Protocol 9-11
dhcp server detect Network Protocol 9-4
dhcp server dns-list Network Protocol 9-12
dhcp server dns-list interface (in System View) Network Protocol 9-13
dhcp server domain-name (in Interface View) Network Protocol 9-13
dhcp server domain-name interface (in System View) Network Protocol 9-14
dhcp server expired (in Interface View) Network Protocol 9-15
dhcp server expired interface (in System View) Network Protocol 9-16
dhcp server forbidden-ip Network Protocol 9-17
dhcp server ip-pool Network Protocol 9-18
dhcp server nbns-list (in Interface View) Network Protocol 9-19
dhcp server nbns-list interface (in System View) Network Protocol 9-19
dhcp server netbios-type (in Interface View) Network Protocol 9-22
dhcp server netbios-type interface (in System View) Network Protocol 9-21
dhcp server option (in Interface View) Network Protocol 9-24
dhcp server option interface (in System View) Network Protocol 9-23
dhcp server ping Network Protocol 9-24
dhcp server relay information enable Network Protocol 9-25
dhcp server static-bind Network Protocol 9-26
dhcp server synchronize arp (in Interface View) Network Protocol 2-11
dhcp server synchronize arp interface (in System View) Network Protocol 2-11
dhcp server voice-config (in Interface View) Network Protocol 9-27
dhcp server voice-config interface (in System View) Network Protocol 9-28
dialer bundle Dial-up 1-1
A-15
Command Manual – Command Index
Comware V3 Appendix A Command Index
A-16
Command Manual – Command Index
Comware V3 Appendix A Command Index
display arp timer aging (only for the AR46 Series) Network Protocol 2-4
display aspf all Security 4-11
display aspf interface Security 4-12
display aspf policy Security 4-13
display aspf session Security 4-13
display atm class Link Layer Protocol 7-10
display atm interface Link Layer Protocol 7-11
display atm map-info Link Layer Protocol 7-12
display atm map-info Non-IP Architecture 1-1
display atm pvc-group Link Layer Protocol 7-13
display atm pvc-info Link Layer Protocol 7-15
display auto-config System Management 1-3
display bgp group Routing Protocol 5-11
display bgp l2vpn MPLS 3-11
display bgp multicast group Multicast Protocol 5-2
display bgp multicast network Multicast Protocol 5-3
display bgp multicast peer Multicast Protocol 5-3
display bgp multicast routing Multicast Protocol 5-4
display bgp multicast routing as-path-acl Multicast Protocol 5-4
display bgp multicast routing cidr Multicast Protocol 5-5
display bgp multicast routing community Multicast Protocol 5-5
display bgp multicast routing community-list Multicast Protocol 5-6
display bgp multicast routing different-origin-as Multicast Protocol 5-6
display bgp multicast routing peer Multicast Protocol 5-7
display bgp multicast routing regular-expression Multicast Protocol 5-7
display bgp multicast routing statistic Multicast Protocol 5-8
display bgp network Routing Protocol 5-12
display bgp paths Routing Protocol 5-13
display bgp peer Routing Protocol 5-14
display bgp routing Routing Protocol 5-16
display bgp routing as-path-acl Routing Protocol 5-18
display bgp routing cidr Routing Protocol 5-20
display bgp routing community Routing Protocol 5-21
display bgp routing community-list Routing Protocol 5-21
A-17
Command Manual – Command Index
Comware V3 Appendix A Command Index
A-18
Command Manual – Command Index
Comware V3 Appendix A Command Index
A-19
Command Manual – Command Index
Comware V3 Appendix A Command Index
A-20
Command Manual – Command Index
Comware V3 Appendix A Command Index
A-21
Command Manual – Command Index
Comware V3 Appendix A Command Index
A-22
Command Manual – Command Index
Comware V3 Appendix A Command Index
A-23
Command Manual – Command Index
Comware V3 Appendix A Command Index
A-24
Command Manual – Command Index
Comware V3 Appendix A Command Index
A-25
Command Manual – Command Index
Comware V3 Appendix A Command Index
A-26
Command Manual – Command Index
Comware V3 Appendix A Command Index
A-27
Command Manual – Command Index
Comware V3 Appendix A Command Index
A-28
Command Manual – Command Index
Comware V3 Appendix A Command Index
A-29
Command Manual – Command Index
Comware V3 Appendix A Command Index
A-30
Command Manual – Command Index
Comware V3 Appendix A Command Index
E
e1 bert Interface 4-71
e1 channel-set Interface 4-73
e1 channel-set Interface 4-115
e1 set clock Interface 4-73
e1 set clock Interface 4-116
e1 set frame-format Interface 4-74
e1 set frame-format Interface 4-116
e1 set loopback Interface 4-75
e1 set loopback Interface 4-117
e1 shutdown Interface 4-76
e1 shutdown Interface 4-118
e1 unframed Interface 4-76
A-31
Command Manual – Command Index
Comware V3 Appendix A Command Index
F
fast-connect Voice 1-68
fax baudrate Voice 5-9
fax ecm Voice 5-10
A-32
Command Manual – Command Index
Comware V3 Appendix A Command Index
A-33
Command Manual – Command Index
Comware V3 Appendix A Command Index
A-34
Command Manual – Command Index
Comware V3 Appendix A Command Index
A-35
Command Manual – Command Index
Comware V3 Appendix A Command Index
G
gateway-list Network Protocol 9-40
get System Management 4-34
get System Management 10-41
gk-2nd-id Voice 7-4
gk-client Voice 7-3
gk-id Voice 7-5
gk-security call Voice 7-5
gk-security register-pwd Voice 7-6
gratuitous-arp-learning enable Network Protocol 2-8
gratuitous-arp-sending enable Network Protocol 2-8
gre checksum VPN 2-4
A-36
Command Manual – Command Index
Comware V3 Appendix A Command Index
H
header Getting Started 1-14
help System Management 10-41
history keep-time System Management 3-13
history-command max-size System Management 5-11
history-record enable System Management 3-13
history-records System Management 3-14
home-agent ip-address Network Protocol 16-38
hookoff-time Voice 1-70
host-route Routing Protocol 2-9
hotkey Getting Started 1-15
http-operation System Management 3-15
hwping System Management 3-16
hwping-agent enable System Management 3-16
hwping-agent max-requests System Management 3-17
hwping-server enable System Management 3-31
hwping-server tcpconnect System Management 3-32
hwping-server udpecho System Management 3-32
hwtacacs change-password self Security 1-59
hwtacacs nas-ip Security 1-60
hwtacacs scheme Security 1-60
I
icmp redirect send Network Protocol 10-23
icmp unreach send System Management 1-8
idlecode (in CE1/PRI Interface View) Interface 4-23
A-37
Command Manual – Command Index
Comware V3 Appendix A Command Index
A-38
Command Manual – Command Index
Comware V3 Appendix A Command Index
A-39
Command Manual – Command Index
Comware V3 Appendix A Command Index
A-40
Command Manual – Command Index
Comware V3 Appendix A Command Index
A-41
Command Manual – Command Index
Comware V3 Appendix A Command Index
A-42
Command Manual – Command Index
Comware V3 Appendix A Command Index
A-43
Command Manual – Command Index
Comware V3 Appendix A Command Index
J
jitter-interval System Management 3-17
jitter-packetnum System Management 3-18
K
keepalive VPN 2-7
key Security 1-32
key Security 1-61
A-44
Command Manual – Command Index
Comware V3 Appendix A Command Index
L
l2tp enable VPN 1-7
l2tp-auto-client enable VPN 1-6
l2tp-group VPN 1-8
l2tpmoreexam enable VPN 1-7
l2vpn-family MPLS 3-12
language-mode Getting Started 1-17
lapb max-frame Link Layer Protocol 8-17
lapb modulo Link Layer Protocol 8-18
lapb pollremote Link Layer Protocol 8-19
lapb retry Link Layer Protocol 8-20
lapb timer Link Layer Protocol 8-20
lapb window-size Link Layer Protocol 8-21
lcd System Management 4-34
ldap-server Security 8-7
level Security 1-12
limit Network Protocol 11-9
line Voice 1-72
line Voice 4-26
link-protocol Interface 4-132
link-protocol fr Link Layer Protocol 6-46
link-protocol fr mfr Link Layer Protocol 6-46
link-protocol hdlc Link Layer Protocol 5-1
link-protocol lapb Link Layer Protocol 8-22
link-protocol ppp Link Layer Protocol 1-5
link-protocol sdlc Non-IP Architecture 4-20
link-protocol slip Link Layer Protocol 4-1
link-protocol sot Network Protocol 15-2
link-protocol x25 Link Layer Protocol 8-23
llc2 max-ack Non-IP Architecture 4-21
llc2 max-send-queue Non-IP Architecture 4-21
llc2 max-transmission Non-IP Architecture 4-22
llc2 modulo Non-IP Architecture 4-22
A-45
Command Manual – Command Index
Comware V3 Appendix A Command Index
A-46
Command Manual – Command Index
Comware V3 Appendix A Command Index
M
mac-address Interface 3-14
mac-address Interface 6-13
mac-address Link Layer Protocol 9-28
mac-address timer aging Interface 3-7
mandatory-chap VPN 1-9
mandatory-lcp VPN 1-9
map bridge Link Layer Protocol 7-20
map bridge-group Link Layer Protocol 7-21
map clns Non-IP Architecture 1-8
map ip Link Layer Protocol 7-22
map ppp Link Layer Protocol 7-23
map routed-bridge Link Layer Protocol 7-24
match Link Layer Protocol 7-25
match-template Voice 1-73
max-call (in Voice Dial Program View) Voice 1-75
max-call (in Voice Entity View) Voice 1-76
max-packet-process Interface 6-5
md5-compatible Routing Protocol 4-28
mdl (CT3 Interface) Interface 4-88
memory Routing Protocol 7-4
memory auto-establish disable Routing Protocol 7-2
memory auto-establish enable Routing Protocol 7-3
mfc (R2 CAS) Voice 4-27
mfr bundle-name Link Layer Protocol 6-47
mfr fragment Link Layer Protocol 6-48
A-47
Command Manual – Command Index
Comware V3 Appendix A Command Index
A-48
Command Manual – Command Index
Comware V3 Appendix A Command Index
A-49
Command Manual – Command Index
Comware V3 Appendix A Command Index
N
nas-ip Security 1-34
nas-ip Security 1-62
nat address-group Network Protocol 11-10
nat aging-time Network Protocol 11-11
nat alg Network Protocol 11-12
nat connection-limit-policy Network Protocol 11-23
nat dns-map Network Protocol 11-13
nat outbound Network Protocol 11-14
nat outbound interface Network Protocol 11-15
nat outbound static Network Protocol 11-16
nat overlapaddress Network Protocol 11-17
nat server Network Protocol 11-18
nat static Network Protocol 11-21
nat static inside Network Protocol 11-22
nat traversal Security 7-18
national-bit Interface 4-78
naturemask-arp Network Protocol 2-5
nbns-list Network Protocol 9-41
nesting Security 3-3
netbios-type Network Protocol 9-41
A-50
Command Manual – Command Index
Comware V3 Appendix A Command Index
O
oam ais-rdi Link Layer Protocol 7-28
oam frequency Link Layer Protocol 7-29
oamping interface Link Layer Protocol 7-30
opaque-capability Routing Protocol 3-40
open System Management 4-36
open-trunk Voice 1-79
open-trunk Voice 4-30
option System Management 2-4
A-51
Command Manual – Command Index
Comware V3 Appendix A Command Index
P
packing timer Link Layer Protocol 7-31
pad Link Layer Protocol 8-24
pad-mode pos enable System Management 11-8
parity System Management 5-15
passive System Management 4-36
password System Management 3-19
password Security 1-14
password-digit Voice 6-17
payload-size Voice 1-82
pcm Voice 4-31
peer Routing Protocol 2-12
peer Routing Protocol 3-50
A-52
Command Manual – Command Index
Comware V3 Appendix A Command Index
A-53
Command Manual – Command Index
Comware V3 Appendix A Command Index
A-54
Command Manual – Command Index
Comware V3 Appendix A Command Index
A-55
Command Manual – Command Index
Comware V3 Appendix A Command Index
A-56
Command Manual – Command Index
Comware V3 Appendix A Command Index
A-57
Command Manual – Command Index
Comware V3 Appendix A Command Index
Q
qmtoken QoS 3-60
qos apply policy QoS 3-41
qos car QoS 1-2
qos carl QoS 1-4
qos cq QoS 3-9
qos cql default-queue QoS 3-10
qos cql inbound-interface QoS 3-11
qos cql protocol QoS 3-12
qos cql protocol mpls exp QoS 7-1
qos cql queue QoS 3-13
qos cql queue serving QoS 3-14
qos fifo queue-length QoS 3-1
qos gts QoS 1-5
qos lr QoS 1-7
qos max-bandwidth QoS 3-42
qos policy QoS 3-43
qos pq QoS 3-3
qos pql default-queue QoS 3-4
qos pql inbound-interface QoS 3-5
qos pql protocol QoS 3-6
qos pql protocol mpls exp QoS 7-2
qos pql queue QoS 3-7
qos reserved-bandwidth QoS 3-58
qos rtpq QoS 3-59
qos wfq QoS 3-16
qos wred QoS 4-2
qos wred dscp QoS 4-2
A-58
Command Manual – Command Index
Comware V3 Appendix A Command Index
R
radius nas-ip Security 1-38
radius scheme Security 1-37
radius trap Security 1-39
ras-on Voice 7-8
re-answer Voice 4-33
re-authentication System Management 5-16
reboot System Management 1-13
receive gain Voice 1-86
redialtimes Voice 6-19
redirect bind vpn-instance System Management 10-3
redirect disconnect System Management 10-7
redirect enable System Management 10-4
redirect listen-port System Management 10-4
redirect refuse-negotiation System Management 10-7
redirect return-deal from-telnet System Management 10-5
redirect return-deal from-terminal System Management 10-6
redirect timeout System Management 10-5
reflect between-clients Routing Protocol 5-53
reflector cluster-id Routing Protocol 5-54
refresh bgp Routing Protocol 5-55
register lifetime Network Protocol 16-44
register retransmit Network Protocol 16-44
A-59
Command Manual – Command Index
Comware V3 Appendix A Command Index
A-60
Command Manual – Command Index
Comware V3 Appendix A Command Index
A-61
Command Manual – Command Index
Comware V3 Appendix A Command Index
A-62
Command Manual – Command Index
Comware V3 Appendix A Command Index
A-63
Command Manual – Command Index
Comware V3 Appendix A Command Index
A-64
Command Manual – Command Index
Comware V3 Appendix A Command Index
S
sa authentication-hex Security 6-25
sa duration Security 6-27
sa duration Security 7-22
sa encryption-hex Security 6-28
sa spi Security 6-29
sa string-key Security 6-31
save System Management 4-60
schedule reboot at System Management 1-42
schedule reboot delay System Management 1-43
scheme Security 1-15
scramble Interface 4-134
scramble Interface 5-18
scramble Interface 5-21
scramble Interface 5-25
screen-length System Management 5-17
screen-width System Management 5-18
script trigger dial Dial-up 3-3
script-string Dial-up 3-4
sdlc controller Non-IP Architecture 4-28
sdlc mac-map local Non-IP Architecture 4-29
sdlc mac-map remote Non-IP Architecture 4-30
sdlc max-pdu Non-IP Architecture 4-31
sdlc max-send-queue Non-IP Architecture 4-31
sdlc max-transmission Non-IP Architecture 4-32
sdlc modulo Non-IP Architecture 4-32
A-65
Command Manual – Command Index
Comware V3 Appendix A Command Index
A-66
Command Manual – Command Index
Comware V3 Appendix A Command Index
A-67
Command Manual – Command Index
Comware V3 Appendix A Command Index
A-68
Command Manual – Command Index
Comware V3 Appendix A Command Index
A-69
Command Manual – Command Index
Comware V3 Appendix A Command Index
A-70
Command Manual – Command Index
Comware V3 Appendix A Command Index
T
t1 alarm Interface 4-90
t1 bert Interface 4-91
t1 channel-set Interface 4-92
t1 channel-set Interface 4-123
t1 sendloopcode Interface 4-93
t1 set clock Interface 4-94
t1 set clock Interface 4-124
t1 set fdl Interface 4-97
t1 set frame-format Interface 4-95
t1 set frame-format Interface 4-125
t1 set loopback Interface 4-96
t1 set loopback Interface 4-126
t1 show Interface 4-98
t1 shutdown Interface 4-99
A-71
Command Manual – Command Index
Comware V3 Appendix A Command Index
A-72
Command Manual – Command Index
Comware V3 Appendix A Command Index
A-73
Command Manual – Command Index
Comware V3 Appendix A Command Index
A-74
Command Manual – Command Index
Comware V3 Appendix A Command Index
U
udp-helper enable Network Protocol 7-2
udp-helper port Network Protocol 7-2
udp-helper server Network Protocol 7-3
undelete System Management 4-18
undo schedule reboot System Management 1-45
undo synchronization Routing Protocol 5-59
upgrade System Management 1-44
upgrade System Management 4-62
upgrade flash Interface 5-47
use encrypt-card Security 6-49
user System Management 4-40
user privilege System Management 5-23
user-interface System Management 5-24
username System Management 3-30
user-name-format Security 1-50
user-name-format Security 1-73
using (CE1/PRI Interface) Interface 4-28
using (CE3 Interface) Interface 4-78
using (CT3 Interface) Interface 4-101
V
vad-on Voice 1-114
vad-on Voice 3-15
validate-source-address Routing Protocol 2-24
verbose System Management 4-40
vi-card busy-tone-detect Voice 1-115
vi-card cptone-custom Voice 1-116
vi-card reboot Voice 1-117
virtualbaudrate Interface 4-14
vlan-type dot1q Interface 6-6
vlink-peer Routing Protocol 3-57
vofr Voice 3-16
A-75
Command Manual – Command Index
Comware V3 Appendix A Command Index
W
web java-blocking acl-number Security 5-15
web java-blocking enable Security 5-15
web java-blocking extension add Security 5-16
web java-blocking extension add-default Security 5-17
A-76
Command Manual – Command Index
Comware V3 Appendix A Command Index
X
x25 alias-policy Link Layer Protocol 8-28
x25 call-facility Link Layer Protocol 8-29
x25 cug-service Link Layer Protocol 8-30
x25 default-protocol Link Layer Protocol 8-31
A-77
Command Manual – Command Index
Comware V3 Appendix A Command Index
A-78
Command Manual – Command Index
Comware V3 Appendix A Command Index
Y
Z
A-79