Академический Документы
Профессиональный Документы
Культура Документы
Reference Guide
http://www.3com.com/
1 CONFIGURATION COMMANDS
Basic Configuration Commands 9
5 NETWORK PROTOCOL
IP Address Configuration Commands 397
ARP Configuration Commands 401
Static Domain Name Resolution 404
DHCP Public Configuration Commands 405
DHCP Server Configuration Commands 408
DHCP Client Configuration Commands 433
DHCP Relay Configuration Commands 436
IP Performance Configuration Commands 440
NAT Configuration Commands 460
IP Unicast Policy Routing Configuration Commands 467
IP Multicast Policy Routing Configuration Commands 474
IPX Configuration Commands 479
DLSw Configuration Commands 506
6 ROUTING PROTOCOL
Display Commands of the Routing Table 533
Static Route Configuration Commands 543
RIP Configuration Commands 545
OSPF Configuration Commands 560
Integrated IS-IS Configuration Commands 599
BGP Configuration Commands 626
MBGP Configuration Commands 664
IP Routing Policy Configuration Commands 667
Route Capacity Configuration Commands 681
7 MULTICAST COMMON CONFIGURATION COMMANDS
Multicast Common Configuration Commands 687
IGMP Configuration Commands 697
PIM Configuration Commands 708
MSDP Configuration Commands 725
MBGP Multicast Extension Configuration Commands 740
Multicast Static Route Configuration Commands 753
This guide describes the 3Com® Router Commands as implemeted through the
Command Line Interface (CLI) of the router.
This guide is intended for the system or network administrator who is responsible
for configuring, using, and managing the routers. It assumes a working
knowledge of wide area network (WAN) operations and familiarity with
communication protocols that are used to interconnect WANs.
Always download the Release Notes for your product from the 3Com World Wide
Web site for the latest updates to product documentation:
http://www.3com.com
Conventions Table 1 and Table 2 list conventions that are used throughout this guide.
Convention Description
Keyboard key If you must press two or more keys simultaneously, the key names are
names linked with a plus sign (+), for example:
Press Ctrl+Alt+Del
The words “enter” When you see the word “enter” in this guide, you must type
and type” something, and then press Return or Enter. Do not press Return or
Enter when an instruction simply says “type.”
8 CHAPTER : ABOUT THIS GUIDE
Words in bold Boldface type is used to highlight command names in text. For
example, “Use the display user-interface command to...”
Related The following manuals offer additional information necessary for managing your
Documentation 3Com Router:
■ 3Com Router 3000 DSL, 3Com Router 5000, and 3Com Router 6000 Family
Installation Guides — Provides detailed descriptions of each of the individual
router families and specific information on installing the routers.
■ 3Com Router Configuration Guide— Describes how to configure your Router
6000 using the supported protocols and CLI commands.
■ Release Notes — Contains the latest information about your product. If
information in this guide differs from information in the release notes, use the
information in the Release Notes.
http://www.3com.com/
CONFIGURATION COMMANDS
1
This chapter describes how to use the following commands:
Basic Configuration
Commands
View
User view
10 CHAPTER 1: CONFIGURATION COMMANDS
Parameter
Description
■ Using the clock summer-time command, you can set the name, starting and
ending time of the summer time. Using the undo clock summer-time
command, you can remove the configuration of the summer time.
■ After the configuration takes effect, you can use the display clock command
to make the verification. Besides, the time of the log or debug information will
be the local time on which the adjustment of the time zone and summer time
has been made.
Example
Add one hour to the clock for the summer time z2 that starts at 06:00:00 on
2002/06/08 and ends at 06:00:00 on 2002/09/01.
View
User view
Parameter
HH:MM:SS: Time (hour/minute/second).
YYYY/MM/DD: Date (year/month/day) in the range of 1993 to 2035.
Description
Using the clock datetime command, you can set the time and date.
After the configuration takes effect, you can verify it by executing the display
clock command. The time applied to the log and debug information has been
adjusted.
Basic Configuration Commands 11
Example
Set the current system time to 10:20:55 2003/04/05.
<3Com> clock datetime 10:20:55 2003/04/05
View
User view
Parameter
zone_name: Timezone name, which is a string of 1 to 32 characters.
add: Adds the time on the basis of Universal Time Coordinated (UTC)
timezone.
minus: Reduces the time on the basis of UTC timezone.
HH:MM:SS: Time (hour/minute/second).
Description
Using the clock timezone command, you can set information of the local
timezone. Using the undo clock timezone command, you can restore the local
timezone to the default UTC timezone.
After the configuration takes effect, you can view it by executing the display
clock command. The time applied to the log and debug information has been
adjusted according to the involved timezone and summer time.
Example
Set the local timezone name to Z5 and set Z5 to be five hours faster than UTC
time.
<3Com> clock timezone z5 add 05:00:00
command-privilege Syntax
command-privilege level level view view command-key
undo command-privilege view view command-key
View
System view
Parameter
level level: Command priority ranging from 0 to 3.
view view: View. The command line provides the following views:
1 shell: View of current user level.
2 system: System view
3 Routing protocol view: Include ospf (OSPF view), rip (RIP view), bgp (BGP view),
isis (IS-IS view), etc.
12 CHAPTER 1: CONFIGURATION COMMANDS
Refer to "Command Line Views" section in the Operation Manual for more
details.
Description
Using the command-privilege command, you can set the command level in the
specified view. Using the undo command-privilege view command, you can
remove current settings.
Command priority fall into such 4 levels as access, monitor, configure and manage
that are identified with 0 to 3. The administrator can grant certain rights to a user
on its demand so that the user can operate in the related view. When the user
logging in, the system can set the command operation rights for it either
according to the rights corresponding to the user name, or based on the rights of
the user-interface. If the two sets of rights conflict, the minimum rights will be
adopted.
By default, the command level of the ping, tracert and telnet commands is
access (level 0), the command level of the display and debugging commands is
monitor (level 1), that of configuration commands is configure (level 2), and the
commands for user key setting, FTP, XMODEM, TFTP and file system operation fit
into commands of manage-level (level 3).
Example
Set the priority of the “interface” command to 0.
[3Com] command-privilege level 0 view system interface
View
Any view
Parameter
None
Description
Using the display clipboard command, you can display the contents of
clipboard.
Basic Configuration Commands 13
Example
Display the contents of clipboard.
<3Com> display clipboard
-----------------clipboard -----------------
ip route 10.1.0.0 255.0.0.0 eth 0
View
Any view
Parameter
None
Description
Using the display clock command, you can display the clock status and the
configuration information.
Example
display Syntax
history-command display history-command
View
Any view
Parameter
None
Description
Using the display history-command command, you can browse the history
commands.
The terminal will automatically save the history commands typed by the user, that
is, completely record the user's input (via keyboard) separated by "Enter".
Example
View
Any view
Parameter
None
Description
Using the display version command, you can browse system version information.
Through viewing system version information, you will learn about the software
version in use, rack type and the information related to the main processing board
and interface cards.
Example
Display system version information of a 3Com R1760 router.
<3Com> display version
3Com Versatile Routing Platform Software
VRP(tm) software, Version 3.30
Copyright (c) 2000-2002 3Com Corporation.
3Com Serial Router R1760
System has kept running 0weeks, 0days, 0hours, 15minutes
CPU type Powerpc8241 166Mhz
64M bytes SDRAM
8M bytes Flash Memory
Pcb Version:001
Logic Version:001
BootROM Version:0.0
Slot0: WAN (pcb)001 (software)000 (logic)001
header3Com Syntax
header [ shell | incoming | login ] text
undo header [ shell | incoming | login ]
View
System view
Parameter
Description
Using the header command, you can set the greeting information to be displayed.
Using the undo header command, you can remove the preset greeting
information.
When a user is logging on to a router via a terminal line, the router prompts
related information through setting title attribute. After activating the terminal
connection, the router sends the login title to the terminal. If the user log on to
the router successfully, the shell greeting information will be displayed.
text takes the first English character as the start and end characters. After the end
character is input, the system will quit the interactive process automatically.
If you do not want to start the interactive process, make sure that the first and last
characters of the text are the same English character and press <Enter> directly.
Example
Configure a session creation title.
[3Com] header shell %
Enter TEXT message. End with the character '%'.
SHELL : Hello! Welcome use 3Com R1760.%
# Test the configuration.
[3Com] quit
<3Com> quit
Press RETURN to get started
hotkey Syntax
hotkey [ CTRL_G | CTRL_L | CTRL_O | CTRL_T | CTRL_U ] command_text
undo hotkey [ CTRL_G | CTRL_L | CTRL_O | CTRL_T | CTRL_U ]
View
System view
Parameter
Description
Using the hotkey command, you can correlate a command line with a hotkey.
Using the undo hotkey command, you can recover the default value of the system.
You can change the definitions on your demand. The default values for the other
hotkeys are null.
Example
Correlate the display tcp status command with the hotkey CTRL_T.
[3Com] hotkey ctrl_t display tcp status
[3Com] 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.
CTRL_E Move the cursor to the end of the current line.
CTRL_F Move the cursor one character right.
CTRL_H Erase the character left of the cursor.
CTRL_K Kill outgoing connection.
CTRL_N Display the next command from the history buffer.
CTRL_P Display the previous command from the history buffer.
CTRL_R Redisplay the current line.
CTRL_V Paste text from the clipboard.
CTRL_W Delete the word left of the cursor.
CTRL_X Delete all characters up to the cursor.
CTRL_Y Delete all characters after the cursor.
CTRL_Z Return to the user view.
CTRL_] Kill incoming connection or redirect connection.
ESC_B Move the cursor one word back.
ESC_D Delete remainder of word.
ESC_F Move the cursor forward one word.
ESC_N Move the cursor down a line.
ESC_P Move the cursor up a line.
Basic Configuration Commands 17
language-mode Syntax
language-mode { chinese | english }
View
User view
Parameter
None
Description
Using the language-mode command, you can switch between different language
modes of command line interface.
The command line interface of the system also supports Chinese mode to fit into
domestic users in China.
Example
Switch from English mode to Chinese mode.
<3Com> language-mode chinese
Change language mode, confirm? [Y/N]y
% Switch to Chinese mode.
lock Syntax
lock
View
User view
Parameter
None
Description
Using the lock command, you can lock the active user interface to prevent
unauthorized user from operating the interface.
A user interface includes CON port, AUX port and VTY, etc.
After inputting the lock command, the user is prompted to enter the screensaver's
password and confirm the password. If the two passwords are the same, the
interface will be successfully locked. To enter the system once again, you must
press <Enter> first, and enter the preset password following the prompt.
Example
Log in from the CON port and lock the active user interface.
18 CHAPTER 1: CONFIGURATION COMMANDS
<3Com> lock
Password:
Again:
quit Syntax
quit
View
Any view
Parameter
None
Description
Using the quit command, you can quit from the active view to a lower-level view
(if the active view is user view, you will exit the system).
Example
Switch from Ethernet1/0/0 interface view to system view, and then to user view.
[3Com-Ethernet1/0/0] quit
[3Com] quit
<3Com>
Reboot Syntax
reboot
View
User view
Parameter
None
Description
Using the reboot command, you can reboot the device.
This command produces the same effect as the power is turned on and then on,
but provides the user with a convenient method of rebooting the device from a
remote site.
Basic Configuration Commands 19
The operation of this command will render the network unusable for a short
period of time. So it should be used with caution. Before rebooting the Router,
remember to save the configuration file if necessary,
Example
Reboot the device.
<3Com> reboot
System will reboot! Continue?[Y/N]
return Syntax
return
View
Parameter
None
Description
Using the return command, you can return to user view from any other views. The
combination key <Ctrl+Z> performs the same function as the return command.
Example
Return to user view from system view.
[3Com] return
<3Com>
super Syntax
super [ level ]
View
User view
Parameter
Description
Using the super command, you can switch from current user level to a specified
level.
User level refers to the class of a login user. There are 4 user levels corresponding
to 4 command levels. After a user of certain level logs in, it can only use the
commands of the same or lower level.
There are 4 command levels, namely access, monitor, configure and manage, as
follows:
20 CHAPTER 1: CONFIGURATION COMMANDS
To prevent unauthorized users from intruding the system, you must pass the
authentication when you are trying to switch from current user to a higher-level
user. This means that you must enter the password of the higher-level user (if
the super password [ level user-level ] { simple | cipher } line command is
configured). For the sake of security, your entered password is not directly
displayed on the screen. If you enter the correct password within three times,
you will be able to switch to the higher-level user, or you will stay at current
level.
Example
<3Com> 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
View
System view
Parameter
Description
Using the super password command, you can set the password need to switch
from a lower-level user to a higher-level user. Using the undo super password
command, you can remove the current setting.
Example
Execute the following command in system view:
[3Com] super password level 3 simple zbr
sysname Syntax
sysname sysname
View
System view
Parameter
Description
Using the sysname command, you can set the name of a router.
Modification to a router's name will affect the prompt of the command line
interface. For example, if the router's name is "3Com", the prompt of user view
will be "<3Com>".
Example
Set the name of the router to R1760.
[3Com] sysname R1760
[R1760]
system-view Syntax
system-view
View
User view
Parameter
None
22 CHAPTER 1: CONFIGURATION COMMANDS
Description
Using the system-view command, you can enter system view from current user
view.
Example
<3Com> system-view
Enter system view , return user view with Ctrl+Z.
[3Com]
System Maintenance & Management
2 Commands
Add Chapter introduction here. This information should ONLY be about what the
chapter contains.
debugging Syntax
View
User view
Parameter
Description
Using the debug command, you can enable system debugging. Using the undo
debug command, you can disable system debugging.
The router system provides a variety of debugging functions mainly for the
support technicians and senior maintenance engineers to perform network fault
diagnosis.
Example
View
Any view
Parameter
Description
Using the display debugging command, you can display the enabled debugging
switches.
By default, no parameters have been defined and all the enabled debugging
switches are displayed.
Example
display Syntax
diagnostic-information display diagnostic-information
View
Any view
Parameter
None
Description
Using the display diagnostic-information command, you can display the operating
information of all the active modules of the system and collect all the information
at a time so as to isolate the problem when failure occurs to the system.
debugging 25
In case failures occur to the system, lots of information needs to be collected for
the convenience of isolating the problems. However, it is rather difficult for you to
collect all the information at a time as there are many display commands involved.
In this case, you can use the display diagnostic-information command to collect
the operating information of all the active modules in the system.
Example
display diagnostic-information
ping Syntax
View
Any view
Parameter
-a X.X.X.X: Sets the source IP address where ICMP ECHO-REQUEST packets can be
sent.
-c count: Times that ICMP ECHO-REQUEST packets are sent. It is ranging from 1 to
4294967295.
-n: Directly uses the host parameter as IP address without domain name
resolution.
-v: Displays the received ICMP packets other than ECHO-RESPONSE packets.
28 CHAPTER 2: SYSTEM MAINTENANCE & MANAGEMENT COMMANDS
Description
Using the ping command, you can check the IP network connection and whether
the host is reachable.
If the above parameters have not been specified, the following default settings will
be used:
The filling begins at 0x01 and increases gradually until 0x09 and then repeats.
The ICMP packets other than ECHO-RESPONSE packets are not displayed.
The ping command can be used to test the network for connection failure or
network line quality problem. The output information includes:
The state of the reply that a destination has made to each ECHO-REQUEST. It will
be “Request time out." if no reply has been received upon the expiration of the
timeout time. Otherwise, the state information will include the bytes of the reply
packet, packet sequence number, TTL, reply time etc.
The last statistic information includes the count of packets sent, the count of reply
packets received, the percentage of the packets that have no reply, and the
minimum, maximum, and average reply time settings.
debugging 29
If the network transmission is slow, you can appropriately prolong the timeout
time waiting for reply.
Example
reboot Syntax
reboot
View
User view
Parameter
None
Description
This command produces the same effect as the power is turned off and then on,
but provides the user with a convience method of rebooting the device from a
remote site.
The operation of this command will render the network unusable for a short
period of time. So it should be used with caution. Before rebooting the Router,
remember to save the configuration file if necessary,.
Example
<3Com> reboot
System will reboot! Continue?[Y/N]
30 CHAPTER 2: SYSTEM MAINTENANCE & MANAGEMENT COMMANDS
tracert Syntax
View
Any view
Parameter
-a: Specifies source IP address of the tracert packets, which is in the format of
X.X.X.X and must be the address of a local interface.
-f: Tests the correctness of the –f switch with first_TTL specifying an initial TTL in
the range of 0 to the maximum TTL.
-m: Tests the correctness of the –m switch with max_TTL specifying a maximum
TTL which can be any TTL larger than the initial TTL.
-p: Tests the correctness of the –p switch with port being an integer specifying the
port of the destination host. There is no need to change this option in normal
circumstances.
-q: Tests the correctness of the –q switch with nqueries specifying the number of
the query packets sent each time. It can be any integer larger than 0.
-w timeout: Tests the correctness of the –w switch with timeout specifying the
timeout time of IP packets. It is in seconds and can be any integer larger than 0.
Description
Using the tracert command, you can test the gateways that a packet sent by the
host will pass by in order to reach the destination for the purpose of testing the
reachability of a network connection and locating the position where faults occur
on the network.
first_TTL is 1;
max_TTL is 30;
port is 33434;
nqueries is 3;
timeout is 5s.
Information Processing Commands 31
The tracert command is executed following this procedure: The system first sends
a packet with TTL as 1 and the first hop returns an ICMP error message indicating
that the packet cannot be transmitted due to TTL timeout. and then the system
transmits the packet again with TTL being set to 2 and the second hop returns TTL
timeout message similarly. This process continues until the packet reaches its
destination. The purpose of such a process is to record the source addresses where
these ICMP TTL timeout messages are sent so as to outline the path along which
the IP packet can reach the destination.
When a network fault is detected by using the ping command, tracert can be used
to locate the failure on the network.
The output information of the command tracert includes IP addresses of all the
GWs along the path to the destination. If some GW times out, “***” will be
output.
Example
<3Com> tracert 18.26.0.115
tracert to allspice.lcs.mit.edu (18.26.0.115), 30 hops max
1 helios.ee.lbl.gov (128.3.112.1) 0 ms 0 ms 0 ms
2 lilac-dmc.Berkeley.EDU (128.32.216.1) 19 ms 19 ms 19 ms
3 lilac-dmc.Berkeley.EDU (128.32.216.1) 39 ms 19 ms 19 ms
4 ccngw-ner-cc.Berkeley.EDU (128.32.136.23) 19 ms 39 ms 39 ms
5 ccn-nerif22.Berkeley.EDU (128.32.168.22) 20 ms 39 ms 39 ms
6 128.32.197.4 (128.32.197.4) 59 ms 119 ms 39 ms
7 131.119.2.5 (131.119.2.5) 59 ms 59 ms 39 ms
8 129.140.70.13 (129.140.70.13) 80 ms 79 ms 99 ms
9 129.140.71.6 (129.140.71.6) 139 ms 139 ms 159 ms
10 129.140.81.7 (129.140.81.7) 199 ms 180 ms 300 ms
11 129.140.72.17 (129.140.72.17) 300 ms 239 ms 239 ms
12 * * *
13 128.121.54.72 (128.121.54.72) 259 ms 499 ms 279 ms
14 * * *
15 * * *
16 * * *
17 * * *
18 ALLSPICE.LCS.MIT.EDU (18.26.0.115) 339 ms 279 ms 279 ms
Information
Processing Commands
View
Any view.
Parameter
channel-number: Channel number, ranging 0 to 9. That is, the system
has 10 channels.
channel-name: Channel name.
32 CHAPTER 2: SYSTEM MAINTENANCE & MANAGEMENT COMMANDS
Description
Using the display channel command, you can display the contents of an
information channel.
This command displays the setting states of all channels when executed without
any parameter.
Example
display info-center
View
Any view
Parameter
None
Description
Using the display info-center command, you can display all the information
recorded in the info-center.
Example
View
Any view
Parameter
begin: Displays the information beginning with the specified characters (string).
Description
Using the display logbuffer command, you can display the information recorded in
the logbuffer.
34 CHAPTER 2: SYSTEM MAINTENANCE & MANAGEMENT COMMANDS
By default, executing display logbuffer without any parameter displays all the
information in the logbuffer.
If the number of information entries in the current logging buffer is smaller than
the specified size-value, logging information of the actual entries will be displayed.
For related commands, see info-center enable, info-center logbuffer, and display
info-center.
Example
View
Any view
Parameter
Description
Using the display trapbuffer command, you can display the information recorded
in the trapbuffer.
By default, executing the command without any parameter displays all the
information in the trapbuffer.
Information Processing Commands 35
If the number of information entries in the current trapbuffer is smaller than the
specified sizeval, the actual number of traps will be displayed.
For related commands, see info-center enable, info-center trapbuffer, and display
info-center.
Example
View
System view
Parameter
channel-number: The channel number, with the value ranging from 0 to 9. That is,
the system has 10 channels.
Description
Using the rename channel command, you can rename the information channel
numbered channel-number as channel-name.
When naming the information channels, please note that no duplicated channel
name is allowed.
36 CHAPTER 2: SYSTEM MAINTENANCE & MANAGEMENT COMMANDS
Example
View
System view
Parameter
Description
Using the info-center console channel command, you can enable outputting
information to the console and set the information output channel. Using the
undo info-center console channel command, you can disable the current settings.
This command will not become valid unless the syslog function has been enabled.
Example
Enable outputting information to the console and set the output channel.
info-center enable
View
System view
Parameter
None
Information Processing Commands 37
Description
Using the info-center enable command, you can enable the info-center. Using the
undo info-center enable command, you can disable the info-center.
Only when the info-center has been enabled will the system output information to
the loghost and the console.
Example
View
System view
Parameter
Description
Using the info-center logbuffer command, you can enable the logbuffer and set
the channel number for logging information output as well as the size of the
logging buffer. Using the undo info-center logbuffer command, you can cancel
the current settings.
Only when the info-center has been enabled can this command become effective.
38 CHAPTER 2: SYSTEM MAINTENANCE & MANAGEMENT COMMANDS
By setting channel number after enabling logbuffer, you can specify information
outbound direction..
For related commands, see info-center enable, display info-center, and display
info-center logbuffer.
Example
Enable the router to send information to the logbuffer and set the logbuffer size
to 50.
View
System view
Parameter
Description
Using the info-center loghost command, you can enable the router to output
information to the loghost. Using the undo info-center loghost command, you can
cancel the current configuration.
If not specified, the information channel for the loghost defaults to channel2 that
is named loghost, the loghost recording tool local-number to local7, and the
language to english.
Information Processing Commands 39
Only when the information center has been enabled can this command become
effective.
By setting the IP address of loghost, you can specify the information outbound
direction. You can set up to 4 loghosts.
Example
View
System view
Parameter
Description
The info-center loghost source command is used to specify the source address for
sending packets to the logging host while the undo inforcenter loghost source
command is used to cancel the current configuration.undo info-center loghost
source is for the canceling of the current configuration.
When a logging message is sent out from a router, the default source address is
the IP address of the interface which has sent the logging message. If the user
wants to change the source address, he can use this command to achieve it. You
can judge which router has sent out the message by setting different source
addresses for different routers, accordingly you can also search among the
received messages.
Example
Set the IP address of Loopback0 as the source address of the logging message
packets.
View
System view
Parameter
Description
Using the info-center monitor channel command, you can enable the router to
output information to the user terminal and set the output channel. Using the
undo info-center monitor channel command, you can cancel the current
configuration.
Only when the info-center has been enabled, can this command become effective.
Example
Enable the router to output information to the user terminal and set the output
channel.
View
System view
Parameter
Description
Using the info-center snmp channel command, you can set the information
channel for snmp. Using the undo info-center snmp channel command, you can
cancel the current configuration.
Example
View
System view
Parameter
level: Sets information level to disable the output of the information at a level
higher than the specified severity.
severity: Information level. As shown in the following table, the info-center divides
information into eight levels by severity or emergency, with a lower level indicating
a more emergent event. emergencies indicates level 0 and debugging indicates
level 7.
42 CHAPTER 2: SYSTEM MAINTENANCE & MANAGEMENT COMMANDS
*: Indicate multiple choices can be selected. At least one choice must be selected
and all the choices can be selected at most.
Description
Using the info-center source command, you can add records to an information
channel. Using the undo info-center source command, you can remove the
records from the information channel.
The state of logging information output is on and the allowed information level is
informational.
The state of trapping information output is on and the allowed information level is
informational.
So far, the system allocates one information channel for each output direction.
They are:
Console 0 console
Loghost 2 loghost
Trapbuffer 3 trapbuffer
Logbuffer 4 logbuffer
snmp 5snmpagent
In addition, each information channel has a default record for which the module
name and number are default and 0xffff0000. But for different channels, the
record may have different default settings for logging information, trapping
information, and debugging information. If a module has no explicit configuration
record in the channel, the default configuration record will be used.
Information Processing Commands 43
Example
Enable the output of log information of the IP module in the snmp channel and
the allowed highest level of the output information is emergence.
info-center Syntax
timestamp
info-center timestamp { trap | debugging | log } { boot | date | none }
View
System view
Parameter
boot: Post booting time that the system experiences. It is in the format of
xxxxxx.yyyyyy, with xxxxxx being the 32 high bits and yyyyyy the 32 low bits of the
passed milliseconds.
Description
Using the info-center timestamp command, you can set the time stamp format for
the output debugging/trapping/logging information. Using the undo info-center
timestamp command, you can cancel the current configuration.
Example
View
System view
Parameter
Description
Using the info-center trapbuffer command, you can enable the trapbuffer and set
the output channel number and trapbuffer size. Using the undo info-center
trapbuffer command, you can cancel the current configuration.
Only when the info-center has been enabled can this command become effective.
By setting a trapbuffer size, you can make the router output information to the
trapbuffer.
For related commands, see info-center enable, display info-center, and display
info-center trapbuffer.
Example
Enable the router to send information to the trapbuffer, given the trapbuffer size is
30.
reset logbuffer
View
User view
Parameter
None
Description
Using the reset logbuffer command, you can clear information in the logbuffer.
Information Processing Commands 45
Example
<3Com> reset logbuffer
reset trapbuffer
View
System view
Parameter
None
Description
Using the reset trapbuffer command, you can clear information in the trapbuffer.
Example
<3Com> reset trapbuffer
service Syntax
modem-callback
service modem-callback
View
System view
Parameter
None
Description
Using the service modem-callback command, you can enable user callback. Using
the undo service modem-callback command, you can disable user callback.
Example
terminal debugging
View
User view
Parameter
None
Description
Using the terminal debugging command, you can enable the terminal debugging
display function. Using the undo terminal debugging command, you can disable
the function.
Example
terminal logging
View
User view
Parameter
None
Description
Using the terminal logging command, you can enable the log display function of
terminals. Using the undo terminal logging command, you can disable log display
function of terminals.
Example
terminal monitor
Information Processing Commands 47
View
User view
Parameter
None
Description
Using the terminal monitor command, you can enable terminals to display the
debugging /logging/trapping information sent by the info-center. Using the undo
terminal monitor command, you can disable terminals to display the
debugging/logging/trapping information.
By default, the display function of console users is enabled but the display function
of terminal users is disabled.
The command only affects the current terminal that inputs it. The undo terminal
monitor command is equivalent to the execution of undo terminal debugging,
undo terminal logging, and undo terminal trapping commands, that is, all the
debugging/logging/trapping information will not be displayed at the current
terminal. In the event that terminal monitor has been enabled, the terminal
debugging/undo terminal debugging, terminal logging/undo terminal logging,
and terminal trapping/undo terminal trapping commands can be used to
enable/disable the debugging/logging/trapping information.
Example
terminal trapping
View
User view
Parameter
None
Description
Using the terminal trapping command, you can enable the function of trap
information display at terminals. Using the undo terminal trapping command, you
can disable the function of trap information display at terminals.
Example
System Operating
Management
Commands - AR46
Series
View
System view
Parameter
Description
Using the boot bootldr command, you can specify the system booting file.
Example
Specify the file ibox.bin stored in the flash as the default system booting file.
View
Any view
Parameter
Description
Using the display alarm urgent command, you can display the stored alarms in a
specified way.
Executing the command defined without any parameter will display all the alarms.
System Operating Management Commands - AR46 Series 49
Example
display bootvar
View
Any view
Parameter
None
Description
Using the display bootvar command, you can display file name of the boot
software package stored in the flash on RPU.
Example
display environment
View
Any view
Parameter
None
Description
Using the display environment command, you can display the current values and
the threshold values 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
View
Any view
Parameter
slot-number: Slot number.
Description
Using the display device command, you can display the system hardware
configuration information, including the in-position states of MPU, NPU, interface
card, power module, and fan module, the operating state of interface card, power
module, and fan module, as well as the offline information of MPU and NPU.
Executing the command defined without parameters will display the essential
information of all the devices in position. Executing the command defined with
the parameter slot-number will display only the details on the defined slot,
including reset times and history records of the reset causes.
Example
View
Any view
Parameter
None
System Operating Management Commands - AR46 Series 51
Description
Using the display schedule reboot command, you can check the configuration of
related parameters of the router schedule reboot terminal service.
For the related command, see reboot, schedule reboot at, schedule reboot delay,
undo schedule reboot.
Example
View
User view
Parameter
Description
Using the remove slot command, you can run pre-processing before removing an
interface card. You can also cancel a misoperation with the undo remove slot
command if you change your mind to remove the card after executing the remove
slot command. The undo remove slot command is unnecessary when you remove
a card, but insert it immediately.
For the related command, see reboot, schedule reboot at, schedule reboot delay,
undo schedule reboot.
Example
<3Com>remove slot 3
View
User view
52 CHAPTER 2: SYSTEM MAINTENANCE & MANAGEMENT COMMANDS
Parameter
None
Description
Using the reset alarm urgent command, you can clear all the stored alarms.
Example
View
User view
Parameter
Description
Using the reset slot command, you can reset the device in a specified slot.
Example
View
User view
Parameter
hh:mm: Reboot time of the router, in the format of "hour: minute" The hh ranges
from 0 to 23, and the mm ranges from 0 to 59.
Description
Using the schedule reboot at command, you can enable the timing reboot
function of the router and set the specific reboot time and date.
If no specified date parameters are configured, two cases are involved: If the
configured time is after the current time, the router will be restarted at the time
point of that day; if the configured time is before the current time, the router will
be restarted at the time point of the next day.
It should be noted that the configured date should not exceed the current date
more than 30 days. In addition, after the command is configured, the system will
prompt you to input confirmation information. Only after the "Y" or the "y" is
entered can the configuration be valid. If there is related configuration before, it
will be covered directly.
Moreover, after the schedule reboot at command is configured and the system
time is adjusted by the clock command, the former configured schedule reboot at
parameter will go invalid.
For the related command, see reboot, schedule reboot delay, undo schedule
reboot, display schedule reboot.
Example
Set the router to be restarted at 22:00 that night (the current time is 15:50).
View
User view
Parameter
hhh:mm: Waiting time for rebooting a router, in the format of "hour: minute" The
hhh ranges from 0 to 720, and the mm ranges from 0 to 59.
mmm: Waiting delay for rebooting a router, in the format of "absolute minutes" .
Ranging from 0 to 43200,
54 CHAPTER 2: SYSTEM MAINTENANCE & MANAGEMENT COMMANDS
Description
Using the schedule reboot delay command, you can enable the timing reboot
router function and set the waiting time.
Two formats can be used to set the waiting delay of timing reboot router, namely
the format of "hour: minute" and the format of "absolute minutes". But the total
minutes should be no more than 30×24×60 minutes, or 30 days.
After this command is configured, the system will prompt you to input
confirmation information. Only after the "Y" or the "y" is entered can the
configuration be valid. If there is related configuration before, it will be covered
directly.
Moreover, after the schedule reboot at command is configured, and the system
time is adjusted by the clock command, the original schedule reboot at parameter
will become invalid.
For the related command, see reboot, schedule reboot at, undo schedule reboot,
display schedule reboot.
Example
Configure the router to be restarted after 88 minutes (the current time is 21:32).
upgrade Syntax
View
System view
Parameter
Description
Using the upgrade command, you can upgrade the BootRom program, pico-code
or the logic.
File Management Commands 55
Example
Upgrade the pico-code on line, given the file name of the upgrade software
package is filename.
View
User view
Parameter
None
Description
Using the undo schedule reboot command, you can cancel the parameter
configuration of the schedule reboot terminal service.
For the related command, see reboot, schedule reboot at, schedule reboot delay,
display schedule reboot.
Example
File Management
Commands
cd directory
View
User view
Parameter
Description
Using the cd command, you can modify the current operating path of the router
to the specified directory.
By default, the flash memory is the operating path set when the router starts.
56 CHAPTER 2: SYSTEM MAINTENANCE & MANAGEMENT COMMANDS
Example
<3Com> cd test
<3Com> pwd
flash:/test
clear Syntax
clear filename
View
User view
Parameter
Description
Using the clear command, you can delete all files from the recycle bin.
The wildcard “*” is available here. Using the delete command, you can only move
the target files into the recycle bin. If you want to remove them from the recycle
bin, you must use the clear command.
Example
copy Syntax
View
User view
Parameter
filename_source: Name of the source file.
filename_dest: Name of the destination file or directory.
Description
If the name of the destination file is the same with an existing directory name, the
target file will be copied to the directory. If the name of the destination file is the
same with an existing file name, the user will be prompted whether the existing
file should be overwritten.
File Management Commands 57
Example
<3Com>pwd
Slave#flash:
<3Com> dir
Directory of flash:/
-rwxrwxrwx 1 noone nogroup 4316742 Oct 10 2002 10:10:10
system
drwxrwxrwx 1 noone nogroup - Jan 01 2001 10:47:14
buckup
-rwxrwxrwx 1 noone nogroup 16 Jan 02 2001 08:53:52
private-data.t
-rwxrwxrwx 1 noone nogroup 625 Jan 02 2001 08:54:01
vrpcfg.txt
-rwxrwxrwx 1 noone nogroup 375 Jan 02 2001 08:53:13
config
-rwxrwxrwx 1 noone nogroup 524288 Jan 02 2001 11:47:39
bootromfull
delete Syntax
View
User view
Parameter
/unreserved: Deletes the specified file unreservedly, and the deleted file can never
be restored.
Description
Using the delete command, you can move the specified file, which can be restored
with the undelete command, to the recycle bin. If you want to delete it from the
recycle bin, you can use the reset recycle-bin filename command.
If you delete two files in different directories but with the same filename, only the
last one will be stored in the recycle bin.
58 CHAPTER 2: SYSTEM MAINTENANCE & MANAGEMENT COMMANDS
If the unreserved parameter is seleted in using the delete command, the target file
cannot be restored.
The dir command does not display the information of deleted files. However, by
using the dir /all command, the information of all files under the directory,
including deleted files, will be displayed.
Example
dir Syntax
View
User view
Parameter
/h: Displays the information about the private files. This parameter is unavailable if
there is no storage device on the router.
Description
Using the dir command, you can display the information about the specified file or
directory in the router storage device.
By default, this command displays the file information under the current directory.
The dir /all command can be used to display the information about all the files,
including the deleted files. The names of the deleted files are denoted with "[]",
for instance, [temp.cfg]. Such deleted files can be restored via the undelete
command. The reset recycle-bin command can be used to delete the file from the
recycle bin permanently.
The dir /h command can be used to display the information about the private file
under the current path. The attribute of the private file is represented by “---h”.
Example
execute Syntax
execute filename
View
System view
Parameter
filename: Name of the batch file, ranging from 1 to 256, with a suffix of “.bat”.
Description
Using the execute command, you can execute the specified batch file.
The batch command executes the command lines in the batch file one by one.
There should be no invisible character in the batch file. If invisible characters are
found, the batch command will quit the current execution without back off
operation. The batch command does not guarantee the execution of each
command, nor does it perform hot backup itself. The forms and contents of the
commands are not restricted in the batch file.
Example
View
System view
Parameter
quiet: No prompt on the condition that data loss or destruction may happen due
to user operation (e.g., deleting a file.).
60 CHAPTER 2: SYSTEM MAINTENANCE & MANAGEMENT COMMANDS
Description
Using the file prompt command, you can modify the prompt mode of file
operation of the router.
When the prompting mode of file operation is set to quiet, for the possible data
loss due to user operation (e.g., deleting a file), the system will have no prompt.
Example
format Syntax
format device-name
View
User view
Parameter
Description
Using the format command, you can format the storage device.
Formatting will result in loss of all files on a specified storage device and these files
cannot be restored.
Example
Format flash.
mkdir Syntax
mkdir directory
View
User view
Parameter
Description
Using the mkdir command, you can create a directory under the specified directory
in the specified storage device.
The name of the directory to be created cannot be the same with the names of
other directories or files under the specified directory.
Example
<3Com> mkdir dd
Created dir flash:/dd.
more Syntax
more filename
View
User view
Parameter
Description
Using the more command, you can display content of a specified file.
By default, the file system displays the file in the form of text, that is, the contents
of the file.
Example
move Syntax
View
User view
62 CHAPTER 2: SYSTEM MAINTENANCE & MANAGEMENT COMMANDS
Parameter
Description
If the name of the target file is the same with the name of an existing directory,
the target file will be moved into the directory, with the same file name. If the
name of the destination file is the same with an existing file name, the user will be
prompted whether the existing file should be overwritten.
Example
<3Com> dir
Directory of *
0 -rw- 2145123 Jul 12 2001 12:28:08 ne80.bin
1 -rw- 595 Jul 12 2001 10:47:50 vrpcfg.txt
2 drw- 0 Jul 12 2001 19:41:20 test
6477 KBytes total (2144 KBytes free)
<3Com> dir flash:/test/
Directory of flash:/test/
0 drw- - Jul 12 2001 20:23:37 subdir
1 -rw- 595 Jul 12 2001 20:13:19 vrpcfg.txt
2 -rw- 50 Jul 12 2001 20:08:32 sample.txt
6477 KBytes total (2144 KBytes free)
# Move the file flash:/test/sample.txt to flash:/sample.txt.
<3Com> move flash:/test/sample.txt flash:/sample.txt
Move flash:/test/sample.txt to flash:/sample.txt ?[Y/N]:y
% Moveded file flash:/test/sample.txt flash:/sample.txt
<3Com> dir
Directory of *
0 -rw- 2145123 Jul 12 2001 12:28:08 ne80.bin
1 -rw- 595 Jul 12 2001 10:47:50 vrpcfg.txt
2 drw- 0 Jul 12 2001 19:41:20 test
3 -rw- 50 Jul 12 2001 20:26:48 sample.txt
6477 KBytes total (2144 KBytes free)
<3Com> dir flash:/test/
Directory of flash:/test/
0 drw- - Jul 12 2001 20:23:37 subdir
1 -rw- 595 Jul 12 2001 20:13:19 vrpcfg.txt
6477 KBytes total (2144 KBytes free)
pwd Syntax
pwd
View
User view
Parameter
None
File Management Commands 63
Description
Using the pwd command, you can display the current path.
If the current path has not been set, the operation will fail.
Example
<3Com> pwd
flash:/test
rename Syntax
View
User view
Parameter
Description
If the name of the destination file is the same with the name of an existing
directory, the execution will fail. If the name of the destination file is the same with
an existing file, the operation will fail.
Example
<3Com> dir
Directory of *
0 -rw- 2145123 Jul 12 2001 12:28:08 ne.bin
1 -rw- 595 Jul 12 2001 10:47:50 vrpcfg.txt
2 drw- - Jul 12 2001 19:41:20 test
3 -rw- 50 Jul 12 2001 20:26:48 sample.txt
6477 KBytes total (2144 KBytes free)
View
User view
Parameter
Description
Using the reset recycle-bin command, you can delete a file from the recycle bin
permanently.
This command supports "*" wildcard. The delete command only deletes a file to
the recycle bin directory. To delete a file permanently, use the reset recycle-bin
command.
Example
rmdir Syntax
rmdir directory
View
User view
Parameter
Description
Example
<3Com>dir
Directory of *
0 drw- - Jul 12 2001 20:23:37 subdir
1 -rw- 595 Jul 12 2001 20:13:19 vrpcfg.txt
6477 KBytes total (2144 KBytes free)
# Display how to delete the directory subdir.
<3Com> rmdir subdir
Rmdir subdir?[Y/N]:y
% Removed directory subdir
FTP Server Configuration Commands 65
<3Com> dir
Directory of *
0 -rw- 595 Jul 12 2001 20:13:19 vrpcfg.txt
6477 KBytes total (5944 KBytes free)
undelete Syntax
undelete filename
View
User view
Parameter
Description
If the name of the file to be restored is the same with the name of an existing
directory, the execution will fail. If the name of this file is the same with that of an
existing file, the user will be prompted whether the existing file should be
overwritten.
Example
<3Com> dir /all
Directory of *
0 -rw- 595 Jul 12 2001 20:13:19 vrpcfg.txt
1 -rw- 50 Jul 12 2001 20:09:23 [sample.bak]
6477 KBytes total (2144 KBytes free)
# Restore the deleted file sample.bak.
<3Com> undelete sample.bak
Undelete flash:/test/sample.bak ?[Y/N]:y
% Undeleted file flash:/test/sample.bak
<3Com> dir /all
Directory of *
0 -rw- 50 Jul 12 2001 20:34:19 sample.bak
1 -rw- 595 Jul 12 2001 20:13:19 vrpcfg.txt
6477 KBytes total (2144 KBytes free)
FTP Server
Configuration
Commands
display ftp-server
View
Any view
66 CHAPTER 2: SYSTEM MAINTENANCE & MANAGEMENT COMMANDS
Parameter
None
Description
Using the display ftp-server command, you can display the parameters of the
current FTP server.
After the FTP parameters are configured, this command can be used to display the
configuration results.
Example
The information shown above indicates that the FTP server has started and can
support up to 5 log-on users simultaneously and now there are two log-on users
and the timeout of an FTP user is 30 minutes.
display ftp-user
View
Any view
Parameter
None
Description
Using the display ftp-user command, you can display the parameters of the
current FTP user.
Example
The information shown above indicates that a connection between an FTP user
named 3Com and the FTP server has been established. the IP address of the
remote host is 10.110.3.5 and the remote port number is 1074. the authorization
directory is flash:/3Com and so far the user has not sent any service request to the
FTP server for 2 minutes.
FTP Server Configuration Commands 67
View
System view
Parameter
None
Description
Using the ftp server enable command, you can enable the FTP server and allow the
login of FTP users. Using the undo ftp server command, you can disable the FTP
server and the login of FTP users.
Example
View
System view
Parameter
Description
Using the ftp timeout command, you can set the connection timeout. Using the
undo ftp timeout command, you can restore the default connection timeout.
Once the user logs on the FTP server, he establishes a connection with the FTP
server. If an abnormal disconnection occurs or the user abnormally disrupts the
connection, FTP server is not notified and thus the connection is still on. To avoid
such a problem, the connection timeout should be set. If no command interaction
is conducted during this period, FTP will regard the connection failed and disrupt
the connection.
68 CHAPTER 2: SYSTEM MAINTENANCE & MANAGEMENT COMMANDS
Example
View
System view
Parameter
Description
Using the ftp update command, you can set the upgrading mode. Using the undo
ftp update command, you can restore the default upgrading mode.
The FTP server updates the data of files in its flash memory in two modes: normal
and fast, when receiving files transfered by the user using the FTP command PUT.
Each of two modes is demonstrated respectively as follows:
Fast mode: The FTP server writes the data to the flash memory after the
completion of the file transfer. This can safeguard that the files in the flash
memory of the Router will not be damaged even on abnormal occasions such as
power failure.
Normal mode: The FTP server writes the data to the flash memory during the file
transfer. This means that the occurence of some abnormal conditions such as
power failure might cause the damage of the files in the flash memory of the
Router. But the normal updating mode consumes fewer memmory.
Example
ascii Syntax
ascii
View
Parameter
None
Description
Using the ascii command, you can set the transmission data type to ASCII.
Example
[ftp] ascii
200 Type set to A.
binary Syntax
binary
View
Parameter
None
Description
Using the binary command, you can set file type to support binary files
transmission.
Example
[ftp] binary
200 Type set to B.
bye Syntax
bye
70 CHAPTER 2: SYSTEM MAINTENANCE & MANAGEMENT COMMANDS
View
Parameter
None
Description
Using the bye command, you can disconnect with remote FTP server and exit to
user view.
Example
Terminate the connection with remote FTP server and exit to user view.
[ftp] bye
<3Com>
cd Syntax
cd pathname
View
Parameter
Description
Using the cd command, you can change the operating path on remote FTP server.
Example
[ftp] cd d:/temp
cdup Syntax
cdup
View
Parameter
None
FTP client module commands 71
Description
Using the cdup command, you can change the operating path to the upper
directory.
This command is used to exit current directory and return to an upper directory.
Example
[ftp] cdup
close Syntax
close
View
Parameter
None
Description
Using the close command, you can terminate the connection with remote FTP
server, but remain in FTP client view.
This command will terminate both control connection and data connection with
the remote FTP server simultaneously.
Example
Terminate the connection with the remote FTP server and still keep in FTP client
view.
[ftp] close
[ftp]
debugging Syntax
debugging
undo debugging
View
Parameter
None
72 CHAPTER 2: SYSTEM MAINTENANCE & MANAGEMENT COMMANDS
Description
Using the debugging command, you can enable the debugging. Using the undo
debugging command, you can disable the debugging.
Example
[ftp] debugging
delete Syntax
delete remotefile
View
Parameter
Description
Example
Delete temp.c.
dir Syntax
View
Parameter
Description
This command displays all the files under the directory or the file queried.
FTP client module commands 73
Example
disconnect Syntax
disconnect
View
Parameter
None
Description
Using the disconnect command, you can terminate the connection with the
remote FTP server and still keep in FTP client view.
This command will terminate both control connection and data connection with
the remote FTP server.
Example
Terminate the connection with the remote FTP server and still keep in FTP client
view.
[ftp] disconnect
[ftp]
ftp Syntax
View
User view
Parameter
Description
Using the ftp command, you can establish control connection with the remote FTP
server and enter FTP client view.
Example
get Syntax
View
Parameter
Description
Using the get command, you can download remote files and save them locally.
By default, if the local file name is not specified, this command will consider that it
is the same with that of the file on the remote FTP server.
Example
lcd Syntax
lcd
View
Parameter
None
Description
Using the lcd command, you can get the local operating path of FTP client.
Example
[ftp] lcd
% Local directory now flash:
ls Syntax
ls [ remotefile ] [ localfile ]
FTP client module commands 75
View
Parameter
Description
Example
Query temp.c.
[ftp] ls temp.c
mkdir Syntax
mkdir pathname
View
Parameter
Description
Using the mkdir command, you can establish a directory at the remote FTP server.
Example
open Syntax
View
Parameter
Description
Using the open command, you can establish control connection with the remote
FTP server.
Example
Establish FTP connection with the FTP server of the host 10.110.3.1.
passive Syntax
passive
undo passive
View
Parameter
None
Description
Using the passive command, you can set data transmission mode to passive mode.
Using the undo passive command, you can set data transmission mode to active
mode.
Example
[ftp] passive
put Syntax
View
Parameter
Description
Using the put command, you can upload a local file to the remote FTP server.
If no file name on the remote server is specified, this command will consider that it
is the same with that of the local file.
Example
Upload local file temp.c to the remote FTP server and save it as temp1.c.
pwd Syntax
pwd
View
Parameter
None
Description
Using the pwd command, you can display the working directory on the remote FTP
server.
Example
[ftp] pwd
"d:/temp" is current directory.
quit Syntax
quit
View
Parameter
None
Description
Using the quit command, you can terminate the connection with the remote FTP
server and exit to user view.
78 CHAPTER 2: SYSTEM MAINTENANCE & MANAGEMENT COMMANDS
Example
Terminate the connection with the remote FTP server and exit to user view.
[ftp] quit
<3Com>
remotehelp Syntax
remotehelp [ protocol-command ]
View
Parameter
Description
Using the remotehelp command, you can display the help of FTP command.
Example
rmdir Syntax
rmdir pathname
View
Parameter
Description
Using the rmdir command, you can delete a specified directory on FTP server.
Example
user Syntax
View
Parameter
Description
Example
Log on FTP server with the user name tom and the password bjhw.
verbose Syntax
verbose
undo verbose
View
Parameter
None
Description
Using the verbose command, you can enable the verbose function to view
information from FTP server. Using the undo verbose command, you can disable
the verbose function.
By default, it is disabled.
Example
[ftp] verbose
TFTP Configuration
Commands
tftp Syntax
View
User view
Parameter
Description
Using the tftp command, you can upload files to a TFTP server or downloads files
to the local.
Example
Download the file vrpcfg.txt in the root directory of the TFTP server at 1.1.254.2
to the local hardware and save it as vrpcfg.bak.
Upload the file vrpcfg.txt stored in the root directory of the flash onto the default
directory on the TFTP server at 1.1.254.2 and save the file on the server as
vrpcfg.bak.
View
System view
Parameter
Description
Using the tftp-server acl command, you can set the number of ACL permitting the
access to a TFTP server.
Example
Set the number of ACL permitting the access to the TFTP Server to 1.
Configuration Files
Management
Commands
display Syntax
current-configuration
display current-configuration [ controller | interface interface-type [
interface-number ] | configuration [ rip | ospf | bgp | post-config | system |
user-interface ] ] [ | [begin | include | exclude ] string ]
View
Any view
Parameter
begin: Displays the configurations beginning with the specified characters (string).
Description
Using the display current-configuration command, you can display the current
configurations of router.
The current configuration parameters that take the default values will not be
displayed.
After finishing a set of configurations, the user can execute the display
current-configuration command to view the currently effective parameters for the
purpose of verifying the correctness of the configurations. Some parameters that
the user has configured will not be displayed if their functions have not become
valid yet. For example, the user can configure PPP parameters on an interface
encapsulated with X.25 at the link layer, but he will not be able to see the PPP
configuration information on the interface after executing the display
current-configuration command.
Example
sysname R1760
tcp window 8
#
undo multicast igmp-all-enable
#
interface Aux0
link-protocol ppp
#
interface Ethernet0/0/0
#
interface Serial0/0/0
link-protocol ppp
#
interface NULL0
#
bgp 15535
undo synchronization
#
#
ospf 2 router-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
Configuration Files Management Commands 83
#
return
display Syntax
saved-configuration
display saved-configuration
View
Any view
Parameter
None
Description
Using the display saved-configuration command, you can display the saved router
configurations, that is, the configurations that the router will apply the next time it
is booted.
Example
display this
View
Any view
Parameter
None
Description
Using the display this command, you can display the current configurations under
this view.
Example
reset Syntax
saved-configuration
reset saved-configuration
View
User view
Parameter
None
Description
Using the reset saved-configuration command, you can erase the saved router
configuration.
You are recommended to use this command only when necessary and under the
guidance of the support technician.
Example
save Syntax
save[file-name ]
View
User view
Parameter
Description
Using the save command, you can save the current configuration information into
the storage device.
After you finish a set of configurations and make their functions valid, you should
save the current configuration file into the storage device.
Example
<3Com> save
upgrade Syntax
View
User view
Parameter
Description
Using the upgrade command, you can upgrade the bootrom program.
86 CHAPTER 2: SYSTEM MAINTENANCE & MANAGEMENT COMMANDS
3Com Routers support online BootROM upgrade. You can upgrade the BootROM
online by extracting the BootROM program from the upgrade software package
and writing it into the BootROM.
When executing this command, you should make sure that the upgrade software
package (named bootromfull) has existed in the root directory of the flash.
Example
Upgrade the BootROM program of R1760 Router, given that the upgrade
software package has been stored in the root directory of the flash and the file
name is “bootromfull”.
User Interface
Configuration
Commands
acl Syntax
View
Parameter
Description
Using the acl command, you can reference an ACL to restrict the rights of VTY
(Telnet or SSH) and other types of user interfaces in placing incoming and
outgoing calls. Using the undo acl command, you can remove the current settings.
Example
authentication-mode Syntax
authentication-mode none
View
Parameter
Description
Using the authentication-mode command, you can set the mode that a user
interface uses to authenticate the login users. Using the authentication-mode
none command, you can set the authentication mode to none, that is, the login
users need not undergo authentication before they access the user interface.
By default, the authentication mode is set to password for the VTY user interface
and none for other user interfaces.
Example
auto-execute Syntax
command
auto-execute command command
View
Parameter
Description
You should be aware of the following constraints before using the auto-execute
command command:
When a user logs on, some command configured using auto-execute command
on the terminal will automatically be executed. The user connection will be
disconnected automatically once the execution of the command is finished.
You should use this command with cautions because it will probably make you
unable to make the regular system configurations via this user interface.
Example
Execute the telnet 10.110.100.1 command automatically after the user logs on
from the AUX interface.
databits Syntax
databits { 5 | 6 | 7 | 8 }
undo databits
View
Parameter
Description
Using the databits command, you can set user interface data bit. Using the undo
databits command, you can restore the default data bit setting.
The configuration can take effect only when the serial interface works in the
asynchronous flow mode.
Example
[3Com-ui-aux0] databits 5
View
User view
Parameter
Description
Using the debugging vty command, you can enable the debugging of the VTY.
Using the undo debugging vty command you can disable the debugging of the
VTY protocol.
Example
display Syntax
user-interface
display user-interface [ type-name ] [ number ]
90 CHAPTER 2: SYSTEM MAINTENANCE & MANAGEMENT COMMANDS
View
Any view
Parameter
Description
Using the display user-interface command, you can display the details of user
interface.
Example
View
Any view
Parameter
Description
Using the display users command, you can display the login information of the
users on each user interface.
Example
* 0 CON 000:00:00
* 1 VTY 000:00:0910.110.101.39dd
Where,
UI: The first number and the second number are respectively the absolute number
and relative number of user interface.
Username: Display the name of the user using this user-interface, namely the
username that the user uses for accessing. As AAA authentication is unavailable
yet, this item is null so far.
Delay: In minutes, it is the interval since the last input made by the user.
flow-control Syntax
undo flow-control
View
Parameter
Description
Using the flow-control command, you can configure flow control mode. Using the
undo flow-control command, you can restore the default flow control mode.
The configuration can become effective only when the involved serial interface
works in the asynchronous flow mode.
When system is outputting, pressing <Ctrl+s> will stop the screen output, and
<Ctrl+q> will resume the screen output.
Example
View
User view
Parameter
Description
Using the free user-interface number command, you can clear the user interface
with the number defined by the parameter number. Using the free user-interface
type-name number command, you can clear the user interface with the number
defined by number in the user interfaces of the type defined by type-name.
Example
Clear user-interface 0.
history-command Syntax
max-size
history-command max-size size-value
View
Parameter
size-value: History buffer size, which is in the range of 0 to 256 and defaults to 10,
that is, up to ten history commands can be stored.
Description
Using the history-command max-size command, you can set the history command
buffer size. Using the undo history-command max-size command, you can restore
the default history command buffer size.
Example
idle-timeout Syntax
undo idle-timeout
View
Parameter
Description
Using the idle-timeout command, you can set time interval for timed
disconnection. Using the undo idle-timeout command, you can restore the default
time value of timed disconnection.
Setting the time value to 0 will disable the timed disconnection, in which case a
connection will not be cut off upon the expiration of preset time interval..
Example
Set the time interval for timed disconnection to one minute and 30 seconds.
[3Com-ui-console0] idle-timeout 1 30
modem Syntax
View
Parameter
Description
Using the modem command, you can set the incoming/outgoing call attributes
with Modem. Using the undo modem command, you can disable incoming and
outgoing calls.
When executed without any parameters, the modem command enables both
incoming and outgoing calls.
When executed without any parameters, the undo modem command disables
both incoming and outgoing calls.
This command is only available for the AUX interface and other asynchronous
interface, but not for Console port.
Example
[3Com-ui-tty] modem
modem auto-answer
View
Parameter
None
Description
Using the modem auto-answer command, you can set the answering mode to
auto-answer. Using the undo modem auto-answer command, you can set the
answering mode to manual answer.
This command is valid for the AUX interface and other asynchronous interfaces
but not for the console interface.
When taking the modem dial-up connection approach, the user should first set
the modem parameters on the involved user interface.
Example
View
Parameter
Description
Using the modem timer answer command, you can set the timeout time waiting
for the carrier signal after the off-hook action for setting up an inbound
connection. Using the undo modem timer answer command, you can restore the
default waiting timeout time.
This command is valid for the AUX interface and other asynchronous interfaces
but not for the console interface.
Example
None
parity Syntax
undo parity
View
Parameter
Description
Using the parity command, you can set the check bit of a user interface. Using the
undo parity command, you can restore the check mode of user interface to none.
The configuration can become effective only when the involved serial interface
works in the asynchronous flow mode.
96 CHAPTER 2: SYSTEM MAINTENANCE & MANAGEMENT COMMANDS
Example
redirect Syntax
redirect
undo redirect
View
Parameter
None
Description
Using the redirect command, you can set the redirection function, which is only
valid for the AUX and TTY user interfaces, on an asynchronous port. Using the
undo redirect command, you can disable the rediction function on the involved
port.
This command is only valid for the AUX and the TTY user interfaces. For example,
executing the redirect command on a TTY user interface will enable the redirection
function of the user interface.
Example
[3Com-ui-tty7] redirect
screen-length Syntax
screen-length screen-length
undo screen-length
View
Parameter
Description
Using the screen-length command, you can set the number of rows displayed in
one screen at the terminal. Using the undo screen-length command, you can
restore the number of rows in a terminal screen to 24.
Example
Set the number of rows in one screen of the terminal to 30.
[3Com-ui-console0] screen-length 30
send Syntax
View
User view
Parameter
all: Sends messages to all user interfaces.
Description
Using the send command, you can transfer messages between user interfaces.
Using the send all command, you can send messages to all user-interfaces.
Using the send number command, you can send messages to the user interface
defined by specifying its number.
Using the send type-name number command, you can send messages to the user
interface of type-name with specified number.
Example
View
Parameter
Description
Using the set authentication password command, you can set a local
authentication password. Using the undo set authentication password command,
you can 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 during the authentication.
When configuring a password, you must specify its format to simple or cipher. If
the former has been specified, the password saved in the configuration file will be
in plain text. If the latter is specified, however, the password will be displayed in
ciphertext regardless of whether the password you enter is a simple password of 1
to 16 bytes or an encrypted password of 24 bytes.
Example
Set the local authentication password for the user interfaces vtys 0 to 4 to
"3Com".
shell Syntax
shell
undo shell
User Interface Configuration Commands 99
View
Parameter
None
Description
Using the shell command, you can enable terminal services on a user interface.
Using the undo shell command, you can remove the current setting.
By default, the terminal services are enabled on all the user interfaces.
Some constraints are put on the undo shell command. First, CON does not
support this command. Second, if there is only AUX but no CON on a router (AUX
and CON shares the same port), the AUX will not support this command as well.
These constraints do not apply to other types of user interfaces.
Example
speed Syntax
speed speed-value
undo speed
View
Parameter
Description
Using the speed command, you can set the transmission rate of a user interface.
Using the undo speed command, you can restore the default transmission rate of
the user interface.
Only when the serial interface works in asynchronous flow mode will the
configuration be effective.
100 CHAPTER 2: SYSTEM MAINTENANCE & MANAGEMENT COMMANDS
■ 300bps
■ 600bps
■ 1200bps
■ 4800bps
■ 9600bps
■ 19200bps
■ 38400bps
■ 57600bps
■ 115200bps
Example
stopbits Syntax
stopbits { 1.5 | 1 | 2 }
undo stopbits
View
Parameter
■ 1.5: Sets the stop bit to 1.5.
■ 1: Sets the stop bit to 1.
■ 2: Sets the stop bit to 2.
Description
Using the stopbits command, you can set the stop bit of a user interface. Using
the undo stopbits command, you can restore the default stop bit of the user
interface.
Only when the serial interface works in asynchronous flow mode will the
configuration be effective.
Example
Syntax
View
Parameter
Description
Using the user privilege command, you can configure the command accessing
level commensurate with the users accessing the system from the current user
interface. Using the undo user privilege command, you can disable the current
setting.
By default, the default command accessing levels of CON user interface and other
user interfaces have been set to 3 and 0.
If the command accessing level assigned to a user interface conflicts with the
precedence level assigned to the used username in the granted rights, the rights
commensurate with the username will be preferred. For example, the precedence
of the user 007 allows 007 to access level-3 commands and the privilege level
assigned to the user interface VTY 0 only allows the login users to access level-2
commands. If 007 accesses the system from VTY0 in this case, it will be able to
access the commands of level-3 and lower levels.
Example
Assign the users accessing the system from the user interface with the privilege
allowing them to access level-2 commands.
After the user accesses the router from vty 0 via Telnet, the terminal will display:
<3Com>
user-interface Syntax
View
System view
102 CHAPTER 2: SYSTEM MAINTENANCE & MANAGEMENT COMMANDS
Parameter
Description
Using the user-interface command, you can enter the single-user interface view or
multi-user interface view.
Example
The following example configures one console user interface and three VTY user
interfaces, which may be right for the case where the router does not provide the
AUX interface.
[3Com] user-interface 0 3
[3Com-ui0-3]
debugging Syntax
ntp-service
debugging ntp-service { access | adjustment | authentication | event | filter | packet
| parameter | refclock | selection | synchronization | validity | all }
View
User view
debugging ntp-service 103
Parameter
Description
Using the debugging ntp-service command, you can enable debugging of all types
of NTP service information. Using the undo debugging ntp-service command, you
can disable NTP service debugging.
Example
View
Any view
Parameter
Description
Using the display ntp-service sessions command, you can display the status of all
the sessions maintained by the local device ntp.
104 CHAPTER 2: SYSTEM MAINTENANCE & MANAGEMENT COMMANDS
By default, the status of all the sessions maintained by the local device NTP is
displayed.
The command without parameter verbose will display the brief information of all
the sessions maintained by the local device NTP.
The command with parameter verbose will display the detailed information of all
the sessions maintained by the local device NTP.
Example
Display the brief information of all the sessions maintained by the local device NTP
View
Any view
Parameter
None
Description
Using the display ntp-service status command, you can display the state
information of the NTP service.
Example
<3Com> display ntp-service status
clock status: unsynchronized
clock stratum: 16
reference clock ID: none
nominal frequency: 100.0000 Hz
actual frequency: 100.0000 Hz
clock precision: 2^18
clock offset: 0.0000 ms
root delay: 0.00 ms
root dispersion: 0.00 ms
peer dispersion: 0.00 ms
reference time: 00:00:00.000 UTC Jan 1 1900(00000000.00000000)
synchronized Indicate that the local system is synchronized to a remote NTP server or a
clock source
unsynchronized Indicate that the local system is not synchronized to any remote NTP server
stratum The NTP stratum of the local system
reference If the local system has been synchronized to a remote NTP server or a clock
source, it indicates the address of the remote server or clock source ID
nominal freq Nominal frequency of the hardware clock of the local system
actual freq Actual frequency of the hardware clock of the local system
precision Precision of the local system clock
reftime Reference timestamp
offset Offset of the NTP server relative to the local clock
root delay Overall delay from the local to the master reference clock
root disper Dispersion of the local master reference clock
peer disper Dispersion of the remote NTP server
View
Any view
Parameter
X.X.X.X: The IP address of the NTP server functioning as the reference clock
source.
Description
Using the display ntp-service trace command, you can display the summary
information of each NTP time server from the local device tracing to the reference
clock source.
This command is used to trace to the reference clock source from the local device
along the time synchronous NTP server chain and display the summary
information of each NTP server.
Example
<3Com> display ntp-service trace
server4: stratum 4, offset 0.0019529, synch distance 0.144135
server3: stratum 3, offset 0.0124263, synch distance 0.115784
server2: stratum 2, offset 0.0019298, synch distance 0.011993
server1: stratum 1, offset 0.0019298, synch distance 0.011993 refid
'GPS Reciever'
The above information displays the synchronous chain of server4. It indicates that
server 4 can be synchronized to server 3, server 3 to server 2 and server 2 to server
1. Server 1 is synchronized from the reference clock source GPS Receiver.
View
System view
Parameter
Description
Using the ntp-service access command, you can set the access control authority of
the local device services. Using the undo ntp-service access command, you can
remove the access control authority that has been set.
This command is used to set the access authority of the NTP service of the local
device. A security approach of minimum authority is provided in this manual. The
more secure approach is to perform ID authentication. When there is an access
request, this command can be used to make the matches in sequence in a way of
from the minimum access authority to the maximum authority. All matches are
based on the first match. The match order is peer, server, synchronization, query.
Example
Enable the peer in No.76 access list to perform time request, query control and
time synchronization on the local device.
Enable the peer in No.28 access list to perform time request, query control on the
local device.
Syntax
View
System view
debugging ntp-service 107
Parameter
None
Description
Example
ntp-service Syntax
authentication-keyid
ntp-service authentication-keyid number authentication-mode md5 value
View
System view
Parameter
Description
This command is used to set NTP authentication key, which only supports MD5
authentication.
Example
Set MD5 ID authentication key. The key ID number is 10 and the key is BetterKey.
ntp-service Syntax
broadcast-client
ntp-service broadcast-client
108 CHAPTER 2: SYSTEM MAINTENANCE & MANAGEMENT COMMANDS
View
Interface view
Parameter
None
Description
Using the ntp-service broadcast-client command, you can configure the NTP
broadcast client mode. Using the undo ntp-service broadcast-client command, you
can remove the NTP broadcast client mode.
This command is used to specify the local interface on the local device to receive
the NTP broadcast packets. The local device is run in client mode. It first listens
discreetly to the broadcast packets from the server. When the first broadcast
packet is received, the local device enables a short client/server mode to exchange
messages with the remote server in order to estimate network delay. Then it enters
the client mode to listen discreetly to the broadcast packets and synchronize the
local clock according to the coming broadcast packets.
Example
ntp-service Syntax
broadcast-server
ntp-service broadcast-server [ authentication-keyid keyid | version number ] *
View
Interface view
Parameter
Description
This command is used to specify an interface on the local device to transmit NTP
broadcast packets. The local device is run in broadcast-server mode, which acts as
the broadcast server to transmit broadcast messages periodically to the broadcast
clients.
Example
Enable Ethernet 1/0/0 to transmit NTP broadcast packets. No.4 key is used for
encryption and NTP version number is set to 3.
ntp-service Syntax
max-dynamic-sessions
ntp-service max-dynamic-sessions number
View
System view
Parameter
Description
Using the ntp-service max-dynamic-sessions command, you can set the number of
sessions allowed to be established locally. Using the undo ntp-service
max-dynamic-sessions command, you can restore the default number of the
sessions.
Example
ntp-service Syntax
multicast-client
ntp-service multicast-client [ X.X.X.X ]
110 CHAPTER 2: SYSTEM MAINTENANCE & MANAGEMENT COMMANDS
View
Interface view
Parameter
Description
Using the ntp-service multicast-client command, you can configure the NTP
multicast client mode. Using the undo ntp-service multicast-client command, you
can remove the NTP multicast client mode.
This command is used to specify an interface on the local device to receive the NTP
multicast packets. The local device is run in client mode. It first listens discreetly to
the multicast packets from the server. When the first multicast packet is received,
the local device enables a short client/server mode to exchange messages with the
remote server in order to estimate network delay. Then it enters the client
(multicast-client) mode to listen discreetly to the multicast packets and synchronize
the local clock according to the coming multicast packets.
Example
Configure Ethernet 1/0/0 to receive NTP multicast packets. The multicast address
corresponding to the multicast packets is 244.0.1.1.
ntp-service Syntax
multicast-server
ntp-service multicast-server [ X.X.X.X ] [ authentication-keyid keyid | ttl ttl-number
| version number ] *
View
Interface view
Parameter
keyid: ID number used when transmitting messages to the multicast clients in the
range of 1 to 4294967295.
Description
Using the ntp-service multicast-server command, you can configure the NTP
multicast server mode. Using the undo ntp-service multicast-server command, you
can remove the NTP multicast server mode.
This command is used to specify an interface on the local device to transmit NTP
multicast packets. The local device is run in server (multicast-server) mode, which
acts as the multicast server to transmit multicast messages periodically to the
multicast clients.
Example
ntp-service Syntax
refclock-master
ntp-service refclock-master [ X.X.X.X ] [ layers-number ]
View
System view
Parameter
layers-number: Specifies the stratum of the local clock, which is in the range of 1
to 15.
Description
Using the ntp-service refclock-master command, you can set the external
reference clock or the local clock to be the NTP master clock. Using the undo
ntp-service refclock-master command, you can remove the setting of the NTP
master clock.
Setting the external reference clock or the local clock to be the NTP master clock
provides other devices with synchronous time. The X.X.X.X is the IP address
127.127.t.u of the reference clock. When no IP address is specified, the local clock
is the NTP master clock by default. This command can be used to specify the
stratum of the NTP master clock.
Example
Set the local device to be the NTP master clock to provide synchronous time for
other peers. The stratum is set to 3.
View
System view
Parameter
Description
Using the ntp-service reliable authentication-keyid command, you can specify the
key to be reliable. Using the undo ntp-service reliable authentication-keyid
command, you can remove the specified reliable key.
Example
ntp-service Syntax
source-interface
ntp-service source-interface {interface-type interface-number }
View
System view
Parameter
Description
Using the ntp-service source-interface command, you can specify the interface for
the local end to transmit NTP messages. Using the undo ntp-service
source-interface command, you can delete the interface for the local end to
transmit NTP messages.
The source IP address is the specified one when specifying the local to transmit all
the NTP messages. The IP address is obtained from the specified interface. If the
user does not want the IP addresses on other interfaces to become the destination
address responding to the messages, this command can be used to specify one
interface to send all the NTP packets.
Example
Specify the source IP address of all the NTP output packets to use the IP address
on the interface Ethernet 1/0/0.
View
System view
Parameter
Description
Using the ntp-service unicast-peer command, you can configure the NTP peer
mode. Using the undo ntp-service unicast-peer command, you can remove the
NTP peer mode.
This command is used to set the remote server specified by the X.X.X.X as the peer
of the local device. The local device is run in symmetric active mode. The X.X.X.X is
a host address and cannot be the address of the broadcast, multicast or reference
clock. In this configuration, the local device can be synchronized to the remote
server and the remote server can also be synchronized to the local server.
Example
Display the configuration that the peer 128.108.22.44 provides the synchronous
time for the local and the local peer can provide synchronous time for the peer.
The version number is 3. The IP address of the NTP packets is obtained from
Ethernet 1/0/0.
ntp-service Syntax
unicast-server
ntp-service unicast-server X.X.X.X [ version number | authentication-keyid keyid |
source-interface {interface-type interface-number } | priority ] *
View
System view
Parameter
Description
Using the ntp-service unicast-server command, you can configure the NTP server
mode. Using the undo ntp-service unicast-server command, you can remove the
NTP server mode.
This command is used to set the remote server specified by the X.X.X.X as the
local time server. The X.X.X.X is a host address and cannot be the IP address of the
broadcast, multicast or reference clock. In this configuration, the local client device
can be synchronized to the remote server and the remote server cannot be
synchronized to the local client device.
Example
Configure the local device to be provided with the synchronous time by the server
128.108.22.44. The version number is 3.
SNMP Configuration
Commands
View
User view
116 CHAPTER 2: SYSTEM MAINTENANCE & MANAGEMENT COMMANDS
Parameter
Description
Using the debugging snmp-agent command, you can enable the SNMP Agent
debugging and specify the debugging information of SNMP module. Using the
undo debugging snmp-agent command, you can remove the current settings.
Example
View
Any view
Parameter
None
Description
Using the display snmp-agent command, you can display the SNMP engine ID of
local or remote device.
The SNMP engine is the only identification of the SNMP management, and it
uniquely identifies a SNMP entity in one management domain. The SNMP engine
is an important component of the SNMP entity, completing the functions of SNMP
messages such as message dispatching, message processing, security
authentication and access control.
Example
View
Any view
Parameter
read: Displays the community name information with the read-only authority.
write: Displays the community name information with the authority of read and
write.
Description
Using the display snmp-agent community command, you can display the currently
configured community name of SNMPv1 or SNMPv2.
Example
Community name:8040core
Group name:8040core
Storage-type: nonVolatile
View
Any view
Parameter
Description
Using the display snmp-agent group command, you can display the group
information based on USM. Without parameters, the command displays the group
information corresponding to all the specified group names, including group
name, security mode, storage types on the router etc.
118 CHAPTER 2: SYSTEM MAINTENANCE & MANAGEMENT COMMANDS
Example
The corresponding fields displayed above are described in the following table:
Content Description
Groupname Name of SNMP group corresponding to the user
Readview Name of read-only MIB view corresponding to the
group
Writeview Name of writable MIB view corresponding to the
group
Notifyview Name of notifying MIB view corresponding to the
group
Storage-type the type of storage type
View
Any view
Parameter
exclude: Specifies to exclude the SNMP MIB view attributes displayed and set.
include: Specifies to include the SNMP MIB view attributes displayed and set.
Description
Using the display snmp-agent mib-view command, you can display the currently
configured MIB view.
Example
Storage-type: nonVolatile
View Type:included
View status:active
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
MIB Subtree:snmpModules.18
Subtree mask:
Storage-type: nonVolatile
View Type:excluded
View status:active
Content Description
View name View name
MIB Subtree MIB subtree
Storage-type Storage type
ViewType: Included/excluded Indicate whether to enable or disable the access to a
MIB object
Active Indicate the state of lines in the list
CAUTION: When the SNMP Agent is disabled, "Snmp Agent disabled" will be
displayed for all the above display commands.
View
Any view
Parameter
None
120 CHAPTER 2: SYSTEM MAINTENANCE & MANAGEMENT COMMANDS
Description
Using the diplay snmp-agent statistics command, you can display the state and
statistics of SNMP.
Example
Content Description
Messages delivered to the SNMP entity Total number of input SNMP packets
Messages which were for an unsupported Number of packets with version errors
version
Messages which used an unknown community Number of packets with community name errors
name
Messages which represented an illegal operation Number of packets with authority errors
for the community supplied corresponding to community name
ASN.1 or BER errors in the process of decoding Number of SNMP packets with encoding errors
MIB objects retrieved successfully Number of variables requested by NMS
MIB objects altered successfully Number of variables set by NMS
Get-request PDUs accepted and processed Number of get-request packets accepted and
processed (PDU: Protocol Data Unit)
Get-next PDUs accepted and processed Number of received packets that get next
requests
Set-request PDUs accepted and processed Number of received packets that set requests
Messages passed from the SNMP entity Total number of output SNMP packets
SNMP PDUs which had a tooBig error Number of SNMP packets with Too_big errors
(Maximum packet size 1500) Maximum SNMP packet size is 1500.
SNMP PDUs which had a noSuchName error Number of packets with requests of non-existing
MIB object
SNMP PDUs which had a badValue error Number of SNMP packets with Bad_values errors
SNMP PDUs which had a general error Number of SNMP packets with General_errors
Response PDUs accepted and processed Number of response packets accepted and
processed
Trap PDUs accepted and processed Number of Trap packets accepted and processed
SNMP Configuration Commands 121
View
Any view
Parameter
Description
Using the display snmp-agent sys-info command, you can display the system
information of the local SNMP device.
Example
View
Any view
Parameter
engineid: Displays the SNMPv3 user information of the specified engine ID.
group: Displays the user information belonging to the related SNMP group.
Description
Using the display snmp-agent usm-user command, you can display the
information about SNMP users.
122 CHAPTER 2: SYSTEM MAINTENANCE & MANAGEMENT COMMANDS
An SNMP user is the remote user who executes SNMP management operation.
The snmp-agent usm-user command is used to specify the SNMP user.
Example
Content Description
authuser Modify display information
User name Character string used to identify the SNMP user
Engine ID Character string used to identify the SNMP
device
Active Indicate the state of SNMP USER
snmp-agent Syntax
snmp-agent
undo snmp-agent
View
System view
Parameter
None
Description
Using the snmp-agent command, you can enable the SNMP Agent and specify the
SNMP configuration information. Using the undo snmp-agent command, you can
disable SNMP Agent.
The snmp-agent command can be used to enable SNMP Agent, and any
configuration command of snmp-agent can also enable SNMP Agent. However,
the undo form of the corresponding command does not have the functions. It will
be invalid configuring the undo form of the command when the SNMP Agent is
not enabled.
The undo snmp-agent command is used to disable the SNMP Agent on the
condition that SNMP Agent has been enabled.
SNMP Configuration Commands 123
Example
View
System view
Parameter
read: Indicates that the community name has the read-only authority in the
specified view.
write: Indicates that the community name has the read and write authority in the
specified view.
Description
Using the snmp-agent community command, you can set the community access
name of SNMPV1 and SNMPV2C and MIB views and ACLs available for the
community name. Using the undo snmp-agent community command, you can
remove the setting.
Example
Set the community name to comaccess and allow read-only access with this
community name.
Set the community name to mgr and enable reading and writing access.
View
System view
Parameter
write-view: Name of the reading and writing view, in the range of 1 to 32 bytes.
Description
Using the snmp-agent group command, you can configure a new SNMP group,
i.e., to map the SNMP user to the SNMP view. Using the undo snmp-agent group
command, you can delete a specified SNMP group.
SNMP Configuration Commands 125
Example
snmp-agent Syntax
local-engineid
snmp-agent local-engineid engineid
View
System view
Parameter
engineid: Character string of engine ID. It must be a hexadecimal number with the
length of 5 to 32.
Description
Using the snmp-agent local-engineid command, you can configure an ID for the
local SNMP engine on the router. Using the undo snmp-agent local-engineid
command, you can remove the current settings.
Example
View
System view
126 CHAPTER 2: SYSTEM MAINTENANCE & MANAGEMENT COMMANDS
Parameter
oid-tree: OID MIB subtree for the Mib object subtree, which can be a character
string of the variable OID or a character string of variable name. For example, it
can be character strings such as 1.4.5.3.1 and system character strings or use "*"
as wildcard, for example, 1.4.5.*.*.1.
Description
Using the snmp-agent mib-view command, you can create or update the
information about a view. Using the undo snmp-agent mib-view command, you
can delete the view information.
Currently, this command supports not only the input of the character string of the
variable OID as a parameter but also the input of the node name as a parameter.
Example
View
System view
Parameter
byte-count: The maximum length of the SNMP packets that Agent can
receive/send, in the range of 484 to 17940 bytes. The default value is 1500 bytes.
Description
Using the snmp-agent packet max-size command, you can set the maximum
length of the SNMP message packets that Agent can receive/forward. Using the
undo snmp-agent packet max-size command, you can remove the current setting.
SNMP Configuration Commands 127
Example
Set the maximum length of the SNMP packet that Agent can receive/forward to
1042 bytes.
View
System view
Parameter
*: Indicates selecting one to three items from the three options of v1, v2c and v3.
Description
Using the snmp-agent sys-info command, you can set the system information,
including the system maintenance information, physical location information of
the device and the SNMP version number used. Using the undo snmp-agent
sys-info command, you can remove the current setting.
By default,
Example
View
System view
Parameter
address: Specifies the address of the destination host where the SNMP message
transmits.
port-number: Specifies the port number that receives the trap packet.
params: Specifies the information of the logging host that generates SNMP
messages.
v1: SNMPV1.
v2c: SNMPv2c.
v3: SNMPV3.
Description
Using the snmp-agent target-host command, you can set the destination that
receives the SNMP notification. Using the undo snmp-agent target-host
command, you can remove the host that receives the SNMP notification.
For the related command, see snmp-agent trap enable, snmp-agent trap source,
snmp-agent trap life.
Example
Enable to send SNMP Trap packets to 10.1.1.1, using the community name of
comaccess.
Send SNMP Trap packets to 10.1.1.1, using the community name of public.
View
System view
Parameter
Description
Using the snmp-agent trap enable command, you can enable the device to send
Trap packets and set the trap or notification parameters. Using the undo
snmp-agent trap enable command, you can remove the current setting.
The snmp-agent trap enable command indicates to allow sending all types of
SNMP Trap packets of all the modules, when there is no parameter.
The snmp-agent trap enable command should be used in cooperation with the
snmp-agent target-host command. The snmp-agent target-host command is used
to specify the hosts to which the Trap information will be sent. To send Trap
information, the user should configure at least one snmp-agent target-host
command.
The module trap-type forwarding the Trap packets can be snmp, bgp and vrrp
(VRRP Trap packets).
Types of packets that SNMP modules can send include authentication, coldstart,
linkdown, linkup and warmstart.
Example
Allow sending the Trap packets, which fail to perform SNMP authentication, to
10.1.1.1. The trap packets are in the form of V2C with the community name of
public.
Enable to send all types of BGP Trap packets to 10.1.1.1. The trap packets are in
the form of V3 with the community name of super. The packets are authenticated
but not encrypted.
View
System view
Parameter
seconds: Timeout in seconds, ranging 1 to 2592000 with the default value as 120
seconds.
SNMP Configuration Commands 131
Description
Using the snmp-agent trap life command, you can set the conservation time of the
Trap packet and the Trap packets exceeding the time will be dropped. Using the
undo snmp-agent trap life command, you can remove the current setting.
If the conservation time for the Trap packets the system has configured is seconds,
the Trap packets over the conservation time will be discarded without being sent
or conserved.
For the related command, see snmp-agent trap enable, snmp-agent target-host.
Example
View
System view
Parameter
Description
Using the snmp-agent trap queue-size command, you can set the length of the
message queue of the Trap packet sent to the destination host. Using the undo
snmp-agent trap queue-size command, you can cancel the setting.
For the related command, see snmp-agent trap enable, snmp-agent target-host,
snmp-agent trap life.
Example
Set the length of the message queue of the host forwarding the Trap packet to
200.
View
System view
Parameter
Description
Using the snmp-agent trap source command, you can specify the source address
from which Trap will be sent. Using the undo snmp-agent trap source command,
you can remove the Trap source address.
There is always a Trap address when the SNMP Trap message is being sent from a
server, no matter from which interface it is sent. This command can be used to
trace a special event.
For the related command, see snmp-agent trap enable, snmp-agent target-host.
Example
Specify the IP address of the Ethernet interface 1/0/0 as the source address of Trap
packet.
View
System view
Parameter
Description
Using the snmp-agent usm-user command, you can add a new user to a SNMP
group. Using the undo snmp-agent usm-user command, you can delete a SNMP
group user.
When the user configures a remote user for a certain Agent, the engine ID is
needed during authentication. If the engine ID changes after the user has been
configured, the user corresponding to the original engine ID will be ineffective.
For SNMPV1 and SNMPV2C, this command adds a new community name. For
SNMPV3, it adds a new user to a SNMP group.
Example
Add a user named "John" to the SNMP group named "Johngroup", with the
security level being "auth", the authentication protocol being HMAC-MD5-96
and the password being "hello".
Terminal Service
Commands
Terminal Service of
Telnet
debugging telnet
View
User view
Parameter
None
Description
Using the debugging telnet command, you can enable the debugging for Telnet
connection. Using the undo debugging telnet command, you can disable the
debugging for Telnet connection.
Example
<3Com> debugging telnet
View
Any view
Parameter
None
Description
Using the display tcp status command, you can display all TCP connections
currently established with the router.
This command is used to display all TCP connections currently established with the
router. Compared with display users, the display tcp status command can display
more information about Telnet clients and servers.
Terminal Service Commands 135
The information that this command can display includes: the local address of TCP
connection, local port number, external address, external port number, and
connection state.
Example
<3Com> display tcp status
TCPCB Local Address Foreign Address State
129.102.100.142 23 129.102.001.092 ESTABLISHED
028ca414 0.0.0.0.23 0.0.0.0.0 LISTEN
The above shown information indicates: one TCP connection has been set up. the
local IP address of the TCP connection is 129.102.100.142 with the local port
number as 23, and the remote IP address is 129.102.001.92, and there is also a
local server process monitoring the No. 23 port.
telnet Syntax
View
User view
Parameter
service-port: TCP port number for the remote router to provide Telnet service, in
the range of 0 to 65535.
Description
Using the telnet command, you can log on another device from the current router.
By default, if the service-port is not specified, the Telnet port number is 23.
By executing the telnet command, the user can conveniently log on another device
from a router to achieve remote management.
Example
Log on another router 3Com2 (the IP address is 129.102.0.1) from the current
router 3Com1.
<3Com>telnet 129.102.0.1
Trying 129.102.0.1...
Service port is 23
136 CHAPTER 2: SYSTEM MAINTENANCE & MANAGEMENT COMMANDS
Connected to 129.102.0.1
<3Com2>
SSH Configuration
Commands
debugging rsa
View
User view
Parameter
None
Description
Using the debugging rsa command, you can send the detailed information about
each process and packet structure of RSA algorithm to information center in
debugging form and to debug certain user-interface separately. Using the undo
debugging rsa command, you can disable the debugging.
For the related command, see rsa local-key-pair create, rsa local-key-pair destroy.
Example
View
User view
Parameter
index: Debugged SSH channel. In default, its value ranges from 0 to 4 and is
limited by VTY number.
Description
Using the debugging ssh server command, you can send the information about
negotiation process regulated by SSH1.5 protocol to information center as
debugging formation and to debug certain user-interface separately. Using the
undo debugging ssh server command, you can disable the debugging.
For the related command, see ssh server authentication-retries, ssh server
rekey-interval, ssh server timeout.
Example
View
Any view
Parameter
None
Description
Using the display rsa local-key-pair public command, you can display the public
key of host key pair of server and server key pair. If no key is generated, the system
will prompt that no key is found, e.g., RSA keys not found.
Example
<3Com> display rsa local-key-pair public
% Key pair was generated at: 12:26:33 UTC 2002/4/4
Key name: rtvrp_Host
Usage: Encryption Key
Key Data:
30470240 AF7DB1D0 DA78944F 53B7B59B 40D425D0 DC9C57D2 A60916C2
1F165807 08B84DDB 5F4DB8E7 A115B74E 2D41D96C AC61D276 AA027E41
DD48DE64 696E0934 EB872805 02030100 01
138 CHAPTER 2: SYSTEM MAINTENANCE & MANAGEMENT COMMANDS
View
Any view
Parameter
brief: Displays the brief information of all the remote public key.
Description
Using the display rsa peer-public-key command, you can display the specified RSA
public key. If there is no public key specified, all public keys will be displayed.
Example
<3Com> display rsa peer-public-key
Address Bits Name
1023 abcd
1024 hq
1024 wn1
1024 hq_all
[3Com] display rsa peer-public-key name abcd
Key name:abcd
Key address:
Data:
30818602 8180739A 291ABDA7 04F5D93D C8FDF84C 42746319 91C164B0
DF178C55 FA833591 C7D47D53 81D09CE8 2913D7ED F9C08511 D83CA4ED
2B30B809 808EB0D1 F52D045D E40861B7 4A0E1355 23CCD74C AC61F8E5
8C452B2F 3F2DA0DC C48E3306 367FE187 BDD94401 8B3B69F3 CBB0A573
202C16BB 2FC1ACF3 EC8F828D 55A36F1C DDC4BB45 504F0201 25
View
Any view
SSH Configuration Commands 139
Parameter
Description
Using the display ssh server command, you can display the SSH status or session.
For the related command, see ssh server authentication-retries, ssh server
rekey-interval, ssh server timeout.
Example
peer-public-key end
View
Parameter
None
Description
Using the peer-public-key end command, you can return to the system view from
the public key view.
For the related command, see rsa peer-public-key and public-key-code begin.
Example
View
Any view
Parameter
Description
Using the display ssh user-information command, you can display the information
about current SSH user including user name, corresponding key name and user
authentication mode. If you specify the username parameter, then the information
about the specified user will be displayed.
For the related command, see ssh user username assign rsa-key, ssh user
username authentication-type.
Example
View
Parameter
Description
Using the protocol inbound command, you can specify the protocols supported by
the current user interface.
By default, the system supports all the protocols, that is, Telnet and SSH.
When the command is used to specify the protocols supported by the current user
interface and SSH is enabled, SSH is still unavailable if the rsa key of the local
router is not configured. The configuration result will take effect at the next login
request.
If SSH is configured as the protocols supported by the current user interface, you
should configure the corresponding authentication method as
authentication-mode local or authentication-mode scheme default (using AAA) to
ensure the successful login. If the authentication method is configured as
authentication-mode password and authentication-mode none, the configuration
of protocol inbound ssh will fail.
Example
Disable the Telnet function of vty0 to vty4 and only support the SSH function.
public-key-code begin
View
Parameter
None
Description
Using the public-key-code begin command, you can enter the edit view of public
key.
Before using this command, you must use the rsa peer-public-key command to
specify one key name. After the public-key-code begin command is input, the
system enters the edit view of public key and you can input the key data. When
the key data are input, the space can exist between characters and you can press
enter key to continue the data input. The public key configured must be the hex
142 CHAPTER 2: SYSTEM MAINTENANCE & MANAGEMENT COMMANDS
character ring coded according to public key format. The public key is generated
in stochastic mode by the client software supporting SSH.
Example
public-key-code end
View
Parameter
None
Description
Using the public-key-code end command, you can quit public key edit view to
public key view and to save the public key configured by the user. In addition, to
quit public key view to public key chain view.
After this command is executed, the edit process of public key will be ended.
Before saving the public key, the system will check the validity of key. If there are
illegal characters in the public key character string configured by the user, the
system will display relevant prompt information that illegal characters are input.
The public key configured by the user will be discarded so this configuration fails.
If the public key configured is valid, it will be saved in public key chain table of
client.
Example
View
System view
Parameter
None
Description
Using the rsa local-key-pair create command, you can generate the local RSA host
key pair and server key pair.
When this command is used to configure, the system will give alarm and prompt
that former key will be replaced if RSA key has existed. The view of generated key
pair is router name+ server and router name+ host, e.g., 3Com_host and
3Com_server. This command will not be stored in configuration file.
After this command is input, the system will prompt you to enter the digit of host
key. The digit of server key pair should differ from that of host key pair in 128
digits at least. The minimum length of server key pair and host key pair is 512
digits and the maximum length is 2048 digits. If there has been key pair, the user
should confirm whether to change it.
The primary operation to accomplish SSH login is to configure and generate local
RSA key pair. Before performing other SSH configurations, you must accomplish
the configuration of the rsa local-key-pair create command to generate local key
pair. It is necessary to execute this command only once and it is unnecessary to
execute again after the router restarts.
Example
Configure and generate local host key pair and server key pair.
View
System view
Parameter
None
Description
Using the rsa local-key-pair destroy command, you can remove all RSA keys of
server (including host key pair and server key pair).
After this command is input, you should confirm whether to remove all RSA keys
of server. And this command is not stored in configuration file.
Example
View
System view
Parameter
None
Description
Using the rsa peer-public-key command, you can enter the view of public key
view.
After the command is input, the system will enter the view of public key view. This
command can be used to configure the public key of client with the
public-key-code begin command together. The public key of client is generated in
stochastic mode by the client software. Please use the client software supporting
SSH1.5.
Example
View
System view
Parameter
Description
Using the ssh server authentication-retries command, you can set the SSH
connection authentication re-try times to enable it in next login. Using the undo
ssh server authentication-retries command, you can restore the default value of
SSH connection authentication retry times.
Example
View
System view
Parameter
hours: Updates period. It ranges from 1 to 24 in hour. 0 cannot be input for this
parameter.
146 CHAPTER 2: SYSTEM MAINTENANCE & MANAGEMENT COMMANDS
Description
Using the ssh server rekey-interval command, you can set the update times of
server key. Using the undo ssh server rekey-interval command, you can cancel the
current settings.
Example
View
System view
Parameter
seconds: Specifies the login time-out time. It ranges from 1 to 120 seconds.
Description
Using the ssh server timeout command, you can set the time-out time of SSH
connection authentication to enable it valid in next login. Using the undo ssh
server timeout command, you can restore the default value of time-out time of
SSH connection authentication.
Example
View
System view
Parameter
Description
Using the ssh user assign command, you can assign one existing public key
(keyname) for the user (username). Using the undo ssh user assign command, you
can delete the relationship between the user and its public key.
When the system assigns public key for the user, the system will regard the public
key assigned last if the user has been assign a public key.
AAA module takes charge of the creation and deletion of local system users.
When AAA module creates one user of SSH type, it will notice SSH and SSH will
add the user into user set maintained by it. When AAA module deletes any one
user, it will notice SSH and SSH will match the user in its user name set. SSH will
delete the user from the user set if it finds the match of the user in user name set.
The new configured user public key will be valid in next login.
Example
View
System view
Parameter
all: Specifies the authentication mode of the user as either password or RSA.
148 CHAPTER 2: SYSTEM MAINTENANCE & MANAGEMENT COMMANDS
Description
Using the ssh user authentication-type command, you can specify the
authentication method for a special user. Using the undo ssh user
authentication-type command, you can restore the default mode that login is
always denied.
The authentication mode must be specified for the new user, or the user will not
be able to login. The new configured authentication mode will take effect in next
login.
Example
Interface
Management
Commands
View
User view
Parameter
Description
Using the debugging physical command, you can enable alarming for a specified
interface. Using the undo debugging physical command, you can disable alarming
for a specified interface.
Example
None
description Syntax
description interface-description
undo description
150 CHAPTER 3: INTERFACE MANAGEMENT COMMANDS
View
Interface view
Parameter
Description
Using the description command, you can set the interface description. Using the
undo description command, you can restore the default interface description.
Example
Change the description of the Ethernet interface Ethernet 0/0/0 to “3Com Router
Ethernet interface”.
View
Any view
Parameter
type: Interface type which is used along with number to identify an interface.
number: Interface number which is used along with type for identifying an
interface.
Description
Using the display interface command, you can display the current running state
and other information of an interface.
Example
View the running state and the relevant information of Serial 0/0/0.
interface Syntax
View
System view
Parameter
type: Interface type. The following table lists the interfaces that VRP supports so
far.
Description
Using the interface command, you can enter the specified interface view or create
a logical interface or subinterface. Using the undo interface command, you can
delete a specified logical interface or subinterface.
To simplify input, the type portion of the interface name can be shortened to
several leading letters, given that these letters do not conflict with other interface
types. Therefore, you can input 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 creating logical
interfaces or subinterfaces as needed by executing the interface command.
Note that executing the undo interface command also deletes the defined logical
interfaces (such as dialer, tunnel, and virtual-template interfaces) and
subinterfaces.
Example
[3com-Ethernet0/0/0]interface serial0/0/0.1
[3com-Serial0/0/0.1]
View
User view
Parameter
type: Interface type which is used along with number for identifying an interface.
number: Interface number which is used along with type for identifying an
interface.
Description
Using the reset counters interface command, you can clear the statistics of the
transmitted and received packets on an interface.
If no interface has been specified, the statistics about the transmitted and received
packets on all the interfaces are cleared.
To count the traffic size on an interface within a specific period, you must clear the
existing statistics about the transmitted and received packets on the interface
before taking a new count.
Example
Clear the statistics about the transmitted and received packets on Serial 0/0/0.
shutdown Syntax
shutdown
undo shutdown
154 CHAPTER 3: INTERFACE MANAGEMENT COMMANDS
View
Interface view
Parameter
None
Description
Using the shutdown command, you can shut down an interface. Using the undo
shutdown command, you can enable an interface.
This command takes effect not only on physical interfaces but also on tunnel and
MFR interfaces.
In some circumstances, such as when you are modifying the operating parameters
of an interface, the modification do not take effect immediately. Rather, you must
shut down the interface and re-enable it.
Example
[3com-Ethernet0/0/0]shutdown
% Interface Ethernet0/0/0 is down
% Interface Ethernet0/0/0 changed state to DOWN
% Line protocol ip on interface Ethernet0/0/0, changed state to DOWN
Fundamental Ethernet
Interface
Configuration
Commands
View
Any view
Parameter
Description
Using the display interface ethernet command, you can view the configuration
parameters, current running state, and some other information of an Ethernet
interface.
Fundamental Ethernet Interface Configuration Commands 155
Example
duplex Syntax
undo duplex
View
Parameter
Description
Using the duplex command, you can set the operating mode of the 100Base-TX FE
interface. Using the undo duplex command, you can restore the default operating
mode of the Ethernet interface.
Before setting the FE interface to work in auto-negotiation mode, you must make
sure that the connected remote end has been working in auto-negotiation mode.
If this cannot be guaranteed, the two parties should use the forced setting for the
consistency in operating mode.
Example
loopback Syntax
loopback
undo loopback
View
Parameter
None
Description
Using the loopback command, you can enable an Ethernet interface to perform
loopback. Using the undo loopback command, you can disable loopback.
You must enable the Ethernet interface to perform loopback only for the purpose
of testing some special functions.
Example
[3com-Ethernet0/0/0]loopback
mtu Syntax
mtu size
undo mtu
View
Parameter
size: MTU size on the Ethernet interface, which is in bytes. It is in the range of 46
to 1500 if the adopted frame format is Ethernet_II.
Description
Using the mtu command, you can set the maximum transmission unit (MTU) of
the Ethernet interface. Using the undo mtu command, you can restore the default
configuration.
The MTU setting of an Ethernet interface can affect the assembly and
fragmentation of IP packets on the interface.
Example
[3com-Ethernet0/0/0]mtu 1492
speed Syntax
undo speed
View
Parameter
Description
Using the speed command, you can set the operating speed of the FE interface.
Using the undo speed command, you can restore the default operating speed of
the FE interface.
Before setting the FE interface to work in auto-negotiation mode, you must make
sure that the connected remote end has been working in auto-negotiation mode.
If this cannot be guaranteed, the two parties should use the forced setting for
operating consistency.
Example
[3com-Ethernet0/0/0]speed 10
Fundamental WAN
Interface
Configuration
Commands
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, which is also known as interactive mode. With this approach,
the two ends set up a link by interacting with each other upon the setup of 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 is normally adopted in
the event of man-machine interaction.
Description
Using the async mode command, you can set the operating mode of an
asynchronous serial interface.
By default, the asynchronous serial interface is working in protocol mode and the
AUX interface in flow mode.
Example
baudrate Syntax
baudrate baudrate
Fundamental WAN Interface Configuration Commands 159
View
Parameter
baudrate: Baud rate of serial interface in bps. It is in the range of 300 to 115200
for an asynchronous serial interface and 1200 to 2048000 for a synchronous serial
interface.
Description
Using the baudrate command, you can set the baud rate for a serial interface.
By default, the baud rate is 9600 bps on the asynchronous serial interface and
64000 bps on a synchronous serial interface.
Following are the baud rates available for the asynchronous serial interface.
300 bps, 600 bps, 1200 bps, 2400 bps, 4800 bps, 9600 bps, 19200 bps, 38400
bps, 57600 bps, 115200 bps.
Following are the baud rates available for the synchronous serial interface.
1200 bps, 2400 bps, 4800 bps, 9600 bps, 19200 bps, 38400 bps, 57600 bps,
64000 bps, 72000 bps, 115200 bps, 128000 bps, 384000 bps, 2048000 bps.
The baud rate range available for the synchronous serial interface depends on the
applied physical electric specifications.
When setting baud rate for a serial interface, you should take into consideration
the elements, such as operating mode (synchronous/asynchronous mode) and the
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, they will
negotiate the baud rate between them. 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 must set
baud rate at the DCE side.
Example
[3com-Serial0/0/0]baudrate 115200
160 CHAPTER 3: INTERFACE MANAGEMENT COMMANDS
clock 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
Using the clock command, you can set the clock selection mode for a synchronous
serial interface.
By default, dceclk (providing clock to the DTE device) and dteclk3 are selected for
the synchronous serial interfaces at the DCE side and the DTE side.
Different operating clocks are selected for the synchronous serial interfaces
working as DTE and DCE, as shown in the following figure.
TxClk
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, four clock options are available for a DTE device.
Table 3 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 after is the DCE
clock.
Example
Set the synchronous serial interface working as DTE to use the clock selection
option DTEclk2.
[3com-Serial0/0/0]clock dteclk2
code nrzi
undo code
View
Parameter
None
Description
Using the code nrzi command, you can set the digital signal coding format to
None-Return-to-Zero-Inverse (NRZI) for a synchronous serial interface. Using the
undo code command, you can 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.
[3com-Serial0/0/0]code nrzi
detect Syntax
1 Asynchronous serial interface
detect dsr-dtr
View
Parameter
dcd: Detects the DCD signal of the DSU/CSU on the serial interface.
Description
Using the detect command, you can enable data carrier detection as well as level
detection on a serial interface. Using the undo detect command, you can disable
data carrier detection as well as level detection on the serial interface.
By default, serial interfaces are enabled to make data carrier and level detection.
If this function has been disabled on a serial interface, the system will not detect
the DCD and DSR/DTR signals when determining the state (UP or DOWN) of the
serial interface.
Example
idle-mark Syntax
idle-mark
undo idle-mark
View
Parameter
None
Description
Using the idle-mark command, you can set the line idle-mark of the synchronous
serial interface to “FF”. Using the undo idle-mark command, you can restore the
line idle-mark of the synchronous serial interface 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
Fundamental WAN Interface Configuration Commands 163
“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
[3com-Serial0/0/0]idle-mark
invert transmit-clock
View
Parameter
None
Description
Using the invert transmit-clock command, you can enable the inverting of the
transmit-clock signal of the synchronous serial interface at the DTE side. Using the
undo invert transmit-clock command, you can disable inverting the signal.
In some special cases, for the purpose of 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 for general applications.
Example
[3com-Serial0/0/0]invert transmit-clock
loopback Syntax
loopback
undo loopback
View
Parameter
None
Description
Using the loopback command, you can enable a serial interface to perform
loopback. Using the undo loopback command, you can disable the serial interface
to perform loopback.
It is necessary for you to enable the serial interface to perform loopback only for
the purpose of testing some special functions.
Example
[3com-Serial0/0/0]loopback
mtu Syntax
mtu size
undo mtu
View
Parameter
size: MTU size on the serial interface, which is in the range of 128 to 1500 bytes
and defaults to 1500.
Description
Using the mtu command, you can set the MTU of a serial interface. Using the
undo mtu command, you can restore the default setting.
The MTU setting of a serial interface can affect the assembly and fragmentation of
IP packets on the interface.
Example
[3com-Serial0/0/0]mtu 1200
physical-mode Syntax
View
Parameter
Description
Using the physical-mode command, you can set the operating mode of a
synchronous/asynchronous serial interface.
Example
[3com-Serial0/0/0]physical-mode async
Fundamental CE1/PRI
Interface
Configuration
Commands
channel-set Syntax
View
Parameter
set-number: The number of the channel set formed by bundling the timeslots on
the interface, which is in the range of 0 to 30.
range: The number of the timeslots that are bundled, which is in the range of 1 to
31. When specifying the timeslots to be bundled, you can 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.
166 CHAPTER 3: INTERFACE MANAGEMENT COMMANDS
Description
Using the channel-set command, you can bundle some timeslots of a CE1/PRI
interface into a channel-set. Using the undo channel-set command, you can
remove the specified timeslot bundle.
In actual applications, all the timeslots except 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.
Only one timeslot bundling mode can be supported on one CE1/PRI interface
during a time period. In other words, this command cannot be used together with
the pri-set command.
Example
Make the same configuration on the CE1/PRI interface on the remote router.
clock Syntax
undo clock
View
Parameter
Description
Using the clock command, you can set the clock mode on a CE1/PRI interface.
Using the undo clock command, you can 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.
code Syntax
undo code
View
Parameter
hdb3: Adopts High Density Bipolar 3 (HDB3) line code format. This parameter is
only significant for a CE1/PRI interface.
Description
Using the code command, you can set the line code format for a CE1/PRI
interface. Using the undo code command, you can restore the default line code
format of the interface.
You should keep the line code format of the interface in consistency with that
used by the remote device.
Example
controller e1 Syntax
controller e1 number
168 CHAPTER 3: INTERFACE MANAGEMENT COMMANDS
View
System view
Parameter
Description
Using the controller e1 command, you can enter a CE1/PRI interface view.
Example
[3com]controller E1 3/0/0
[3com-E1 3/0/0]
View
Any view
Parameter
Description
Using the display controller e1 command, you can display the information related
to a CE1/PRI interface.
Example
frame-format Syntax
undo frame-format
View
Parameter
Description
Using the frame-format command, you can set the frame format of CE1 interface.
Using the undo frame-format command, you can restore the default frame format
of the interface.
A CE1/PRI interface working in CE1 mode supports both crc4 and no-crc4 frame
formats. Among them, crc4 supports the 4-bit Cyclic Redundancy Check (CRC) on
physical frames whereas no-crc4 does not.
Example
loopback Syntax
undo loopback
View
Parameter
Description
Using the loopback command, you can enable a CE1/PRI interface to perform
loopback. Using the undo loopback command, you can disable the CE1/PRI
interface to perform loopback.
170 CHAPTER 3: INTERFACE MANAGEMENT COMMANDS
Loopback is used to check the condition of interface or cable. This function should
be disabled when they are in normal operation.
Example
pri-set Syntax
undo pri-set
View
Parameter
range: The number of the timeslots that are bundled, which is in the range of 1 to
31. When specifying the timeslots to be bundled, you can 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
Using the pri-set command, you can bundle the timeslots of a CE1/PRI interface
into a pri-set. Using the undo pri-set command, you can remove the timeslot
bundle.
When perform pri-set bundling on a CE1/PRI interface, you should note that you
are not allowed to bundle only timeslot 16, as it will be used as the D channel for
transmitting signals. Attempts to bundle only timeslot 16 will fail.
The system will automatically create a serial interface after the operation of
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 maximum serial interface number plus 1.
Only one timeslot bundling mode can be supported on one CE1/PRI interface
during a time period. In other words, this command cannot be used together with
the channel-set command.
Example
Bundle the timeslots 1, 2, and 8-12 of the CE1/PRI interface into a pri-set.
using Syntax
using { ce1 | e1 }
undo using
View
Parameter
e1: In E1 mode
Description
Using the using command, you can configure the operating mode for a CE1/PRI
interface. Using the undo using command, you can restore the default operating
mode.
After the CE1/PRI interface is enabled to work in E1 mode by using the using e1
command, the system will automatically create a serial interface numbered serial
interface-number:0. The interface-number starts from the maximum serial
interface number plus 1t.
172 CHAPTER 3: INTERFACE MANAGEMENT COMMANDS
Example
[3com-E1 3/0/0]using e1
Fundamental CT1/PRI
Interface
Configuration
Commands
cable 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.
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 length of the transmission line.
Description
Using the cable command, you can set cable attenuation and length on a CT1/PRI
interface to match the distance of the transmission line. Using the undo cable
command, you can restore the default value
The transmission cable attenuation that the CT1/PRI interface matches defaults to
long 0db.
This command is mainly used to configure the signal waveform for transmission to
satisfy various transmitting needs. In practice, the signal quality received by the
receiving end determines whether this command will be used. If the signal quality
is relatively good, use the default setting. In this case, the CT1/PRI interface does
not need an external CSU device.
Example
Set the length of the transmission cable that the CT1/PRI interface matches to 133
feet.
channel-set Syntax
View
Parameter
range: The number of the timeslots that are bundled, which is in the range of 1 to
24. When specifying the timeslots to be bundled, you can 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.
speed { 56k | 64k }: The speed of the timeslot bundle, which is in Kbps. If 56k is
selected, the timeslots will be bundled into N x 56 Kbps bundles, and if 64k is
selected, the timeslots will be bundled into N x 64 Kbps bundles. By default, the
system uses 64k.
Description
Using the channel-set command, you can bundle some timeslots of a CT1/PRI
interface into a channel-set. Using the undo channel-set command, you can
remove the specified channel-set.
Only one timeslot bundling mode can be supported on one CT1/PRI interface
during a time period. In other words, this command cannot be used together with
the pri-set command.
Example
clock Syntax
undo clock
View
Parameter
Description
Using the clock command, you can set the clock mode on a CT1/PRI interface.
Using the undo clock command, you can restore the default clock mode on the
interface.
By default, the CE1/PRI interface adopts the line clock mode (slave).
When a CT1/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, the
slave clock mode for it.
Example
Set the clock mode of the CT1/PRI interface to internal clock (master) mode.
code Syntax
undo code
View
Parameter
b8zs: Adopts the Bipolar with 8-Zero Substitution (b8zs) line code format.
Description
Using the code command, you can set the line code format for a CT1/PRI
interface. Using the undo code command, you can restore the default line code
format of the interface.
Fundamental CT1/PRI Interface Configuration Commands 175
You should keep the line code format of the interface consistent with the one
used by the remote device.
Example
controller t1 Syntax
controller t1 number
View
System view
Parameter
Description
Using the controller t1 command, you can enter a CT1/PRI interface view.
Example
[3com]controller t1 1/0/0
[3com-T1 1/0/0]
View
Any view
Parameter
Description
Using the display controller t1 command, you can display the information related
to a CT1/PRI interface. All T1 interfaces will be displayed if no parameter is
selected.
Example
frame-format Syntax
frame-format { sf | esf }
undo frame-format
View
Parameter
sf: Sets the frame format of CT1/PRI interface to Super Frame (SF).
esf: Sets the frame format of CT1/PRI interface to Extended Super Frame (ESF).
Description
Using the frame-format command, you can set the frame format on a CT1/PRI
interface. Using the undo frame-format command, you can restore to the default
frame format on the interface.
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 can be used for transmitting user data. In practice, a system should
be tested often. The application of ESF makes it possible for the system to provide
the services while it is being tested.
Example
[3com-T1 1/0/0]frame-format sf
loopback Syntax
undo loopback
View
Parameter
Description
Using the loopback command, you can enable a CT1/PRI interface to perform
loopback. Using the undo loopback command, you can disable the CT1/PRI
interface to perform loopback.
Loopback is used to check the condition of interface or cable. This function should
be disabled when they are in normal operation.
Example
pri-set Syntax
undo pri-set
View
Parameter
range: The number of the timeslots that are bundled, which is in the range of 1 to
24. When specifying the timeslots to be bundled, you can 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
Using the pri-set command, you can bundle the timeslots of a CT1/PRI interface
into a pri-set. Using the undo pri-set command, you can remove the timeslot
bundle.
When performing pri-set bundling on a CT1/PRI interface, you should note that
you are not allowed to bundle only timeslot 24, because it is the D channel for
transmitting signals. Attempts to bundle only timeslot 24 will fail.
178 CHAPTER 3: INTERFACE MANAGEMENT COMMANDS
The system will automatically create a serial interface after the operation of
timeslot bundling on the interface. This serial interface has the same logic features
as an ISDN PRI interface. The serial interface is numbered in the form of serial
number:23, in which number starts from the maximum serial interface number
plus 1.
Only one timeslot bundling mode can be supported on one CE1/PRI interface
during a time period. In other words, this command cannot be used together with
the channel-set command.
Example
Bundle the timeslots 1, 2, and 8-12 of the CT1/PRI interface into a pri-set.
E1-F Interface
Configuration
Commands
View
Any view
Parameter
Description
Using the display fe1 serial command, you can view the configuration and state of
E1-F interface.
If the specified interface is a serial interface rather than an E1-F interface, the
system will display the error prompt “The serial is not a factional interface”.
Example
View
Parameter
Description
Using the fe1 clock command, you can configure clock used by an E1-F interface.
Using the undo fe1 clock command, you can restore the default clock of the
interface.
For an E1-F interface used as DCE, master clock should be used. If the interface is
used as DTE, however, the slave clock should be used.
Example
View
Parameter
Description
Using the fe1 code command, you can configure line code format for an E1-F
interface. Using the undo fe1 code command, you can restore the default line
code format of interface.
The line code of an interface should be set consistent with that of the peer.
Example
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..
Description
Using the fe1 frame-format command, you can configure the framing format for
an E1-F interface. Using the undo fe1 frame-format command, you can restore the
default framing format of the interface.
Example
View
Parameter
Description
Using the fe1 loopback command, you can configure an E1-F interface in local or
remote loopback. Using the undo fe1 loopback command, you can disable the
local and remote loopback on the interface.
Local loopback and remote loopback are used for testing the state of interface or
cable itself. These functions should be disabled in normal cases. On an interface,
using this command, but with different arguments, can enable local loopback and
remote loopback, but these two functions cannot be enabled at the same time.
Example
View
Parameter
all: Binds all the time slots on an interface, the interface rate will become 31 X
64kbps (that is, 1984kbps) after binding.
Description
Using the fe1 timeslot-list command, you can configure the time slots that will
participate in the binding operation on an E1-F interface. Using the undo fe1
timeslot-list command, you can restore the default setting of time slot binding.
By default, all the time slots on an E1-F interface are bound. That is, the E1-F
interface rate defaults to 1984kbps.
Example
Bind the time slots 1, 2, 5, 10 through 15, and 18 on the E1-F interface.
fe1 unframed
View
Parameter
None
Description
Using the fe1 unframed command, you can configure an E1-F interface to work in
unframed mode. Using the undo fe1 unframed command, you can configure the
E1-F interface to work in framed mode.
When it works in framed mode, however, it is physically divided into 32 time slots
numbered in the range of 0 to 31, and time slot 0 is used for transmitting
synchronization information.
Example
T1-F Interface
Configuration
Commands
View
Parameter
long decibel: Matches the transmission line 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 transmission line shorter than 655 feet. The argument
length can take 133ft, 266ft, 399ft, 533ft, and 655ft, depending on the length of
transmission line.
Description
Using the ft1 cable command, you can configure attenuation or length of the
transmission line matched a T1-F interface. Using the undo ft1cable command,
you can restore the default setting.
By default, the transmission line attenuation matched T1-F interfaces is long 0db.
This command is mainly used for configuring the signal waveform required for
different types of transmission. In practice, you can decide whether to use this
command according to the signal quality at the receiving end. If the signal quality
is acceptable, the default setting can be used.
Example
Set the length of the transmission line matched the T1-F interface to 133 feet.
View
Any view
Parameter
Description
Using the display ft1 serial command, you can view the configuration and state of
T1-F interface.
If the specified interface is a serial interface rather than a T1-F interface, the
system will display the error prompt “The serial is not a factional interface”.
Example
View
Parameter
Description
Using the ft1 clock command, you can configure the clock used by an E1-F or T1-F
interface. Using the undo ft1 clock command, you can restore the default clock of
the interface.
T1-F Interface Configuration Commands 185
For a T1-F interface used as DCE, master clock should be used. If the interface is
used as DTE, however, the slave clock should be used.
Example
View
Parameter
Description
Using the ft1 code command, you can configure the line code format for a T1-F
interface. Using the undo ft1 code command, you can restore the default line
code format of interface.
The line code of an interface should be set in consistency with that of the peer.
Example
View
Parameter
esf: Adopts ESF as the framing format for the T1-F interface.
Description
Using the ft1 frame-format command, you can configure the framing format for a
T1-F interface. Using the undo ft1 frame-format command, you can restore the
default framing format of the interface.
T1-F interfaces support SF and ESF. In SF, multiple frames can share the same frame
synchronization and signaling information, so that more significant bits can be
used for transmitting user data. In practice, the system test is often required. The
application of ESF technology can ensure normal service when system test is being
carried out.
Example
View
Parameter
Description
Using the ft1 loopback command, you can configure a T1-F interface in local or
remote loopback. Using the undo ft1 loopback command, you can disable the
local and remote loopback on the interface.
Local loopback and remote loopback are used for testing the state of interface or
cable itself. These functions should be disabled in normal cases. On an interface,
using this command but with different arguments can respectively enable local
loopback and remote loopback, but these two functions cannot be enabled at the
same time.
Example
Parameter
all: Binds all the time slots on an interface. The interface rate will become 24 X
64kbps (that is, 1536kbps) after binding.
speed { 56 | 64 }: Speed in kbps, which is used for time slot binding. If the
argument 56 is used, timeslots will be bound into N X 56kbps. If the argument 64
is used, timeslots will be bound into N X 64kbps.
Description
Using the ft1 timeslot-list command, you can configure the time slots that will
participate in the binding operation on a T1-F interface. Using the undo ft1
timeslot-list command, you can restore the default setting of time slot binding.
By default, all the time slots on a T1-F interface are bound. That is, the T1-F
interface rate defaults to 1536kbps.
When performing time slot binding on a T1-F interface, the speed assigned to a
time slot defaults to 64kbps.
The time slot binding operation on a T1-F interface results in a change of interface
rate. For example, after the user binds the time slots 1 through 10, the interface
rate becomes 10 X 64kbps (or 10 X 56 kbps).
Example
Bind the time slots 1, 2, 5, 10 through 15, and 18 on the T1-F interface.
Fundamental CE3
Interface
Configuration
Commands
clock Syntax
undo clock
View
Parameter
Description
Using the clock command, you can set the clock mode on a CE3 interface. Using
the undo clock command, you can restore the default clock mode on the
interface.
By default, the CE3 interface adopts the line clock mode (slave).
If the CE3 interfaces on the two routers are directly connected, one router should
use the internal clock whereas the other router uses the line clock.
Example
controller e3 Syntax
controller e3 interface-number
View
System view
Parameter
Description
Using the controller e3 command, you can enter the CE3 interface view.
Example
[3com]controller e3 1/0/0
[3com-E3 1/0/0]
View
Any view
Parameter
Description
Using the display controller e3 command, you can view the state information of a
CE3 interface.
In addition to the state information of the CE3 interface, the command can display
the information of each E1 line on the CE3 interface if the interface is working in
CE3 mode.
Example
E3-0 CE1 7 is up
Frame-format NO-CRC4, clock slave, loopback not set
E3-0 CE1 8 is up
Frame-format NO-CRC4, clock slave, loopback not set
E3-0 CE1 9 is up
Frame-format NO-CRC4, clock slave, loopback not set
E3-0 CE1 10 is up
Frame-format NO-CRC4, clock slave, loopback not set
E3-0 CE1 11 is up
Frame-format NO-CRC4, clock slave, loopback not set
E3-0 CE1 12 is up
Frame-format NO-CRC4, clock slave, loopback not set
E3-0 CE1 13 is up
Frame-format NO-CRC4, clock slave, loopback not set
E3-0 CE1 14 is up
Frame-format NO-CRC4, clock slave, loopback not set
E3-0 CE1 15 is up
Frame-format NO-CRC4, clock slave, loopback not set
E3-0 CE1 16 is up
Frame-format NO-CRC4, clock slave, loopback not set
e1 channel-set Syntax
View
Parameter
range: The number of the timeslots that are bundled, which is in the range of 1 to
31. When specifying the timeslots to be bundled, you can 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
Using the e1 channel-set command, you can bundle the timeslots of an E1 line.
Using the undo e1 channel-set command, you can remove the timeslot bundle.
A CE3 interface can be channelized into 64Kbps lines and the timeslots of each E1
line can be bundled up to 31 channels.
When an E1 line operates at framed (CE1) mode, you can bundle the timeslots on
it. The system will automatically create a serial interface numbered serial number /
Fundamental CE3 Interface Configuration Commands 191
Example
Bundle a 128Kbps serial interface on the first E1 line on the interface E3 1/0/0.
View
Parameter
Description
Using the e1 set clock command, you can set the clock mode for an E1 line on a
CE3 interface. Using the undo e1 clock command, you can restore the default
setting.
The E1 lines on a CE3 interface working in channelized mode are allowed to use
separate clocks.
Example
Configure the first E1 line on the E3 interface to adopt line clock mode.
View
Parameter
Description
Using the e1 set frame-format command, you can configure the frame format for
an E1 line. Using the undo e1 set frame-format command, you can restore the
default setting.
Only if an E1 line is working in framed format (which can be set by using the undo
e1 unframed command) can this command be configured.
Example
Configure the first E1 line on the E3 interface to adopt the frame format crc4.
View
Parameter
Description
Using the e1 set loopback command, you can set the loopback mode of an E1 line
on an E3 interface. Using the undo e1 set loopback command, you can disable the
E1 line to loop back.
If an E1 line encapsulated with PPP has been set to perform loopback, it is normal
for the state of the link layer protocol to be reported as DOWN.
Example
Set the loopback mode of the first E1 line on the E3 interface to local.
e1 shutdown Syntax
e1 line-number shutdown
View
Parameter
Description
Using the e1 shutdown command, you can shut down an E1 line on the CE3
interface. Using the undo e1 shutdown command, you can enable the E1 line.
This command will affect not only the specified E1 line but also the serial
interfaces formed by bundling the timeslots of the E1 line. Executing the e1
shutdown command on the specified E1 line will shut down all these serial
interfaces and the data transmission and receiving will be stopped as a result.
Likewise, executing the undo e1 shutdown command will re-enable all these serial
interfaces.
Example
e1 unframed Syntax
e1 line-number unframed
View
Parameter
Description
Using the e1 unframed command, you can set an E1 line on a CE3 interface to
work in unframed mode (E1 mode). Using the undo e1 unframed command, you
can set the E1 line on the CE3 interface to work in framed mode (CE1 mode).
An E1 line in unframed mode does not contain the frame control information and
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 2048 Kbps and has
the same logic features of a synchronous serial interface on which you can make
other configurations.
Example
loopback Syntax
undo loopback
View
Parameter
payload: Places the CE3 interface in an remote payload loopback. Data passes the
framer in this case and will be looped back after payload is generated.
remote: Enables the CE3 interface to perform remote loopback. Data does not go
through the framer in this case and will be looped back before the payload has
been generated.
Description
Using the loopback command, you can configure the loopback mode of a CE3
interface. Using the undo loopback command, you can disable the CE3 interface
to perform loopback.
It is necessary for you to enable the CE3 interface to perform loopback only for the
purpose of testing some special functions.
Fundamental CE3 Interface Configuration Commands 195
If a CE3 interface encapsulated with PPP has been set to perform loopback, it is
normal for the state of the link layer protocol to be reported as DOWN.
Example
national-bit Syntax
national-bit { 0 | 1 }
undo national-bit
View
Parameter
Description
Using the national-bit command, you can configure national bit for a CE3
interface. Using the undo national-bit command, you can restore the default
setting.
Example
using Syntax
using { e3 | ce3 }
undo using
View
Parameter
Description
Using the using command, you can configure the operating mode of a CE3
interface. Using the undo using command, you can restore the default setting.
Only when the CE3 interface is working in channelized mode can you configure
the E1 lines on it.
Example
[3com-E3 1/0/0]using e3
Fundamental CT3
Interface
Configuration
Commands
cable Syntax
cable feet
undo cable
View
Parameter
Description
Using the cable command, you can configure the length of the cable with which a
CT3 interface is connected. Using the undo cable command, you can restore the
default length of the cable with which the CT3 interface is connected.
The length of the cable for CT3 interface connection refers to the distance
between the router and the cable distribution rack.
Example
[3com-T3 1/0/0]cable 50
clock Syntax
undo clock
View
Parameter
Description
Using the clock command, you can set the clock mode on a CT3 interface. Using
the undo clock command, you can restore the default clock mode on the
interface.
By default, the CT3 interface adopts the line clock mode (slave).
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
controller t3 Syntax
controller t3 interface-number
View
System view
Parameter
Description
Using the controller t3 command, you can enter the CT3 interface view.
Example
[3com]controller t3 1/0/0
[3com-T3 1/0/0]
crc Syntax
crc { 16 | 32 | no-crc}
undo crc
View
Parameter
Description
Using the crc command, you can configure CRC mode of the serial interface
formed by CT3. Using the undo crc command, you can restore the default setting.
Example
Apply 32-bit CRC to the serial interface formed by the interface T3 1/0/0 in
unchannelized mode.
[3com-Serial1/0/0:0] crc 32
frame-format Syntax
undo frame-format
View
Parameter
Description
Using the frame-format command, you can configure the frame format used by a
CT3 interface. Using the undo frame-format command, you can restore the
default frame format used by the CT3 interface.
Example
loopback Syntax
undo loopback
View
Parameter
payload: Places the CT3 interface in an external payload loop. Data passes the
framer in this case and will be looped back after payload is generated.
remote: Enables the CT3 interface to perform remote loopback. Data does not go
through the framer in this case and will be looped back before the payload has
been generated.
Description
Using the loopback command, you can configure the loopback mode of a CT3
interface. Using the undo loopback command, you can disable the CT3 interface
to perform loopback.
Loopback is usually used for some special detection. It should not be enabled in
normal working condition.
If a CT3 interface encapsulated with PPP has been set to perform loopback, it is
normal for the state of its link layer protocol to be reported as DOWN.
200 CHAPTER 3: INTERFACE MANAGEMENT COMMANDS
Example
t1 channel-set Syntax
View
Parameter
range: The number of the timeslots that are bundled, which is in the range of 1 to
24. When specifying the timeslots to be bundled, you can 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.
speed: Timeslot bundling mode. If 56k is selected, the timeslots will be bundled
into N x 56Kbps. If 64k is selected, the timeslots will be bundled into N x 64 Kbps.
Speed defaults to 64k.
Description
Using the t1 channel-set command, you can bundle the timeslots of a T1 line.
Using the undo t1 channel-set command, you can remove the timeslot bundle.
When a T1 line operates at framed (CT1) mode, you can bundle the timeslots on
it. The system will automatically create a serial interface numbered serial number /
line-number:set-number for the channel-set. This interface operates at N x 64
Kbps (or N x 56 Kbps) and has the same logic features of a synchronous serial
interface on which you can make other configurations.
Example
Bundle a 128Kbps serial interface on the first T1 line on the interface T3 1/0/0.
View
Parameter
Description
Using the t1 set clock command, you can set the clock mode for a T1 line on a
CT3 interface. Using the undo e1 clock command, you can restore the default
setting.
The E1 lines on a CE3 interface working in channelized mode are allowed to use
separate clocks.
Example
View
Parameter
esf: Set the T1 line to use the Extended Super Frame (ESF) format.
sf: Set the T1 line to use the Super Frame (SF) format.
202 CHAPTER 3: INTERFACE MANAGEMENT COMMANDS
Description
Using the t1 set frame-format command, you can configure the frame format of
T1 line. Using the undo t1 set frame-format command, you can restore the default
setting.
Only if a T1 line is working in framed format (which can be set by using the undo
t1 unframed command) can this command be configured.
Example
Adopt the frame format SF for the first T1 line on the T3 interface.
View
Parameter
Description
Using the t1 set loopback command, you can set the loopback mode of a T1 line
on a T3 interface. Using the undo t1 set loopback command, you can disable the
T1 line to loop back.
If a T1 line encapsulated with PPP has been set to perform loopback, it is normal
for the state of its link layer protocol to be reported as DOWN.
Loopback is usually used for some special tests. It should not be enabled in normal
working condition.
Example
Set the loopback mode on the first T1 line on the T3 interface to local.
t1 shutdown Syntax
t1 line-number shutdown
View
Parameter
Description
Using the t1 shutdown command, you can shut down a T1 line on the CT3
interface. Using the undo t1 shutdown command, you can enable the T1 line.
This command will affect not only the specified T1 line but also the serial
interfaces formed by bundling the timeslots of the T1 line. Executing the t1
shutdown command on the specified T1 line will shut down all these serial
interfaces and the data transmission and receiving will be stopped as a result.
Likewise, executing the undo t1 shutdown command will re-enable all these serial
interfaces.
Example
t1 unframed
Syntax
View
Parameter
speed: Timeslot bundling mode. If 56k is selected, the timeslots will be bundled
into N x 56Kbps. If 64k is selected, the timeslots will be bundled into N x 64 Kbps.
Speed defaults to 64k.
204 CHAPTER 3: INTERFACE MANAGEMENT COMMANDS
Description
Using the t1 unframed command, you can set a T1 line on a CT3 interface to work
in unframed mode (T1 mode). Using the undo t1 unframed command, you can set
the T1 line on the CT3 interface to work in framed mode (CT1 mode).
A T1 line in unframed mode does not contain the frame control information and
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.
Example
using Syntax
using { t3 | ct3 }
View
Parameter
Description
Using the using command, you can configure the operating mode of a CT3
interface. Using the undo using command, you can restore the default setting.
Only when the CT3 interface is working in channelized mode can you configure
the T1 lines on it.
Example
[3com-T3 1/0/0]using t3
View
Any view
Parameter
Description
Using the display controller t3 command, you can view the state information of a
CT3 interface.
In addition to the state information of the CT3 interface, the command can display
the information of each T1 line on the CT3 interface if the interface is working in
CT3 mode.
Example
cable Syntax
undo cable
View
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.
206 CHAPTER 3: INTERFACE MANAGEMENT COMMANDS
Description
Using the cable command, you can configure the cable mode of the ATM T3
cable, to set the distance between the router and the cable distribution frame.
Using the undo cable command, you can restore the default setting.
Example
<3com> system-view
[3com] interface atm 1/0/0
[3com-Atm1/0/0] cable long
clock Syntax
undo clock
View
Parameter
Description
Using the clock command, you can set the clock mode of ATM E3/T3 interface.
Using the undo clock command, you can restore the default setting.
Example
<3com> system-view
[3com] interface atm 2/0/0
[3com-Atm2/0/0] clock master
View
Any view
ATM E3/T3 Interface Configuration Commands 207
Parameter
Description
Using the display interface atm command, you can view the configuration and
status of ATM E3/T3 interface. If no interface-number is specified, the system will
display the configuration and status of all ATM interfaces.
Example
frame-format Syntax
undo frame-format
View
Parameter
Description
Using the frame-format command, you can configure frame format of ATM E3/T3
interface. Using the undo frame-format command, you can restore the default
configuration.
By default, frame format g751-plcp is used for ATM E3 and cbit-plcp used for ATM
T3.
208 CHAPTER 3: INTERFACE MANAGEMENT COMMANDS
Example
<3com> system-view
[3com] interface atm 1/0/0
[3com-Atm1/0/0] frame-format g832-adm
loopback Syntax
undo loopback
View
Parameter
Description
Using the loopback command, you can enable the loopback function of the
interface. Using the undo loopback command, you can disable the loopback
function.
Example
<3com> system-view
[3com] interface atm 2/0/0
[3com-Atm2/0/0] loopback payload
scramble Syntax
scramble
undo scramble
View
Parameter
None
Description
Using the scramble command, you can enable scrambling function of ATM E3/T3
interface. Using the undo scramble command, you can disable the scrambling
function.
The scramble command is used to enable the scramble and descramble function
on payload, with no influence on the cell header.
Example
<3com> system-view
[3com] interface atm 2/0/0
[3com-Atm2/0/0] undo scramble
clock Syntax
undo clock
View
Parameter
Description
Using the clock command, you can set the clock mode on an ATM interface. Using
the undo clock command, you can restore the default clock mode on the
interface.
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.
210 CHAPTER 3: INTERFACE MANAGEMENT COMMANDS
Example
<3com> system-view
[3com] interface atm 4/0/0
[3com-Atm4/0/0] clock master
ATM OC-3c/STM-1
Interface
Configuration
Commands
clock Syntax
undo clock
View
Parameter
Description
Using the clock command, you can set the clock mode on an ATM interface. Using
the undo clock command, you can restore the default clock mode on the
interface.
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
<3com> system-view
[3com] interface atm 4/0/0
[3com-Atm4/0/0] clock master
View
Any view
Parameter
Description
Using the display interface atm command, you can view the configuration and
state information of ATM OC-3c/STM-1 interface(s).
Example
View the configuration and state information of the ATM interface 4/0/0.
frame-format Syntax
undo frame-format
View
Parameter
Description
Using the frame-format command, you can set the frame format of ATM
OC-3c/STM-1 interface. Using the undo frame-format command, you can restore
the default setting.
Example
loopback Syntax
undo loopback
212 CHAPTER 3: INTERFACE MANAGEMENT COMMANDS
View
Parameter
Description
Using the loopback command, you can enable the loopback function on an ATM
OC-3c/STM-1 interface. Using the undo loopback command, you can disable the
loopback function.
It is necessary for you to enable the interface to perform loopback only for the
purpose of testing some special functions. You should not enable the loopback
function when the interface is providing normal services.
Example
scramble Syntax
scramble
undo scramble
View
Parameter
None
Description
Using the scramble command, you can enable an undo scramble to scramble the
payload on ATM OC-3c/STM-1 interface. Using the undo scramble command, you
can disable the scrambling function.
Example
G.SHDSL Interface
Configuration
Commands
activate Syntax
activate
undo activate
View
Parameter
None
Description
Using the activate command, you can enable a G.SHDSL interface. Using the undo
activate command, you can disable a G.SHDSL interface.
The commands are mainly used in link testing and fault diagnosis.
A G.SHDSL interface is always on so it will enter the active state as long as the link
is functional. The router supports timed loop detection, so the G.SHDSL interface
is activated when the link performance has deteriorated.
214 CHAPTER 3: INTERFACE MANAGEMENT COMMANDS
Example
shdsl annex { a | b }
View
Parameter
a: Annex a
b: Annex b
Description
Using the shdsl annex command, you can configure annex standard at an SHDSL
interface. You cannot activate a link with different standard types at both ends.
Using the undo shdsl annex command, you can restore the default standard.
Example
undo rate
View
Parameter
Description
Using the shdsl rate command, you can specify maximum rate at SHDSL interface
or just select auto-negotiation mode. Using the undo rate command, you can
restore the default setting.
Example
undo snr
View
Parameter
Description
Using the shdsl snr command, you can specify SNR (signal-to-noise ratio) value at
an SHDSL interface. Using the undo snr command, you can restore the default
value.
Example
undo margin
View
Parameter
Description
Using the shdsl margin command, you can enable SNR target margin. Using the
undo margin command, you can restore the default value.
Example
View
Any view
Parameter
Description
Using the display dsl configuration command, you can view DSL configuration
information.
Example
10: 003f 000f 0000 0030 003f 003f 003f 003f 000f 0000
20: 0000 0000 0003 0003 0004 0010
View
Any view
Parameter
Description
Using the display dsl status interface atm command, you can view DSL interface
state.
Example
Tx Cells: 0
Rx Cells: 0
Drop Cells: 0
HecErr Cells: 0
CRCS: 135
SEGAS: 335
LOSWS: 4
Int Count
TX EOC: 0
RX EOC: 4
RX LOSD: 0
RX SEGA: 0
RX PS: 0
RX SEGD: 0
RX LOSWS: 1
Field Description
Operating Mode CPE stands for customer premises equipment and CO for central
office.
Wire Type The options include 2-line type and 4-line type. Currently only
2-line type is available.
Phy Op State Interface state and the options include activating, active,
startup, deactivated and test mode.
Xcvr Op State Transceiver state and the options include idle, data mode,
handshaking and training.
Actual LoopAttn(dB) Actual loop attenuation
Actual RecvGain(dB) Actual receive gain
Actual TxPower(dBm) Actrual transmit gain
FrmOH Stat FirmWare Over Head state
Rmt NSF Cusdata User data
Rmt NSF CusID User ID
View
Any view
Parameter
Description
Using the display dsl version command, you can display DSL version and functions
available.
Example
ADSL Interface
Configuration
Commands
activate Syntax
activate
undo activate
View
Parameter
None
Description
Using the activate command, you can activate an ADSL interface. Using the undo
activate command, you can deactivate an ADSL interface.
Before an ADSL port can operate services, you must activate it. “ACTIVATE” in this
particular context refers to the training conducted between an ADSL central office
and a remote ATU-R. The activation procedure will be specified in compliance with
the ADSL standard, channel mode, uplink and downlink speeds, and the noise
tolerance specified in the line configuration template. It will test the line distance
and state, make the central office and the remote device make negotiation, and
confirm whether the normal operation is allowed in the these conditions. If the
training succeeds, the central office and the remote device can set up a
communication connection for transporting services between them. This process is
also called port activation. This connection will disappear upon the deactivation of
the ADSL port. To transport new services, you must re-activate the port.
You should note that ADSL is always online, which is different from DCC.
Therefore, after the device is booted, the ADSL interface will automatically enable
220 CHAPTER 3: INTERFACE MANAGEMENT COMMANDS
the activation task and enter the active state. It will stay active as long as the line is
in good condition. The router tests the line performance at a regular interval and
will automatically deactivate the line and perform a new training and re-activation
once it finds out that the line performance has deteriorated.
Example
[3com-Atm1/0]undo activate
View
Parameter
Description
Using the adsl standard command, you can set the standard applied to an ADSL
interface. Using the undo adsl standard command, you can restore the default
standard used by the ADSL interface.
You should note that this configuration does not take effect unless you activate
the interface again. If you want to make it take effect immediately, you can
execute the shutdown/undo shutdown command or the activate/undo activate
command.
Example
[3com -Atm1/0/0]shutdown
[3com -Atm1/0/0]
Standard: T1.413
Annex: A
Framing: 3
Tx Pow Attn(dB): 0
Bit-Swap: disable
LinkCheck: Enable
Framing: 3 3
Rate(Bytes): 238 26
FEC(fast): 0 0
00: 0 0 0 0 0 0 7 8 a a a a 8 a b c c c b b b b b b 9 9 a a 9 8 8 0
20: 0 0 0 0 2 2 2 3 4 4 5 6 6 7 7 8 8 8 8 8 9 9 a a a a a a a 8 9 a
40: 0 a a a a b b b b b a b b b b b b b b b b b b b b b b b b b b b
60: b b b b b b b b b b b b b b b b b b b a 9 4 a b b b b b b b b b
80: b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b
a0: b b b a b a b a b b a b b b b b a a b a a b b a a a a a a a a a
c0: a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
e0: a 9 9 a 9 9 9 9 9 9 8 9 9 9 9 9 9 9 9 9 8 8 8 8 8 7 7 7 7 6 6 6
View
Parameter
Description
Using the adsl tx_attenuation command, you can set attenuation value for ADSL
transmit power. Using the undo adsl tx_attenuation command, you can restore
the default value.
Example
[3com-Atm1/0/0] adsl tx_attenuation 10
View
Any view
Parameter
Description
Using the display dsl configuration command, you can display the actual ADSL
configuration information.
Example
Standard: T1.413
Annex: A
Framing: 3
Tx Pow Attn(dB): 0
Bit-Swap: disable
LinkCheck: Enable
Framing: 3 3
Rate(Bytes): 238 26
FEC(fast): 0 0
00: 0 0 0 0 0 0 7 8 a a a a 8 a b c c c b b b b b b 9 9 a a 9 8 8 0
20: 0 0 0 0 2 2 2 3 4 4 5 6 6 7 7 8 8 8 8 8 9 9 a a a a a a a 8 9 a
40: 0 a a a a b b b b b a b b b b b b b b b b b b b b b b b b b b b
60: b b b b b b b b b b b b b b b b b b b a 9 4 a b b b b b b b b b
80: b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b
a0: b b b a b a b a b b a b b b b b a a b a a b b a a a a a a a a a
c0: a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
e0: a 9 9 a 9 9 9 9 9 9 8 9 9 9 9 9 9 9 9 9 8 8 8 8 8 7 7 7 7 6 6 6
View
Any view
Parameter
Description
Using the display dsl status command, you can display the DSL state information.
Example
State of driver/chipsets
SEF(sef): 0 0
LOS(los): 0 0
RSI(fec-I): 0 0
RSF(fec-F): 0 0
CRCI(crc-I): 2 0
CRCF(crc-F): 0 0
ATM Count
NCDI(ncd-I): 0 0
NCDF(ncd-F): 0 0
OCDI(ocd-I): 0
OCDF(ocd-F): 0
HECI(hec-I): 0 0
HECF(hec-F): 0 0
Adsl Defects
Overall: 0
SEF(sef): 0 0
226 CHAPTER 3: INTERFACE MANAGEMENT COMMANDS
LOS(LOS): 0 0
ATM Defects
NCDI(ncd-I): 0 0
NCDF(ncd-F): 0 0
LCDI(lcd-I): 0 0
LCDF(lcd-F): 0 0
View
Any view
Parameter
Description
Using the display dsl version command, you can display the DSL version
information and the supported capabilities.
Example
FW Release: T7941
Revision: 1
DSP Version: 0
AFE Version: 0
Adsl Capability
Fundamental Logical This chapter only discusses basic configuration of logical interfaces. For
Interface configuration of link-layer and network-layer protocols, refer to corresponding
Configuration sections in this guide.
Commands
Sub-Interface
Configuration
Commands
interface Syntax
View
System view
228 CHAPTER 3: INTERFACE MANAGEMENT COMMANDS
Parameter
Description
Using the interface command, you can create sub-interface of point to multipoint
or point to point types. Using the undo interface command, you can delete
specified sub-interface.
Example
<3com> system-view
[3com] interface atm 2/0/0.1
[3com-Atm2/0/0.1]
View
System view
Parameter
Description
Using the interface ethernet command, you can create Ethernet sub-interface.
Using the undo interface ethernet command, you can delete specified Ethernet
sub-interface.
Example
Logic-Channel
Interface
View
System view
Parameter
Description
Example
Configuration
Command of Virtual
Template and Virtual
Access Interface
View
Parameter
number: Maximum link number that the virtual template supports for sending
multicast or broadcast packets, ranging from 0 to 128. The default value is 30.
Description
Using the broadcast-limit link command, you can configure the maximum link
number that virtual template supports for sending multicast or broadcast packets.
Using the undo broadcast-limit link command, you can restore the default
configuration.
When there are many links on a 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 as a limitation, so that multicast or
broadcast packets are discarded if the link number exceeds the limitation.
Example
View
Any view
Parameter
number: Number of virtual template, ranging from 0 to 1023. The state of all
virtual template will be displayed, if this parameter is not specified.
Configuration Command of Virtual Template and Virtual Access Interface 231
Description
Using the display interface virtual-template command, you can view the status
information of virtual template.
Example
View
Any view
Parameter
Description
Using the display virtual-access command, you can view the state information of
virtual access interface.
Example
interface Syntax
virtual-template
interface virtual-template number
View
System view
232 CHAPTER 3: INTERFACE MANAGEMENT COMMANDS
Parameter
Description
Using the interface virtual-template command, you can create virtual template or
enter existing virtual template view. Using the undo interface virtual-template
command, you can delete specified virtual template.
In deleting the virtual template, make sure that all its derived virtual access
interfaces have been removed and this virtual template is not in use any more.
Example
MP-group Interface
Configuration
Command
View
Any view
Parameter
Description
Using the display interface mp-group command, you can view the status of
MP-group interface.
Example
View
System view
Parameter
Description
Using the interface mp-group command, you can create a MP-group interface.
Using the undo interface mp-group command, you can delete specified MP-group
interface.
This command is used in concert with the ppp mp mp-group command. Either
MP-group interface or interface added in MP group can be configured first.
Example
View
Interface view
Parameter
Description
Using the ppp mp mp-group command, you can add the current interface to a
specified MP group. Using the undo ppp mp mp-group command, you can
remove the current interface from a specified MP group.
This command is used with the interface mp-group command. Either MP-group
interface or interface added in MP group can be configured first.
Example
Virtual Ethernet
Interface
Configuration
Command
View
Any view
Parameter
Description
Using the display interface virtual-ethernet command, you can view status of a
virtual Ethernet interface.
Example
interface Syntax
virtual-ethernet
interface virtual-ethernet number
View
System view
Virtual Ethernet Interface Configuration Command 235
Parameter
Description
Using the interface virtual-ethernet command, you can create a virtual Ethernet
interface. Using the undo interface virtual-ethernet command, you can delete the
specified virtual Ethernet interface.
Example
mac-address Syntax
mac-address H-H-H
undo mac-address
View
Parameter
H-H-H: Mac address of virtual Ethernet interface, in the form of hex character
string.
Description
Using the mac-address command, you can configure the Mac address of a virtual
Ethernet interface. Using the undo mac-address command, you can restore the
default configuration.
By default, for a virtual Ethernet interface created on VIU, its MAC address is the
same as the MAC address of Ethernet interface carried by VIU itself.
For a virtual Ethernet interface created on RSU, its MAC address is 0 by default.
Example
Configuration
Command of
Loopback Interface
and Null Interface
View
Any view
Parameter
Description
Using the display interface loopback command, you can view status of the
loopback interface.
Example
View
Any view
Parameter
Description
Using the display interface null command, you can view status of Null interface.
Example
View
System view
Parameter
Description
Using the interface loopback command, you can create a Loopback interface or
enter Loopback interface view. Using the undo interface loopback command, you
can delete a specified Loopback interface.
After a Loopback interface is created, it always keeps up state, and bears loopback
feature, so it is often used to improve the reliability of configuration.
Example
interface null 0
238 CHAPTER 3: INTERFACE MANAGEMENT COMMANDS
View
System view
Parameter
none
Description
Using the interface null command, you can enter the Null interface view.
There is only one Null interface, fixed as null0, which is fixed, and cannot be
deactivated or deleted.
Example
PPP and MP
Configuration
Commands
View
Any view
Parameter
Description
Using the display ppp mp command, you can view all the interface information
and statistics of MP.
For the related commands, see link-protocol ppp and ppp mp.
Example
Field Description
Template is Virtual-Template1 Virtual-template interface
Bundle quid0 Bundle name
1 member The number of bound channels
slot 3 Bundled in slot 3
Master link is Virtual-Template1:0 Master link
0 lost fragments Lost fragments
0 reordered Reordered packet number
0 unassigned Unassigned fragments
sequence 0/0 rcvd/sent Received sequence number/sent sequence
number
The bundled son channels are: The following displays all the bundled son
channels at this logical channel
240 CHAPTER 4: LINK LAYER PROTOCOL
The part in boldface is the relative information of PPP, including the current status
of LCP and IPCP. Users can diagnose some faults according to the information.
ip tcp vjcompress
View
Interface view
Parameter
None
Description
Using the ip tcp vjcompress command, you can enable a PPP interface to compress
the VJ TCP header. Using the undo ip tcp vjcompress command, you can 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.
Example
link-protocol ppp
View
Parameter
None
Description
Using the link-protocol ppp command, you can configure the link-layer protocol
encapsulated on the interface as PPP.
Example
mp binding-mode Syntax
View
System view
Parameter
both: Performs the MP binding based on both the authentication user name of
PPP and the terminal identifier.
Description
Using the ppp mp binding-mode command, you can set the MP binding
condition. Using the undo ppp mp binding-mode command, you can restore the
default value of the MP binding condition.
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.
Example
Perform the MP binding only based on the user name of the PPP authentication.
View
Interface view
Parameter
scheme -name: Accounting method list, indicating that which method list is
adopted for accounting.
Description
Using the ppp accounting scheme command, you can set accounting for PPP user.
Using the undo ppp accounting command, you can disable the accounting .
After PPP authentication succeeds, AAA will begin to charge the peer user. The
command is used to configure the accounting method list. Please refer to “AAA
Configuration” for the detailed method list configuration.
Example
Configure to adopt the default accounting method list for accounting on Serial
0/0/0.
ppp Syntax
authentication-mode
ppp authentication-mode { chap | pap } [ call-in ] [ scheme { default | scheme
-name } ]
View
Interface view
PPP and MP Configuration Commands 243
Parameter
call-in: Authenticates the peer only when the remote user calls in.
Description
Using the ppp authentication-mode command, you can set the local PPP
authentication algorithm for the peer router. Using the undo ppp
authentication-mode command, you can cancel the configuration, i.e. no
authentication.
For the related commands, see local-user, ppp chap user, ppp pap local-user, aaa
authentication-scheme ppp, ppp pap password, and ppp chap password.
Example
View
Interface view
Parameter
password: Password.
Description
Using the ppp chap password command, you can configure the default CHAP
password while performing CHAP authentication. Using the undo ppp chap
password command, you can cancel the configuration.
While configuring CHAP authentication, you should configure the local password
to be the same as the user password at the other end.
For the related commands, see ppp authentication-mode chap and local-user.
Example
Set the user password as 3Com in plain text when the local router perform the
authentication via CHAP.
View
Interface view
Parameter
username: User name of CHAP authentication, which is the one sent to the peer
equipment to be authenticated.
Description
Using the ppp chap user command, you can configure the user name when
performing the CHAP authentication. Using the undo ppp chap user command,
you can delete the existing configuration.
Example
Configure the local user name as Root when CHAP authentication is performed on
interface Serial0/0/0.
View
Interface view
Parameter
Description
Using the ppp compression iphc command, you can enable the iphc.
Example
None
View
Interface view
Parameter
None
Description
Using the ppp compression stac-lzs command, you can set the PPP protocol to use
the Stac compression algorithm. Using the undo ppp compression stac-lzs
command, you can disable the compression at the relevant interface.
When stac-lzs compression is configured on the interface, the data frame size can
be reduced through data compression without losing the data. However, this
configuration will add load to the router. It is recommended that this function be
disabled when the router has already been overloaded. In addition, only when
246 CHAPTER 4: LINK LAYER PROTOCOL
stac-lzs is configured at both ends of a point-to-point link, will this link support the
stac-lzs compression.
Example
View
Interface view
Parameter
Description
Using the ppp dns command, you can enable the Router to provide the DNS
address for the peer. Using the undo ppp dns command, you can disable this
process.
By default, the Router does not provide the DNS address for the peer.
When other devices are connected with the Router (e.g. PC is connected to the
Router by dialing up) via the PPP protocol, the Router can assign the DNS address
to the peer equipment after the negotiation. Thus, the peer equipment can
directly access the network via the domain name.
If you connect the Router with your PC, you can use the command winipcfg or
ipconfig /all on your PC to view the DNS address provided by the Router.
For the related commands, see ppp authentication–mode pap and 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.
ppp mp Syntax
ppp mp
undo ppp mp
View
Interface view
Parameter
None
Description
Using the ppp mp command, you can enable the interface encapsulated with PPP
to operate in the MP mode. Using the undo ppp mp command, you can 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.
For the related commands, see link-protocol ppp, ppp mp user, and interface
virtual-template.
Example
[3Com-Serial1/0/0] ppp mp
View
Parameter
Description
Using the ppp mp lfi command, you can configure the link fragmentation and
interleaving features. Using the undo ppp mp lfi command, you can restore the
default configuration.
248 CHAPTER 4: LINK LAYER PROTOCOL
Example
View
Parameter
Description
Using the ppp mp max-bind command, you can configure maximum number of
bound links of MP. Using the undo ppp mp max-bind command, you can restore
the default configuration.
If a VIU board reports failure in MP removing 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.
Example
View
Parameter
size: Minimum packet size for MP outgoing packet fragmentating. When the MP
outgoing packet is smaller than this value, fragmentating 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
Using the ppp mp min-fragment command, you can set the minimum packet size
when MP outgoing packets begin to be fragmented in multiple-link binding. Using
the undo ppp mp min-fragment command, you can restore the default setting.
By default, it is 128.
If the small packet fragmentating is not expected, this command can be used to
set larger packet size value of the MP packet fragment.
Example
View
System view
Parameter
Description
Using the ppp mp user command, you can configure MP binds based on the
username. Using the undo ppp mp user command, you can cancel MP binds.
■ Local IP address and the IP address (or IP address pool) assigned to the peer PPP
Example
Specify the corresponding virtual-template as 1 for the username
3Com, and configure the IP address of the virtual-template as
202.38.60.1.
[3Com] ppp mp user 3Com bind virtual-template 1
[3Com] interface virtual-template 1
[3Com-virtual-template1] ip address 202.38.60.1 255.255.255.0
undo ppp mp
View
Interface view
Parameter
Description
Using the ppp mp virtual-template command, you can configure the virtual
template number to be bound by the interface. Using the undo ppp mp
command, you can 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 command. That is, only one of the two
commands can be configured on a same interface.
For the related commands, see link-protocol ppp and interface virtual-template.
Example
View
Interface view
Parameter
Description
Using the ppp pap local-user command, you can configure the username and
password sent by the local router when it is authenticated by the peer router via
the PAP method. Using the undo ppp pap local-user command, you can 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.
For the related commands, see ppp authentication pap-mode and local-user.
Example
Set the username of the local router authenticated by the peer end via the PAP
method as 3Com and the password as 3Com.
View
Parameter
seconds: Time interval for the interface to send keepalive packet in second. The
value ranges from 0 to 32767 and defaults to 10.
Description
Using the ppp timer hold command, you can set the timer to send keepalive
packet, while using the undo ppp timer hold command, you can restore the
default value.
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. So if the keepalive time is set to a very long time, the
datalink would be considered to be broken by the other end, and then be closed.
The keepalive time must be set same at the two end of a ppp link.
Example
View
Interface view
Parameter
Description
Using the ppp timer negotiate command, you can set the PPP negotiation timeout,
while using the undo ppp timer negotiate command, you can restore the default
value.
Example
PPPoE Server
Configuration
Commands
View
Any view
Parameter
Description
Using the display pppoe-server session command, you can view the status and
statistics of PPPoE session.
For the related commands, see link-protocol ppp and pppoe-server bind.
Example
Field Description
SID Session Identifier
Intf The corresponding Virtual-Template interface
State State of sessions
OIntf corresponding Ethernet interface
RemMAC Remote MAC, MAC address of the other end.
LocMAC Local MAC
Field Description
InP In Packets, Packages received
InO In Octets, Bytes received
InD In Discards, Received and then discarded
packages
OutP Out Packets, Packages sent
OutO Out Octets, Bytes sent
OutD Out Discard, Discarded packages that might be
sent.
View
Interface view
Parameter
number: Number of the virtual-template for access to PPPoE, and its value ranges
from 0 to 1023.
Description
Using the pppoe-server bind virtual-template command, you can enable PPPoE on
the virtual-template specified by the Ethernet interface. Using the undo
pppoe-server bind command, you can disable PPPoE protocol on the relevant
interface.
Example
pppoe-server Syntax
max-sessions local-mac
pppoe-server max-sessions local-mac number
View
System view
Parameter
Description
Using the pppoe-server max-sessions local-mac command, you can set the
maximum number of PPPoE sessions that can be established at a local MAC
address. Using the undo pppoe-server max-sessions local-mac command, you can
restore the default configuration.
Example
Set the maximum number of PPPoE sessions that can be established at a local
MAC address to 50.
pppoe-server Syntax
max-sessions
remote-mac pppoe-server max-sessions remote-mac number
View
System view
Parameter
Description
Using the pppoe-server max-sessions remote-mac command, you can set the
maximum number of PPPoE sessions that can be established at a peer MAC
address. Using the undo pppoe-server max-sessions remote-mac command, you
can restore the default configuration.
Example
Display how to set the maximum number of PPPoE sessions that can be
established at a remote MAC address to 50.
pppoe-server Syntax
max-sessions total
pppoe-server max-sessions total number
View
System view
Parameter
number: maximum number of PPPoE sessions that the system can establish, which
ranges from 1 to 65535.
Description
Using the pppoe-server max-sessions total command, you can set the maximum
number of PPPoE sessions that the system can establish. Using the undo
pppoe-server max-sessions total command, you can restore the default
configuration.
Example
Set the maximum number of PPPoE sessions established by the system to 3000.
PPPoE Client
Configuration
Commands
View
Parameter
option: PPPoE Client debugging switch type, see the following table for more
details.
interface type number: Interface type and number, used to enable the debugging
switch of the specified interface. If no interface is specified, the system will enable
the debugging switch of all interfaces.
Description
Example
None
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 Explanation
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
Intf Ethernet interface containing PPPoE session
State State of PPPoE session
For more details of the display information, see the following table.
Field Explanation
SID Session ID, PPPoE session ID
InP In Packets: number of received packets
InO In Octets: number of received octets
InD In Discards: number of received illegal and discarded packets
OutP Out Packets: number of sent packets
OutO Out Octets: number of sent octets
OutD Out Discard: number of sent and discarded illegal packets
pppoe-client Syntax
View
Parameter
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
Using the pppoe-client command, you can establish a PPPoE session and specify
the Dialer Bundle corresponding to the session. Using the undo pppoe-client
command, you can delete a PPPoE session.
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.
Example
[3Com-Ethernet0/0/0]pppoe-client dial-bundle-number 1
View
User view
260 CHAPTER 4: LINK LAYER PROTOCOL
Parameter
Description
Using the reset pppoe-client command, you can 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.
Example
VLAN Configuration
Commands
View
Any view
Parameter
Description
Using the display vlan interface command, you can view VLAN configuration
information on a certain interface (only supporting sub-interface).
Example
View
Any view
Parameter
Description
Using the display vlan max-packet-process command, you can view the maximum
number of processed packets configured on a certain VLAN per second.
Example
Display the maximum number of processed packets configured on the VLAN 10.
View
Any view
Parameter
Description
Using the display vlan statistics interface command, you can view the packet
statistics on a certain VLAN.
Example
View
Any view
Parameter
Description
Using the display vlan statistics vid command, you can view the packet statistics on
a certain VLAN, e.g. the received packet number and the sent packet number.
Example
max-packet-process Syntax
View
System view
Parameter
Description
Using the max-packet-process command, you can set the maximum number of
processed packets per second on a certain VLAN. Using the undo
max-packet-process command, you can restore it to the default setting.
After setting the maximum number of processed packets per second on a certain
VLAN, and the received packet number belonging to this VLAN reaches the
limitation, the subsequently received packets belonging to the VLAN will be
discarded. Through this command, you can perform flow control.
Example
Set the maximum number of processed packets per second on the VLAN 10 as
200000.
View
User view
Parameter
Description
Using the reset vlan statistics interface command, you can clear VLAN statistics on
a certain interface.
Example
View
User view
Parameter
Description
Using the reset vlan statistics vid command, you can clear the VLAN statistics.
264 CHAPTER 4: LINK LAYER PROTOCOL
Example
View
Interface view
Parameter
vid: VLAN ID, used to identify a VLAN, its value ranges from 1 to 4094.
Description
Using the vlan-type dot1q command, you can set the encapsulation types on the
sub-interface.
Example
Set the Ethernet sub-interface 2/0/0.1 to be related to VLAN ID 60, and its
encapsulation format is dot1q.
ISDN Configuration
Commands
View
User view
Parameter
cc: Enables ISDN CC module debugging.
q921: Enables Q.921 debugging.
ISDN Configuration Commands 265
Description
Using the debugging isdn command, you can enable ISDN debugging. Using the
undo debugging isdn command, you can disable ISDN debugging.
You must enable terminal debugging first before ISDN debugging can take effect.
Example
Enable CC debugging.
Disable CC debugging.
View
Any view
Parameter
Description
Using the display isdn active-channel command, you can 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
View
Any view
Parameter
Description
Using the display isdn call-info command, you can 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.
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.
Example
Serial0/0/0:15:
Link Layer: TEI = 0, State = MULTIPLE_FRAME_ESTABLISHED
Network Layer: 1 connection(s)
Connection 1:
CCIndex: 0x0000, State: Active, CES: 1, Channel: 0x00000002
Calling_Num[:Sub]: 003
Called_Num[:Sub]: 002
Table 7 Description of the information displayed by executing display isdn call-info
Item Description
Bri0/0/0 The interface Bri0/0/0 runs ISDN.
Link Layer: TEI = 0, State = Displays the parameters related to the link layer
MULTIPLE_FRAME_ESTABLISHED protocol Q.921 of ISDN on the interface.
Network Layer: 1 connection(s) There is only one network layer connection on
the interface currently.
CCIndex Call index
State Call state
Channel Channel map
Calling_Num[:Sub] Calling number: calling sub-address
Called_Num[:Sub] Called number: called sub-address
ISDN Configuration Commands 267
Disabling an interface will clear all the statistic data related to the interface and
new counting will be started.
View
Any view
Parameter
interface type number: Displays only the call history of the specified interface.
Description
Using the display isdn call-record command, you can 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.
Example
View
Any view
Parameter
protocol: ISDN protocol type, which can be DSS1, NTT, NI, ETSI, ANSI or AT&T.
Description
Using the display isdn parameters command, you can 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.
Example
Item Description
T200(sec) Retransmit-timer (in seconds) of the L2 protocol of ISDN
T202(sec) Retransmit-timer (in seconds) for the TEI request messages of the ISDN
L2 protocol
T203(sec) The maximum link idle time (in seconds) of the ISDN L2 protocol
N200 The maximum retransmission times
K(Bri) The maximum number of unacknowledged frames (slide window size)
on the ISDN BRI port.
K(Pri) The maximum number of unacknowledged frames (slide window size)
on the ISDN PRI port.
Timer-Number ISDN L3 timer
Value(sec) Duration (in seconds) of each ISDN L3 timer
View
Any view
Parameter
Description
Using the display isdn spid command, you can view the related information of
SPID on the BRI interface running 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 the related information of 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.
Item Description
SPID Type SPID Type, which can be NIT, STATIC (having only the L3 initialization
process), or AUTO (including both the negotiation and the L3 initialization)
SPID B1 SPID value of the BRI interface B1 channel. It can be a static configuration
or the result of a dynamic negotiation, all depending on the specified SPID
Type.
SPID Num SPID value of the BRI interface.It can be a static configuration or the result
of a dynamic negotiation, all depending on the specified SPID Type.
Neg State Negotiation state of the SPID, which can be SPID_UNASSIGNED,
ASSIGN_AWAITING_SPID, SPID_ASSIGNED,
ASSIGN_AWAITING_CALL_CLEAR.
Init State Initialization state of the SPID, which can be INIT_NULL, INIT_IND,
INIT_PROCEEDING, INIT_END, INIT_AWAITING_CALL_CLEAR.
SPID B2 SPID value of the BRI interface B2 channel. It can be a static 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
270 CHAPTER 4: LINK LAYER PROTOCOL
isdn bch-local-manage
View
Parameter
None
Description
Using the isdn bch-local-manage command, you can enable local ISDN B channel
management. Using the undo isdn bch-local-manage command, you can disable
the setting.
It is very important to put appropriate control on the B channels used for calls in
process, especially in the PRI mode. Proper channel management can improve call
efficiency and reduce call loss. Normally, the centralized B channel management
provided by exchanges can work well. For this reason, you are recommended to
adopt the management function provided by exchanges in most cases, despite the
ISDN module can provide the channel management function as well.
Example
View
Parameter
Description
Using the isdn bch-select-way command, you can set a B channel selection
method.
Example
View
Parameter
caller-number: Caller number that an incoming ISDN call can carry, which is a
character string of 1 to 24 characters.
Description
Using the isdn caller-number command, you can configure the range of the
numbers that the router can receive. Using the undo isdn caller-number
command, you can delete the configured caller number.
Example
Configure the router to receive only the incoming calls from the caller numbers
with 400.
View
Parameter
Description
Using the isdn calling command, you can have the messages from a calling party
to a called party carry the calling number. Using the undo isdn calling command,
you can delete calling number in the messages that a calling party transmitted.
272 CHAPTER 4: LINK LAYER PROTOCOL
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.
isdn Syntax
check-called-number
isdn check-called-number check-index called-party-number [ : subaddress ]
View
Parameter
Description
Using the isdn check-called-number command, you can configure the called
number or subaddress that the system should verify when receiving a digital call.
Using the undo isdn check-called-number command, you can remove the
configuration.
By default, the system does not check the called number or subaddress carried by
incoming digital calls.
This command is used for setting the examined item when a digital call is received.
If a subaddress is specified, the system will deny an incoming digital call if the
calling party sends a wrong subaddress or does not send at all.
Example
Check whether the called number carried by incoming digital calls is 66668888 on
the interface Bri 0/0/0.
View
Parameter
call-reference-length: ISDN call reference length, which can be one or two bytes.
Description
Using the isdn crlength command, you can set length of the call reference used
when a call is placed on an ISDN interface. Using the undo isdn crlength
command, you can 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.
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.
View
Parameter
None
274 CHAPTER 4: LINK LAYER PROTOCOL
Description
Using the isdn ignore connect-ack command, you can 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. Using the undo isdn ignore connect-ack command, you
can 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.
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.
View
Parameter
None
Description
Using the isdn ignore hlc command, you can disable ISDN to carry the higher layer
compatibility (HLC) information element in the SETUP messages sent when placing
voice calls. Using the undo isdn ignore hlc command, you can configure ISDN to
carry the HLC information element in SETUP messages.
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.
View
Parameter
None
Description
Using the isdn ignore llc command, you can disable ISDN to carry the Lower Layer
Compatibility (LLC) information element in the SETUP messages sent when placing
voice calls. Using the undo isdn ignore llc command, you can configure ISDN to
carry the LLC information element in SETUP messages.
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.
276 CHAPTER 4: LINK LAYER PROTOCOL
View
Parameter
Description
Using the isdn ignore sending-complete command, you can configure the ISDN
protocol to ignore the processing on the Sending Complete Information Element.
Using the undo isdn ignore sending-complete command, you can restore the
default setting.
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.
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 or ETSI.
Example
View
Parameter
time-interval: Timer duration, which can take on one of the values listed in the
following table.
Description
Using the isdn L3-timer command, you can configure the duration of an ISDN L3
timer. Using the undo isdn L3-timer command, you can 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.
View
Parameter
number-property: Type and number scheme of ISDN numbers. The argument takes
on a hex value in the range of 0 to FF. 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.
The undefined bits in all the protocols are reserved for other purposes.
Description
Using the isdn number-property command, you can set type and code scheme of
ISDN calling numbers or called numbers. Using the undo isdn number-property
command, you can restore the default type and code scheme of ISDN calling
numbers or called numbers.
By default, the number type and code scheme are respectively unknown and ISDN
for both ISDN calling numbers and called numbers, and the number-property
representing them is 01 in hex format.
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 both number type and code scheme of ISDN calling numbers on the interface
Bri 0/0/0 to unknown.
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
Using the isdn overlap-sending command, you can set the system to send the
called number information in the overlap mode on the ISDN interface. Using the
undo isdn overlap-sending command, you can set the system to send the called
information in full mode.
In "full-sending" mode, all the digits of each called number will be collected and
sent at a time.
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 four ISDN protocols: ANSI, DSS1, ETSI, and NI.
Example
Apply the overlap-sending function on the interface Bri0/0/0 and set the number
of digits allowed to be sent each time to 12 digits.
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.
ISDN Configuration Commands 281
Description
Using the isdn pri-slipwnd-size command, you can set the slide window size on a
PRI interface. Using the isdn pri-slipwnd-size default command, you can restore
the default slide window size on the PRI interface.
Example
View
Parameter
protocol: ISDN protocol, which can be DSS1, NTT, NI, ETSI, ANSI, or AT&T.
Description
Using the isdn protocol-type command, you can 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.
Example
isdn send-restart
View
System view
Parameter
None
Description
Using the isdn send-restart command, you can set restart mark in a distributed
system (AR 46 series routers), so that the MPU will control the PRI interface to send
RESTART message after re-establishing a link. Using the undo isdn send-restart
command, you can remove the restart mark.
This command is invalid for the MCU in a centralized system, AR 28 Series Routers
for example.
Example
View
Parameter
None
ISDN Configuration Commands 283
Description
Using the isdn spid auto_trigger command, you can 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
View
Parameter
None
Description
Using the isdn spid nit command, you can set the SPID processing mode to NIT
(Not Initial Terminal) on an NI-compliant BRI interface. Using the undo isdn spid nit
command, you can 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.
Example
Ignore SPID negotiation and initialization on the interface bri0/0/0, i.e., adopting
the NIT mode.
View
Parameter
seconds: Duration of the SPID timer, which is in the range of 1 to 255 seconds,
and defaults to 30 seconds.
Description
Using the isdn spid timer command, you can set the duration of the timer TSPID
for an NI-compliant BRI interface to timer_length. Using the undo isdn spid timer
command, you can 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 when the terminal originates a negotiation or initialization request by
sending the INFORMATION message. You can use this command to modify the
duration of TSPID.
Example
View
Parameter
Description
Using the isdn spid service command, you can configure the service types that
must be supported in SPI negotiation on the BRI interface adopting NI protocol.
Using the undo isdn spid service command, you can 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.
View
Parameter
Description
Using the isdn spid resend command, you can set the number of INFORMATION
message retransmission attempts for SPID negotiation or initialization on an
NI-compliant BRI interface. Using the undo isdn spid resend command, you can
restore the default number of INFORMATION message retransmission attempts on
the interface.
286 CHAPTER 4: LINK LAYER PROTOCOL
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.
Example
View
Parameter
Description
Using the isdn spid1 command, you can configure SPID information for the B1
channel on an NI-compliant BRI interface. Using the undo isdn spid1 command,
you can 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 B1 channel on the BRI interface can the system
makes the L3 initialization to place calls normally.
Example
View
Parameter
Description
Using the isdn spid2 command, you can configure SPID information for the B1
channel on an NI-compliant BRI interface. Using the undo isdn spid2 command,
you can 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.
Example
View
Parameter
Description
Using the isdn statistics command, you can have the system make statistics on the
information received and transmitted at an ISDN interface.
You can input the isdn statistics start command in the view of an interface to start
making statistics on the messages received and transmitted at the interface, isdn
statistics display command to view the statistic information, isdn statistics continue
to continue the effort in making statistics, isdn statistics display flow to view the
statistics in the form of flow, and isdn statistics stop to stop making statistics.
Example
SLIP Configuration
Commands
View
User view
Parameter
Description
Using the debugging slip command, you can enable the debugging switch of the
SLIP protocol.
Example
None
HDLC Configuration Commands 289
link-protocol slip
View
Interface view
Parameter
None
Description
Using the link-protocol slip command, you can set the link layer protocol of the
interface as SLIP.
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
HDLC Configuration
Commands
link-protocol hdlc
View
Interface view
Parameter
None
290 CHAPTER 4: LINK LAYER PROTOCOL
Description
Using the link-protocol hdlc command, you can configure the interface
encapsulation as HDLC. HDLC is a link layer protocol and can bear network layer
protocols, such as IP and IPX.
For the related commands, see timer hold and display interface.
Example
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.
Description
Using the timer hold command, you can set the polling interval. Using the undo
timer hold command, you can restore the default value of the polling interval.
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.
Example
Frame Relay
Configuration
Commands
debugging fr Syntax
View
User view
Parameter
arp: Information debugging of frame relay address resolution protocol. When this
parameter is in use, DLCI can be specified.
event: Information debugging of frame relay event. When this parameter is used,
no interface can be specified.
mfr control: Information debugging of multilink frame relay bundle and bundle
link.
Description
Using the debugging fr command, you can enable frame relay information
debugging. Using the undo debugging fr command, you can disable frame relay
information debugging.
For multilink frame relay, if the information debugging of multilink frame relay
bundle and bundle link (mfr control) are enabled, the sent/received bundle link
controlling information and status change of bundle link will be displayed.
If FRTS function is enabled, the change of frame relay sending rate can be seen
after the transmit rate information debugging (transmit-rate) is enabled.
Example
Enable debugging of the bundle interface MFR1/0/0, supposing several links have
been bundle on it.
View
Any view.
Parameter
Description
Using the display fr compress command, you can 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.
Example
View the frame relay compression statistics information of MFR interface 4/0/0.
View
Any view
Parameter
The specified interface can only be main interface. Information of all interfaces will
be displayed without specifying interface.
Description
Using the display fr dlci-switch command, you can view the information of the
configured FR switching to check if the frame relay switching of a user is correctly
configured.
294 CHAPTER 4: LINK LAYER PROTOCOL
Example
View
Any view
Parameter
Description
Using the display fr inarp-info command, you can view the packet statistics of the
FR inverse address resolution protocol.
The packets of FR inverse ARP include the address resolution request packet and
address resolution reply packet. According to the output information via this
command, you can diagnose if the inverse ARP operates normally.
Example
Item Description
interface Current interface
dlci DLCI number
type Fragment type
size Fragment size
in/out/drop Received/transmitted/dropped fragments
Frame Relay Configuration Commands 295
View
Any view
Parameter
Description
Using the display fr interface command, you can view the FR status, which is
helpful for you to perform fault diagnosis.
Example
This command displays the protocol status of each interface encapsulated with FR.
The above information indicates that: Frame Relay interface type of Serial1/0/0 is
DTE. Physical layer protocol and link layer protocol of Serial1/0/0 are activated.
View
Any view
Parameter
Description
Using the display fr lmi-info command, you can view the statistics of LMI protocol
frame.
296 CHAPTER 4: LINK LAYER PROTOCOL
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.
Example
For example, the Frame Relay interface type of Serial1/0/0 is DTE. LMI protocol
type is Cisco-compatible protocol. T391 parameter on DTE side is 10. N391
parameter on DTE side is 6. N392 parameter on DTE side is 3. N393 parameter on
DTE side is 4. The number Status Enquiry packets sent through Serial1/0/0 is 96.
Received Status Enquiry packets are 85. Timeout packets are 3. Discarded packets
are 3.
View
Any view
Parameter
Description
Using the display fr map-info command, you can view the FR address mapping
table.
The displayed information via the command indicates whether the static mapping
configured by a user is correct and whether the dynamic address mapping
operates normally.
Example
The above indicates the information of each MAP configured with Frame Relay
protocol.
For example, as for the first address mapping, the mapping indicates that PVC
(DLCI=100) on Serial1/0/2 establishes the address mapping with the peer end (IP
address is 100.100.1.1) through Inverse ARP. The time of creating the mapping is
2002/10/21 14:48:44, and its status is active. Encapsulation format is IETF, and
broadcast packet is available.
View
Any view
Parameter
Description
Using the display fr pvc-info command, you can view the FR PVC table.
This command displays the statistics of the FR PVC status and receiving/sending
data on this VC.
Example
in BECN = 0, in FECN = 0
in packets = 0, in bytes = 0
out packets = 0, out bytes = 0
DLCI = 102, USAGE = LOCAL (0010), INTERFACE = Serial1/0/0.1
create time = 2000/04/01 23:56:14, status = active
in BECN = 0, in FECN = 0
in packets = 0, in bytes = 0
out packets = 0, out bytes = 0
The information listed above shows various information about the FR PVC.
The above information indicates that: The PVC (DLCI=100) is the one (UNUSED)
obtained through negotiating with the peer end via LMI. It is configured on
Serial1/0/0. Establishing time is 2000/04/01 23:55:39. PVC status is active. The
packets received of Forward Explicit Congestion Notifications (FECN) and
Backward Explicit Congestion Notifications (BECN) are both 0. Received/sent
frames are 0. Received/sent bytes are 0.
View
Any view
Parameter
Description
Using the display fr statistics command, you can 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.
Example
Display the Frame Relay statistics about receiving and sending packets.
The above information displays Frame Relay statistics about receiving and sending
packets.
For instance, it is known from the above information that the Frame Relay
interface type of Serial1/0/0 is DTE. Received packets are 84. Received bytes are
1333. Sent packets are 92. Sent bytes are 1217. Discarded packets in received
ones are 13. Discarded packets in sent ones are 0.
View
Any view
Parameter
Description
Example
View
Any view
300 CHAPTER 4: LINK LAYER PROTOCOL
Parameter
Description
Using the display mfr command, you can 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.
For the related command, see link-protocol fr mfr and interface mfr.
Example
View configuration and state information of all frame relay bundles and frame
relay bundle links.
<3Com-Serial4/1/2>display mfr
Bundle interface:MFR4/1/0, Bundle state = down, Bundle class = A,
fragment disabled
Bundle BID = MFR4/1/0
Number of bundle links = 0, Peer's bundle-id =
Bundle links:
Cause code The reason for bundle link to be in the current state, possibly being the
following values:
inconsistent bundle: The peer has associated the bundle with another bundle, thus
making inconsistent BID.
none: The link is in normal state.
bundle link idle: The peer bundle link is idle, which generally occurs when the peer
bundle interface is disabled.
ack timer expiry: The current link state is caused by the timeout of the local T-ack
timer.
loopback detected: Loopback is enabled on the physical line of local bundle link.
other: Other reasons, such as LID error.
unexpected Add_link: The “add_link” message is received when the
bundle link is in up state. This case may occur when the line protocol is
ready for being enabled and will disappear once the connection is
created.
Ack timer The time of resending hello message before bundle link receives
acknowledgment message or of waiting for hello acknowledgment
message before resending an “add_link” message used for initial
synchronization.
Hello timer Interval for bundle link to send hello message
Max retry count Maximum retry times for bundle link to resend hello message or
resend “Add_link” that is used for initial synchronization before the
bundle link waits for hello acknowledgement message.
Current count Current retry times
Peer LID Bundle link identifier of the peer link
fr compression frf9
undo fr compression
View
Parameter
None
Description
Using the fr compression frf9 command, you can enable frame relay compression
function. Using the undo fr compression command, you can disable frame relay
compression function.
This command is only valid for point-to-point interfaces. In other words, it is used
for frame relay sub-interfaces of point-to-point type.
Only when the frame relay packets type of the interface is IETF, can frame relay
compression take effect. When this command is configured, the system will
automatically change the packet type of the interface into IETF if the frame relay
packets type of an interface is not IETF.
Frame Relay Configuration Commands 303
Example
fr compression iphc
View
Parameter
None
Description
Using the fr compression iphc command, you can enable the IP header
compression. Using the undo fr compression iphc command, you can disable the
function.
Example
Configure the Frame Relay interface Serial 4/1/0 to adopt IP header compression.
fr dlci Syntax
fr dlci dlci
View
Interface 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.
304 CHAPTER 4: LINK LAYER PROTOCOL
Description
Using the fr dlci command, you can configure the virtual circuit for Frame Relay
interface. Using the undo fr dlci command, you can 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.
Example
Assign a virtual circuit with DLCI 100 to Frame Relay sub-interface Serial1/0/0.1.
fr dlci-switch Syntax
View
Parameter
out-dlci: DLCI of the specified interface where the packet is forwarded, ranging
from 16 to 1007.
Description
Using the fr dlci-switch command, you can configure a static route for frame relay
PVC switching. Using the undo fr dlci-switch command, you can delete a static
route 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 type of 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, the frame relay packets over IP can be realized.
Frame Relay Configuration Commands 305
Example
Configure a static route that allows packets on the link with DLCI of 100 on
Seiral1/0/0 to be forwarded via the link with DLCI of 200 on interface Serial2/0/0.
Configure a static route that allows packets on the link with DLCI of 200 on
Seiral4/1/2 to be forwarded via the link with DLCI of 300 on Tunnel interface
Serial4/0/0.
fr inarp Syntax
fr inarp [ ip ] [ dlci ]
View
Interface view
Parameter
Ip: Indicates that the inverse address resolution is performed on the ip network
protocol.
dlci: Data link connection identifier number, i.e., virtual circuit number, indicating
that the inverse address resolution is performed for this DLCI number only.
Description
Using the fr inarp command, you can enable the inverse address resolution of
Frame Relay. Using the undo fr inarp command, you can 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.
If it is expected to enable the inverse address resolution function of all PVCs, the
command without any parameters is adopted.
For the related commands, see fr map, reset fr inarp, and display fr map-info.
306 CHAPTER 4: LINK LAYER PROTOCOL
Example
Enable the inverse address resolution at all PVCs of the Frame Relay interface
Serial1/0/0.
[3Com-Serial1/0/0] fr inarp
fr interface-type Syntax
undo fr interface-type
View
Interface view
Parameter
Description
Using the fr interface-type command, you can set the Frame Relay interface type.
Using the undo fr interface-type command, you can restore the default Frame
Relay interface type.
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.
Example
fr iphc Syntax
View
Parameter
Description
Using the fr iphc command, you can enable IP header compression function,
including RTP/TCP header compression. Using the undo fr iphc command, you can
disable this function.
Example
Configure the number of RTP compression connections as 200 on the frame relay
Serial1/0/0.
View
Interface view
Parameter
Description
Using the fr lmi n391dte command, you can configure N391 parameter at the DTE
side. Using the undo fr lmi n391dte command, you can restore the default value.
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.
Example
Set DTE as the operating mode of Frame Relay interface Serial1/0/0, and the
counter value of the PVC status to 10.
[3Com-Serial1/0/0] link-protocol fr
[3Com-Serial1/0/0] fr interface-type dte
[3Com-Serial1/0/0] fr lmi n391dte 10
View
Interface view
Parameter
Description
Using the fr lmi n392dce command, you can set N392 parameter at the DCE side.
Using the undo fr lmi n392dce command, you can restore the default
configuration.
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.
Example
Set the operation of frame relay interface Serial1/0/0 as DCE mode and sets N392
to 5 and N393 to 6.
View
Interface view
Parameter
Description
Using the fr lmi n392dte command, you can set N392 parameter at the DTE side.
Using the undo fr lmi n392dte command, you can restore the default
configuration.
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 has exceeded the threshold and declare the physical
channels and all DLCIs to be unavailable.
Example
Set the operation of frame relay interface Serial1/0/0 as the DTE mode and sets
N392 to 5 and N393 to 6.
[3Com-Serial1/0/0] link-protocol fr
310 CHAPTER 4: LINK LAYER PROTOCOL
View
Interface view
Parameter
Description
Using the fr lmi n393dce command, you can set the N393 parameter at the DCE
side. Using the undo fr lmi n393dce command, you can restore the default
configuration.
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.
Example
Set the operation of frame relay interface Serial1/0/0 as DCE mode and sets N392
to 5 and N393 to 6.
View
Interface view
Parameter
Description
Using the fr lmi n393dte command, you can set N393 parameter at the DTE side.
Using the undo fr lmi n393dte command, you can restore the default
configuration.
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 has exceeded the threshold and declare the
physical channels and all DLCIs to be unavailable.
Example
Set the operation of frame relay interface Serial1/0/0 as the DTE mode and sets
N392 to 5 and N393 to 6.
[3Com-Serial1/0/0] link-protocol fr
[3Com-Serial1/0/0] fr interface-type dte
[3Com-Serial1/0/0] fr lmi n392dte 5
[3Com-Serial1/0/0] fr lmi n393dte 6
View
Interface view
312 CHAPTER 4: LINK LAYER PROTOCOL
Parameter
t392-value: Value of the polling timer. The range of the value is 5 to 30, in
seconds.
Description
Using the fr lmi t392dce command, you can set T392 parameter at the DCE side.
Using the undo fr lmi t392dce command, you can restore the default
configuration.
This parameter defines the maximum time for DCE waiting for a Status-Enquiry.
Example
Set the frame relay interface Serial1/0/0 to operate in DCE mode and set T392 to
10s.
View
Interface view
Parameter
Description
Using the fr lmi type command, you can configure the Frame Relay LMI protocol
type. Using the undo fr lmi type command, you can restore to the default value of
LMI protocol type.
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.
Example
fr map ip Syntax
View
Interface view
Parameter
dlci: local virtual circuit number, and the range of the value is 16 to 1007.
broadcast: optional, which is used to specify if broadcast packet can be sent in the
mapping.
Description
Using the fr map ip command, you can add a FR address mapping. Using the undo
fr map ip command, you can cancel the configuration.
The mapping can be manually established or can be completed via the inverse
address resolution protocol. Manually configure the static mapping when there are
a few peer hosts or there is a default route. When the peer router supports inverse
address resolution protocol and the network is rather complex, the dynamic
address mapping is established via the inverse address resolution protocol.
Example
fr switch Syntax
View
System view
Parameter
name: Name of PVC used for frame relay switching, consisting of 30 characters at
most.
Description
Using the fr switch command, you can create a PVC used for frame relay switching
and enter frame relay switching view. Using the undo fr switch command, you can
delete a specified PVC.
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.
If a PVC used for switching has been configured, its interface and DLCI cannot be
changed any longer. To change them, you must delete the defined PVC used for
switching first.
For the related commands, see 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.
Frame Relay Configuration Commands 315
[3Com] fr switching
[3Com] fr switch pvc1 interface serial 0/0/0 dlci 100 interface
serial 1/0/0 dlci 200
[3Com-fr-switching-pvc1]
fr switching Syntax
fr switching
undo fr switching
View
System view
Parameter
None
Description
Using the fr switching command, you can enable frame relay PVC switching. Using
the undo fr switching command, you can disable frame relay PVC switching.
Example
[3Com] fr switching
View
System view
Parameter
Description
Using the interface mfr command, you can create a multilink frame relay bundle
interface or sub-interface and enter the corresponding interface view. Using the
undo interface mfr command, you can delete a specified multilink frame relay
bundle 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.
For the related commands, see link-protocol fr mfr and mfr bundle-name.
Example
link-protocol fr Syntax
View
Interface view
Parameter
ietf: Default encapsulation format according to the Internet Engineering Task Force
(IETF) standard.
Description
Using the link-protocol fr command, you can encapsulate interface link layer
protocol as Frame Relay.
By default, the link-layer protocol encapsulated on the interface is PPP, and the
frame relay encapsulation format is IETF.
Example
View
Interface view
Parameter
Description
Using the link-protocol fr mfr command, you can configure the current physical
interface as a multilink frame relay bundle link and bundle it onto a specified MFR
interface.
When this command is configured, the specified MFR interface must exist. A
maximum of 16 physical interfaces can be bundled onto an MFR interface.
For the related commands, see interface mfr and mfr link-name.
Example
Configure the current serial interface as a bundle link and add it onto the frame
relay bundle interface mfr4/0/123.
View
Parameter
name: Bundle identification, in the form of character string, with a length ranging
from 1 to 49.
Description
Using the mfr bundle-name command, you can set frame relay bundle
identification (BID). Using the undo mfr bundle-name command, you can restore
the default value.
By default, BID is in the form of “mfr + frame relay bundle number”, such as
mfr4/0/123.
Each multilink frame relay bundle has a BID, which is only significant at the local.
Therefore, the BIDs at both ends of the link can be the same.
When changing the BID of an interface, you must execute the shutdown/undo
shutdown command on the interface to make the new BID valid.
Example
mfr fragment
View
Parameter
None
Description
Using the mfr fragment command, you can enable fragmentation of a multilink
frame relay bundle. Using the undo mfr fragment command, you can disable the
function.
For the related commands, see mfr fragment-size and mfr window-size.
Example
View
Parameter
Description
Using the mfr fragment-size command, you can configure the maximum fragment
size allowed on a frame relay bundle link. Using the undo mfr fragment-size
command, you can 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.
For the related commands, see 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.
View
Parameter
Description
Using the mfr link-name command, you can set the frame relay bundle link
identification (LID). Using the undo mfr link-name command, you can restore the
default setting.
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.
Example
Set the bundle LID of the multilink frame relay bundle link Serial4/1/2 to be bl1.
View
Parameter
number: The maximum times that a bundle link can resend hello messages,
ranging from 1 to 5. By default, it is twice.
Description
Using the mfr retry command, you can set the maximum times that a frame relay
bundle link can resend hello message when waiting for a hello acknowledgement
message. Using the undo mfr retry command, you can 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.
For the related commands, see mfr timer ack and mfr timer hello.
Frame Relay Configuration Commands 321
Example
Set the bundle link Serial4/1/2 to resend hello message for 3 times at most.
View
Parameter
Description
Using the mfr timer ack command, you can set the time of waiting for hello
acknowledgment message before frame relay bundle link resends hello message.
Using the undo mfr timer ack command, you can restore the default setting.
For the related commands, see mfr timer hello and mfr retry.
Example
Set the frame relay bundle link Serial4/1/2 to wait for 6 seconds before resending
hello message.
View
Parameter
seconds: Interval for a bundle link to send hello message, in seconds, ranging from
1 to 180. By default, it is 10 seconds.
322 CHAPTER 4: LINK LAYER PROTOCOL
Description
Using the mfr timer hello command, you can set the interval for a frame relay
bundle link to send hello message. Using the undo mfr timer hello command, you
can 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.
For the related commands, see mfr timer ack and mfr retry.
Example
Set the bundle link Serial4/1/2 to send hello message once every 15 seconds.
View
Parameter
Description
Using the mfr window-size command, you can configure the number of
fragments that can be held by the window used in sliding window algorithm
when multilink frame relay reassembles received fragments.
For the related commands, see interface mfr, mfr fragment, and mfr
fragment-size.
Example
Set the size of the sliding window of the MFR bundle interface MFR4/0/123 to be
8.
shutdown Syntax
shutdown
Frame Relay Configuration Commands 323
undo shutdown
View
Description
Using the shutdown command, you can disable any current switching PVCs. Using
the undo shutdown command, you can enable any current switching PVCs.
Example
reset fr inarp
View
User view
Parameter
None
Description
Using the reset fr inarp command, you can 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.
Example
View
Interface view
Parameter
Description
Using the timer hold command, you can configure the polling timer at the DTE
side. Using the undo timer hold command, you can restore its default value.
Example
Configure that Frame Relay interface serial1/0/0 to work in DTE mode, and set the
value of polling timer to 15 seconds.
[3Com-Serial1/0/0] link-protocol fr
[3Com-Serial1/0/0] fr interface-type dte
[3Com-Serial1/0/0] timer hold 15
ATM Configuration
Commands
atm-class Syntax
atm-class atm-class-name
View
Parameter
Description
Using the atm-class command, you can apply a set of parameters (which are
defined in ATM-Class) to an ATM interface or a PVC. Using the undo atm-class
command, you can delete the specified ATM-Class.
Example
View
System view
Parameter
Description
Using the atm class command, you can create an ATM-Class and enter the
ATM-Class view. Using the undo atm class command, you can delete the specified
ATM-Class.
Example
clock Syntax
undo clock
View
Parameter
master: Specify ATM interface to use the internal transmission clock signal.
Description
Using the clock command, you can specify ATM interface to use internal
transmission clock signal. Using the undo clock command, you can restore the
usage of network clock signal.
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.
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
View
User view
Parameter
None
Description
Using the debugging atm all command, you can enable all the debugging
switches of ATM. Using the undo debugging atm all command, you can disable
the debugging.
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.
For the related commands, see debugging atm error, debugging atm event, and
debugging atm packet.
ATM Configuration Commands 327
View
User view
Parameter
interface-name: ATM interface name. For detailed naming rules, please refer to
the “Interface Configuration” chapter in this manual. If it is not specified, all the
error debugging of ATM are enabled (including global debugging, interface-level
debugging and PVC-level debugging).
pvc-name: PVC name, optional. If no PVC name and VPI/VCI pair are specified, all
the error debugging of the PVC will be enabled.
vpi/vci: VPI/VCI pair, optional. For more details, please refer to “Parameter
Description” in the pvc command.
Description
Using the debugging atm error command, you can enable the error debugging of
ATM. Using the undo debugging atm error command, you can disable the
debugging.
For the related commands, see display debugging and debugging atm all.
Example
View
User view
Parameter
interface-name: ATM interface name. For detailed naming rules, please refer to
“Interface Configuration” part of this manual. If it is not specified, all the event
debugging of ATM is enabled by default (including global debugging,
interface-level debugging and PVC-level debugging).
pvc-name: PVC name, optional. If no PVC name and no VPI/VCI pair are specified,
all the event debugging of PVC will be enabled.
vpi/vci: VPI/VCI pair, optional. For more details, please refer to “Parameter
Description” in the pvc command.
Description
Using the debugging atm event command, you can enable the event debugging
of ATM. Using the undo debugging atm event command, you can disable the
debugging.
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.
View
User view
Parameter
interface-name: ATM interface name, optional. For detailed naming rules, please
refer to “Interface Configuration” part of this manual. If it is not specified, all the
packet debugging of ATM are enabled by default (including global debugging,
interface-level debugging and PVC-level debugging).
pvc-name: PVC name, optional. If no PVC name and no VPI/VCI pair are specified,
all the packet debugging of PVC will be enabled.
vpi/vci: VPI/VCI pair, optional. For more details, please refer to “Parameter
Description” in the pvc command.
Description
Using the debugging atm packet command, you can enable the packet debugging
of ATM. Using the undo debugging atm packet command, you can disable the
debugging.
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.
330 CHAPTER 4: LINK LAYER PROTOCOL
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.
……
*515396.229644-atm-8-debug8: Atm1/0/0 pvc 1/32 out ppp pkt, snap,
22
*515396.229710-atm-8-debug8: FE FE 03 CF FF 03 C0 21 01 22 00 0E
01 04 05 DC
*515396.229812-atm-8-debug8: 05 06 00 00 1F 38
*515396.232644-atm-8-debug8: Atm1/0/0 pvc 1/32 out ppp pkt, snap,
22
*515396.232710-atm-8-debug8: FE FE 03 CF FF 03 C0 21 01 23 00 0E
01 04 05 DC
*515396.232812-atm-8-debug8: 05 06 00 00 1F 38
It indicates that PPP packets are being output from PVC 1/32 of Atm1/0/0.
View
Any view
Parameter
Description
Using the display atm class command, you can view the information about
ATM-Class. By default, if no ATM-Class name is specified, the information of all
ATM-Class is displayed.
Example
ATM-Class name is "main", and the following contents are set in the ATM-Class:
the service type is unspecified bit rate and the output peak rate of ATM cells is
8000 and the AAL encapsulation type is SNAP.
View
Any view
Parameter
interface-name: ATM interface name. For detailed naming rules, please refer to
“Interface Configuration” part of this manual. If it is not specified, all the
information about ATM interface will be displayed by default.
Description
Using the display atm interface command, you can locate the problems efficiently
and get detailed information related to ATM configuration.
Example
The maximum number of PVCs on the ATM interface is 1024. The input packets,
bytes and errors of input packets are all 0; output packets are 69, output bytes are
2218 and output packet errors are 8; there are totally 4 PVCs and 4 MAPs at the
interface and the interface status is active (UP).
View
Any view
Parameter
interface-name: ATM interface name. For detailed naming rules, please refer to
“Interface Configuration” part of this manual. If it is not specified, all the
information about the higher layer mapping table of ATM interface will be
displayed by default.
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
Using the display atm map-info command, you can view the information about
the upper layer protocol mapping table of ATM.
For the related commands, see map ip, map ppp, and map bridge.
ATM Configuration Commands 333
Example
Display the information about the upper layer protocol mapping table of all ATM
interfaces.
PVC 1/32 of Atm 1/0/0 interface uses PPPoA mapping, the VT interface numbered
10 is used and the status is activated (UP);
PVC 1/33 of Atm 1/0/0 interface uses IPoA mapping, the configured mapping
static IP address is 100.11.1.1, the address mask is 255.255.0.0, it occupies No.1
vlink and its status is activated (UP);
PVC 2/101 of Atm 1/0/0 interface uses PPPoEoA mapping or IPoEoA mapping, VE
interface numbered 1/1/1 is adopted, the configured MAC address is
00E0.FC01.0203 and its status is activated (UP).
View
Any view
Parameter
pvc-name: PVC name, optional. If no PVC name and no VPI/VCI pair are specified,
the information about all PVC-Groups within the specified ATM interface will be
displayed by default.
334 CHAPTER 4: LINK LAYER PROTOCOL
vpi/vci: VPI/VCI pair, optional. For more details, please refer to “Parameter
description” in the pvc command.
Description
Using the display atm pvc-group command, you can view the information about
PVC-Group.
Example
The explanation on the above messages is as follows (Taking the first record as an
example, and the last four records can refer to the following explanation.):
PVC with VPI/VCI pair as 1/32, its has been activated (UP) and the name is
"3Com". The AAL encapsulation type is SNAP. The application type is IPoA. The
interface is ATM main interface: Slot number is 1, adapter number is 1 and the
interface number is 0. The PVC-Group is created based on PVC "1/32".
View
Any view
Parameter
interface-name: ATM interface name. For detailed naming rules, please refer to
“Interface Configuration” part of this manual. If it is not specified, all the
information about PVC of ATM interface will be displayed by default.
pvc-name: PVC name, optional parameter. If no PVC name and no VPI/VCI pair are
specified, the information about all PVCs within the 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
Using the display atm pvc-info command, you can view the information about
PVC.
Example
The explanation on the above messages is as follows (Taking the first record as an
example, and the last four records can refer to the following explanation.):
PVC with VPI/VCI pair as 1/32, its has been activated (UP) and the name is
"3Com". The index number is 1. The AAL encapsulation type is SNAP. The
application type is IPoA. The interface is ATM main interface: Slot number is 1,
adapter number is 0 and the interface number is 0.
encapsulation Syntax
encapsulation aal5-encap
undo encapsulation
View
PVC view
336 CHAPTER 4: LINK LAYER PROTOCOL
Parameter
Description
Using the encapsulation command, you can specify ATM AAL5 encapsulation type
for PVC. Using the undo encapsulation command, you can restore the default
encapsulation.
To change the encapsulation type for PVC to aal5mux or aal5nlpid, InARP must be
deleted first.
Example
The two examples can both specify AAL5 encapsulation type of PVC as aal5snap.
View
System view
Parameter
Interface number: ATM master interface number. For detailed numbering rules,
please refer to “Interface Configuration” part of this manual.
ATM Configuration Commands 337
Description
Using the interface atm command, you can create an ATM sub-interface or enter
an ATM interface view. Using the undo interface atm command, you can delete an
ATM sub-interface.
ATM sub-interface has two connection types: multi-point and point-to-point. Multiple PVCs can
be created at the sub-interface of multi-point connection type, but only one PVC can be created
at the sub-interface of point-to-point type.
Example
The two examples display how to enter the ATM main interface or create/enter the
ATM sub-interface.
ip-precedence Syntax
View
Parameter
vpi/vci: vpi is ATM Virtual Path Identifier (VPI), which ranges from 0 to 255; vci is
ATM Virtual Channel Identifier (VCI) , which ranges from 0 to 2047. Usually, the
vci values from 0 to 31 are reserved for special usage and cannot be used. PVC
corresponding to vpi/vci must have already been created.
Description
Using the ip-precedence command, you can set the precedence of IP packets
carried over PVC. Using the undo ip-precedence command, you can delete the
precedence configuration of IP packets carried over PVC.
This command can be only used to set the PVC within the PVC-Group. The
specified minimum preference min must be less than or equal to the specified
maximum preference max.
Example
Display how to set an IP packet named "3Com" whose VPI/VCI is 1/32 and the
PVC carrying preference is 0 to 3.
View
PVC view
Parameter
Description
Using the map bridge command, you can establish the IPoEoA mapping or
PPPoEoA mapping on the PVC. Using the undo map bridge command, you can
delete the mapping.
Before using this command, make sure that VE has been created.
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.
ATM Configuration Commands 339
Example
Establish the IPoE mapping using the established VE interface in PVC view.
map ip Syntax
View
PVC view
Parameter
ip-mask: IP address mask, optional. If a packet cannot find the next hop at the
interface, but the next hop address belongs to the network segment specified by
ip-address and ip-mask, it can be sent over the PVC.
default: A mapping with the default route property is set. If a packet cannot find a
mapping with the same address of next hop at the interface, but one PVC has the
default mapping, the packet can be sent over the PVC.
minutes: Time interval to send InARP packets in minutes, optional. The range of
the value is 1 to 600 and the default value is 15.
Description
Using the map ip command, you can create IPoA mapping for PVC. Using the
undo map ip command, you can delete the mapping.
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.
Display how to enable InARP at PVC 1/33 to automatically obtain the opposite
address and send InARP packets every 10 minutes.
View
PVC view
Parameter
Description
Using the map ppp command, you can create PPPoA mapping at PVC in PVC view.
Using the undo map ppp command, you can delete the mapping.
Before this command is used, the VT must have already been created.
Example
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
16384.
Description
Using the mtu command, you can set the size of Maximum Transmission Unit
(MTU) of the ATM interface. Using the undo mtu command, you can restore the
default of the value.
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.
This command can be used in ATM main interface and sub-interface at the same time.
Example
View
Parameter
frequency: Time interval to send OAM F5 Loopback cells in seconds, and the range
of the value is 1 to 600.
Description
Using the oam frequency command, you can 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. Using the undo oam frequency command, you can disable
the transmission and retransmission check of the cell.
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.
pvc Syntax
View
Parameter
vpi/vci: vpi is ATM Virtual Path Identifier (VPI) in the range 0 to 255; vci is ATM
Virtual Channel Identifier (VCI). Its value range depends on interface type. See the
following table for reference. Usually, the vci values from 0 to 31 are reserved for
special usage and cannot be used.
Description
Using the pvc command, you can create a PVC or enter the PVC view at ATM
interface or in PVC-Group view. Using the undo pvc command, you can delete the
specified PVC.
Once pvc-name is specified for one PVC (e.g. "3Com"), it is possible to re-enter
the PVC view by inputting pvc pvc-name (e.g. " pvc 3Com"). The deletion of the
PVC can be done by inputting undo pvc pvc-name (e.g. " undo pvc 3Com") 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.
For the related commands, see display atm pvc-info and pvc max-number.
Example
pvc-group Syntax
View
Parameter
vpi/vci: vpi is ATM Virtual Path Identifier (VPI) in the range 0 to 255; vci is ATM
Virtual Channel Identifier (VCI). For its value range, refer to VCI range for each
type of ATM interface. Usually, the vci values from 0 to 31 are reserved for special
usage and cannot be used. PVC corresponding to vpi/vci must have already been
created.
Description
Using the pvc-group command, you can create a PVC-Group or enter the
PVC-Group view at ATM interface. Using the undo pvc-group command, you can
delete the specified PVC-Group.
Once pvc-name is specified for some PVC (e.g. "3Com"), it is possible to enter the
PVC-Group view by inputting pvc-group pvc-name (e.g. "pvc-group 3Com"). The
deletion of the PVC-Group can be done by inputting undo pvc-group pvc-name
(e.g. "undo pvc-group 3Com") 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.
Example
Display how to create a PVC-Group based on the name "3Com" and the PVC
with VPI/VCI as 1/32.
View
Parameter
Table 16 The maximum number of VCs allowed for each type of ATM interface
Description
Using the pvc max-number command, you can set the maximum number of ATM
interface virtual circuits (VC). Using the undo pvc max-number command, you can
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.
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
The two examples can both make ATM interface Atm1/0/0 support totally 2048
VCs.
Display how to set ATM interface Atm1/0/0 to totally support maximum 2048
VCs.
Display how to set ATM interface Atm1/0/0 to support the default maximum
number of VCs (2048).
View
Parameter
vpi: Virtual path identifier of ATM network, its value ranges from 0 to 255.
Description
Using the pvp limit command, you can set the parameters for VP policing. Using
the undo pvp limit command, you can delete the VP policing.
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.
For the related commands, see pvc, service cbr, service vbr-nrt, and service vbr-rt,
service ubr.
Example
View
PVC view
Parameter
output-pcr: Output peak rate of ATM cell in Kbit/s. Value range of this parameter
depends on interface type, as shown in the following table
ATMOC3 <2000-155000>
ATM25 <64-25600>
ATME3 <64-34000>
ATMT3 <64-45000>
cdvt_value: cell delay variation tolerance, in ìs, and the range of the value is 0 to
10000ìs.
Description
Using the service cbr command, you can 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:
The command does not support ATM E1 interface and ATM E3 interface.
For the related commands, see 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.
View
PVC view
Parameter
output-pcr: Output peak rate of ATM cell in Kbit/s. For the value ranges of this
parameter, see Value ranges of output-pcr.
348 CHAPTER 4: LINK LAYER PROTOCOL
Description
Using the service ubr command, you can specify the service type of PVC as
Unspecified Bit Rate (UBR) and specify the related rate parameters.
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.
For the related commands, see service vbr-nrt, service vbr-rt, and service cbr.
Example
Display how to specify the service type of the PVC as ubr and the peak cell rate of
ATM cell as 100,000Kbps.
View
PVC view
Parameter
output-pcr: Peak rate of ATM cell output in Kbit/s. For the value ranges of this
parameter, see Value ranges of output-pcr.
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 of ATM cell output, i.e., the maximum cache size
of ATM cell output at the interface in cell number.
Description
Using the service vbr-nrt command, you can specify the service type of PVC as
Variable Bit Rate-Non Real Time (VBR-NRT) and specify the related rate
parameters.
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 supercede the existing service type.
For the related commands, see service vbr-rt, service ubr, and service cbr.
ATM Configuration Commands 349
Example
Display how to specify the service type of the PVC as VBR-NRT and set the peak
bit rate of ATM cell to 100,000kbit/s, sustainable bit rate to 50,000Kbps, the
maximum burst size to 320 cells.
View
PVC view
Parameter
output-pcr: Peak cell rate of ATM output in Kbit/s. For the value ranges of this
parameter, see .
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
Using the service vbr-rt command, you can set the service type of PVC to Variable
Bit Rate - Real Time (VBR-RT) and specify the related rate parameters in the PVC
view.
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 supercede the existing service type. The command
does not support ATM E1 interface.
For the related commands, see 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,000kbit/s, sustainable cell rate to 50,000Kbps, the
maximum burst size to 320 cells.
350 CHAPTER 4: LINK LAYER PROTOCOL
channel Syntax
View
Parameter
Description
Using the channel command, you can add X.25 interface or XOT channel of one
serial port to the current hunt group. Using the undo channel command, you can
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.
Example
View
User view
Parameter
Description
Using the debugging pad command, you can enable the debugging switch of
PAD.
Using the undo debugging pad command, you can disable the debugging switch
of PAD.
Example
None
View
User view
Parameter
Description
Using the debugging x25 xot command, you can enable the debugging switch of
XOT
Using the undo debugging x25 xot command, you can disable the debugging
switch of XOT
Example
None
View
Any view
352 CHAPTER 4: LINK LAYER PROTOCOL
Parameter
Description
Using the display interface command, you can 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.
<3Com> system-view
[3Com] interface Serial1/0/0
[3Com-Serial0/0/0] linl-protocol lapb
[3Com-Serial0/0/0] display interface serial 0/0/0
Serial0/0/0 current state : UP
Line protocol current state : UP
Description : 3Com, 3Com Series, Serial4/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
RR 6/113 RNR 0/0 REJ 0/0
Invalid Pr: 0 Invalid Ps: 0 Unknown: 0
Link-protocol is LAPB
LAPB DCE, module 8, window-size 7, max-frame 12056, retry 10
Timer: T1 3000, T2 1500, T3 0 (milliseconds), x.25-protocol
state CONNECT, VS 6, VR 3, Remote VR 6
IFRAME 147/254, RR 11/6, RNR 0/0, REJ 0/0
FRMR 0/0, SABM 0/1, DM 0/0, UA 1/0
DISC 0/0, invalid ns 0, invalid nr 0, link resets 0
FIFO queuing: (Outbound queue:Size/Length/Discards)
FIFO 0/75/0
Physical layer is synchronous,
Interface is DTE, Cable type is V24
5 minutes input rate 0.00 bytes/sec, 0.01 packets/sec
5 minutes output rate 0.07 bytes/sec, 0.01 packets/sec
159 packets input, 3338 bytes, 0 no buffers
261 packets output, 4057 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
LAPB and X.25 Configuration Commands 353
The above information will be displayed after entering the command series, in
which the contents in boldface are those related to X.25 and LAPB protocols. The
main parameters are described as follows:
■ max-frame 12056: The maximum length of frame sent by the interface LAPB is
12056 bits.
■ retry 10: Maximum re-sending times of information frame of this interface
LAPB is 10.
■ timer: Delay value of timers of this interface LAPB, in 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.
■ Remote VR: Peer’s last acknowledgment on information frame received by this
interface LAPB.
■ IFRAME 147/254 ... DISC 0/0: Statistics information of frames sent and received
by this interface LAPB, format: received quantity/sent quantity.
■ Invalid ns: Error statistics of this interface LAPB, including total of received
information frames carrying erroneous sequence numbers.
■ Invalid nr: Error statistics of this interface LAPB, including total of received
information frames and monitoring frames carrying erroneous
acknowledgment numbers.
■ Link resets: Restarting times of this interface LAPB link.
View
Any view
Parameter
Description
Using the display x25 alias-policy command, you can view X.25 alias table.
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), $20112405 (in left alignment match mode) and 20112405$ (in
right alignment match mode).
View
Any view
Parameter
Description
Using the display x25 hunt-group-info command, you can 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.
Example
The following table introduces the meaning of each field in the displayed
information.
Field Explanation
hg1 Hunt group name
round-robin Hunt group call channel selection policy
member Interfaces or XOT channel contained in hunt group
state The state of the current interface or XOT channel, including:
Last:Last: last used
Next: interfaces or XOT channel selected by rotary selection policy next
Normal: normal state
vc-used Call number on the interface or XOT channel (including call success and call failure)
in-pkts Input flow on the interface or XOT channel in packets
out-pkts Output flow on the interface or XOT channel in packets
356 CHAPTER 4: LINK LAYER PROTOCOL
View
Any view
Parameter
None
Description
Using the display x25 map command, you can view the X.25 address mapping
table.
For the related commands, see x25 map, x25 pvc, x25 switch pvc, x25 xot pvc,
and x25 fr pvc.
Example
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
Using the display x25 pad command, you can view X.25 PAD connection
information.
LAPB and X.25 Configuration Commands 357
For the related commands, see display x25 vc and x25 xot.
Example
View
Any view
Parameter
None
Description
Using the display x25 switch-table pvc command, you can view X.25 switching
virtual circuit table.
For the related commands, see x25 pvc, x25 switch pvc, x25 xot pvc, x25 fr pvc,
and x25 switch svc.
Example
View
Any view
Parameter
None
Description
The command display x25 switch-table svc is used to display X.25 switching
routing table.
Example
The following table introduces the meaning of each field in the displayed
information.
Table 20 Explanation of each field in the command display x25 switch-table svc
Field Explanation
Number Sequence number of this route in the routing table
Substitute-src X.121 source address after substitution, if the content is blank, it means no substitution.
Substitute-dst X.121 destination address after substitution, if the content is blank, it means no substitutio
CUD Call User Data
SwitchTo Forwarding address of this route, including interface, XOT channel and hunt group
View
Any view
LAPB and X.25 Configuration Commands 359
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
Using the display x25 vc command, you can view the information about the X.25
virtual circuit.
For the related commands, see x25 pvc, x25 switch pvc, x25 xot pvc, and x25 fr
pvc.
Example
View
Any view
Parameter
None
Description
Using the display x25 xot command, you can 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.
For the related commands, see x25 switch svc xot and x25 xot pvc.
LAPB and X.25 Configuration Commands 361
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.
View
Interface view
Parameter
n1-value: The value of the parameter N1 in bits, and its value ranges from 1096 to
12104.By default, the parameter N1 of LAPB is 12032.
Description
Using the lapb max-frame command, you can configure the LAPB parameter N1.
Using the undo lapb max-frame command, you can restore the default value.
N1 shall indicate the maximum bit of I frame that DCE or DTE wish to receive from
DTE or DCE, and its value is maximum transmission unit (MTU) plus the total bytes
of protocol header times 8, which stipulates the maximum length of transmission
frame.
Example
View
Interface view
Parameter
Description
Using the lapb modulo command, you can specify the LAPB frame numbering
view (also called modulo). Using the undo lapb modulo command, you can restore
the default value.
There are two LAPB frame numbering views: modulo 8 and modulo 128. Each
information frame (I frame) is numbered in sequence, ranging from 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.
Example
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
Using the lapb retry command, you can configure LAPB parameter N2. Using the
undo lapb retry command, you can restore the default value.
The value of N2 indicates the maximum retries that DCE or DTE sends one frame
to DTE or DCE.
LAPB and X.25 Configuration Commands 363
Example
View
Interface view
Parameter
■ t1-value: The value of timer T1 in ms, its value ranges from 1 to 64000ms.The
default value of T1 is 2000ms.
■ t2-value: Value of the timer T2 in ms, ranging 1 to 32000.The default value of
T2 is 1000ms.
■ t3-value: Value of the timer T3 in ms, its value ranges from 0 to 255. The
default value of T3 is 0ms.
Description
Using the lapb timer command, you can configure the LAPB timers T1, T2 and
T3..Using the undo lapb timer command, you can restore their default values.
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
View
Interface view
Parameter
Description
Using the lapb window-size command, you can configure the LAPB window
parameter K. Using the undo lapb window-size command, you can restore the
default value of the LAPB window parameter K.
Example
View
Interface view
Parameter
■ dte: Indicates that the interface works in DTE mode of LAPB.
■ dce: Indicates that the interface works in DCE mode of LAPB.
■ ip: Indicates that the network layer protocol borne by LAPB is IP.
Description
Using the link-protocol lapb command, you can specify the link layer protocol of
the interface as LAPB.
By default, DTE is the default LAPB operating mode. IP is the default network layer
protocol.
Example
Configure LAPB as the link layer protocol of the interface Serial 0/0/0, and enable
it to work in DCE mode.
View
Interface view
Parameter
■ dte: Indicates that the interface works in DTE mode.
■ dce: Indicates that the interface works in DCE mode.
■ letf: Based on the standard stipulation of the IETF RFC 1356, encapsulate IP or
other network protocols on the X.25 network.
■ nonstandard: Encapsulates IP or other network protocols on the X.25 network
with nonstandard.
Description
Using the link-protocol x25 command, you can 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.
Example
Specify X.25 as the link layer protocol of the interface Serial 0/0/0 that works in
DTE IETF mode.
pad Syntax
pad x121-address
366 CHAPTER 4: LINK LAYER PROTOCOL
View
User view
Parameter
Description
Using the pad command, you can establish a PAD connection with the remote site.
Example
<03Com> pad 2
View
User view
Parameter
■ local-ip-address: Local IP address of the XOT connection.
■ local-port: Local port number of the XOT connection.
■ remote-ip-address: Remote IP address of the XOT connection.
■ remote-port: Remote port number of the XOT connection.
Description
For SVC, using the reset xot command, you can initiatively clear an XOT link.
For PVC, using reset xot command, you can 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.
For the related commands, see display x25 vc, x25 switching, display x25 xot, and
display tcp status.
Example
View
Interface view
Parameter
match-type: Match type of the alias. There are 9 optional match types:
Description
Using the x25 alias-policy command, you can configure the alias of an X.121
address. Using the undo x25 alias-policy command, you can delete the alias of an
X.121 address.
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.
For the related commands, see display x25 alias-policy and x25 x121-address.
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.
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.
View
Interface view
Parameter
■ closed-user-group number: Specifies a closed user group (CUG) number for the
X.25 interface. The facility enables DTE to belong to one or more CUGs. CUG
allows the DTEs in it to communicate with each other, but not to communicate
with other DTEs.
■ packet-size input-size output-size: Specifies the maximum packet size
negotiation in initiating call from X.25 interface. Maximum packet size
negotiation is part of flow control parameter negotiation. It needs two
parameters: maximum reception packet size and maximum transmission
packet size, which must range from 16 to 1024 (including 16 and 1024), and
must be the integer power of 2.
■ reverse-charge-request: Specifies reverse charging request while calling from
X.25 interface.
■ 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 value: Specifies the maximum network send delay request while
calling from X.25 interface. You can set this request to any value ranging from
0 to 65534 ms (including 0 and 65534).
■ 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.
LAPB and X.25 Configuration Commands 369
Description
Using the x25 call-facility command, you can 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. Using the undo x25 call-facility command,
you can delete the set option.
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 ].
Example
Specify the flow control parameter negotiation with the peer end for the calls
from the X.25 interface serial0/0/0.
View
Interface view
Parameter
■ incoming-access: Performs the suppress processing of incoming access
■ outgoing-access: Performs the suppress processing of outgoing access
■ all: Suppresses all CUGs configured with preferential suppress
■ preferential: Only processes those CUGs configured with preferential suppress
Description
Using the x25 cug-service command, you can map the local CUG facility to the
network CUG. When the call with CUG facility meets CUG suppress conditions, it
will be processed. Using the undo x25 cug-service command, you can delete CUG
suppress. The command is used on DCE side, and you can use the command
link-protocol x25 dce to set DCE as the working mode of the interface.
For the related commands, see x25 call-facility and x25 local-cug.
370 CHAPTER 4: LINK LAYER PROTOCOL
Example
View
Interface view
Parameter
Description
Using the x25 default-protocol command, you can set the default upper-layer
protocol carried over X.25 for the X.25 interface. Using the undo x25
default-protocol command, you can restore the default upper-layer protocol.
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.
Example
Set the default upper-layer protocol over the X.25 interface Serial0/0/0 as IP.
View
System view
Parameter
Description
Using the x25 hunt-group command, you can create or enter an X.25 hunt group.
Using the undo x25 hunt-group command, you can 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
nondistinctively select the available channels between interface and XOT channel.
XOT channel cannot join the hunt group that adopts the vc-number selection
policy.
Example
View
Interface view
Parameter
None
Description
Using the x25 ignore called-address command, you can enable it to ignore the
X.121 address of the called DTE when X.25 initiates calls. Using the undo x25
ignore called-address command, you can disable this function.
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 3Com series routers carries the called DTE address.
For the related commands, see x25 response called-address, x25 response
calling-address, and x25 ignore calling-address.
Example
Specify the call request packet from the X.25 interface Serial0/0/0 not to carry the
called DTE address.
View
Interface view
Parameter
None
Description
Using the x25 ignore calling-address command, you can enable it to ignore the
X.121 address of the calling DTE when X.25 initiates calls. Using the undo x25
ignore calling-address command, you can disable this function.
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 3Com series routers carries the calling DTE address.
For the related commands, see 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.
View
Interface view
Parameter
■ local-cug cug-number: Number of local cug.
■ network-cug cug-number: Number of network cug.
■ no-incoming: Suppresses incoming access.
■ no-outgoing: Suppresses outgoing access.
■ preferential: Suppresses the CUGs configured with preferential.
Description
Using the x25 local-cug command, you can define CUG suppress rules. Using the
undo x25 local-cug command, you can delete the rules. CUG suppress rules have
two: suppressing all CUG facilities and suppressing the mapping CUG facility
configured with preferential.
For the related commands, see 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.
View
Interface view
Parameter
■ ip: Uses IP protocol.
■ compressedtcp: Uses TCP header compression.
■ protocol-address: Network protocol address of the peer host.
374 CHAPTER 4: LINK LAYER PROTOCOL
Description
Using the x25 map command, you can set the address mapping between IP
address used by LANs and X.121 address. Using the undo x25 map command, you
can delete one existing mapping.
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.
For the related commands, see 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.
View
Interface view
Parameter
Description
Using the x25 modulo command, you can set the window modulus of an X.25
interface. Using the undo x25 modulo command, you can restore its default
window modulus.
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
376 CHAPTER 4: LINK LAYER PROTOCOL
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 3Com series routers
supports both views.
For the related commands, see display interface, x25 call-facility, x25 map, x25
pvc, x25 switch pvc, x25 xot pvc, x25 fr pvc, and x25 window-size.
Example
undo packet-size
View
Interface view
Parameter
■ input-packet: Maximum input packet length in bytes, its value ranges from 16
to 1024 (including 16 and 1024) 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 to 1024 (including 16 and 1024) and must be the integer power of 2. By
default, the maximum output packet length of X.25 interface is 128 bytes.
Description
Using the x25 packet-size command, you can set the maximum input and output
packet lengths of X.25 interface. Using the undo x25 packet-size command, you
can restore their default values.
For the related commands, see 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.
x25 pvc
View
Interface view
Parameter
■ pvc-number: PVC number, which must range from 1 to 4095 (including 1 and
4095), 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.
■ x.121-address: X.121 address of the peer end of this PVC.
■ option: Attribute of the PVC.
Description
Using the x25 pvc command, you can configure one PVC route encapsulated with
datagram. Using the undo x25 pvc command, you can delete this route.
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
378 CHAPTER 4: LINK LAYER PROTOCOL
PVC number is 1, the PVC section will be disabled naturally. The following table
shows some typical PVC sections.
Incoming-only
channel range Two-way channel range Outgoing-only channel range
[0, 0] [1, 1024] [0, 0]
[0, 0] [10, 24] [0, 0]
[1, 10] [15, 30] [0, 0]
[5, 10] [15, 25] [30, 32]
[0, 0] [0, 0] [20, 45]
[0, 0] [0, 0] [0, 0]
Example
Configure the link layer protocol on the interface Serial0/0/0 to X.25, enable PVC
channel section, and set two VCs.
View
Interface view
LAPB and X.25 Configuration Commands 379
Parameter
Description
Using the x25 queue-length command, you can set the data queue length on X.25
VC. Using the undo x25 queue-length command, you can 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.
Example
Set the VC data queue length of the X.25 interface Serial0/0/0 to 75 datagrams.
View
Interface view
Parameter
count: The number of data packets that can be received before previous
acknowledgement, ranging from 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 3Com
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
Using the x25 receive-threshold command, you can set the number of receivable
maximum packets before X.25 sends the acknowledged packet. Using the undo
x25 receive-threshold command, you can restore its default value.
After enabling this function, the 3Com series routers can send acknowledgement
to the peer router upon the receipt of some correct packets, even if the input
window is not yet 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.
Example
View
Interface view
Parameter
None
Description
Using the x25 response called-address command, you can enable X.25 to carry the
address information of the called DTE in sending call reception packet. Using the
undo x25 response called-address command, you can disable the above function.
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 3Com series routers carries the called DTE address.
For the related commands, see 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.
View
Interface view
LAPB and X.25 Configuration Commands 381
Parameter
None
Description
Using the x25 response calling-address command, you can enable X.25 to carry
the address information of the calling DTE in sending call reception packet. Using
the undo x25 response calling-address command, you can disable the above
function.
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 3Com series routers carries the calling DTE address.
For the related commands, see 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.
x25 Syntax
reverse-charge-accept
x25 reverse-charge-accept
View
Interface view
Parameter
None
Description
Using the x25 reverse-charge-accept command, you can enable this interface to
accept the call with “reverse charging request”, the information added by some
certain user facilities. Using the undo x25 reverse-charge-accept command, you
can disable this above function.
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
382 CHAPTER 4: LINK LAYER PROTOCOL
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.
Example
Set the “accepting calls with reverse charging request” function on interface
Serial0/0/0.
View
System view
Parameter
id: ID specified for this ROA, and its value ranges from 0 to 9999. You can specify
multiple IDs for the ROA.
Description
Using the x25 roa-list command, you can define ROA list. Using the undo x25
roa-list command, you can delete ROA list items.
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.
For the related commands, see x25 call-facility and x25 map.
Example
Define two ROA lists, and cite them on the interfaces Serial 0/0/0 and Serial 1/0/0.
x25 switch pvc pvc-number1 interface serial number pvc pvc-number2 [ option ]
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.
Description
Using the x25 switch pvc (packet switching) command, you can configure one
PVC route. Using the undo x25 switch pvc command, you can delete one PVC
route.
Based on the X.25 switching configuration, you can use the 3Com 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.
For the related commands, see display x25 vc and x25 switching.
384 CHAPTER 4: LINK LAYER PROTOCOL
Example
Perform the packet switching between PVC1 on the Serial0/0/0 and PVC1 on the
Serial1/0/0.
View
System view
Parameter
Description
Using the x25 switch svc hunt-group command, you can add an X.25 switching
route whose forwarding address is a hunt group. Using the undo x25 switch svc
hunt-group command, you can delete the specified X.25 switching route.
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.
Wildcard
characters Matching rules Example
* Matching zero or more previous characters fo*
+ Matching zero or more previous characters fo+
^ Matching the beginning of the entered characters ^hell
$ Matching the end of the entered characters ar$
\char Matching a single character specified by char. b\+
LAPB and X.25 Configuration Commands 385
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.
[3Com] x25 switch svc 111 sub-dest 9999 sub-source 8888 hunt-group
hg1
View
System view
Parameter
xot-option: XOT channel parameter option. For the specific configuration, see XOT
channel parameter option.
386 CHAPTER 4: LINK LAYER PROTOCOL
Description
Using the x25 switch svc xot command, you can add an X.25 switching route
whose forwarding address is XOT channel. Using the undo x25 switch svc xot
command, you can delete the specified X.25 switching route.
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 Explanation
timer seconds Keepalive timer delay of XOT connection. The timer sends the keepa
detect the connection availability. Its value ranges from 1 to 3600.
retry times Number of maximum retries of sending keepalive. If the number exc
connection will be disconnected. Its value ranges from 3 to 3600.
source interface-type interface-name Interface name of initiating XOT connection
For the related commands, see x25 switch svc interface, display
x25 switch-table svc, and x25 switching.
Example
x25 switching
View
System view
Parameter
None
Description
Using the x25 switching command, you can enable the X.25 switching function.
Using the undo x25 switching command, you can disable this function, which will
not affect the established VC switching function.
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.
LAPB and X.25 Configuration Commands 387
For the related commands, see x25 pvc, x25 switch pvc, x25 xot pvc, x25 fr pvc,
x25 switch svc, display x25 vc, and display x25 switch-table svc.
Example
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 won’t send calls to such a
destination again within the time set by this command.
Description
Using the x25 timer hold command, you can set the delay to send calls to a
destination with failed calls. Using the undo x25 timer hold command, you can
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 3Com 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.
Example
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
Using the x25 timer idle command, you can set the maximum idle time of the SVC
on the interface. Using the undo x25 timer idle command, you can 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.
Example
Set the maximum idle time of the SVC on the interface Serial 0/0/0 to 10 minutes.
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
Using the x25 timer tx0 command, you can set the restart/retransmission timer
delay for DTE (or DCE). Using the undo x25 timer tx0 command, you can restore
their default values.
LAPB and X.25 Configuration Commands 389
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.
For the related commands, see 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.
View
Interface view
Parameter
Description
Using the x25 timer tx1 command, you can set calling request (indication)
transmission timer delay for DTE (or DCE). Using the undo x25 timer tx1
command, you can 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.
For the related commands, see 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.
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
Using the x25 timer tx2 command, you can set resetting request (indication)
transmission timer delay for DTE (or DCE). Using the undo x25 timer tx2
command, you can 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.
For the related commands, see 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.
View
Interface view
Parameter
Description
Using the x25 timer tx3 command, you can set clearing request (indication)
transmission timer delay for DTE (or DCE). Using the undo x25 timer tx3
command, you can 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
LAPB and X.25 Configuration Commands 391
normal proceeding of the local procedure. This parameter specifies the delay time
of this timer before the timeout.
For the related commands, see 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.
View
Interface view
Parameter
count: Maximum number of VCs, and its value ranges from 1 to 8.By default, its
value is 1.
Description
Using the x25 vc-per-map command, you can set the maximum number of VCs for
connections with the same destination device. Using the undo x25 vc-per-map
command, you can 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.
For the related commands, see display interface and x25 map.
Example
Set the maximum value of VCs on the X.25 interface Serial 0/0/0 to 3.
x25 vc-range [ in-channel lic hic ] [ bi-channel ltc htc ] [ out-channel loc hoc ]
View
Interface view
392 CHAPTER 4: LINK LAYER PROTOCOL
Parameter
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.
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.
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.
Description
Using the x25 vc-range command, you can set highest and lowest values of X.25
VC range. Using the undo x25 vc-range command, you can restore their default
values.
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.
View
Interface view
Parameter
Description
Using the x25 window-size command, you can set the sizes of input and output
windows on the interface X.25. Using the undo x25 window-size command, you
can restore their default values.
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.
For the related commands, see 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.
View
Interface view
Parameter
Description
Using the x25 x121-address command, you can set the X.121 address of an X.25
interface. Using the undo x25 x121-address command, you can 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
394 CHAPTER 4: LINK LAYER PROTOCOL
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.
Example
Configure the link layer protocol on the interface Serial 0/0/0 as X.25, and X.121
address as 20112451.
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 ]
View
Interface view
Parameter
■ pvc-number1: Number of PVC on the local interface, and its value ranges from
1 to 4095.
■ pvc-number2: Number of PVC on the peer interface, and its value ranges from
1 to 4095.
■ ip-address: IP address of the peer destination for connection with XOT.
■ interface type number: Type and number of interface, and the interface type
can only be Serial.
■ xot-option: Option of XOT channel parameter. For the specific configuration,
see XOT channel parameter option.
■ packet-size input-packet output-packet: Specifies the maximum receiving
packet length and maximum sending packet length. The length is counted in
byte, which must range from 16 to 4096 (including 16 and 4096), and must be
the integer power of 2.
■ window-size input-window-size output-window-size: Specifies the receiving
window and sending window sizes of the VC, which range between 1 and the
LAPB and X.25 Configuration Commands 395
number that is 1 less than the modulus of the X.25 interface where the address
mapping exists (including 1 and modulus minus 1).
Description
Using the x25 xot pvc command, you can add a PVC route of XOT. Using the undo
x25 pvc command, you can delete the specified PVC route of XOT.
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.
For the related commands, see display x25 vc and x25 switching.
Example
View
System view
Parameter
seconds: Delay time in seconds, and its value ranges from 5 to 2147483. The delay
of waiting for response after inviting PAD clear procedure, its default value is 5.
Description
Using the x29 timer inviteclear-time command, you can set the delay of waiting
for response after inviting PAD clear procedure. After exceeding the time, the
system will forcedly exit from the PAC connection and start x.25 clear procedure.
396 CHAPTER 4: LINK LAYER PROTOCOL
Example
IP Address
Configuration
Commands
View
Any view
Parameter
Description
Using the display ip interface command, you can display the running condition of
all the interfaces.
Example
The following information is displayed: the current physical link state of Ethernet
6/0/0 is UP, the protocol of link layer is UP, the IP address is 5.5.5.5, the broadcast
address is 0.0.0.0, the maximum transmit unit is 1500 bytes and some other
information about packets receiving/sending via this interface.
ip address Syntax
View
Interface view
Parameter
Description
Using the ip address command, you can set an IP address for an interface. Using
the undo ip address command, you can delete an IP address of the interface.
IP address is classified into five types, and users can select proper IP subnet
according to actual conditions. Moreover, in the case that part of the host address
is composed of 0 or the entire host address is composed of 1, the address has
some special use and can not be used as ordinary IP address.
Under normal conditions, one interface only needs to be configured with one IP
address. However, to enable one interface of a router to connect to several
subnets, one interface can be configured with several IP addresses. Among them,
one is master IP address, and others are slave IP addresses. Following is the
relationship between the master and slave IP addresses:
The command undo ip address without parameters indicates to delete all the IP
addresses of the interface. The command undo ip address ip-address net-mask
indicates to delete the master IP address and undo ip address ip-address net-mask
sub indicates to delete the slave address. All the slave addresses must be deleted
before the master IP address can be deleted.
In addition, any two IP addresses configured for all interfaces on a router cannot
be located in the same subnet.
For the related commands, see ip route-static, display ip interface, and display
interface.
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.
IP Address Configuration Commands 399
ip address Syntax
ppp-negotiate
ip address ppp-negotiate
View
Interface view
Parameter
None
Description
Example
View
Interface view
400 CHAPTER 5: NETWORK PROTOCOL
Parameter
Description
This command is used to enable serial interfaces encapsulated with PPP, HDLC,
Frame Relay, SLIP and Tunnel to borrow the IP addresses from the Ethernet
interface or other interfaces.
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.
View
Interface view
Parameter
ip-address: IP address.
Description
Using the remote address command, you can configure to assign IP address for
the peer interface. Using the undo remote address command, you can 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 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
ARP Configuration Commands 401
while configuring 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.
Example
The serial interface encapsulated with PPP assigns an IP address 10.0.0.1 for the
peer.
ARP Configuration
Commands
View
System view
Parameter
Description
Using the arp static command, you can configure ARP mapping table. And using
the undo arp command, you can delete mapping items corresponding to some
addresses in the ARP mapping table.
By default, the mapping table of the system ARP is empty and the address
mapping can be obtained through dynamic ARP.
For the related commands, see arp static and display arp.
402 CHAPTER 5: NETWORK PROTOCOL
Example
View
User view
Parameter
None
Description
Using the debugging arp packet command, you can enable ARP packets
debugging; and using the undo debugging arp packet command, you can disable
the function.
Example
View
Any view
Parameter
■ static: Indicates to show the static ARP entries.
■ dynamic: Indicates to show the dynamic ARP entries.
■ all: Indicates to show all ARP entries.
Description
Using the display arp command, you can view the ARP mapping table.
ARP Configuration Commands 403
For the related commands, see arp static and reset arp.
Example
View
User view
Parameter
■ static: Indicates to clear the static ARP entries.
■ dynamic: Indicates to clear the dynamic ARP entries.
■ all: Indicates to clear all ARP entries.
■ interface: Indicates the selected interface.
■ interface-type: Interface type.
■ interface-number: Interface sequence number.
■ interface-name: Interface name.
Description
Using the reset arp command, you can clear the ARP entries in the ARP mapping
table.
For the related commands, see 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.
display ip host
View
Any view
Parameter
None
Description
Using the display ip host command, you can display all the host names and their
corresponding IP addresses.
Example
ip host Syntax
View
System view
Parameter
■ hostname: The name of a host, a character string with its length from 1 to 20.
■ ip-address: The IP address corresponding to a host name, whose format can be
A.B.C.D
Description
Using the ip host command, you can configure the IP address corresponding to a
host name; while using the undo ip host command, you can remove the IP address
corresponding to a host name.
By default, the static domain name table is empty, i.e. there’s no host name and IP
address pair.
DHCP Public Configuration Commands 405
Example
DHCP Public
Configuration
Commands
View
System view
Parameter
None
Description
Using the dhcp enable command, you can enable DHCP services. Using the undo
dhcp enable command, you can disable DHCP services.
Before you can configure DHCP, you must enable DHCP services. This
configuration is essential to both DHCP server and DHCP relay.
Example
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.
■ 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
Using the dhcp select command in interface view, you can select a method for
disposing the DHCP packets destined to the local device. Using the undo dhcp
select command in interface view, you can 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).
For the related command, see 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.
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.
■ 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.
DHCP Public Configuration Commands 407
Description
Using the dhcp select command in system view, you can select a method for
multiple interfaces in a specified range to dispose the DHCP packets destined to
the local device. Using the undo dhcp select command in system view, you can
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).
For the related command, see dhcp select (in interface view).
Example
View
Interface view
Parameter
None
Description
Using the dhcp server detect command, you can enable pseudo-DHCP-server
detection. Using the undo dhcp server detect command, you can disable the
function.
By default, pseudo-DHCP-server detection is disabled.
Example
Enable pseudo DHCP server detection on the interface Ethernet 2/0/0.
[3Com-Ethernet2/0/0] dhcp server detect
408 CHAPTER 5: NETWORK PROTOCOL
DHCP Server
Configuration
Commands
View
User view
Parameter
■ all: All debugging functions of DHCP server.
■ error: Error debugging on the DHCP server, specifically, the debugging on the
errors that occur when the DHCP server processes DHCP packets, allocates
addresses, etc.
■ events: Event debugging on the DHCP server, specifically, the debugging on the
events such as address allocation, ping detection timeout, etc.
■ packet: DHCP packet debugging, specifically, the debugging on the packets
that the DHCP server has received and sent and on the ping packets sent for
the purpose of detection and the received response packets.
Description
Using the debugging dhcp server command, you can enable debugging on the
DHCP server. Using the undo debugging dhcp server command, you can disable
debugging.
By default, debugging is disabled on the DHCP server.
Example
Enable event debugging on the DHCP server.
<3Com> debugging dhcp server events
*0.62496500-DHCP SER-8-DHCPS_DEBUG_COMMON:
DhcpServer: ICMP Timeout
*0.62496583-DHCP SER-8-DHCPS_DEBUG_COMMON:
DhcpServer: Still Need to ICMP detect for 1 times
*0.62497000-DHCP SER-8-DHCPS_DEBUG_COMMON:
DhcpServer: ICMP Timeout
*0.62497083-DHCP SER-8-DHCPS_DEBUG_COMMON:
DhcpServer: All Try finished
*0.62497166-DHCP SER-8-DHCPS_DEBUG_COMMON:
DhcpServer: Ack User's Lease
View
Interface view
Parameter
■ ip-address: IP address of DNS. You can configure up to eight IP addresses
separated by spaces in a command.
Description
Using the dhcp server dns-list command in interface view, you can configure DNS
IP addresses for an interface configured with a DHCP address pool. Using the undo
dns-list command in interface view, you can 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.
For the related commands, see 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.
[3Com] interface ethernet 1/0/0
[3Com-Ethernet 1/0/0] dhcp server dns-list 1.1.1.254
View
System view
Parameter
■ ip-address: IP address of DNS. You can configure up to eight IP addresses
separated by spaces in a command.
■ ethernet-subinterface-range: Includes any the subinterfaces whose interface
number lies between the two given subinterface number (including these two
subinterfaces) by inserting the keyword “to” between these two interface
numbers.
■ all: In the undo form of the command, the first “all” refers to all the Gateway
(GW) addresses and the second, all the interfaces.
Description
Using the dhcp server dns-list command in system view, you can assign DNS IP
addresses to the DHCP address pool of multiple interfaces in a specified range.
Using the undo dns-list command in system view, you can delete the
configuration.
By default, no DNS address is configured.
Only up to eight DNS server addresses, by far, can be set in each DHCP address
pool.
For the related commands, see dhcp server dns-list (in interface view), dhcp server
ip-pool, and 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.
[3Com] dhcp server dns-list 1.1.1.254 interface ethernet 2/0/0.0 to
ethernet 2/0/0.5
View
Interface 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
Using the dhcp server domain-name command in interface view, you can
configure the domain name that the DHCP address pool of the current interface
DHCP Server Configuration Commands 411
Example
View
System view
Parameter
■ domain-name: Domain name that the DHCP server allocates to clients, which is
a string comprising 3 to 50 characters.
■ ethernet-subinterface-range: Includes any the subinterfaces whose interface
number lies between two subinterface numbers (including these two
subinterfaces) by inserting the keyword “to” between these two interface
numbers.
■ all: All the interfaces.
Description
Using the dhcp server domain-name command in system view, you can configure
the domain name that the DHCP address pool of the interfaces in a specified
range allocates to DHCP clients. Using the undo dhcp server domain-name
command in system view, you can 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.
For the related command, see 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.
[3Com] dhcp server domain-name eth1_0_0.com.cn interface ethernet
2/0/0.1 to ethernet 2/0/0.5
412 CHAPTER 5: NETWORK PROTOCOL
View
Interface view
Parameter
■ day day: Number of days in the range of 0 to 365.
■ hour hour: Number of hours in the range of 0 to 23.
■ minute minute: Number of hours in the range of 0 to 59.
■ unlimited: The valid period is unlimited.
Description
Using the dhcp server expired command in interface view, you can configure a
valid period allowed for leasing IP addresses in the current interface DHCP address
pool. Using the undo dhcp server expired command in interface view, you can
restore the default setting.
By default, the leasing valid period is one day.
For the related commands, see 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.
[3Com] interface ethernet 1/0/0
[3Com-Ethernet 1/0/0] dhcp server expired unlimited
View
System view
Parameter
■ day day: Number of days in the range of 0 to 365.
■ hour hour: Number of hours in the range of 0 to 23.
■ minute minute: Number of hours in the range of 0 to 59.
■ unlimited: The valid period is unlimited.
■ ethernet-subinterface-range: Includes any the subinterfaces whose interface
number lies between two subinterface numbers (including these two
subinterfaces) by inserting the keyword “to” between these two interface
numbers.
■ all: All the interfaces.
DHCP Server Configuration Commands 413
Description
Using the dhcp server expired command in system view, you can configure a valid
period allowed for leasing IP addresses in the interface DHCP address pool of the
interfaces in a specified range. Using the undo dhcp server expired command in
system view, you can restore the default setting.
By default, the leasing valid period is one day.
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.
For the related commands, see dhcp server ip-pool, dhcp server expired (in
interface view), and 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.
[3Com] dhcp server expired unlimited interface ethernet 2/0/0.1 to
ethernet 2/0/0.5
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, i.e., low-ip-address.
Description
Using the dhcp server forbidden-ip command, you can exclude IP addresses in a
specified range to participate in the auto-allocation. Using the undo dhcp server
forbidden-ip command, you can delete the configuration.
By default, all the IP addresses in address pools participate in the auto-allocation.
You can configure multiple IP address ranges that do not participate in the
auto-allocation. Before using the undo dhcp server forbidden-ip command to
delete the setting, you must make sure that you are using exactly the same
parameters that you have configured. In other words, you cannot delete only
some addresses from the configured range.
For the related commands, see dhcp server ip-pool, network, and static-bind
ip-address.
414 CHAPTER 5: NETWORK PROTOCOL
Example
Reserve the IP addresses in the range of 10.110.1.1 to 10.110.1.63 so that these
addresses will not participate in the address auto-allocation.
[3Com] dhcp server forbidden-ip 10.110.1.1 10.110.1.63
Syntax
dhcp server ip-pool pool-name
undo dhcp server ip-pool pool-name
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
Using the dhcp server ip-pool command, you can create a DHCP address pool and
access the DHCP address pool view. Using the undo dhcp server ip-pool
command, you can 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 but no
more than 50.
For the related commands, see dhcp enable, expired, and network.
Example
Create DHCP address pool 0.
[3Com] dhcp server ip-pool 0
[3Com-dhcp-0]
View
Interface view
Parameter
■ ip-address: IP address of NetBIOS server. You can configure up to eight IP
addresses separated by spaces in a command.
■ all: All the NetBIOS server IP addresses.
DHCP Server Configuration Commands 415
Description
Using the dhcp server nbns-list command in interface view, you can configure
NetBIOS server addresses in the DHCP address pool of current interface. Using the
undo dns-list command in interface view, you can delete the configuration.
By default, no NetBIOS address is configured.
By far, only up to eight NetBIOS addresses can be configured in each DHCP
address pool.
For the related commands, see dhcp server ip-pool, dhcp server nbns-list (in
system view), nbns-list, and netbios-type.
Example
In the DHCP address pool of Ethernet1/0/0, allocate the NetBIOS server at
10.12.1.99 to the clients.
[3Com] interface ethernet 1/0/0
[3Com-Ethernet 1/0/0] dhcp server nbns-list 10.12.1.99
View
System view
Parameter
■ ip-address: IP address of NetBIOS server. You can configure up to eight IP
addresses separated by spaces in a command.
■ all: In the undo form of the command, the first “all” refers to all the NetBIOS
server addresses and the second, all the interfaces.
■ ethernet-subinterface-range: Includes any the subinterfaces whose interface
number lies between two subinterface numbers (including these two
subinterfaces) by inserting the keyword “to” between these two interface
numbers.
Description
Using the dhcp server nbns-list command in system view, you can configure
NetBIOS server addresses for the clients that get ip address from the DHCP address
pool of the interfaces in a specified range. Using the undo dhcp server nbns-list
command in system view, you can delete the configuration.
By default, no NetBIOS 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.
416 CHAPTER 5: NETWORK PROTOCOL
For the related commands, see dhcp server ip-pool, dhcp server nbns-list (in
interface view), nbns-list, and netbios-type.
Example
In the DHCP address pool of interfaces in the range of Ethernet2/0/0.1 to
Ethernet2/0/0.5, assign the NetBIOS server at 10.12.1.99 to the clients.
[3Com] dhcp server nbns-list 10.12.1.99 interface ethernet 2/0/0.1
to ethernet 2/0/0.5
View
Interface view
Parameter
■ b-node: Broadcast mode, i.e., hostname-IP maps are obtained by means of
broadcast.
■ p-node: Peer-to-peer mode, i.e., maps are obtained by means of
communicating with the NetBIOS server.
■ m-node: Mixed (m) mode, i.e., the mode of type b nodes running
“peer-to-peer” communications mechanism.
■ h-node: Hybrid (h) mode, i.e., the mode of type p nodes possessing some of
the broadcast features.
Description
Using the dhcp server netbios-type command in interface view, you can configure
the NetBIOS node type of the DHCP clients of the current interface. Using the
undo dhcp server netbios-type command in interface view, you can 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.
For the related commands, see dhcp server ip-pool, netbios-type, dhcp server
netbios-type (in system view), and nbns-list.
Example
In the DHCP address pool of Ethernet1/0/0, set the NetBIOS node type of its clients
to p-node.
[3Com] interface ethernet 1/0/0
[3Com-Ethernet 1/0/0] dhcp server netbios-type p-node
View
System view
Parameter
■ b-node: Broadcast mode, i.e., hostname-IP maps are obtained by means of
broadcast.
■ p-node: Peer-to-peer mode, i.e., maps are obtained by means of
communicating with the NetBIOS server.
■ m-node: Mixed (m) mode, i.e., the mode of type b nodes running
“peer-to-peer” communications mechanism.
■ h-node: Hybrid (h) mode, i.e., the mode of type p nodes possessing some of
the broadcast features.
■ ethernet-subinterface-range: Includes all the subinterfaces between two
subinterfaces (including these two subinterfaces) by inserting the keyword “to”
between these two interfaces.
■ all: All the interfaces.
Description
Using the dhcp server netbios-type command in system view, you can configure a
NetBIOS node type for the DHCP clients of the interfaces in a specified range.
Using the undo dhcp server netbios-type command in system view, you can
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.
For the related commands, see dhcp server ip-pool, netbios-type, dhcp server
netbios-type, and nbns-list.
Example
In the DHCP address pool of interfaces in the range of Ethernet2/0/0.1 to
Ethernet2/0/0.5, set the NetBIOS node type of clients to p-node.
[3Com] dhcp server netbios-type p-node interface ethernet 2/0/0.1 to
ethernet 2/0/0.5
View
Interface view
Parameter
■ code: Option value that needs to be assigned by the user.
418 CHAPTER 5: NETWORK PROTOCOL
Description
Using the dhcp server option command in interface view, you can configure a
DHCP self-defined option for the DHCP address pool of the current interface.
Using the undo dhcp server option command in interface view, you can delete the
configuration.
For the related commands, see option and 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.
[3Com] interface ethernet 1/0/0
[3Com-Ethernet 1/0/0] dhcp server option 100 hex 11 22
View
System view
Parameter
■ code: Option value that needs to be assigned by the user.
■ 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.
■ ethernet-subinterface-range: Includes all the subinterfaces between two
subinterfaces (including these two subinterfaces) by inserting the keyword “to”
between these two interfaces.
■ all: All the interfaces.
Description
Using the dhcp server option command in system view, you can configure a DHCP
self-defined option for the interfaces in a specified range. Using the undo dhcp
server option command in system view, you can delete the configuration.
After configuring this command, you cannot view the configuration by executing
the display current-configuration command. By calling dhcp server option
respectively on the specified interfaces, you can fulfill the batch configurations of
the command.
For the related commands, see dhcp server option (in interface view) and option.
DHCP Server Configuration Commands 419
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.
[3Com] dhcp server option 100 hex 11 22 interface ethernet 2/0/0.1 to
ethernet 2/0/0.5
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
Using the dhcp server ping command, you can 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. Using the
undo dhcp server ping command, you can 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.
[3Com] dhcp server ping packets 10
Syntax
dhcp server static-bind ip-address ip-address mac-address mac-address
undo dhcp server static-bind { ip-address ip-address | mac-address mac-address }
View
Interface view
Parameter
■ ip-address: Statically bound IP address. It must be a valid IP address selected
from the current interface address pool.
■ mac-address: Statically bound MAC address.
420 CHAPTER 5: NETWORK PROTOCOL
Description
Using the dhcp server static-bind command, you can configure a static address
binding in the DHCP address pool of the current interface. Using the undo dhcp
server static-bind command, you can delete the configuration.
By default, static address binding is not configured in any interface address pool.
Example
Statically bind the MAC address 0000-e03f-0305 with the IP address 10.1.1.1.
[3Com-Ethernet1/0/0] dhcp server static-bind 10.1.1.1 0000-e03f-0305
View
Any view
Parameter
■ ip-address: A specified IP address.
■ all: All the IP addresses.
Description
Using the display dhcp server conflict command, you can view the DHCP address
conflict statistics, including the information in conflicted IP address, conflict
detection type, conflict time, etc.
If no optional parameter has been specified, the information displayed will depend
on the current view:
■ In Ethernet interface view, the information displayed is concerned with the
address pool of the current interface.
■ In any other views, the information displayed is concerned with all the address
pools.
Example
View the DHCP address conflict statistics.
<3Com> display dhcp server conflict
Address Discover Time
10.110.1.2 Jan 11 2003 11:57: 7 PM
Table 1 Description of the information displayed by executing display dhcp server conflict
View
Any view
Parameter
■ ip-address: A specified IP address.
■ pool-name: Name of a global address pool. All the global address pools will
apply if no address pool has been specified.
■ interface-name: Interface address pool. All the interface address pools will
apply if no interface has been specified.
■ all: All the IP addresses.
Description
Using the display dhcp server expired command, you can 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
View the expired leases in DHCP address pools.
<3Com> display dhcp server expired all
Global pool:
IP address Hardware address Lease expiration Type
Interface pool:
IP address Hardware address Lease expiration Type
Table 2 Description of the information displayed by executing display dhcp server expired
View
Any view
Parameter
None
Description
Using the display dhcp server free-ip command, you can view the ranges of
available addresses in DHCP address pools, i.e., information of the IP addresses
that have not been allocated yet.
422 CHAPTER 5: NETWORK PROTOCOL
Example
View the ranges of the available addresses in DHCP address pools.
<3Com> display dhcp server free-ip
IP Range from 1.0.0.0 to 2.2.2.1
IP Range from 2.2.2.3 to 2.255.255.255
IP Range from 4.0.0.0 to 4.255.255.255
IP Range from 5.5.5.0 to 5.5.5.0
IP Range from 5.5.5.2 to 5.5.5.255
View
Any view
Parameter
■ ip-address: Specifies an IP address. If no IP address has been specified,
information of all the bound addresses will be displayed.
■ pool-name: Specifies a global address pool. If no global address pool has been
specified, the bound addresses in all the global address pools will be displayed.
■ interface-name: Specifies an interface address pool. If no interface address pool
has been specified, the bound addresses in all the interface address pools will
be displayed.
Description
Using the display dhcp server ip-in-use command, you can view the address
binding information of DHCP clients, such as the information in hardware address,
IP address, and address lease expiration.
If no optional parameter has been specified, the information output by executing
the command will be:
■ In Ethernet interface view, the information in the address pool of the current
interface.
■ In any other views, the information in all the address pools.
For the related command, see reset dhcp server ip-in-use.
Example
View the DHCP address binding information.
<3Com> display dhcp server ip-in-use all
Global pool:
IP address Hardware address Lease expiration Type
2.2.2.2 44444-4444-4444 NOT Used Manual
Interface pool:
IP address Hardware address Lease expiration Type
5.5.5.1 0050-ba28-930a Jun 5 2003 10:56: 7 AM
Auto:COMMITED
DHCP Server Configuration Commands 423
Table 3 Description of the information output by executing display dhcp server ip-in-use
View
Any view
Parameter
None
Description
Using the display dhcp server statistics command, you can 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.
For the related command, see reset dhcp server statistics.
Example
View the statistic information on the DHCP server.
<3Com> display dhcp server statistics
Global Pool:
Pool Number: 5
Binding
Auto: 0
Manual: 1
Expire: 0
Interface Pool:
Pool Number: 1
Binding
Auto: 1
Manual: 0
Expire: 0
Boot Request: 6
Dhcp Discover: 1
Dhcp Request: 4
Dhcp Decline: 0
Dhcp Release: 1
Dhcp Inform: 0
Boot Reply: 4
Dhcp Offer: 1
Dhcp Ack: 3
Dhcp Nak: 0
424 CHAPTER 5: NETWORK PROTOCOL
Bad Messages: 0
Table 4 Description of the information output by executing display dhcp server statistics
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-name: Interface address pool. All the interface address pools will
apply if no interface has been specified.
■ all: All the DHCP address pools.
Description
Using the display dhcp server tree command, you can view the tree-structure
information of DHCP address pools, including the address pool at each node,
option, address lease period, and DNS server information.
If no optional parameter has been specified, the information output by executing
the command will be:
■ In Ethernet interface view, the information displayed is concerned with the
address pool of the current interface.
■ In any other views, the information in all the address pools.
Example
View the tree-structure information of DHCP address pools.
<3Com> display dhcp server tree all
Global pool:
Pool name: 5 network 10.10.1.0 255.255.255.0
Child node:6
Sibling node:7
option 1 ip-address 255.0.0.0
expired 1 0 0
option 58 hex 00 00 A8 C0
option 59 hex 00 00 00 3C
DHCP Server Configuration Commands 425
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 5 Description of the information output by executing display dhcp server tree
hardware-address
1111.2222.3333
ethernet
426 CHAPTER 5: NETWORK PROTOCOL
child node:6 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 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
expired The address lease period that is indicated by days, 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
nbns-list The NetBIOS server allocated to DHCP clients
netbios-type NetBIOS node type specified for DHCP clients
dns-list Syntax
dns-list ip-address [ ip-address ]
undo dns-list { ip-address | all }
View
DHCP address pool view
Parameter
ip-address: IP address of the DNS. You can configure up to eight IP addresses
separated by spaces in a command.
Description
Using the dns-list command, you can configure DNS server IP addresses in a global
DHCP address pool. Using the undo dns-list command, you can 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.
For the related commands, see dhcp server dns-list interface, dhcp server dns-list,
and dhcp server ip-pool.
Example
Specify 1.1.1.254 as a DNS server address for DHCP address pool 0.
[3Com] dhcp server ip-pool 0
[3Com-dhcp-0] dns-list 1.1.1.254
domain-name Syntax
domain-name domain-name
undo domain-name domain-name
View
DHCP address pool view
DHCP Server Configuration Commands 427
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
Using the domain-name command, you can configure the domain name that a
global address pool of the DHCP server allocates to clients. Using the undo
domain-name command, you can delete the configured domain name.
By default, no domain name has been allocated to DHCP clients and domain name
is null.
For the related commands, see dhcp server ip-pool, dhcp server domain-name
interface, and dhcp server domain-name.
Example
Set the domain name of DHCP address pool 0 to mydomain.com.cn.
[3Com] dhcp server ip-pool 0
[3Com-dhcp-0] domain-name mydomain.com.cn
expired Syntax
expired { day day [ hour hour [ minute minute ] ] | unlimited }
undo expired
View
DHCP address pool view
Parameter
■ day day: Number of days in the range of 0 to 365.
■ hour hour: Number of hours in the range of 0 to 23.
■ minute minute: Number of hours in the range of 0 to 59.
■ unlimited: The valid period is unlimited.
Description
Using the expired command, you can configure a valid period allowed for leasing
IP addresses in a global DHCP address pool. Using the undo expired command,
you can restore the default setting.
By default, the leasing valid period is one day.
For the related commands, see dhcp server ip-pool, dhcp server expired, and dhcp
server expired interface.
Example
Set the IP address lease period of global address pool 0 to three minutes, two
hours, and one day.
[3Com] dhcp server ip-pool 0
[3Com-dhcp-0] expired 1 2 3
428 CHAPTER 5: NETWORK PROTOCOL
gateway-list Syntax
gateway-list ip-address [ ip-address ]
undo gateway-list { ip-address | all }
View
DHCP address pool view
Parameter
■ ip-address: IP address of egress GW router. You can configure up to eight IP
addresses separated by spaces in a command.
■ all: IP addresses of all the egress GW routers.
Description
Using the gateway-list command, you can configure IP addresses of the egress GW
routers used by DHCP clients. Using the undo gateway-list command, you can
delete the configuration.
By default, no egress GW router is configured.
For the related commands, see dhcp server ip-pool and network.
Example
Associate the egress GW router at 10.110.1.99 with DHCP address pool 0.
[3Com] dhcp server ip-pool 0
[3Com-dhcp-0] gateway-list 10.110.1.99
nbns-list Syntax
nbns-list ip-address [ ip-address ]
undo nbns-list { ip-address | all }
View
DHCP address pool view
Parameter
■ ip-address: IP address of NetBIOS server. You can configure up to eight IP
addresses separated by spaces in a command.
■ all: All the NetBIOS server IP addresses.
Description
Using the nbns-list command, you can configure NetBIOS server addresses in a
global DHCP address pool for the clients. Using the undo nbns-list command, you
can 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.
For the related commands, see dhcp server ip-pool, dhcp server nbns-list, dhcp
server nbns-list interface, and netbios-type.
DHCP Server Configuration Commands 429
Example
In the DHCP address pool 0, allocate the NetBIOS server at 10.12.1.99 to the
clients.
[3Com] dhcp server ip-pool 0
[3Com-dhcp-0] nbns-list 10.12.1.99
netbios-type Syntax
netbios-type { b-node | h-node | m-node | p-node }
undo netbios-type
View
DHCP address pool view
Parameter
■ b-node: Broadcast mode, i.e., hostname-IP maps are obtained by means of
broadcast.
■ p-node: Peer-to-peer mode, i.e., maps are obtained by means of
communicating with the NetBIOS server.
■ m-node: Mixed (m) mode, i.e., the mode of type b nodes running
“peer-to-peer” communications mechanism.
■ h-node: Hybrid (h) mode, i.e., the mode of type p nodes possessing some of
the broadcast features.
Description
Using the netbios-type command, you can configure the NetBIOS node type of the
clients of a global DHCP address pool. Using the undo netbios-type command, you
can restore the default setting.
By default, clients adopt type h node (h-node).
For the related commands, see 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.
[3Com] dhcp server ip-pool 0
[3Com-dhcp-0] netbios-type b-node
network Syntax
network ip-address [ mask netmask ]
undo network
View
DHCP address pool view
Parameter
■ ip-address: The subnet address of an IP address pool used for dynamic
allocation.
430 CHAPTER 5: NETWORK PROTOCOL
■ mask netmask: Network mask of the IP address pool. Natural mask will be
adopted if the parameter is not specified.
Description
Using the network command, you can configure an IP address range used for
dynamic allocation. Using the undo network command, you can 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.
For the related commands, see dhcp server ip-pool and dhcp server forbidden-ip.
Example
Use 192.168.8.0/24 as the address space for DHCP address pool 0.
[3Com-dhcp-0] network 192.168.8.0 mask 255.255.255.0
option Syntax
option code { ascii ascii-string | hex hex-string | ip-address ip-address }
undo option code
View
DHCP address pool view
Parameter
■ code: Option value that needs to be assigned by the user.
■ 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
Using the option command, you can configure the self-defined options for a
DHCP global address pool. Using the undo option command, you can 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.
For the related commands, see dhcp server option (in interface view) and dhcp
server option interface (in system view).
Example
Define the hexadecimal strings of the option code 100 to 0x11 and 0x22.
[3Com-dhcp-0] option 100 hex 11 22
View
User view
Parameter
■ ip-address: A specified IP address.
■ all: All the address pools.
Description
Using the reset dhcp server conflict command, you can clear the statistics about
DHCP address collision.
In the case that no parameter has been specified when the command is
configured, the scope in which that the command takes effect will depend on the
view in which the command is executed.
■ If the command is executed in Ethernet interface view, it will take effect on the
address pool of the current interface.
■ If the command is executed in any other views, it will take effect on all the
address pools.
For the related command, see display dhcp server conflict.
Example
Clear all the address collision statistics.
<3Com> reset dhcp server conflict
View
User view
Parameter
■ ip-address: Binding information of a specified IP address.
■ pool-name: Specifies a global address pool. All the global address pools will
apply if no address pool has been specified.
■ interface-name: Specifies an interface address pool. If no interface has been
specified, all the interface address pools will apply.
■ all: All the address pools.
Description
Using the reset dhcp server ip-in-use command, you can clear the DHCP dynamic
address binding information.
In the case that no parameter has been specified when the command is
configured, the scope in which that the command takes effect will depend on the
view in which the command is executed.
■ If the command is executed in Ethernet interface view, it will take effect on the
address pool of the current interface.
432 CHAPTER 5: NETWORK PROTOCOL
■ If the command is executed in any other views, it will take effect on all the
address pools.
Example
Clear the binding information of the address 10.110.1.1.
<3Com> reset dhcp server ip-in-use ip 10.110.1.1
View
User view
Parameter
None
Description
Using the reset dhcp server statistics command, you can 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.
For the related command, see display dhcp server statistics.
Example
Clear statistic information of the DHCP server.
<3Com> reset dhcp server statistics
View
DHCP address pool view
Parameter
■ ip-address: IP address to be bound.
■ netmask: Mask of the IP address to be bound. If it is not specified, the natural
mask will be adopted.
Description
Using the static-bind ip-address command, you can bind an IP address statically.
Using the undo static-bind ip-address command, you can delete the statically
bound IP address.
By default, no IP address is bound statically.
DHCP Client Configuration Commands 433
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.
[3Com-dhcp-0] static-bind ip-address 10.1.1.1 mask 255.255.255.0
[3Com-dhcp-0] static-bind mac-address 0000-e03f-0305
View
DHCP address pool view
Parameter
mac-address: The host MAC address to be bound, which is in the format of
H-H-H.
Description
Using the static-bind mac-address command, you can bind a MAC address
statically. Using the undo static-bind mac-address command, you can delete the
statically bound MAC address.
By default, no MAC address is bound statically.
The commands static-bind mac-address and static-bind ip-address must be used in
pairs so that a MAC address and an IP address can be bound together.
For the related commands, see dhcp server ip-pool, and static-bind ip-address.
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.
[3Com-dhcp-0] static-bind ip-address 10.1.1.1 mask 255.255.255.0
[3Com-dhcp-0] static-bind mac-address 0000-e03f-0305
DHCP Client
Configuration
Commands
View
User view
434 CHAPTER 5: NETWORK PROTOCOL
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.
■ error: Unknown packet information or error information.
■ all: Enables debugging of the DHCP client in all the information (event, packet,
and error).
Description
Using the debugging dhcp client command, you can enable debugging on the
DHCP client. Using the undo debugging dhcp client command, you can disable
debugging on the DHCP client. By default, DHCP client debugging is disabled.
Example
Enable event debugging on the DHCP client.
<3Com>debugging dhcp client event
View
Any view
Parameter
verbose: Statistic details of the DHCP client.
Description
Using the display dhcp client command, you can 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
Display the statistic details of the DHCP client.
[3Com] display dhcp client verbose
DHCP client statistic infomation:
Ethernet0/0:
Current machine state: BOUND
Alloced IP: 169.254.0.2 255.255.0.0
Alloced lease: 86400 seconds, T1: 43200 seconds, T2: 75600 seconds
Lease from 2002.09.20 01:05:03 to 2002.09.21 01:05:03
Server IP: 169.254.0.1
Transaction ID = 0x3d8a7431
Default router: 2.2.2.2
DNS server: 1.1.1.1
Domain name: 3Com.com
Client ID: 3Com-00e0.fc0a.c3ef-Ethernet0/0
Next timeout will happen after 0 days 11 hours 56 minutes 1 seconds.
Ethernet2/0:
DHCP Client Configuration Commands 435
Item Description
Ethernet0/0 Interface where the client is allowed to 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
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
View
Interface view
Parameter
None
436 CHAPTER 5: NETWORK PROTOCOL
Description
Using the ip address dhcp-alloc command, you can allocate local IP addresses by
making use of DHCP. Using the undo ip address dhcp-alloc command, you can
disable the allocation of local IP addresses via DHCP negotiation. This command
must be configured and executed in Ethernet interface (including subinterface)
view.
By default, DHCP negotiation is not used for the allocation of local IP addresses.
Example
Adopt DHCP negotiation for the allocation of local IP addresses on Ethernet0/0/0.
[3Com-Ethernet0/0/0] ip address dhcp-alloc
DHCP Relay
Configuration
Commands
View
User view
Parameter
None
Description
Using the debugging dhcp relay command, you can enable debugging on the
DHCP-relay module. Using the undo debugging dhcp relay command, you can
disable DHCP-relay module debugging.
Example
Enable DHCP-relay module debugging.
<3Com>debugging dhcp relay
View
Interface view
System view
Parameter
■ client-ip: IP address of the DHCP client.
■ mac-address: MAC address of the DHCP client, which is in the format of
H-H-H.
DHCP Relay Configuration Commands 437
Description
Using the dhcp relay release command, you can send an IP address releasing
request to a DHCP server via the DHCP relay.
Given no IP address of DHCP server has been specified, release packets will 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 the
interface view.
Example
Send a release packet to the DHCP server at 10.110.91.174, requesting to release
the IP address 192.2.2.25, which was offered to the client whose MAC address is
0050-ba34-2000.
[3Com] dhcp relay release 192.2.2.25 0050-ba34-2000 10.110.91.174
View
Any view
Parameter
■ interface-name: Specifies an interface name, which is represented by interface
type plus interface number.
■ all: All the interfaces.
Description
Using the display dhcp relay address command, you can view the DHCP relay
address configuration of an interface.
For the related commands, see ip relay address and ip relay address interface.
Example
View the DHCP relay address configurations of all the interfaces.
<3Com> display dhcp relay address all
** Ethernet11/2/0 DHCP Relay Address **
Relay Address [0] : 3.3.3.3
View
Any view
Parameter
None
438 CHAPTER 5: NETWORK PROTOCOL
Description
Using the display dhcp relay statistics command, you can 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
View DHCP relay statistics.
<3Com> display dhcp relay statistics
Bad Packets recieved: 0
DHCP packets received from clients: 0
DHCP DISCOVER packets received: 0
DHCP REQUEST packets received: 0
DHCP INFORM packets received: 0
DHCP DECLINE packets received: 0
DHCP packets received from servers: 0
DHCP OFFER packets received: 0
DHCP ACK packets received: 0
DHCP NAK packets received: 0
DHCP packets sent to servers: 0
DHCP packets sent to clients: 0
Unicast packets sent to clients: 0
View
Interface view
Parameter
ip-address: IP relay address in dot-deliminated decimal format.
Description
Using the ip relay address command, you can specify the exact location of a DHCP
server by configuring an IP relay address for it. Using the undo ip relay address
command, you can delete one or all relay IP addresses used by an interface.
By default, no relay IP address has been configured.
Executing undo ip relay address without ip-address will delete all the relay IP
addresses configured on the current interface.
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
Add two relay IP addresses on Ethernet 0/0/0.
DHCP Relay Configuration Commands 439
View
System view
Parameter
None
Description
Using the ip relay address cycle command, you can adopt the polling approach to
relay packets, ensuring that different clients use different DHCP servers and the
same clients use the same DHCP server so long as it is possible. Using the undo ip
relay address cycle command, you can adopt the broadcast approach to relay
packets so as to broadcast client requests to all the DHCP servers.
By default, the broadcast approach is adopted.
Suppose that there are three clients, i.e., A, B, and C, and the DHCP server has
been configured with three relay addresses, i.e., S1, S2, and S3. If the polling
approach is adopted to relay packets, A, B, and C will respectively use the relay
addresses S1, S2, and S3. If A is shut down and restarted again, it will continue to
use S1. But if a client other than these three clients started, it will use S1. Thus, the
relay addresses will be used cyclically.
For the related command, see ip relay address.
Example
Adopt the polling approach to relay.
[3Com] ip relay address cycle
View
System view
Parameter
■ ip-address: IP address of the DHCP server.
■ ethernet-subinterface-range: Includes all the subinterfaces whose interface
number lies between two subinterface numbers (including these two
subinterfaces) by inserting the keyword “to” between these two interface
numbers.
440 CHAPTER 5: NETWORK PROTOCOL
■ all: In the undo form of the command, the first “all” refers to all the relay
addresses and the second all, the interfaces.
Description
Using the ip relay address interface command, you can configure a relay address
for the Ethernet interfaces in a specified range for the purpose of transparent
forwarding. Using the undo ip relay address interface command, you can delete
the configured relay address.
By default, no relay IP address has been configured on any Ethernet interface.
For the related command, see ip relay address.
Example
Add a relay IP address for the interfaces in the range of Ethernet2/0/0.1 to
Ethernet2/0/0.5.
[3Com] ip relay address 202.38.1.2 interface ethernet 2/0/0.1 to
ethernet 2/0/0.5
View
User view
Parameter
None
Description
Using the reset dhcp relay statistics command, you can clear the DHCP relay
statistics.
For the related command, see display dhcp relay statistics.
Example
Clear the DHCP relay statistics.
<3Com> reset dhcp relay statistics
IP Performance
Configuration
Commands
debugging ip Syntax
debugging ip { icmp | packet [ acl { acl-number1 | acl-number2 } ] }
undo debugging ip { icmp | packet }
View
User view
IP Performance Configuration Commands 441
Parameter
■ acl-number1: ACL based on the interface, in the range of 1000 to 1999.
■ acl-number2: ACL in the range of 1 to 199. The ACL in the range of 1 to 99 is
the basic ACL and that in the range of 100 to 199 is the advanced ACL.
Description
Using debugging ip icmp command, you can enable the ICMP debugging. Using
the undo debugging ip icmp command, you can disable the ICMP debugging.
The debugging ip packet command is used to enable the IP packet debugging.
The filtration to the debugging information can be accomplished by filtering the IP
packets via acl. Using the undo debugging ip packet command, you can disable
the IP packet debugging.
Example
Enable the IP debugging.
<3Com> debugging ip packet
*0.129680-IP-8-debug_case:
Delivering, interface = Serial0/0/0, version = 4, headlen = 20, tos =
6,pktlen = 70, pktid = 49, offset = 0, ttl = 1, protocol =
17,checksum = 50, s = 1.1.1.2, d = 224.0.0.2
prompt: IP packet is delivering up!
*0.129680-IP-8-debug_case:
Sending, interface = Serial0/0/0, version = 4, headlen = 20, tos =
6,pktlen = 70, pktid = 49, offset = 0, ttl = 1, protocol =
17,checksum = 55147, s = 1.1.1.2, d = 224.0.0.2
prompt: Sending the packet from local at Serial0/0/0
<3Com> debugging ip icmp
*0.157090-IP-8-debug_icmp:
ICMP Receive: echo(Type=8, Code=0), Src = 127.0.0.1, Dst = 1.1.1.2
*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
View
User view
Parameter
■ task_id: The ID of a task.
■ socket_id: The ID of a socket.
442 CHAPTER 5: NETWORK PROTOCOL
Description
Using the debugging tcp event command, you can enable TCP events debugging.
And using the undo debugging tcp event command, you can 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
Enable debugging of TCP events.
<3Com> debugging tcp event
*0.630270-SOCKET-8-TCP EVENT:
1043494683: task = Co0(2), socketid = 0,
TCPCB 0x02c6fd74 created
*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
<3Com> display debugging
TCP:
TCP event debugging is on for task any socket any
View
User view
Parameter
None
Description
Using the debugging tcp md5 command, you can enable the MD5 authentication
debugging of the TCP connection. Using the undo debugging tcp md5 command,
you can disable the MD5 authentication debugging of the TCP connection.
Example
Enable the MD5 authentication debugging of the TCP connection.
<3Com> debugging tcp md5
View
User view
Parameter
■ task_id: The ID of a task.
■ socket_id: The ID of a socket.
Description
Using the debugging tcp packet command, you can enable the debugging of TCP
connection. 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). Using the undo debugging tcp packet
command, you can disable the debugging of TCP connection.
Example
Enable the debugging of TCP connection.
<3Com> debugging tcp packet
<3Com> display debugging
*0.100070-SOCKET-8-TCP PACKET:
1043204051: Input: Co0(5) socketId = 2, state = SYN_SENT,
src = 127.0.0.1:1025, dst = 2.2.2.2:23,
seq = 11084380, ack = 0, optlen = 4, flag = SYN ,
window = 8192
1043204051: Output: Co0(5) SocketId = 2, State = SYN_SENT,
src = 127.0.0.1:1025, Dst = 2.2.2.2:23,
Seq = 11084380, Ack = 0, Datalen = 4, Flag = ACK PSH ,
Window = 8192
1043204051: Retrans: Co0(5) SocketId = 2, State = SYN_SENT,
Src = 127.0.0.1:1025, Dst = 2.2.2.2:23,
Seq = 11084380, Ack = 0, Optlen = 4, Flag = SYN ,
Window = 8192
444 CHAPTER 5: NETWORK PROTOCOL
Syntax
View
User view
Parameter
■ task_id: The ID of a task.
■ socket_id: The ID of a socket.
Description
Using the debugging udp packet command, you can enable the debugging of
UDP connection. 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). Using the undo debugging udp
packet command, you can disable the debugging of UDP connection.
Example
Enable the debugging of UDP connection.
<3Com> debugging udp packet
<3Com> display debugging
*0.377770-SOCKET-8-UDP:
1043494431: Output: task = ROUT(6), socketid = 3,
src = 1.1.1.1:520, dst = 255.255.255.255:520, datalen = 24,
View
Any view
Parameter
None
Description
Using the display fib command, you can 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:
■ Destination address/mask length
■ Next hop
■ 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).
■ Time stamp
IP Performance Configuration Commands 445
■ Outbound interface
Example
Display the summary of the forwarding information base.
<3Com> display fib
Destination/MaskNexthopFlagTimeStampIInterface
80.10.0.2/3280.10.0.2GHUt[0]Serial2/0/0
80.10.255.255/32127.0.0.1HUt[0]InLoopBack0
80.10.0.0/1680.10.0.1Ut[0]Serial2/0/0
80.50.0.2/3280.50.0.2GHUt[0]Serial2/0/0
80.50.255.255/32127.0.0.1HUt[0]InLoopBack0
Syntax
View
Any view
Parameter
■ listnumber: The ACL rules expressed in number, ranging from 1 to 99.
■ listname: The ACL rules expressed in name.
Description
Using the display fib acl command, you can filter and display FIB information.
According to ACL number or name entered, you can display the FIB table entries
matching the filtering rules in a format.
A standard ACL name must be input if the ACL is expressed in name; otherwise,
the system will prompt an abnormal entering. When the ACL name or number
ranging from 1 to 99 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 2:
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:
Example
Display the FIB table entries matched by the ACL.
<3Com> display fib acl 10
Route entry matched by access-list 10:
446 CHAPTER 5: NETWORK PROTOCOL
Summary counts: 1
Destination/MaskNexthopFlagTimeStampInterface
127.0.0.0/8127.0.0.1Ut[0]InLoopBack0
View
Any view
Parameter
■ text: Character.
Description
■ Using the display fib command, you can output the lines related to the line
containing the character string text in the buffer according to the regular
expression.
■ Using the display fib | begin text command, you can view the lines beginning
from the line containing the character string text to the end line of the buffer.
■ Using the display fib | include text command, you can just view the lines
containing the character string text.
■ Using the display fib | exclude text command, you can 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:
<3Com> display fib | begin 169.254.0.0
Destination/MaskNexthopFlagTimeStampInterface
169.254.0.0/162.1.1.1Ut[0]Ethernet0/0/0
2.0.0.0/162.1.1.1Ut[0]Ethernet0/0/0
127.0.0.0/8127.0.0.1Ut[0]InLoopBack0
Display all the lines not containing the character string ”169.254.0.0”:
View
Any view
Parameter
■ listname: The name of the prefix list.
Description
Using the display fib ip-prefix command, you can filter and display FIB information.
According to the name of prefix-list entered, you can display the FIB entries
matching the filtering rules in the prefix list in a format.
If no FIB table entry matching the prefix list, the prompt information will be
displayed that the number of FIB entry matched by the prefix list is 0; if the name
of ip-prefix cannot be found, all FIB table entries will be displayed; if the FIB table
entries after filtering is not 0, they will be output in a 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:
Example
Display the FIB table entries matched by the prefix list abc0.
<3Com> display fib ip-prefix abc0
Route Entry matched by prefix-list abc0:
Summary count: 4
Destination/MaskNexthopFlagTimeStampInterface
127.0.0.0/8127.0.0.1Ut[0]InLoopBack0
127.0.0.1/32127.0.0.1Ut[0]InLoopBack0
169.0.0.0/82.1.1.1SUt[0]Ethernet 0/0/0
169.0.0.0/152.1.1.1SUt[0]Ethernet 0/0/0
View
Any view
Parameter
■ dest-addr1: The destination IP address 1, which is expressed in dot-deliminated
decimal format.
■ dest-mask1: The subnet mask 1 corresponding to the destination IP address 1,
which is the mask in dot-deliminated decimal format or the mask length in
integer format.
■ dest-addr2: The destination IP address 2, which is expressed in dot-deliminated
decimal format.
■ dest-mask2: The subnet mask 2 corresponding to the destination IP address 2,
which is the mask in dot-deliminated decimal format or the mask length in
integer format.
Description
Different parameters selected leads to different matching methods.
■ display fib dest-addr: According to the destination address, if FIB table entries
can be found within the range of natural mask, all the subnets will be
displayed. Otherwise, only the FIB table entries found by operating the longest
match will be displayed.
■ display fib dest-addr dest-mask: The FIB table entries exactly matching the
destination address and mask are displayed.
■ display fib dest-addr longer: The FIB table entries matching the destination
addresses within the range of natural mask.
■ display fib dest-addr dest-mask longer: The FIB table entries matching the
destination IP addresses within the entered mask range.
■ The display fib dest-addr1 dest-mask1 dest-addr2 dest-mask2 command is
used to display FIB table entries whose destination address is within the range
from dest-addr1 dest-mask1 to dest-addr2 dest-mask2.
Example
Display the FIB table entries whose destination address matches169.253.0.0
longest with the natural mask range.
<3Com> display fib 169.253.0.0
Destination/MaskNexthopFlagTimeStampInterface
169.0.0.0/162.1.1.1 Ut[0]Ethernet0/0/0
Display the FIB entries whose destination address is within the range from
69.254.0.0/16 to 169.254.0.6/16.
View
Any view
Parameter
None
Description
Using the display fib statistics command, you can display the total numbers of FIB
table entries.
Example
Display the total numbers of FIB table entries.
<3Com> display fib statistics
Route Entry Count : 30
display ip Syntax
fast-forwarding cache display ip fast-forwarding cache
View
Any view
Parameter
None
Description
Using the display ip fast-forwarding cache command, you can view the
information on the fast-forwarding table.
Example
Display the information of the fast-forwarding table.
[Router] display ip fast-forwarding cache
Fast-Forwarding cache:
Index SrIP SrPort DsIP DsPort Pro Input_If Output_If
FLAG
600:0 1.1.3.149 1463 10.10.26.30 23 6 Ethernet0/0/0
Ethernet1/0/0 81
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, i.e.
the TCP data, ingress is Ethernet0/0/0 and the egress is Ethernet1/0/0.
View
Any view
Parameter
■ interface-type: Interface type.
450 CHAPTER 5: NETWORK PROTOCOL
Description
Using the display ip interface command, you can view the information of IP
interfaces.
By default, if no interface is specified, the information about all IP interfaces will
be displayed.
This command is used to display all the information related to IP on the interface.
The information is helpful for fault diagnosis. For the related command, see
display interface.
Example
Display IP-related information at the interface Serial 0/0/0.
<3Com> display ip interface Serial 0/0/0
Serial 0/0/0 current state : UP
Line protocol current state : UP
Internet Address : 10.10.10.10/16
Broadcast address : 10.10.255.255
The Maximum Transmit Unit : 1500 bytes
input packets : 1231, bytes : 57557, multicasts : 1177
output packets : 0, bytes : 0, multicasts : 0
The above information shows that the physical link state of the interface serial
0/0/0 is UP, link-layer protocol state is UP, the maximum transmit unit is 1500
bytes, the IP address is 10.10.10.10, the broadcast subnet is 10.10.255.255 and
the packet receiving/sending conditions at this interface.
View
Any view
Parameter
■ sock_type: The type of a socket: (tcp:1, udp 2, raw ip 3)
■ task_id: The ID of a task.
■ socket_id: The ID of a socket.
Description
Using the display ip socket command, you can display the information about all
sockets in the current system.
Example
Display the information about the socket of TCP type.
<3Com> display ip socket socktype 1
SOCK_STREAM:
Task = VTYD(9), socketid = 1, Proto = 6,
LA = 0.0.0.0:23, FA = 0.0.0.0:0,
IP Performance Configuration Commands 451
Display the information about the socket with socket ID as 4 and task ID as 8.
View
Any view
Parameter
None
Description
Using the display ip statistics command, you can 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.
452 CHAPTER 5: NETWORK PROTOCOL
For the related commands, see display interface, display ip interface, and reset ip
statistics.
Example
Display the IP traffic statistic information.
<3Com> display ip statistics
IP Protocol:
Sent packets:
sent out: 67, forwarded: 0, raw packets: 0
discarded: 0, routing failed: 98
Received packets:
total:782477, local host: 6500, format error: 0
checksum error: 0, option error: 0, protocol error: 18
Fragmented packets:total: 0, fragmented: 0, reassembled: 0
timeout: 0, error: 0, failed: 0 sent: 0
ICMP protocol:
Sent packets:
redirected: 0, unreached: 67, echoed: 0 echo replied: 0, mask
requested: 0, mask replied: 0 src quenched: 0, parameter req: 0,
timestamp req: 0
Received packets:
format error: 0, checksum error: 0, redirected: 0 unreached: 0,
echoed: 0, echo replied: 0 mask req: 0, mask replied: 0, src
quenched: 0 parameter req: 0, timestamp req: 0
View
Any view
Parameter
None
Description
Using the display tcp statistics command, you can 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.
For the related command, see display tcp status.
Example
Display the TCP traffic statistic information.
<3Com> display tcp statistics
Received packets:
IP Performance Configuration Commands 453
Total: 0
packets in sequence: 0 (0 bytes)
window probe packets: 0, window update packets: 0
checksum error: 0, bad offset : 0, too short : 0
duplicate packets : 0 (0 bytes), partially duplicate packets : 0(0
bytes)
out-of-order packets : 0 (0 bytes)
packets with data after window : 0 (0 bytes)
packets after close : 0
ack packets:0 (0 bytes), duplicate ack packets:0, ack packets with
unsend data:0
Sent packets:
Total: 0
urgent packets: 0
control packets: 0 ( 0 RST)
window probe packets: 0, window update packets: 0
data packets : 0 (0 bytes), data packets retransmitted: 0 (0 bytes)
ack only packets : 0(0 delayed)
Total retransmit timeout: 0, connections dropped in retransmit
timeout: 0
Keepalive timeout: 0, keepalive probe: 0, dropped connections in
keepalive: 0
Initiated connections: 0, accepted connections: 0,established
connections: 0
Closed connections: 0,( dropped: 0, embryonic dropped: 0)
Dropped packets with MD5 authentication : 0
Permitted packets with MD5 authentication : 0
■ Receiving statistics:
■ Total number of packets received: 0
■ The number of packets reaching as the order (total bytes: 0): 0
■ Window detection packets number: 0, window upgrading packets number: 0.
■ The number of packet verification errors: 0, the number of packet length
errors: 0.
■ The number of totally repeated packets: 0 (the total bytes: 0), the number of
partial repeated packets: 0 (the total bytes: 0).
■ The number of packets with confusing order: 0 (the total bytes: 0).
■ The number of packets reaching outside of the receiving window: 0 (the total
bytes: 0).
■ The number of packets reaching after connection being closed: 0.
■ The confirmed packets number: 0 (the bytes of the confirmed data: 0), the
repeated confirmed packets number: 0, ACK packets number already being
confirmed but not being sent yet: 0.
■ Sending statistics:
■ Total number of packets sent: 0.
■ The urgent packets number: 0.
■ The control packets number: 0. (RST packets number: 0).
454 CHAPTER 5: NETWORK PROTOCOL
View
Any view
Parameter
None
Description
Using the display tcp status command, you can monitor TCP connection any time.
For the related command, see display local-user.
Example
Display the TCP connection status.
<3Com> display tcp status
TCPCB Local AddressForeign AddressState
0442c394 10.110.93.146.2310.110.93.175.1538ESTAB
045d8074 0.0.0.0.210.0.0.0.0 LISTEN
View
Any view
Parameter
None
IP Performance Configuration Commands 455
Description
Using the display udp statistics command, you can 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 related to connection, such as the number of broadcast packets.
The statistics information is organized in terms of packet.
For relate configuration, please refer to the reset udp statistics command.
Example
Display the UDP traffic statistic information.
<3Com> display udp statistics
Received packet:
Total:0
checksum error:0
shorter than header:0, data length larger than packet:0
no socket on port:0
broadcast:0
not delivered, input socket full:0
input packets missing pcb cache:0
Sent packet:
Total:0
UDP packet is received, 0 packet has checksum error. And there is 0 packet whose
packet length is shorter than the packet header, 0 packet whose data length is
bigger than the packet length, 0 packet whose socket uses this port No. 0 packet
being broadcast packet, 0 packet not being delivered due to full socket buffer, 0
packet not finding pcb and 0 UDP packet being sent.
ip fast-forwarding Syntax
ip fast-forwarding [ inbound | outbound ]
undo ip fast-forwarding
View
Interface view
Parameter
■ inbound: Allows fast-forwarding only on the inbound interface.
■ outbound: Allows fast-forwarding only on the outbound interface.
Description
Using the ip fast-forwarding command, you can enable fast packet forwarding on
the outbound interface. Using the undo ip fast-forwarding command, you can
disable fast-forwarding on the outbound interface.
By default, fast-forwarding is allowed on both inbound and outbound interfaces.
456 CHAPTER 5: NETWORK PROTOCOL
Example
Disable the interface to fast forward packets.
[3Com-Ethernet/0/0] undo ip fast-forwarding
View
User view
Parameter
None
Description
Using the reset ip fast-forwarding cache command, you can reset the
fast-forwarding cache.
This command is used to clear the fast-forwarding cache. The fast-forwarding
table will not contain any fast-forwarding entry after having been cleared.
Example
Clear the fast-forwarding cache.
<3Com> reset ip fast-forwarding cache
View
User view
Parameter
None
Description
Using the reset ip statistics command, you can clear the IP statistics information. In
some special cases, it is necessary to clear the IP statistics information and perform
new statistics.
IP Performance Configuration Commands 457
For the related commands, see display ip interface and display ip statistics.
Example
Clear IP statistics information.
<3Com> reset ip statistics
View
User view
Parameter
None
Description
Using the reset tcp statistics command, you can clear TCP traffic statistic
information. After the execution of this command, there’s no prompt information
on the screen, and the existing statistics are cleared.
For the related command, see display tcp statistics.
Example
Display the TCP traffic statistic information.
<3Com> reset tcp statistics
View
User view
Parameter
None
Description
Using the reset udp statistics command, you can clear the UDP statistics
information. After the execution of this command, there’s no prompt information
on the screen, and the existing statistics are cleared.
Example
Clear UDP traffic statistics information.
<3Com> reset udp statistics
View
Interface view
Parameter
■ Value: The threshold for the TCP packet to be fragmented, with the value
ranging from 128 to 2048.
Description
Using the tcp mss command, you can 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 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
Configure the threshold of TCP packet fragmentation to be 300.
3Com-Ethernet0/0/0] tcp mss 300
View
System view
Parameter
■ time-value: TCP finwait timer value, in second, with the value range of 76 to
3600.
Description
Using the tcp timer fin-timeout command, you can configure the TCP finwait
timer. Using the undo tcp timer fin-timeout command, you can 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.
For the related commands, see tcp timer syn-timeout and tcp window.
Example
Configure the TCP finwait timer value as 675 seconds.
[3Com] tcp timer fin-timeout 675
IP Performance Configuration Commands 459
View
System view
Parameter
■ time-value: TCP synwait timer value in second, with the value range of 2 to
600.
Description
Using the tcp timer syn-timeout command, you can configure the TCP synwait
timer. Using the undo tcp timer syn-timeout command, you can restore the default
value of the timer.
By default, TCP synwai 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.
For the related commands, see tcp timer fin-timeout and tcp window.
Example
Configure the TCP synwait timer value as 75 seconds.
[3Com] tcp timer syn-timeout 75
View
System view
Parameter
■ window-size: The size of the transceiving buffer of the connection-oriented
Socket in kilobytes (KB), with the value ranging 1 to 32.
Description
Using the tcp window command, you can configure the size of the transceiving
buffer of the connection-oriented Socket. Using the undo tcp window command,
you can restore the default size of the buffer.
By default, the size of the connection-oriented transceiving buffer is 4K bytes.
The configuration of this parameter needs to be implemented under the guidance
of the technical support engineers.
For the related commands, see tcp timer fin-timeout and tcp timer syn-timeout.
460 CHAPTER 5: NETWORK PROTOCOL
Example
Configure the size of the transceiving buffer of the connection-oriented Socket as
4 KB.
[3Com] tcp window 4
NAT Configuration
Commands
View
User view
Parameter
■ alg: Enables the application level gateway NAT debugging information.
■ event: Enables NAT event debugging information.
■ packet: Enables NAT data packet debugging information.
■ Interface: Enables NAT packet debugging for a special interface.
Description
Using the debugging nat command, you can enable the NAT debugging function.
Using the undo debugging nat command, you can disable the NAT debugging
function.
View
Any view
Parameter
■ address-group: Displays the information of the address pool.
■ aging-time: Displays the effective time for NAT connection.
■ all: Displays all the information about NAT.
■ outbound: Displays the information of the outbound NAT.
■ server: Displays the information of the internal server.
■ statistics: Displays the statistics of current NAT records.
■ session: Displays the information of the currently activated connection.
NAT Configuration Commands 461
Description
Using the display nat command, you can 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
Display all the information about address translation.
<3Com> display nat all
NAT address-group Information:
1: from 11.1.1.1to11.1.1.20
2: from 22.1.1.1to22.1.1.20
NAT outbound information:
Serial0/0/0: acl(11)-NAT address-group(1) [no-pat]
Serial0/0/0: acl(22)-NAT address-group(2) [no-pat]
Server in private network information:
InterfaceGlobalAddrGlobalPort InsideAddr InsidePort Pro
Serial0/0/0201.119.11.380805.5.5.580(www)6(tcp)
Serial0/0/0201.119.11.32121 5.5.5.521(ftp)6(tcp)
NAT aging-time value information:
tcp------aging-time value is 240(seconds)
udp------aging-time value is 40(seconds)
icmp-----aging-time value is 20(seconds)
Two address pools are configured: Address pool 1 ranges from 11.1.1.1 to
11.1.1.20, and address tool 2 ranges from 22.1.1.1 to 22.1.1.20.
View
System view
Parameter
■ group-number: defined Address pool ID, it is an integer ranging from 0 to 31.
■ start-addr: Starting IP address in the address pool.
■ end-addr: Ending IP address in the address pool.
Description
Using the nat address-group command, you can configure an address pool. Using
the undo nat address-group command, you can delete an IP address pool.
Address pool indicates the cluster of some outside IP addresses. If start-addr and
end-addr are the same, it means that there is only one address.
CAUTION: The length of an address pool (numbers of all addresses contained in an address
pool) cannot exceed 256.
The address pool cannot be deleted, if it has been correlated to some certain access control list
to perform the address translation.
Example
Configure an address pool from 202.110.10.10 to 202.110.10.15, with its NAT
pool ID being 1.
[3Com] nat address-group 1 202.110.10.10 202.110.10.15
View
System view
Parameter
■ time-value: A time value, expressed in second and ranging from 10 to 600..
■ tcp: The timeout of TCP connection.
■ udp: The timeout of UDP connection.
■ icmp: The time-out time of the protocol ICMP.
■ default: Sets to the default value.
Description
Using the nat aging-time command, you can set the valid time of nat connection.
By default, the valid time for tcp address translation is 240 seconds, for udp it is 40
seconds, and for icmp it is 20 seconds.
NAT Configuration Commands 463
This command is used to set the valid time of address translation connection, and
different time values are set for different types of protocols. The time value is in
second.
Example
Set the valid connection time of TCP to 240 seconds.
[3Com] nat aging-time tcp 240
View
Interface view
Parameter
■ address-group: Configures address translation by means of address pool. If the
address pool is not specified, use the IP address of the interface as the
translated address, i.e., the "easy ip" feature.
■ no-pat: Uses simple address translation, which means only to translate the
address of the packet but not use port information.
■ acl-number: ACL index in the range of 1 to 199 (the advanced ACL can be
used).
■ group-number: The number of a defined address pool.
Description
Using the nat outbound command, you can 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. Using the undo nat outbound command, you
can 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 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
Enable the hosts of the 10.110.10.0/24 network segment to perform address
translation by selecting the addresses from 202.110.10.10 to 202.110.10.12 as
the translated address. Suppose that the interface Serial0/0/0 connects to ISP.
[3Com] acl number 1
464 CHAPTER 5: NETWORK PROTOCOL
Allow address translation and use the addresses of address pool 1 for address
translation. During translation, the information of TCP/UDP port is used.
The configuration that can be used when performing address translation by using
the IP address of interface Serial0/0/0 directly.
View
Interface view
Parameter
■ 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.
NAT Configuration Commands 465
Description
Using the nat server command, you can define the mapping table of an internal
server. 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. Using the undo nat server command, you can 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.
Up to 256 internal server conversion commands can be configured on one
interface and at most 4096 internal servers can be configured on one interface.
Up to 1024 internal server conversion commands can be configured in one
system. If the nat servers are configured in the form of port range (i.e., specify a
port range through configuring global-port1 and global-port2, forming a
corresponding relation with the address range of the internal hosts), then the
number of internal servers will be the same as that of the ports configured, and
the max number of them are also 4096.
The interface on which this command is configured is interconnected with ISP and
serves as the gateway of the internal network.
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
466 CHAPTER 5: NETWORK PROTOCOL
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.
[3Com-Serial0/0/0] nat server protocol tcp global 202.110.10.10 8080
inside 10.110.10.10 www
[3Com] ip vpn-instance vrf10
[3Com-vpn-instance] route-distinguisher 100:001
[3Com-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.
By the command below, the internal ftp server of VPN vrf10 can be removed.
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.
View
User view
Parameter
■ log-entry: Clears NAT log buffer.
■ 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
This command is used 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
In the central environment, clear NAT log buffer.
IP Unicast Policy Routing Configuration Commands 467
IP Unicast Policy
Routing Configuration
Commands
View
Route-policy view
Parameter
■ interface-type: Interface type.
■ interface-number: Interface number.
Description
Using the apply default output-interface command, you can set default
forwarding interface for packets. Using the undo apply default output-interface
command, you can cancel the configuration of the default forwarding interface of
packets.
This command is used to set forwarding interface for the matched IP packet, and
the clause is valid for the packet whose route has not been found.
For the related commands, see apply ip-precedence, apply ip-address next-hop,
apply output-interface, and apply ip-address default next-hop.
Example
Set the default forwarding interface of packets as serial 0/0/0.
[3Com-route-policy] apply default output-interface serial 0/0/0
View
Route-policy view
Parameter
■ ip-address: IP address of default next hop.
Description
Using the apply ip-address default next-hop command, you can set the default
next hop of a packet. Using the undo apply ip-address default next-hop
command, you can cancel the configured default packet next hop.
This command is only valid for the packet whose route has not been found.
For the related commands, see apply ip-precedence, apply output-interface, apply
default output-interface, and apply ip-address next-hop.
Example
Set the default next hop of a packet to 1.1.1.1.
[3Com-route-policy] apply ip-address default next-hop 1.1.1.1
View
Route-policy view
Parameter
■ ip-address: IP address of next hop.
Description
Using the apply ip-address next-hop command, you can set the packet next hop.
Using the undo apply ip-address next-hop command, you can 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.
For the related commands, see apply ip-precedence, apply output-interface, apply
default output-interface, and apply ip-address default next-hop.
Example
Set the packet next hop to 1.1.1.1.
[3Com-route-policy] apply ip-address next-hop 1.1.1.1
View
Route-policy view
IP Unicast Policy Routing Configuration Commands 469
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
Using the apply ip-precedence command, you can set precedence of IP packets.
Using the undo apply ip-precedence command, you can remove the precedence of
IP packets. This command is used to configure the set clause of route-policy and
the preference for the matched IP packets.
For the related commands, see apply output-interface, apply ip-address next-hop,
apply default output-interface, and apply ip-address default next-hop.
Example
Set the preference of IP packet to 5 (critical).
[3Com-route-policy] apply ip-precedence critical
View
Route-policy view
Parameter
■ interface-type: Interface type.
■ interface-number: Interface number.
Description
Using the apply output-interface command, you can set a packet forwarding
interface. Using the undo apply output-interface command, you can cancel the
configuration on a forwarding interface.
This command is used to set the packet forwarding interface for the matched IP
packet. At most two forwarding interfaces can be specified.
For the related commands, see apply ip-precedence, apply ip-address next-hop,
apply default output-interface, and apply ip-address default next-hop.
470 CHAPTER 5: NETWORK PROTOCOL
Example
Specify forwarding interface as serial0/0/0 for the matched IP packet.
[3Com-route-policy] apply output-interface Serial 0/0/0
View
Any view
Parameter
None
Description
Using the display ip policy command, you can 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.
Example
Display the routing policies of the local and configured interface policy routings.
<3Com> display ip policy
Route-policyInterface
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, i.e., 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.
View
Any view
Parameter
■ policy-tag: Displays the setting information of policy routings identified by
map-tag.
■ local: Displays the setting information of local policy routings.
■ interface: Displays the setting information of interface policy routings.
■ interface-type: Interface type.
■ interface-number: Interface number.
IP Unicast Policy Routing Configuration Commands 471
Description
Using the display ip policy setup command, you can view the setting information
of policy routings.
The display output of the display ip policy setup local command is the same as that
with policy-tag which will be shown soon, except that it displays the policy routing
enabled on the local router but not the configuration of a certain specified
route-policy.
The display ip policy setup interface command displays the configuration of the
policy routing enabled on the interface.
Example
Display the specific configurations of the specified policy routing, enabled or
disabled.
<3Com> display ip policy setup pr01
route-policy pr01 permit node 0
if-match acl 11
apply ip-address next-hop 3.3.3.3
This command displays the specific configuration of the policy routing named
pr01. 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, you can refer to the configuration guide of the command. The
example shows how the option map-tag is used.
View
Any view
Parameter
■ policy-tag: Displays the statistics of the policy identified by policy-tag
performing policy routing process on packets.
■ local: Displays the statistics of local policy routing packets.
■ interface: Displays the statistics of interface policy routings.
■ interface-type: Interface type.
■ interface-number: Interface number.
■ verbose: Displays the detailed information.
Description
Using the display ip policy statistic command, you can view the statistics of policy
routings.
Example
Display the matching statistics of the specified policy routing.
<3Com> display ip policy statistic local
local policy pr02 summary information:
472 CHAPTER 5: NETWORK PROTOCOL
Main board
Total success packet number: 0
Total failure packet number: 0
The above information shows the forwarding success and failure times for all the
forwarding policy (i.e., the apply clause) of the local router policy routing.
To display the more detail statistics classified according to each apply clause, the
option verbose should be added.
If the optional field verbose is added, the more detail statistics of each apply clause
in the policy routing will be displayed separately and the statistics of the
forwarding errors has been classified.
View
Route-policy view
Parameter
■ acl-number: Address access control list number.
Description
Using the if-match acl command, you can set the match condition for IP address.
Using the undo if-match acl command, you can delete the IP address match
condition.
An acl-number can be basic standard access-list or advanced access-list.
For the related command, see if-match packet-length.
Example
Set packets that accord with the access list 10 to be matched.
[3Com] route-policy map1 permit node 10
[3Com-route-policy] if-match acl 10
View
Route-policy view
Parameter
■ min-len: Minimum packet length of network layer.
■ max-len: Maximum packet length of network layer.
Description
Using the if-match packet-length command, you can set length match conditions
of IP packets. Using the undo if-match packet-length command, you can delete
the configuration about IP packet length match conditions.
For the related command, see if-match acl.
Example
Set the packet in the range 100 to 200 to be matched.
[3Com] route-policy map1 permit node 10
[3Com-route-policy] if-match packet-length 100 200
View
System view
Parameter
policy-tag: Policy name.
Description
Using the ip local policy route-policy command, you can enable local policy
routing. Using the undo ip local policy route-policy command, you can 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.
For the related command, see ip policy route-policy.
Example
Enable a local policy routing at system view. The policy routing is specified by
route-policy AAA.
[3Com] ip local policy route-policy AAA
View
Interface view
Parameter
policy-name: Policy name.
Description
Using the ip policy route-policy command, you can enable policy routing at an
interface. Using the undo ip policy route-policy command, you can delete the
existing policy routing at an interface.
By default, interface policy routing is disabled.
For the related command, see ip local policy route-policy.
Example
Enable the policy routing specified by route-policy AAA at the interface Ethernet
0/0/0.
[3Com-ethernet0/0/0] ip policy route-policy AAA
IP Multicast Policy
Routing Configuration
Commands
View
Route-policy view
Parameter
■ acl-number: Standard ACL number ranging from 1 to 99.
■ ip-address: Specifies the next hop address. Multiple next hop addresses can be
specified.
Description
Using the apply ip-address command, you can configure the next hop IP address
list in a route-node. Using the undo apply ip-address command, you can 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
IP Multicast Policy Routing Configuration Commands 475
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.
For the related commands, see if-match acl, apply output-interface, and display ip
multicast-policy.
View
Route-policy view
Parameter
acl-number: ID of interface-based ACL, ranging from 1000 to 1999.
Description
Using the apply output-interface command, you can configure an outgoing
interface list in a route-node. Using the undo apply output-interface command,
you can remove the configuration.
By default, no apply clause is defined.
This command specifies outgoing interfaces for packets that match the if-match
command. It specifies outgoing interfaces for multicast policy routing through the
ACL. The action executed to packets that meet the if-match conditions defined by
the match clause is as follows: If outgoing forwarding interfaces are set in the
route-node through the ACL, the packets will be replicated and forwarded to all
interfaces specified by the ACL.
For an outgoing interface, the specified ACL is the one based on interface.
This command is in juxtaposition relation with the apply ip-address next-hop
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 related commands, see apply ip-address next-hop, if-match acl, and display
ip multicast-policy.
debugging ip Syntax
multicast-policy debugging ip multicast-policy [ acl-number ]
undo debugging ip multicast-policy
View
User view
Parameter
■ acl-number: ID of interface-based ACL ranging 1000 to 1999.
476 CHAPTER 5: NETWORK PROTOCOL
Description
Using the debugging ip multicast-policy command, you can enable the debugging
of IP multicast policy routing. Using the undo debugging ip multicast-policy
command, you can disable the debugging of multicast policy routing.
The contents of the debugging information contain the route-node that the
packets match and the next hop/outgoing interface to which the packets are
forwarded. The debugging information output can be filtered with the
interface-based ACL.
It should be noted that enabling the debugging would affect the performance of
the system. You should disable the debugging when the system is running
normally.
For the related command, see route-policy.
display ip Syntax
multicast-policy display ip multicast-policy [ setup interface interface-name | statistic interface
interface-name ]
View
Any view
Parameter
■ interface-name: Interface name.
Description
Using the display ip multicast-policy command, you can view the multicast policy
routing information.
Example
Display the information about the multicast policy routing configured on interface
Ethernet2/0/0.
[3Com] display ip multicast-policy setup interface ethernet2/0/0
route-policy cc permit node 10
if-match acl 110
apply ip-address next-hop acl 50
route-policy cc permit node 20
if-match acl 120
apply output-interface acl 1005
Display the statistic information about the multicast policy routing configured on
interface Ethernet2/0/0.
View
Route-policy view
Parameter
■ acl-number: Standard or extended ACL number ranging from 1 to 199.
■ ip-prefix-name: Specifies the name of an address prefix list used for filtering.
Description
Using the if-match acl command, you can set conditions that multicast packets
should meet in each policy node. Using the undo if-match acl command, you can
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.
ip multicast-policy Syntax
route-policy ip multicast-policy route-policy policy-name
undo ip multicast-policy route-policy policy-name
View
Interface view
Parameter
policy-name: Specifies the name of a route-policy, which uniquely identifies one
route-policy.
Description
Using the ip multicast-policy route-policy command, you can enable a multicast
policy routing on an interface. Using the undo ip multicast-policy route-policy
command, you can remove a multicast policy route applied on the interface.
By default, no multicast route policy is enabled.
Using this command can enable multicast policy routing defined by the
route-policy named policy-name on an interface.
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 specified by the policy
routing are tried in the order of the ascending sequence of the numbers. 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 any policy nodes, the packet will return to the normal
forwarding flow.
For the related command, see route-policy.
478 CHAPTER 5: NETWORK PROTOCOL
Example
Enable multicast policy routing named map1 on interface Ethernet 2/0/0.
[3Com-Ethernet2/0/0] ip multicast-policy route-policy map1
route-policy Syntax
route-policy policy-name { permit | deny } node sequence-number
undo route-policy policy-name [ permit | deny ] [ node sequence-number ]
View
System view
Parameter
■ policy-name: Specifies the name of a route-policy, which uniquely identifies
one route-policy.
■ permit: Specifies the match mode of the route-policy node defined as permit.
When a route entry meets the if-match clause of the node, the entry is
permitted to pass the filter of the node and the apply clause of the node will be
performed. If a route entry does not meet the if-match clause of the node, the
next node of the route-policy will be tested. For multicast policy routing
configuration, all the if-match clauses except the if-match acl clause are invalid.
■ deny: Specifies the match mode of the route-policy node defined as deny.
When a route entry meets the if-match clause of the node, the entry is denied
to pass the filter of the node and the next node will not be tested. For multicast
policy routing configuration, all the if-match clauses except the if-match acl
clause are invalid.
■ sequence-number: Identifies a node in the route-policy. When the route-policy
is used for routing information filtering, the node with a smaller
sequence-number is tested first. This parameter ranges from 0 to 65535.
Description
Using the route-policy command, you can configure a route-policy node and enter
the route-policy view. Using the undo route-policy command, you can 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 a 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 (i.e., 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.
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
IPX Configuration Commands 479
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).
For the related commands, see if-match, apply output-interface, apply ip-address
next-hop, and 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.
[3Com] route-policy map1 permit node 10
[3Com-route-policy]
IPX Configuration
Commands
View
User view
Parameter
■ interface-type: Interface type.
■ interface-num: Interface number.
■ interface-name: Interface name.
Description
Using the debugging ipx packet command, you can enable IPX packet debugging
switch to view the contents of IPX packet received and transmitted. Using the
undo debugging ipx packet command, you can disable the debugging switch. By
default, IPX packet debugging switch is disabled.
Example
Enable IPX packet debugging switch.
<3Com> debugging ipx packet
*0.8942310-IPX-8-IPXPKT:
Sending, interface = Serial3/0/0,
pktlen = 40, hops = 0, pkttype = 0x1,
dstnet = 0xb, dstnode = ffff-ffff-ffff, dstsocket = 0x453,
srcnet = 0xb, srcnode = 00e0-fc01-5517, srcsocket = 0x453
prompt: Sending the packet.
*0.8942610-IPX-8-IPXPKT:
Delivering, interface = Serial3/0/0,
480 CHAPTER 5: NETWORK PROTOCOL
Item Description
pktlen = Length of packet in decimal format (not including MAC 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.
promt: Prompt of how router processes the packet and reasons of discarding packet.
View
User view
Parameter
None
Description
Using the debugging ipx ping command, you can enable IPX Ping packet
debugging switch to view the contents of Ping packet received and transmitted.
Using the undo debugging ipx ping command, you can disable the debugging
switch.
By default, IPX Ping packet debugging switch is disabled.
Example
Enable IPX Ping packet debugging switch.
<3Com> debugging ipx ping
*0.15396012-IPX-8-IPXPING:
Ping receiving: Request, Src = a.00e0-fc04-8859, Dst =
a.00e0-fc01-54f6
*0.15396130-IPX-8-IPXPING:
Ping sending: Response, Src = a.00e0-fc01-54f6, Dst =
a.00e0-fc04-8859
Table 8 Description of display information of the debugging ipx ping command
Item Description
Src = Source address of Ping packet.
Dst = Destination address of Ping packet.
IPX Configuration Commands 481
View
User view
Parameter
■ packet: Debugging information of packet received and transmitted.
■ verbose: Displays detailed information about packet received and transmitted.
■ event: Event debugging information, such as Up/Down of an interface and
related timer events.
Description
Using the debugging ipx rip command, you can enable RIP debugging switch to
view information on RIP packet received and transmitted, routing changes and
timer expiry. Using the undo debugging ipx rip command, you can disable RIP
debugging switch.
By default, IPX RIP debugging switch is disabled.
Example
Enable IPX RIP packet debugging switch.
<3Com> debugging ipx rip packet
Send RIP Response to Ethernet0/0, length 96
src:a.00e0-fc01-5517(453), dst:a.ffff-ffff-ffff(453)
Number of Entries in Pkt: 8
Enable IPX RIP packet verbose debugging switch.
<3Com> debugging ipx rip packet verbose
Send RIP Response to Ethernet0/0, length 96
src:a.00e0-fc01-5517(453), dst:a.ffff-ffff-ffff(453)
Number of Entries in Pkt: 8
Network 0x1, hops 2, delay 2
Network 0x2, hops 2, delay 2
Network 0x3, hops 2, delay 2
Network 0x4, hops 2, delay 2
Network 0x5, hops 2, delay 2
Network 0x6, hops 2, delay 2
Network 0x8, hops 2, delay 8
Network 0xa, hops 1, delay 2
View
User view
Parameter
None
Description
Using the debugging ipx rtpro-flash command, you can turn on the debugging
switch of route refreshing in the IPXRM module. Using the command, you can
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
Switch on route refreshing debugging for IPXRM module.
<3Com>debugging ipx rtpro-flash
<3Com>
Remove an IPX static route.
[3Com]undo ipx route-static b2 Serial 1
*0.18537610 3Com RMX/8/DBG:
IPXRM set a Rth on the flash list, ulRthDest = 0xb2 .
[3Com]
*0.18537820 3Com RMX/8/DBG:
IPXRM finish a flash, reset a Rth on the flash list, ulRthDest = 0xb2 .
[3Com]
View
User view
Parameter
None
Description
Using the debugging ipx rtpro-interface command, you can turn on the
debugging switch of interface change in the IPXRM module. Using the undo
debugging ipx rtpro-interface command, you can 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.
IPX Configuration Commands 483
Example
Enable IPX RIP packet debugging switch
<3Com> debugging ipx rip packet
[3Com-Serial1] shut
[3Com-Serial1]
[3Com-Serial1]
[3Com-Serial1]undo shut
[3Com-Serial1]
[3Com-Serial1]
View
User view
Parameter
None
484 CHAPTER 5: NETWORK PROTOCOL
Description
Using the debugging ipx rtpro-routing command, you can turn on the debugging
switch of route change in the IPXRM module. Using the command, you can 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
Switch on route change debugging for IPXRM module.
<3Com>debugging ipx rtpro-routing
<3Com>
Add a static route
3Com]ipx route-static d10 Serial 1
Interface: a.00e0-fcfb-3a00(Serial1)
Ticks: 6 Hops: 1
Interface: a.00e0-fcfb-3a00(Serial1)
Ticks: 6 Hops: 1
View
User view
Parameter
■ packet: Debugging information of packet received and transmitted.
■ verbose: Displays detailed information about packet received and transmitted.
■ event: Event debugging information, such as Up/Down of an interface and
related timer events.
Description
Using the debugging ipx sap command, you can enable IPX SAP debugging switch
to view information on SAP packet received and transmitted, routing changes and
IPX Configuration Commands 485
timer expiry. Using the undo debugging ipx sap command, you can 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.
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
Enable SAP packet verbose debugging switch.
<3Com> debugging ipx sap packet verbose
*0.20909856-IPXSAP-8-IPX SAP: MSG: Receive Response Packet From
Eth0,Length 480
Src: 000a.0000-0104-8f02 (0452) Dest: 000a.ffff-ffff-ffff (0452)
Number of entries in pkt: 7
Server type 2000 "PS1" 0008.000a-000a-000a (0452) hop 3
Server type 2345 "kkkkk" 000d.0005-0005-0005 (0452) hop 6
Server type 9000 "kiran-temp" 000d.0006-0006-0006 (0452) hop 16
Server type 6000 "kiran3" 000d.0003-0003-0003 (0452) hop 6
Server type 5000 "kiran2" 000d.0002-0002-0002 (0452) hop 16
Server type 4000 "kiran1" 000d.0001-0001-0001 (0452) hop 16
Server type 1000 "FS2" 000d.000a-000a-000a (0452) hop 2
View
Any view
Parameter
■ Interface-type: Interface type.
486 CHAPTER 5: NETWORK PROTOCOL
Description
Using the display ipx interface command, you can view IPX interface configuration
information and interface parameters in communication devices.
Example
Display IPX configuration and statistics of the interface Ethernet1/0/0.
<3Com> display ipx interface ethernet 1/0/0
Ethernet1/0/0 is up
IPX address is 2.00E0-FC01-0000 [up]
SAP is enabled
Split horizon is enabled
Update change only is disabled
Forwarding of IPX type 20 propagation packet is enabled
Delay of this IPX interface, in ticks is 1
SAP GNS response is enabled
RIP packet maximum size is 432 bytes
SAP packet maximum size is 480 bytes
IPX encapsulation is Netware 802.3
0 received, 0 sent
0 bytes received, 0 bytes sent
0 RIP received, 0 RIP sent, 0 RIP discarded
0 RIP specific requests received, 0 RIP specific responses sent
0 RIP general requests received, 0 RIP general responses sent
0 SAP received, 0 SAP sent, 0 SAP discarded
0 SAP requests received, 0 SAP responses sent
Table 9 Description of display information of the display ipx interface command
Item Description
Ethernet1/0/0 is ... In terms of physical layer and link layer status, the current interface is UP, DOWN or a
IPX address is ... IPX network ID and node value of the current interface. Refer to the comm
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.
Split horizon is … Whether split horizon is enabled on the current interface. The related com
split-horizon.
Update change only is … Whether trigger update is enabled on the current interface. The related co
update-change-only.
Forwarding of IPX type 20 Whether IPX type 20 propagation packet is permitted to be forwarded on t
propagation packet is ... related command is ipx netbios-propagation.
Delay of this IPX interface, in ticks is Delay value of the current interface. The value is configured by the ipx tic
...
SAP GNS response is ... Whether SAP GNS reply is enabled on the current interface. The related co
gns-disable-reply.
RIP packet maximum size is ... bytes Maximum size of RIP updating packet on the current interface. The related
mtu.
SAP packet maximum size is ... bytesMaximum size of SAP updating packet on the current interface. The relate
mtu.
received Total number of packets received on the current interface.
sent Total number of packets sent on the current interface.
bytes received Total number of bytes received on the current interface.
bytes sent Total number of bytes sent on the current interface.
RIP received Total number of IPX RIP packets received on the current interface.
RIP sent Total number of IPX RIP packets sent on the current interface.
RIP discarded Total number of IPX RIP packets discarded on the current interface.
RIP specific requests received Total number of IPX RIP specific requests received on the current interface
RIP specific responses sent Total number of IPX RIP specific responses sent on the current interface.
RIP general requests received Total number of IPX RIP general requests received on the current interface
IPX Configuration Commands 487
RIP general responses sent Total number of IPX RIP general responses sent on the current interfa
SAP received Total number of SAP packets received on the current interface.
SAP sent Total number of SAP packets sent on the current interface.
SAP discarded Total number of SAP packets discarded on the current interface.
SAP requests received Total number of SAP requests received on the current interface.
SAP responses sent Total number of SAP responses sent on the current interface.
View
Any view
Parameter
■ network: Destination network ID of IPX static route. It is an 8-bit hexadecimal
number, ranging from 1 to 0xFFFFFFFE. Display IPX routing information to
specified destination network ID.
■ verbose: Displays detailed route information, including active and inactive
routes.
■ default: Displays all the default routing information.
■ direct: Displays all the directly connected routing information.
■ rip: Displays all IPX RIP routing information.
■ static: Displays all IPX static routing information.
■ inactive: Only displays inactive routing information.
Description
■ Using the display ipx routing-table command, you can view active IPX routing
information.
■ Using the display ipx routing-table verbose command, you can view detailed
IPX routing information, including active and inactive routes.
■ Using the display ipx routing-table network command, you can view active IPX
routing information to specified destination network ID.
■ Using the display ipx routing-table network verbose command, you can view
detailed IPX routing information to specified destination network ID, including
active and inactive routes.
■ Using the display ipx routing-table protocol { rip | static | default | direct }
command, you can view IPX routing information for specified destination type,
including active and inactive routes.
■ Using the display ipx routing-table protocol { rip | static | default | direct }
verbose command, you can view detailed IPX routing information for specified
destination type, including active and inactive routes.
Example
Display active IPX routing information.
[3Com] display ipx routing-table
Routing tables:
Summary count: 4
488 CHAPTER 5: NETWORK PROTOCOL
The following table explains the contents in the above displayed information:
Item Description
Dest_Ntwk_ID Destination network ID of the route
Proto Protocol type of the route
Pre Preference of the route
Ticks Ticks value of the route
Hops Hops value of the route
Nexthop The next hop of the route
Interface Outgoing interface of the route
Display detailed IPX routing information, including active and inactive routes.
State can be <Active>, <Inactive> or <Delete>. <Active> indicates active route, <Ina
State indicates inactive route and <Delete> indicates the route is being deleted.
View
Any view
Parameter
None
Description
Using the display ipx routing-table statistics command, you can view IPX routing
statistics.
Example
Display IPX routing statistics.
<3Com> display ipx routing-table statistics
Routing tables:
Proto/State route active added deleted freed
Direct 2 2 2 0 0
Static 1 1 2 1 1
RIP 1 1 1 0 0
Default 0 0 0 0 0
Total 4 4 5 1 1
View
Any view
Parameter
■ type: Displays information for specified service type ID.
■ service-type: The type of service.
■ name: Displays information for specified server name.
■ name: Name of the server.
■ network: Displays service information of the server on specified network
segment.
■ network: The network ID of the network segment.
■ order: Displays service information after classified by the type.
■ network: Classified by the network ID.
■ type: Classified by the service type.
■ inactive: Displays inactive service information.
■ verbose: Displays details about service information.
490 CHAPTER 5: NETWORK PROTOCOL
Description
Using the display ipx service-table command, you can view contents of IPX service
information table. The output information of the command helps users with IPX
SAP troubleshooting.
Example
Display contents of IPX service information table.
[3Com] display ipx service-table
Abbreviation: S - Static, Pref - Preference(Decimal), NetId -
Network number,
NodeId - Node address, hop - Hops(Decimal), Recv-If - Interface from
which the service is receieved
Name Type NetId NodeId Sock Pref Hops Recv-If
FS2 1000 000d 000a-000a-000a 0452 500 02 Eth1/0/0
PS1 2000 0008 000a-000a-000a 0452 500 03 Eth1/0/0
kkkkk 2345 000d 0005-0005-0005 0452 500 06 Eth1/0/0
Hello3 6000 000d 0003-0003-0003 0452 500 06 Eth1/0/0
Display contents of service information table of type 5.
[3Com] display ipx service-table type 5
Abbreviation: S - Static, Pref - Preference(Decimal), NetId -
Network number,
NodeId - Node address, hop - Hops(Decimal), Recv-If - Interface from
which the service is receieved
Name Type NetId NodeId Sock Pref Hops
Recv-If
Prn1 0005 000d 000a-000a-000a 0452 500 02
Eth1/0/0
Prn2 0005 0008 000a-000a-000a 0452 500 03
Eth1/0/0
Prn3 0005 000d 0005-0005-0005 0452 500 06
Eth1/0/0
Prn4 0005 000d 0006-006-0006 0452 500 06
Eth1/0/0
View
Any view
Parameter
None
Description
Using the display ipx statistics command, you can view statistics and type of IPX
packet transmitted and received.
Example
Display IPX statistics.
<3Com> display ipx statistics
Received: 0 total, 0 packets pitched
0 packets size errors, 0 format errors
IPX Configuration Commands 491
Item Description
Received Statistics for received messages
0 total Total number of received messages
0 packets pitched Total number of messages whose headers are re-pitched
0 packets size errors Total number of discarded messages due to packet size errors
0 format errors Total number of discarded messages due to encapsulation format err
0 bad hops Total number of messages whose hop field values exceed 16
0 discarded(hop=16) Total number of messages whose hop field values are 16
0 other errors Total number of discarded messages due to other errors
0 local destination Total number of messages which have local 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
0 generated Number of messages which are sent by router itself
0 no route Number of messages which do not find routes
0 discarded Number of messages discarded during sending
RIP: Statistics for RIP messages
0 sent Number of RIP messages sent by router
0 received Number of RIP messages received
0 responses sent Number of RIP response messages sent by router
0 responses received Number of RIP response messages received
0 requests received Number of RIP request messages received
0 requests dealt Number of RIP request messages dealt
0 requests sent Number of RIP request messages sent by router
0 periodic updates Number of RIP periodic update messages sent by router
SAP: Statistics for SAP messages
0 general requests received Number of received SAP general request messages
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
0 periodic updates Number of SAP periodic update messages sent by router
0 errors Number of error SAP messages
View
System view
492 CHAPTER 5: NETWORK PROTOCOL
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.
If there is no Ethernet interface in the router, the system will assign a random node
value based on the system clock.
Description
Using the ipx enable command, you can activate IPX. Using the undo ipx enable
command, you can deactivate IPX and remove all IPX configurations
simultaneously.
Activating IPX again after executing the undo ipx enable command, you can not
restore any IPX configuration.
Example
Enable IPX.
[3Com] ipx enable
Disable IPX.
[3Com] undo ipx enable
View
Ethernet Interface view
Parameter
■ dot2: Encapsulation format is Ethernet_802.2.
■ dot3: Encapsulation format is Ethernet_802.3.
■ ethernet-2: Encapsulation format is Ethernet_II.
■ snap: Encapsulation format is Ethernet_SNAP.
Description
Using the ipx encapsulation command, you can set IPX frame encapsulation
format on Ethernet interface. Using the undo ipx encapsulation command, you
can 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
Configure IPX frame encapsulation format on the interface Ethernet0/1/0 as
Ethernet_II.
[3Com-Ethernet 0/1/0] ipx encapsulation ethernet-2
IPX Configuration Commands 493
View
Interface view
Parameter
None
Description
Using the ipx netbios-propagation command, you can configure the router to
forward type 20 broadcast packets on the current interface. Using the undo ipx
netbios-propagation command, you can disable the forwarding of type 20
packets.
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
Enable the receipt and forwarding of type 20 broadcast packets.
[3Com-Ethernet 0/1/0] ipx netbios-propagation
Disable the receipt and forwarding of type 20 broadcast packets.
[3Com-Ethernet 0/1/0] undo ipx netbios-propagation
View
Interface view
Parameter
■ network: Network ID of IPX interface in hex. It ranges from 0x1 to FFFFFFFD.
Description
Using the ipx network command, you can configure a network ID for an interface.
Using the undo ipx network command, you can delete IPX network ID of an
interface.
By default, IPX is disabled on all interfaces after it is activated. There is no IPX
network ID on the interface.
494 CHAPTER 5: NETWORK PROTOCOL
Example
Configure the interface Ethernet0/1/0 as IPX interface and assign it with a network
ID.
[3Com-Ethernet 0/1/0] ipx network 675
Cancel the configuration of the interface Ethernet0/1/0 as IPX interface.
[3Com-Ethernet 0/1/0] undo ipx network
View
System view
Parameter
■ static: Imported static route.
Description
Using the ipx rip import-route static command, you can import static routes into
RIP. RIP adds them in their route updates. Using the undo ipx rip import-route
static command, you can disable the importation of static routes.
Example
Import a static route to RIP.
[3Com] ipx rip import-route static
View
Interface view
Parameter
■ bytes: Maximum RIP updating packet size in byte, ranging from 432 to 1500.
By default, it is 432.
Description
Using the ipx rip mtu command, you can configure RIP updating packet size. Using
the undo ipx rip mtu command, you can 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.
IPX Configuration Commands 495
Example
Configure the maximum size of RIP updating packets on the interface
Ethernet1/0/0 to 500 bytes.
[3Com-Ethernet1/0/0] ipx rip mtu 500
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
Using the ipx rip multiplier command, you can configure the aging period of RIP
routing information table items. Using the undo ipx rip multiplier command, you
can 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.
For the related command, see ipx rip timer update.
Example
Configure RIP aging period of routing information table items is 5 times of
updating interval.
[3Com] ipx rip multiplier 5
View
System view
Parameter
■ seconds: RIP updating interval in second, ranging from 10 to 60000.
496 CHAPTER 5: NETWORK PROTOCOL
Description
Using the ipx rip timer update command, you can configure RIP updating interval.
Using the undo ipx rip timer update command, you can 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. For the related
command, see ipx rip multiplier.
Example
Configure RIP updating interval to 30 seconds.
[3Com] ipx rip timer update 30
View
System view
Parameter
■ network: Destination network ID of IPX static route. It is an 8-bit hexadecimal
number, ranging from 1 to 0xFFFFFFFE.
■ network.node: The next hop address of IPX static route. network is the
network ID of the next hop. node is a triplet of four-bit hexadecimal numbers
separated by “-“, each ranging from 1 to 0xFFFF.
■ interface-type: Outgoing interface type, only supporting the interface with PPP
encapsulation. It can be Serial or POS interface.
■ interface-num: Outgoing interface number.
■ interface-name: Outgoing interface name.
■ 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, ranging from 0 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.
IPX Configuration Commands 497
Description
Using the ipx route-static command, you can configure IPX static route. Using the
undo ipx route-static command, you can delete static route.
The system regards the IPX static route with destination network ID being -2
(0xFFFFFFFE) as the default route.
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.
[3Com] ipx enable
[3Com] ipx route-static 5a 1000.0-0c91-f61f 10 2
Configure the default IPX route with the next hop being 3.4a-60-7, ticks 10, hops
2 and preference 20.
Configure an IPX static route with destination network ID being 3a, outgoing
interface being Serial1/0/0, ticks 10, hops 2 and preference 30.
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
Using the ipx route load-balance-path command, you can configure the equivalent
route number to the same destination address. Using the undo ipx route
load-balance-path command, you can 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.
498 CHAPTER 5: NETWORK PROTOCOL
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.
Description
Using the ipx route max-reserve-path command, you can configure the maximum
dynamic route number to the same destination address. Using the undo ipx route
max-reserve-path command, you can 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.
[3Com] ipx route max-reserve-path 200
View
Interface view
Parameter
None
Description
Using the ipx sap disable command, you can disable SAP on the current interface.
Using the undo ipx sap disable command, you can enable SAP on the current
interface.
By default, the interface SAP is enabled as soon as IPX is enabled.
Example
Disable SAP on the interface Ethernet0/0/0.
[3Com-Ethernet0/0/0] ipx sap disable
IPX Configuration Commands 499
View
Interface view
Parameter
None
Description
Using the ipx sap gns-disable-reply command, you can disable IPX GNS reply on
the current interface. Using the undo ipx sap gns-disable-reply command, you can
enable IPX GNS reply on the current interface.
By default, GNS reply is enabled on an interface.
Example
Disable GNS reply on the interface Ethernet0/0/0.
[Ethernet0/0/0] ipx sap gns-disable-reply
Re-enable GNS reply on the interface Ethernet0/0/0.
[Ethernet0/0/0] undo ipx sap gns-disable-reply
View
System view
Parameter
None
Description
Using the ipx sap gns-load-balance command, you can configure the router to
respond GNS request in Round-robin method, i.e., all servers respond GNS request
in turn. Using the undo ipx sap gns-load-balance command, you can 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.
For the related command, see ipx sap gns-disable-reply.
Example
Configure the nearest server to respond GNS request.
500 CHAPTER 5: NETWORK PROTOCOL
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
Using the ipx sap max-reserve-servers command, you can configure the length of
the service information reserve queue. Using the undo ipx sap max-reserve-servers
command, you can 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
Set the maximum length of service information reserve queue to 1024.
[3Com] ipx sap max-reserve-servers 1024
View
Interface view
Parameter
■ bytes: The maximum SAP packet size in byte, ranging from 480 to 1500. By
default, the value is 480.
Description
Using the ipx sap mtu command, you can configure the maximum size of SAP
updating packet. Using the undo ipx sap mtu command, you can 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).
IPX Configuration Commands 501
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).
[3Com-Ethernet0/0/0] ipx sap mtu 674
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.
Description
Using the ipx sap multiplier command, you can configure the aging period of SAP
service information table items. Using the undo ipx sap multiplier command, you
can 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.
For the related command, see ipx sap timer update.
Example
Set the aging period of SAP service information table items is 5 times of updating
interval.
[3Com] ipx sap multiplier 5
View
System view
Parameter
■ seconds: SAP updating interval, ranging from 10 to 60000 seconds. By default,
the value is 60 seconds.
Description
Using the ipx sap timer update command, you can configure SAP updating
interval. Using the undo ipx sap timer update command, you can restore the
default value of SAP updating interval.
When an interface adopts trigger update method, the command configuration
does not take effect.
502 CHAPTER 5: NETWORK PROTOCOL
For the related commands, see ipx sap multiplier and ipx update-change-only.
Example
Configure SAP updating interval to 300 seconds.
[3Com] ipx sap timer update 300
View
System view
Parameter
■ service-type: Service type is a 4-byte hexadecimal number. 0 indicates all service
types.
■ name: The server name which provides the service, in character string with the
maximum length being 48 bytes.
■ network.node: Network ID and node value of a server. Network ID is
represented by an 8-bit hexadecimal number, ranging from 0x1 to 0xFFFFFFFD.
The 0s in front can be omitted when inputting. Node value is used to identify a
node in the network, with the length of 48 bits, represented by a triplet of
4-digit hexadecimal numbers separated by “-“.
■ socket: It is represented by a 4-bit hexadecimal number, ranging from 0x1 to
0xFFFF.
■ hop-count: The number of hops to the server in decimal, ranging from 1 to 15.
Note that hop count more than or equal to 16 implies the service is
unreachable.
■ preference: The preference of service information, ranging from 1 to 255. The
less the value, the higher the preference. By default, the preference of the
static service information table items is 60 and the preference of the dynamic
one is 500.
Description
Using the ipx service command, you can add a static service information item to
SIT. Using the undo ipx service command, you can 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.
IPX Configuration Commands 503
Service information with server type 114 will not be advertised if there is no active
route to the network 199.
View
Interface view
Parameter
None
Description
Using the ipx split-horizon command, you can enable split horizon on the current
interface. Using the undo ipx split-horizon command, you can 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, i.e., 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
Enable split horizon on the interface Ethernet1/1/0.
[3Com-Ethernet1/1/0] ipx split-horizon
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.
504 CHAPTER 5: NETWORK PROTOCOL
Description
Using the ipx tick command, you can configure the delay of interface sending IPX
packets. Using the undo ipx tick command, you can 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
Configure the delay is 5 ticks on the interface Ethernet1/0/0.
[3Com-Ethernet1/0/0] ipx tick 5
View
Interface view
Parameter
None
Description
Using the ipx update-change-only command, you can enable trigger update on
the current interface. Using the undo ipx update-change-only command, you can
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.
Example
Enable trigger update on the interface Ethernet1/1/0.
[3Com-Ethernet 1/1/0] ipx update-change-only
View
Any view
Parameter
■ network.node: Ping destination address. The parameter network can be an
eight-bit hexadecimal number ranging from 0x1 to 0xFFFFFFFD. The 0s in front
can be omitted when inputting. The parameter node is a 48-bit value
represented by a triplet of four-digit hexadecimal numbers separated by “-“.
IPX Configuration Commands 505
Description
Using the ping ipx command, you can check host reachability and network
connectivity in IPX network.
Example
Ping system whose destination address is 675.0000-a0b0-fefe with default
parameters.
<3Com> ping ipx 675.0000-a0b0-fefe
View
User view
Parameter
None
Description
Using the reset ipx statistics command, you can clear IPX statistics by the system.
Example
Clear IPX statistics.
<3Com> reset ipx statistics
View
User view
Parameter
■ all: Clears statistical information of all types IPX route.
■ default: Clears the statistical information of the default IPX route type.
■ direct: Clears the statistical information of the IPX route directly connected.
■ rip: Clears the statistical information of the IPX RIP route.
■ static: Clears the statistical information of the static IPX route.
506 CHAPTER 5: NETWORK PROTOCOL
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:
[3Com]dis ipx routing-table statistics
Routing tables:
Direct 1 1 1 0
0
Static 9 9 14 5
5
RIP 0 0 0 0
0
Default 0 0 0 0
0
Total 10 10 15 5
5
[3Com]
Clear the IPX static route.
<3Com>reset ipx routing-table statistics protocol static
<3Com>
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.
DLSw Configuration
Commands
View
Synchronous serial interface view
DLSw Configuration Commands 507
Parameter
■ bridge-set-number: The bridge group number the synchronous serial port is to
be added into, ranging from 1 to 63.
Description
Using the bridge-set (in Synchronous serial interface system view) command, you
can add the synchronous serial interface encapsulated into SDLC into the bridge
group. Using the undo bridge-set (in synchronous serial interface view) command,
you can 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.
[3Com] dlsw bridge-group 20
[3Com] interface Serial1/0/0
[3Com-Serial1/0/0] bridge-set 20
View
Ethernet Interface view
Parameter
■ bridge-set-number: The bridge group number that the Ethernet interface is
added into, ranging from 1 to 63.
Description
Using the bridge-set (in the Ethernet Interface view) command, you can add the
Ethernet interface into the bridge. Using the undo bridge-set (in the Ethernet
Interface view) command, you can 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.
508 CHAPTER 5: NETWORK PROTOCOL
View
Synchronous serial interface system view
Parameter
None
Description
Using the code nrzi command, you can configure the NRZI encoding of the
synchronous serial port. Using the undo code nrzi command, you can 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
Configure the NRZI encoding on the Serial1/0/0.
[3Com-Serial1/0/0] code nrzi
View
User view
Parameter
■ circuit: Enables the DLSw circuit debugging.
■ correlator: Distinguishes different IDs of the circuits.
■ tcp: Enables the debugging of the DLSw peers.
■ ip-address: IP address.
Description
Using the debugging dlsw command, you can enable the DLSw debugging. Using
the undo debugging dlsw command, you can disable the DLSw debugging.
DLSw Configuration Commands 509
View
User view
Parameter
■ correlator: Distinguishes different IDs of the circuits.
Description
Using the debugging llc2 command, you can enable the LLC2 debugging. Using
the undo debugging llc2 command, you can disable the LLC2 debugging.
View
User view
Parameter
■ all: Enables all debuggings of the SDLC.
■ event: Enables the SDLC event debugging.
■ packet: Enables the SDLC packet debugging.
Description
Using the debugging sdlc command, you can enable the SDLC debugging. Using
the undo debugging sdlc command, you can disable the SDLC debugging.
View
Any view
Parameter
None
Description
Using the display dlsw bridge-entry command, you can view the bridge group
information.
Example
Display the bridge group information.
<3Com> display dlsw bridge-entry
Mac_entry Port group hashIndex
0000.e81c.b6bf Ethernet0/0/0 1 79
510 CHAPTER 5: NETWORK PROTOCOL
View
Any view
Parameter
■ circuit-id: Displays the virtual circuit number of the specified DLSw.
■ verbose: Displays the detail information of the virtual circuits.
Description
Using the display dlsw circuits command, you can view the DLSw virtual circuits.
The output information of the command helps the user understand the
information regarding DLSw virtual circuits.
Example
Display the general information of the virtual circuits.
<3Com> display dlsw circuits
Correlator Local addr(LSAP) Remote addr(RSAP) State
2ce0005 0020.357b.e065 (4) 0000.1738.6dfd (4) CONNECTED
Syntax description:
Correlator: Distinguish different IDs of the circuits
Local addr(LSAP) Local MAC address, with the “lsap” being the last SAP used
by the local device.
Remote addr(RSAP) Remote MAC address, with the “rsap” being the last SAP
used by the remote device.
State: State of the links.
Display the detail information of the virtual circuits.
<3Com> display dlsw circuits verbose
Correlator Local addr(LSAP) Remote addr(RSAP) State
2ce0005 0020.357b.e065 (4) 0000.1738.6dfd (4) CONNECTED
Port Ethernet 0/0/0
Direction:ORIGIN
Connection Time: 14:19:49
Flow Control: Transmit CW:40 GT:0 Receive CW:40 GT:0
Info-Frame: Transmit:0 Receive:0 Drop:0
View
Any view
Parameter
■ local: Displays the local exchange capability information.
■ ip-address: Displays the exchange capability information of specified IP address.
DLSw Configuration Commands 511
Description
Using the display dlsw information command, you can 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
Display the general information of exchange capability.
<3Com> display dlsw information
DLSw: Capabilities for peer 10.10.20.1:
Vendor ID (OUI) : '00000c' (3Com)
Version number : 01
Release number : 00
Init Pacing Window : 40
Num of TCP sessions : 01
Mac address exclusive : no
NetBIOS Name exclusive : no
Mac address List : none
NetBIOS Name List : none
Configured IP address : 14.0.0.1
Version string :
Copyright (c) 1997-2002 3Com TECH CO., LTD.
■ Syntax 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 number of 3Com’s router operation system
View
Any view
Parameter
■ ip-address: Displays the information of the remote peer with specified IP
address or of all the remote peers.
Description
Using the display dlsw remote command, you can 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
Display the information of the remote peers.
<3Com> display dlsw remote
Peers: State pkts_rx pkts_tx drops uptime
*TCP 11.0.0.1 DISCONNECT 0 0 0 00:00:00
*TCP 13.0.0.1 DISCONNECT 0 0 0 00:00:00
*TCP 14.0.0.1 CONNECT 1897 1899 0 14:26:22
Syntax description:
*TCP: The * mark indicates the connection can be created on the peer. If there is
no this mark before the TCP, it indicates it is an inactivated backup peer.
View
Any view
Parameter
■ correlator: ID used to distinguish different circuits.
Description
The display interface command is used to display statistical information of LLC2.
Example
Display the statistical information of LLC2
DLSw Configuration Commands 513
View
System view
Parameter
■ bridge-set-number: ID of bridge group, ranging from 1 to 63, local valid.
Description
Using the dlsw bridge-set command, you can configure the bridge group to
connect DLSw . Using the undo dlsw bridge-set command, you can 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 the 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 the DLSw, and make them all capable of joining
the forwarding through the TCP tunnel.
Example
Configure the bridge group connected with the DLSw, with the ID of the bridge
group being 20.
[3Com] dlsw bridge-group 20
View
System view
Parameter
None
Description
Using the dlsw enable command, you can enable the DLSw performance. Using
the undo dlsw enable command, you can suspend the DLSw performance.
By default, the DLSw performance is enabled.
514 CHAPTER 5: NETWORK PROTOCOL
After this command is performed, the system will release all dynamic resources,
but retain the original configuration.
Example
Suspend the DLSw performance.
[3Com] undo dlsw enable
View
System view
Parameter
■ ip-address: IP address of the created local peer.
■ init-window-size: Size of the initialized local response window, ranging from 1
to 2000.
■ keepalive-interval: Time interval for sending the “keepalive”, ranging from 0 to
1200 seconds.
■ max-frame-size: Maximum length of the packet, which can be 516, 1470,
1500, 2052, 4472, 8144, 11407, 11454, or 17800 bytes.
■ max-window-size: Size of the maximum local response window, ranging from
1 to 2000.
■ permit-dynamic: Permits unpreconfigured remote router to initiate connections
and dynamically create peers. The remote peer is unnecessarily be configured
on the local end using this parameter, and the local peer waits for the
connection initiated by the remote peer.
Description
Using the dlsw local command, you can create the DLSw local peer. Using the
undo dlsw local command, you can delete the local peer or restore the default
values of the parameters.
The default init-window-size is 40. The default keepalive-interval is 30 seconds.
The default max-frame-size is 1500 bytes. The default max-window-size is 50.
To create the 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.
DLSw Configuration Commands 515
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.
[3Com] dlsw local 1.1.1.1 init-window 50 keepalive 40
View
System view
Parameter
■ ip-address: Specifies the IP address of the remote peer.
■ backup backup-address: the backup IP address of the remote peer.
■ priority priority: Transmission cost, ranging from 1 to 5.
■ keepalive keepalive-interval: Time interval for sending the “keepalive” packet,
ranging from 0 to 1200 seconds.
■ max-frame max-frame-size: Maximum length of the packet, which can be 516,
1470, 1500, 2052, 4472, 8144, 11407, 11454, or 17800 bytes.
■ max-queue max-queue-length: Size of the TCP sending/receiving queue,
ranging from 50 to 2000.
■ linger minutes: Linger time of the backup connection after the primary peer
being disconnected, ranging from 0 to 1440 minutes.
Description
Using the dlsw remote command, you can create the DLSw remote peer. Using the
undo dlsw remote command, you can delete the remote peer.
The default priority is 3. The default keepalive-interval is 30 seconds. The default
max-frame-size is 1500 bytes. The default max-queue-length is 200. The default
seconds is 90 seconds. The default minutes are 5 minutes.
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.
The following deserves special attention on creating the remote backup-address:
1 In order to create the remote backup-address, the ip-address should be the IP
address of the backup peer end, and the backup backup-address should be
the IP address of the remote primary peer with the TCP connection already
being created. In other words, before 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
516 CHAPTER 5: NETWORK PROTOCOL
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.
[3Com] dlsw remote 2.2.2.2 priority 2 keepalive 40 max-queue 300
View
System view
Parameter
■ connect 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.
■ 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
Using the dlsw timer command, you can configure the DLSw timer parameters.
Using the undo dlsw timer command, you can 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.
DLSw Configuration Commands 517
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.
[3Com] dlsw timer connect 20 explorer-wait 15 local-pending 15
remote-pending 25
idle-mark Syntax
idle-mark
undo idle-mark
View
Synchronous serial interface view
Parameter
None
Description
Using the idle-mark command, you can configure the idle coding scheme of the
synchronous serial port. Using the undo idle-mark command, you can restore the
default idle coding scheme of the synchronous serial port.
By default, the synchronous serial port adopts the “7E” coding scheme.
3Com 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.
[3Com-Serial1/0/0] idle-mark
View
Synchronous serial interface view
Parameter
None
518 CHAPTER 5: NETWORK PROTOCOL
Description
Using the link-protocol sdlc command, you can 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
Configure the encapsulation protocol on the Serial1/0/0 as SDLC.
[3Com-Serial1/0/0] link-protocol sdlc
View
Ethernet Interface view
Parameter
■ length: Length of the LLC2 advanced response window, ranging from 1 to 127.
Description
Using the llc2 max-ack command, you can configure the length of the advance
response window before the LLC2 sending the acknowledgement frame. Using
the undo llc2 max-ack command, you can 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.
[3Com-Ethernet1/0/0] llc2 max-ack 5
View
Ethernet Interface view
Parameter
■ length: The queue length sending the LLC2 packet, ranging from 20 to 200.
Description
Using the llc2 max-send-queue command, you can configure the queue length
sending the LLC2 packet. Using the undo llc2 max-send-queue command, you can
restore the default queue length sending the LLC2 packet.
By default, the queue length sending the LLC2 packet is 100. Example
Example
Configure the queue length sending the LLC2 packet as 30.
[3Com-Ethernet1/0/0] llc2 max-send-queue 30
View
Ethernet Interface view
Parameter
■ retries: LLC2 retransmission times, ranging form 1 to 255.
Description
Using the llc2 max-transmission command, you can configure the retransmission
times of the LLC2. Using the undo llc2 max-transmission command, you can
restore the default retransmission times of the LLC2.
By default, the LLC2 retransmission times are 20 times.
The LLC2 retransmission times refers to the times of resending information frames
before the acknowledgement frame is received from the peer end.
Example
Configure the LLC2 retransmission times as 10 times.
[3Com-Ethernet1/0/0] llc2 max-transmission 10
View
Ethernet Interface view
Parameter
■ n: The modulus of the LLC2, with the available values of 8 or 128.
520 CHAPTER 5: NETWORK PROTOCOL
Description
Using the llc2 modulo command, you can configure the modulus of the LLC2.
Using the undo llc2 modulo command, you can 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
Restore the default modulus of the LLC2.
[3Com-Ethernet1/0/0] undo llc2 modulo
View
Ethernet Interface view
Parameter
■ length: Length of the local response window, ranging from 1 to 127.
Description
Using the llc2 receive-window command, you can configure the maximum packets
that can be sent before the LLC2 receives the acknowledgement frame. Using the
undo llc2 receive-window command, you can 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.
Example
Configure the maximum packets that can be sent before the LLC2 receives the
acknowledgement frame as 10.
[3Com-Ethernet1/0/0] llc2 receive-window 10
View
Ethernet Interface view
Parameter
■ mseconds: LLC2 local response time, ranging from 1 to 60000ms.
DLSw Configuration Commands 521
Description
Using the llc2 timer ack command, you can configure the LLC2 local response
time. Using the undo llc2 timer ack command, you can 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
Configure the LLC2 local response time as 10ms.
[3Com-Ethernet1/0/0] llc2 timer ack 10
View
Ethernet Interface view
Parameter
■ mseconds: Local acknowledgement delay time on receiving the information
frames, ranging from 1 to 60000ms.
Description
Using the llc2 timer ack-delay command, you can configure the local
acknowledgement delay time when the LLC2 receives information frames. Using
the undo llc2 timer ack-delay command, you can 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.
[3Com-Ethernet1/0/0] llc2 timer ack-delay 200
View
Ethernet Interface view
Parameter
■ mseconds: The LLC2 BUSY time, ranging from 1 to 60000ms.
522 CHAPTER 5: NETWORK PROTOCOL
Description
Using the llc2 timer busy command, you can configure the LLC2 BUSY time. Using
the undo llc2 timer busy command, you can 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
Configure the LLC2 BUSY time as 200ms.
[3Com-Ethernet1/0/0] llc2 timer busy 200
View
Ethernet Interface view
Parameter
■ mseconds: LLC2 P/F waiting time, ranging from 1 to 60000ms.
Description
Using the llc2 timer poll command, you can configure the P/F waiting time of the
LLC2. Using the undo llc2 timer poll command, you can 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
Configure the LLC2 P/F waiting time as 2000ms.
[3Com-Ethernet1/0/0] llc2 timer poll 2000
View
Ethernet Interface view
Parameter
■ mseconds: The LLC2 REJ time, ranging from 1 to 60000ms.
Description
Using the llc2 timer reject command, you can configure the REJ time of the LLC2.
Using the undo llc2 timer reject command, you can restore the default value of the
LLC2 REJ time.
DLSw Configuration Commands 523
Example
Configure the LLC2 REJ time as 2000ms.
[3Com-Ethernet1/0/0] llc2 timer reject 2000
View
User view
Parameter
None
Description
Using the reset dlsw bridge-entry command, you can clear the entry cache
information in the DLSw bridge group.
Example
Clear the entry cache information in the DLSw bridge group.
<3Com> reset dlsw bridge-entry
View
User view
Parameter
■ circuit-id: The virtual circuit ID of DLSw, ranging from 0 to 4294967295.
Description
Using the reset dlsw circuits command, you can clear the DLSw virtual circuit
information.
Example
Clear the virtual circuit information with the virtual circuit number of 100.
<3Com> reset dlsw circuits 100
View
Synchronous serial interface view
Parameter
■ sdlc-address: The secondary station address of the SDLC.
Description
Using the sdlc controller command, you can configure the secondary station
address of the SDLC. Using the undo sdlc controller command, you can 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.
[3Com-Serial1/0/0] sdlc controller 05
View
Synchronous serial interface view
Parameter
■ mac-address: The virtual MAC address of the SDLC.
Description
Using the sdlc mac-map local command, you can configure the virtual MAC
address of the SDLC. Using the undo sdlc mac-map local command, you can
delete the virtual MAC address of the SDLC.
By default, the SDLC has no virtual MAC address.
DLSw Configuration Commands 525
Example
Configure the virtual MAC address of the SDLC.
[3Com-Serial1/0/0] sdlc mac-map local 0000-e81c-b6bf
View
Synchronous serial interface view
Parameter
■ mac-addr: The MAC address of the SDLC peer.
■ sdlc-addr: The SDLC address of the SDLC peer.
Description
Using the sdlc mac-map remote command, you can configure the SDLC peer.
Using the undo sdlc mac-map remote command, you can 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
Configure the SDLC peer.
[3Com-Serial1/0/0] sdlc mac-map remote 00E0-FC00-0010 0x05
View
Synchronous serial interface view
Parameter
■ n: The maximum receivable frame length of the SDLC, ranging from 1 to
17600 bytes.
Description
Using the sdlc max-pdu command, you can configure the maximum receivable
frame length of the SDLC. Using the undo sdlc max-pdu command, you can
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.
526 CHAPTER 5: NETWORK PROTOCOL
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
Configure the maximum receivable frame length of the SDLC as 512.
[3Com-Serial1/0/0] sdlc max-pdu 521
View
Synchronous serial interface view
Parameter
■ length: The queue length sending the SDLC packet, ranging from 20 to 255.
Description
Using the sdlc max-send-queue command, you can configure the queue length
sending the SDLC packet. Using the undo sdlc max-send-queue command, you
can 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.
[3Com-Serial1/0/0] sdlc max-send-queue 30
View
Synchronous serial interface view
Parameter
■ retries: The SDLC timeout retransmission times, ranging from 1 to 255 times.
Description
Using the sdlc max-transmission command, you can configure the SDLC timeout
retransmission times. Using the undo sdlc max-transmission command, you can
restore the default value of the SDLC timeout retransmission times.
By default, the SDLC timeout retransmission times are 20.
The SDLC timeout retransmission times (N2) refers to the retransmission times
before receiving the acknowledgement packet from the peer end.
DLSw Configuration Commands 527
Example
Configure the SDLC timeout retransmission times as 30.
[3Com-Serial1/0/0] sdlc max-transmission 30
View
Synchronous serial interface view
Parameter
■ n: SDLC modulus, with available value of 8 or 128.
Description
Using the sdlc modulo command, you can configure the modulus of the SDLC.
Using the undo sdlc modulo command, you can 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
Restore the default modulus of the SDLC.
[3Com-Serial1/0/0] undo sdlc modulo
View
Synchronous serial interface view
Parameter
■ lsap: The virtual SAP address set by the device connected with the local
interface.
■ sdlc-addr: The SDLC address.
Description
Using the sdlc sap-map local command, you can configure the SAP address on
transforming the SDLC into the LLC2. Using the undo sdlc sap-map local
command, you can 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.
Generally speaking, the SAP address of the SNA protocol is 0x04 or 0x08 or 0x0C.
528 CHAPTER 5: NETWORK PROTOCOL
For related configuration, please see the sdlc sap-map remote command.
Example
Configure the SAP address on translating the SDLC into the LLC2.
[3Com-Serial1/0/0] sdlc sap-map local 08 05
View
Synchronous serial interface view
Parameter
■ dsap: The SAP address of the DLSw peer device. By default, dsap is 04.
■ sdlc-addr: The SDLC address.
Description
Using the sdlc sap-map remote command, you can configure the remote DLSw
device SAP address when SDLC is translated into LLC2. And using the undo sdlc
sap-map remote command, you can 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.
[3Com-Serial1/0/0] sdlc sap-map remote 0C 05
View
Synchronous serial interface view
Parameter
None
Description
Using the sdlc simultaneous command, you can configure the SDLC data to use
the bidirectional transmission mode. Using the undo sdlc simultaneous command,
you can stop the SDLC data to use the bidirectional transmission mode.
By default, the SDLC data are transmitted in bidirectional mode.
DLSw Configuration Commands 529
Example
Configure the SDLC data to use the bidirectional transmission mode.
[3Com-Serial1/0/0] sdlc simultaneous
View
Synchronous serial interface 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
Using the sdlc role command, you can configure the SDLC role the device acts.
Using the undo sdlc role command, you can 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 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.
[3Com-Serial1/0/0] sdlc role secondary
View
Synchronous serial interface view
Parameter
■ mseconds: The SDLC primary station response waiting time, ranging from 1 to
60000ms.
Description
Using the sdlc timer ack command, you can configure the SDLC primary station
response waiting time (mseconds). Using the undo sdlc timer ack command, you
can 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.
Example
Configure the SDLC primary station response waiting time (mseconds) as 2000ms.
[3Com-Serial1/0/0] sdlc timer ack 2000
View
Synchronous serial interface view
Parameter
■ mseconds: The SDLC secondary station response waiting time, ranging from 1
to 60000ms.
Description
Using the sdlc timer lifetime command, you can configure the SDLC secondary
station response waiting time (mseconds). Using the undo sdlc timer lifetime
command, you can 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
Configure the SDLC secondary station response waiting time (mseconds) as
1000ms.
[3Com-Serial1/0/0] sdlc timer lifetime 1000
DLSw Configuration Commands 531
View
Synchronous serial interface view
Parameter
■ mseconds: SDLC poll pause timer, ranging from 1 to 10000ms.
Description
Using the sdlc timer poll command, you can configure the SDLC poll pause timer.
Using the undo sdlc timer poll command, you can 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
Configure the SDLC poll pause timer as 200ms.
[3Com-Serial1/0/0] sdlc timer poll 200
View
Synchronous serial interface view
Parameter
■ length: Length of the SDLC local response window, ranging from 1 to 7.
Description
Using the sdlc window command, you can configure the length of the SDLC local
response window. Using the undo sdlc window command, you can 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.
[3Com-Serial1/0/0] sdlc window 5
View
Synchronous serial interface 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
Using the sdlc xid command, you can configure the XID of the SDLC. Using the
undo sdlc xid command, you can 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
Configure the XID of the SDLC, in which the xid-number is 0x2000.
[3Com3Com-Serial1/0/0] sdlc xid 05 2000
ROUTING PROTOCOL
6
For the specific examples and parameter explanation of VPN instance, refer to the
“MPLS” module of this manual.
Display Commands of
the Routing Table
View
Any view
Parameter
None
Description
Using the display ip routing-table command, you can 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
View the summary of current routing table.
<3Com>3Com display ip routing-table
Routing Table: public net
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
2.2.2.1/32 DIRECT 0 0 127.0.0.1 InLoopBack0
3.3.3.0/24 DIRECT 0 0 3.3.3.1 Interface
ethernet1/0/0
3.3.3.1/32 DIRECT 0 0 127.0.0.1 InLoopBack0
4.4.4.0/24 DIRECT0 0 4.4.4.1 Interface
ethernet2/0/0
534 CHAPTER 6: ROUTING PROTOCOL
View
Any view
Parameter
■ acl_number: Number of basic ACL, ranging from 1 to 99.
■ acl-name: Name of basic ACL.
■ 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
Using the display ip routing-table acl command, you can 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 or name.
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 1.
<3Com> display ip routing-table acl 1
Routes matched by access-list 1:
Summary count: 4
Destination/MaskProtoPreCost NexthopInterface
127.0.0.0/8Direct00127.0.0.1InLoopBack0
127.0.0.1/32Direct00127.0.0.1InLoopBack0
169.0.0.0/8Static60 02.1.1.1LoopBack1
169.0.0.0/15Static6002.1.1.1LoopBack1
Display the verbose information of the active and inactive routes
that are filtered through basic ACL1.
<3Com> display ip routing-table acl 1 verbose
Routes matched by access-list 1:
Generate Default: no
+ = Active Route, - = Last Active, = Both* = Next hop in use
Summary count:5
**Destination: 127.0.0.0Mask: 255.0.0.0
Protocol: DirectPreference: 0
*NextHop: 127.0.0.1Interface: 127.0.0.1(InLoopBack0)
Vlinkindex: 0
State: <NoAdvise Int ActiveU Retain Multicast Unicast>
Age: 3:47Metric: 0/0
**Destination: 127.0.0.1Mask: 255. 255. 255. 255
Protocol: DirectPreference: 0
*NextHop: 127.0.0.1Interface: 127.0.0.1(InLoopBack0)
Display Commands of the Routing Table 535
Vlinkindex: 0
State: <NotInstall NoAdvise Int ActiveU Retain Gateway Multicast
Unicast>
Age: 3:47Metric: 0/0
**Destination: 179.0.0.0Mask: 255.0.0.0
Protocol: StaticPreference: 60
*NextHop: 4.1.1.1
Vlinkindex: 0
State: <Int Hidden Static Unicast>
Age: 3:47Metric: 0/0
**Destination: 169.0.0.0Mask: 255.0.0.0
Protocol: StaticPreference: 60
*NextHop: 2.1.1.1Interface: 2.1.1.1(LoopBack1)
Vlinkindex: 0
State: <Int ActiveU Static Unicast>
Age: 3:47Metric: 0/0
**Destination: 169.0.0.0Mask: 255.254.0.0
Protocol: StaticPreference: 60
*NextHop: 2.1.1.1Interface: 2.1.1.1(LoopBack1)
Vlinkindex: 0
State: <Int ActiveU Static Unicast>
Age: 3:47Metric: 0/0
View
Any view
Parameter
■ ip_address: Destination IP address in dotted decimal format.
■ mask: IP address mask, which can be in dotted decimal notation or represented
by an integer in the range of 0 to 32.
■ longer-match: Indicates all route destination addresses are matched in the
natural mask range.
■ verbose: With the verbose parameter, this command displays the verbose
information of both the active and inactive routes. Without the parameter, this
command only displays the summary of active routes.
Description
Using the display ip routing-table ip_address command, you can 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:
■ 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.
■ display ip routing-table ip_address mask,
536 CHAPTER 6: ROUTING PROTOCOL
This command only displays the route fully matching with specified destination
address and mask.
■ display ip routing-table ip_address longer-match
This command displays all route destination addresses matching with
destination addresses in natural mask range.
Example
There is corresponding route in natural mask range. View the summary.
<3Com> display ip routing-table 169.0.0.0
Routing Tables:
Summary count:1
Destination/MaskProtoPreCost NexthopInterface
169.0.0.0/16Static6002.1.1.1LoopBack1
There is no corresponding route (only the longest matching route is
displayed) in natural mask range and summary is viewed.
<3Com> display ip routing-table 169.253.0.0
Routing Tables:
Summary count:1
Destination/MaskProtoPreCost NexthopInterface
169.0.0.0/8Static6002.1.1.1LoopBack1
There are corresponding routes in the natural mask range. View the
detailed information.
<3Com> 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.0Mask: 255.0.0.0
Protocol: StaticPreference: 60
*NextHop: 2.1.1.1Interface: 2.1.1.1(LoopBack1)
Vlinkindex: 0
State: <Int ActiveU Static Unicast>
Age: 3:47Metric: 0/0
**Destination: 169.0.0.0Mask: 255.254.0.0
Protocol: StaticPreference: 60
*NextHop: 2.1.1.1Interface: 2.1.1.1(LoopBack1)
Vlinkindex: 0
State: <Int ActiveU Static Unicast>
Age: 3:47Metric: 0/0
There are no corresponding routes in the natural mask range (only
display the longest matching route). View the detailed information.
<3Com> 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.0Mask: 255.0.0.0
Protocol: StaticPreference: -60
*NextHop: 2.1.1.1
Vlinkindex: 0
State: <Int ActiveU Static Unicast>
Age: 3:47Metric: 0/0
View
Any view
Parameter
■ ip_address1, ip_address2: Destination IP address in dotted decimal notation.
ip_address1 and ip_address2 determine one address range together to display
the route in this address range.
■ mask1, mask2: IP address mask, length in dotted decimal notation or integer
form.
■ verbose: With the verbose parameter, this command displays the verbose
information of both the active and inactive routes. Without the parameter, this
command only displays the summary of active routes.
Description
Using the display ip routing-table ip_address1 ip_address2 command, you can
view the routing information in the specified destination address range.
Example
View the routing information of destination addresses ranging from 1.1.1.0 to
2.2.2.0.
<3Com> 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
View
Any view
Parameter
■ ip-prefix-name: Prefix list name.
■ 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
Using the display ip routing-table ip-prefix command, you can 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.
538 CHAPTER 6: ROUTING PROTOCOL
Example
Display the summary of the active route that is filtered through ip prefix list abc2.
<3Com> display ip routing-table ip-prefix abc2
Routes matched by ip-prefix abc2:
Summary count: 4
Destination/MaskProtoPreCost NexthopInterface
127.0.0.0/8Direct00127.0.0.1InLoopBack0
127.0.0.1/32Direct00127.0.0.1InLoopBack0
169.0.0.0/8Static6002.1.1.1LoopBack1
169.0.0.0/15Static6002.1.1.1LoopBack1
Display the verbose information of the active and inactive routes
that are filtered through ip prefix list abc2.
<3Com> 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.0Mask: 255.0.0.0
Protocol: DirectPreference: 0
*NextHop: 127.0.0.1Interface: 127.0.0.1(InLoopBack0)
Vlinkindex: 0
State: <NoAdvise Int ActiveU Retain Multicast Unicast>
Age: 3:47Metric: 0/0
**Destination: 127.0.0.1Mask: 255. 255. 255. 255
Protocol: DirectPreference: 0
*NextHop: 127.0.0.1Interface: 127.0.0.1(InLoopBack0)
Vlinkindex: 0
State: <NotInstall NoAdvise Int ActiveU Retain Gateway Multicast
Unicast>
Age: 3:47Metric: 0/0
**Destination: 179.0.0.0Mask: 255.0.0.0
Protocol: StaticPreference:-60
*NextHop: 4.1.1.1
Vlinkindex: 0
State: <Int Hidden Static Unicast>
Age: 3:47Metric: 0/0
**Destination: 169.0.0.0Mask: 255.0.0.0
Protocol: StaticPreference: 60
*NextHop: 2.1.1.1Interface: 2.1.1.1(LoopBack1)
Vlinkindex: 0
State: <Int ActiveU Static Unicast>
Age: 3:47 Metric: 0/0
**Destination: 169.0.0.0Mask: 255.254.0.0
Protocol: StaticPreference: 60
*NextHop: 2.1.1.1Interface: 2.1.1.1(LoopBack1)
Vlinkindex: 0
State: <Int ActiveU Static Unicast>
Age: 3:47 Metric: 0/0
View
Any view
Display Commands of the Routing Table 539
Parameter
■ protocol: Has multiple selectable values:
■ direct: Displays direct connection route information
■ static: Displays static route information.
■ bgp: Displays BGP route information.
■ isis: Displays IS-IS route information.
■ ospf: Displays OSPF route information.
■ ospf-ase: Displays OSPF ASE route information.
■ ospf-nssa: Displays OSPF NSSA route information.
■ rip: Displays RIP route information.
■ inactive: With the parameter, this command displays the inactive route
information. Without the parameter, this command displays the active and
inactive route information.
■ verbose: With the verbose parameter, this command displays the verbose
routing information. Without the parameter, this command displays the route
summary.
Description
Using the display ip routing-table protocol command, you can view the routing
information of specified protocol.
Example
Display all direct connection routes summary.
<3Com> display ip routing-table protocol direct
DIRECT Routing tables:
Summary count: 4
DIRECT Routing tables status:<active>:
Summary count: 3
Destination/MaskProto Pre Cost NexthopInterface:
20.1.1.1/32DIRECT 00127.0.0.1InLoopBack0
127.0.0.0/8DIRECT 00127.0.0.1InLoopBack0
127.0.0.1/32DIRECT 00127.0.0.1InLoopBack0
DIRECT Routing tables status:<inactive>:
Summary count: 1
Destination/MaskProto PreCostNexthopInterface
210.0.0.1/32DIRECT 0 0127.0.0.1InLoopBack0
Display the static routing table.
<3Com> display ip routing-table protocol static
STATIC Routing tables:
Summary count: 1
STATIC Routing tables status:<active>:
Summary count: 0
STATIC Routing tables status:<inactive>:
Summary count: 1
Destination/Mask Proto Pre Cost Nexthop Interface
1.2.3.0/24 STATIC 60 0 1.2.4.5 Ethernet
2/0/0
540 CHAPTER 6: ROUTING PROTOCOL
View
Any view
Parameter
None
Description
Using the display ip routing-table radix command, you can view the routing table
information in a tree structure.
Example
View the routing table information in a tree structure.
<3Com> display ip routing-table radix
Radix tree for INET (2) inodes 7 routes 5:
+-32+--{210.0.0.1
+--0+
| | +--8+--{127.0.0.0
| | | +-32+--{127.0.0.1
| +--1+
| +--8+--{20.0.0.0
| +-32+--{20.1.1.1
View
Any view
Parameter
None
Description
Using the display ip routing-table statistics command, you can view the integrated
routing information.
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.
Example
Display the integrated routing information.
<3Com> display ip routing-table statistics
Routing tables:
Protorouteactiveaddeddeletedfreed
BGP 0 0 000
DIRECT5 4 5 00
RIP 0 0 000
STATIC0 0 0 00
Display Commands of the Routing Table 541
IS-IS0 0 0 00
OSPF 0 0 000
O_ASE0 0 0 00
O_NSSA0 0 0 00
Total 5 4 500
View
Any view
Parameter
None
Description
Using the display ip routing-table verbose command, you can 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
Display the verbose routing table information.
<3Com> display ip routing-table verbose
Routing Tables:
Generate Default: no
+ = Active Route, - = Last Active, = Both* = Next hop in use
Destinations: 4 Routes: 4
Holddown: 0 Delete: 9 Hidden: 0
**Destination: 127.0.0.0 Mask: 255.0.0.0
Protocol: Static Preference: 0
*NextHop: 127.0.0.1 Interface: 127.0.0.1(LO0)
State: <NoAdv Int Active Retain Rej>
Age: 19:31:06 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(LO0)
State: <NoAdv Int Active Retain>
Age: 114:03:05 Metric: 0/0
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:
View
Any view
Parameter
■ vpn-instance-name: VPN instance name.
■ ip-address: Destination IP address in dotted decimal format.
■ verbose: With the parameter, the command displays the verbose routing
information. Without the parameter, the command displays the route
summary.
Description
Using the display ip routing-table vpn-instance command, you can view RIP
information associated with vpn instance address family.
Given that both ip-address and verbose are configured in the command, you can
view all routes to the specified IP address in the VPN-instance, including the local
routes as well as the routes learned from the remote.
Example
Display details of the routes to 10.1.1.1 in the VPN-instance vpn1.
<3Com> display ip routing-table vpn-instance vpn1 10.1.1.1 verbose
Routing tables:
Generate Default: no
+ = Active Route, - = Last Active, = Both * = Next hop in use
Summary count: 2
**Destination: 10.1.1.1 Mask: 255.255.255.255
Protocol: DIRECT Preference: 0
*NextHop: 127.0.0.1 Interface: 127.0.0.1(InLoopBack0)
Vlinkindex: 0
State: <NoAdvise Int ActiveU Retain Gateway Unicast>
Age: 54 Cost: 0/0
**Destination: 10.1.1.0 Mask: 255.255.255.0
Protocol: DIRECT Preference: 0
*NextHop: 10.1.1.1 Interface: 10.1.1.1(LoopBack0)
Vlinkindex: 0
State: <Int ActiveU Retain Unicast>
Age: 54 Cost: 0/0
Static Route Configuration Commands 543
Static Route
Configuration
Commands
View
System view
Parameter
None
Description
Using the delete static-routes all command, you can 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.
For the related command, see display ip routing-table and ip route-static.
Example
Delete all the static routes configured on router.
[3Com] delete static-routes all
This will erase all unicast static routes and their configurations,
you must reconfigure all static routes
Are you sure to delete all the static routes?[Y/N]y
ip route-static Syntax
■ ip route-static ip-address { mask | mask-length } { interface-name |
nexthop-address } [ preference preference-value ] [ reject | blackhole ]
■ undo ip route-static ip-address { mask | mask-length } [ interface-name |
nexthop-address ] [ preference preference-value ]
■ ip route-static vpn-instance vpn-instance-name1 vpn-instance-name2 …
ip-address { mask | mask-length } { interface-name | [ vpn-instance
vpn-nexthop-name nexthop-address ] } [ public ] [ preference preference-value ]
[ reject | blackhole ]
■ undo ip route-static vpn-instance vpn-instance-name1 vpn-instance-name2 …
ip-address { mask | mask-length } { interface-name [ vpn-instance
vpn-nexthop-name | nexthop-address ] } [ public ] [ preference preference-value
]
544 CHAPTER 6: ROUTING PROTOCOL
View
System view
Parameter
■ ip-address: Destination IP address, in dotted decimal notation.
■ mask: Mask.
■ mask-length: Mask length. Since "1" s in the 32-bit mask are required to be
consecutive, the mask in dotted decimal notation can be replaced by
mask-length, which is the number of the consecutive "1" s in the mask.
■ interface-name: Specifies the outbound interface name of the static route. The
interfaces of the public network or under other vpn-instances can be taken as
the outbound interface of the static route.
■ vpn-instance-name: Indicates a name of VPN instance. It can take a maximum
of 6 values.
■ vpn-nexthop-name: Specifies the vpn-instance of the static route next hop.
■ nexthop-address: Specifies the next hop IP address (in dotted decimal notation)
of the static route.
■ preference-value: Preference level of the static route in the range from 1 to
255.
■ reject: Indicates an unreachable route.
■ blackhole: Indicates a blackhole route.
Description
Using the ip route-static command, you can configure a static route. Using the
undo ip route-static command, you can cancel the configured static route.
Using the ip route-static vpn-instance command, you can configure a static route.
In the application of multi-role host, you can configure a static route on a private
network to specify the interface of another private network or public network as
its outbound interface. Using the undo ip route-static vpn-instance command, you
can remove the static route configuration.
By default, the system can obtain the sub-net route directly connected with the
router. When configuring a static route, the default preference is 60 if it is not
specified. If it is not specified as reject or blackhole, the route will be reachable by
default.
Precautions when configuring static route:
■ When the destination IP address and the mask are both 0.0.0.0, it is the default
route. If it is failed to detect the routing table, a packet will be forwarded along
the default route.
■ For different configuration of preference level, flexible routing management
policy can be adopted. For example, configure multiple routes to the same
destination. Load sharing can be fulfilled by specifying the same preference for
the routes. Route backup can be realized by specifying different preferences.
■ To configure static route, either transmission interface or next hop address can
be specified, which one is adopted in practice depends on actual condition. For
the interfaces supporting the resolution from network address to link layer
address or point-to-point interface, transmission interface or next hop address
RIP Configuration Commands 545
can be specified. But for NBMA interfaces, such as the interface or dialing
interface encapsulated with X.25 or frame-relay, they support
point-to-multi-point. Except IP route is configured, secondary route, i.e. the
map from IP address to link layer address should be established on link layer. In
such condition, transmission interface cannot be specified and the next hop IP
address should be configured when configuring static route.
■ VT interface cannot be configured as outbound interface.
In some conditions (for example, the link layer is encapsulated with PPP),
transmission interface can be specified when opposite address cannot be learned
in router configuration. After specifying transmission interface, the configuration
of this router is unnecessary to be modified as opposite address changes.
Example
Configure the next hop of the default route as 129.102.0.2.
[3Com] ip route-static 0.0.0.0 0.0.0.0 129.102.0.2
Configure the static route, whose destination address is 100.1.1.1
and whose next-hop address is 1.1.1.2.
[3Com] ip route-static vpn-instance vpn1 100.1.1.1 16 vpn-instance
vpn1 1.1.1.2
RIP Configuration For the specific examples and parameter explanation of VPN instance, refer to
Commands “MPLS” module of this manual.
checkzero Syntax
checkzero
undo checkzero
View
RIP view
Parameter
None
Description
Using the checkzero command, you can check the zero field of RIP-1 packet. Using
the undo checkzero command, you can 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.
546 CHAPTER 6: ROUTING PROTOCOL
Example
Configure not to perform zero check for RIP-1 packet.
[3Com-rip] undo checkzero
debugging rip
Syntax
debugging rip { packet | receive | send }
View
User view
Parameter
■ packet: Enables the RIP packets debugging.
■ receive: Enables the RIP receiving packets debugging.
■ send: Enables the RIP sending packets debugging.
Description
Using the debugging rip command, you can enable the RIP packet debugging.
Using the undo debugging rip command, you can disable the RIP packet
debugging.
Users can learn the current information of receiving and sending RIP packets on
each interface by using this command.
Example
Enable the RIP packets debugging.
<3Com> debugging rip packet
View
RIP view
Parameter
■ value: Default routing cost to be set, ranging from 1 to 16.The default value is
1.
Description
Using the default cost command, you can configure the default routing cost of an
imported route. Using the undo default cost command, you can restore the
default value.
If no specific routing cost is specified when importing other protocol routes with
the import-route command, the importing will be performed with the default
routing cost specified by the default cost command.
For the related command, see import-route.
RIP Configuration Commands 547
Example
Set the default routing cost of importing other route protocol routes as 3.
[3Com-rip] default cost 3
View
Any view
Parameter
None
Description
Using the display rip command, you can view the current RIP running state and its
configuration information.
Example
Display the current running state and configuration information of the RIP
protocol.
<3Com> 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 Description of the output information of the display rip command
Item Description
RIP is turned on RIP is enabled.
public net VPN-Instance Public networks in the VPN-instance
Checkzero is on Enables checkzero of RIP.
Default cost : 1 The default cost of the imported route is 1.
Summary is on Enables route summary of RIP.
Preference : 100 The preference of RIP is 100.
Period update timer : 30 Setting on the three timers of RIP
Timeout timer : 180
Garbage-collection timer : 120
No peer router RIP has no peer router.
View
Any view
Parameter
■ vpn-instance vpn-instance-name: VPN instance name.
548 CHAPTER 6: ROUTING PROTOCOL
Description
Using the display rip vpn-instance command, you can view the related
configuration of VPN instance of RIP.
Example
None
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.
■ 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
Using the filter-policy export command, you can configure to filter the advertised
routing information by RIP. Using the undo filter-policy export command, you can
configure not to filter the advertised routing information.
By default, RIP does not filter the advertised routing information.
For the related commands, see acl, filter-policy import, and ip ip-prefix.
Example
Filter the advertised route information according to acl 3.
[3Com-rip] filter-policy 3 export
View
RIP view
RIP Configuration Commands 549
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.
Description
Using the filter-policy gateway command, you can configure to filter the received
routing information distributed from the specified address. Using the undo
filter-policy gateway command, you can configure not to filter the received routing
information distributed from the specified address.
Using the filter-policy import command, you can configure the filtering to the
received global routing information. Using the undo filter-policy import command,
you can 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.
For the related command, see acl, filter-policy export, and ip ip-prefix.
Example
Configure the filtering of the global routing information according to acl 3.
[3Com-rip] filter-policy 3 import
host-route Syntax
host-route
undo host-route
View
RIP view
Parameter
None
Description
Using the host-route command, you can control the RIP to accept the host route.
Using the undo host-route command, you can 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
Configure RIP to reject a host route.
[3Com-rip] undo host-route
550 CHAPTER 6: ROUTING PROTOCOL
import-route Syntax
import-route protocol [ cost value ] [ route-policy route-policy-name ]
undo import-route protocol
View
RIP view
Parameter
■ protocol: Specifies the source routing protocol to be imported by RIP. At
present, RIP can import the following routes: direct, ospf, ospf-ase, ospf-nssa,
static, and bgp and isis.
■ value: Cost value of the route to be imported, ranging from 1 to 16..
■ route-policy route-policy-name: Configured to import the route matching the
condition of the specified Route-policy only.
Description
Using the import-route command, you can import the routes of other protocols
into RIP. Using the undo import-route command, you can cancel the routes
imported from other protocols.
By default, RIP does not import any other routes.
The import-route command is used to import the route of another protocol by
using a certain value. RIP regards the imported 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 imported 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.
For the related command, see default cost.
Example
Import a static route with cost being 4.
[3Com-rip] import-route static cost 4
Set the default cost and import an OSPF route with the default cost.
[3Com-rip] default cost 3
[3Com-rip] import-route ospf
View
RIP view
Parameter
■ unicast: Unicast address.
■ vpn-instance-name: Associates the specified VPN instance with the IPv4
address family. Enter the MBGP address family view of RIP with this parameter.
RIP Configuration Commands 551
Description
Using the ipv4-family command, you can enter MBGP address family view of RIP.
Using the undo ipv4-family command, you can 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.
For the related command, see display rip vpn-instance.
Example
None
network Syntax
network network-address
undo network network-address
View
RIP view
Parameter
network-address: Address of the network enabled/disabled. It can be the IP
network address of any interface.
Description
Using the network command, you can enable Routing Information Protocol (RIP)
on the interface. Using the undo network command, you can cancel the RIP on
the interface.
By default, RIP is disabled on any interface.
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.
The undo network command is similar to the interface undo rip work command in
terms of function. But they are not identical. Their similarity is that the interface
using either command will not receive/transmit RIP routes. The difference between
them is that, in the case of undo rip work , other interfaces will still forward the
routes of the interface using the undo rip work command. In the case of undo
network, it is like to perform undo rip work command on the interface, and the
routes of corresponding interfaces cannot be transmitted by RIP. Therefore, the
packets transmitted to this interface cannot be forwarded.
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.
For the related command, see rip work.
552 CHAPTER 6: ROUTING PROTOCOL
Example
Enable the RIP on the interface with the network address as 129.102.0.0.
[3Com-rip] network 129.102.0.0
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
Using the peer command, you can configure the destination address of the peer to
which information is sent in unicast mode. Using the undo peer command, you
can 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.
Example
Specify the sending destination address 202.38.165.1.
[3Com-rip] peer 202.38.165.1
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
Using the preference command, you can configure the route preference of RIP.
Using the undo preference command, you can restore the default preference.
Every routing protocol has its own preference. Its default value is determined by
the specific routing policy. The preference will finally determine the routing
algorithm to obtain the optimal route in the IP routing table. This command can
be used to modify the RIP preference manually.
Example
Specify the RIP preference as 20.
RIP Configuration Commands 553
[3Com-rip] preference 20
reset Syntax
reset
View
RIP view
Parameter
None
Description
Using the reset command, you can reset the system parameters of RIP.
When you need to re-configure parameters of RIP, this command can be used to
restore the default setting.
Example
Reset the RIP system.
[3Com-rip] reset
rip Syntax
rip
undo rip
View
system view
Parameter
None
Description
Using the rip command, you can enable the RIP and enter the RIP view. Using the
undo rip command, you can 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.
The interface parameters configured previously would be invalid when RIP is disabled.
Example
Enable the RIP and enter the RIP view.
[3Com] rip
[3Com-rip]
554 CHAPTER 6: ROUTING PROTOCOL
View
Interface view
Parameter
■ simple: Simple text authentication mode.
■ password: Simple text authentication key, in character string format with 1 to
16 characters in simple text mode or 24 characters in cipher text mode.
■ md5: MD5 cipher text authentication mode.
■ key-string: MD5 cipher text authentication key, in character string format with
1 to 16 characters in simple text mode or 24 characters in cipher text mode.
■ key-id: MD5 cipher text authentication identifier, ranging from 1 to 255.
Description
Using the rip authentication-mode command, you can configure RIP-2
authentication mode and corresponding parameters. Using the undo rip
authentication-mode command, you can cancel the RIP-2 authentication.
RIP-1 does not support authentication. There are two RIP authentication modes:
simple text authentication and MD5 cipher text authentication. When MD5 cipher
text authentication mode is used, there are two types of packet formats. One of
them is described in RFC 1723, which was brought forward earlier. The other
format is the one described specially in RFC 2082. The router supports both of the
packet formats and the user can select either of them on demands.
For the related command, see rip version.
Example
Specify Interface serial1/0/0 to use the simple text authentication with the key as
aaa.
[3Com] interface serial1/0/0
[3Com-Serial1/0/0] rip version 2
[3Com-Serial1/0/0] rip authentication-mode simple aaa
View
Interface view
Parameter
■ usual: Specifies the MD5 cipher text authentication packet to use the general
packet format (RFC1723 standard format).
■ nonstandard: Specifies the MD5 cipher text authentication packet to use a
nonstandard packet format described in RFC2082.
RIP Configuration Commands 555
Description
Using the rip authentication-mode md5 type command, you can configure md5
type of RIP-2 authentication
By default, use nonstandard type.
RIP-2 packets can be in the following two formats when MD5 authentication is
adopted: The earlier raised format is described in RFC1723, which is adopted by
Gated. Another format fits into RFC2082 standard, which is adopted by part of
the routers in the industry.
For the related commands, see rip authentication-mode and rip version.
Example
Set MD5 authentication at Serial0, and the packet type is "nonstandard".
[3Com] interface serial1/0/0
[3Com-Serial1/0/0] rip version 2
[3Com-Serial1/0/0] rip authentication-mode md5 type nonstandard
View
Interface view
Parameter
None
Description
Using the rip input command, you can allow an interface to receive RIP packets.
Using the undo rip input command, you can 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.
For the related command, see rip output and rip work.
Example
Specify the interface serial1/0/0 not to receive RIP packets.
[3Com-serial1/0/0] undo rip input
View
Interface view
Parameter
■ value: Additional route metric added when receiving a packet, ranging from 0
to 16. By default, the value is 1.
Description
Using the rip metricin command, you can configure the additional route metric
added to the route when an interface receives RIP packets. Using the undo rip
metricin command, you can restore the default value of this additional route
metric.
This command is valid for the routes distributed by the local network and other
routes imported by other routes. This command is invalid for the routes imported
by the local router.
For the related command, see rip metricout.
Example
Specify the additional route metric to 2 when the interface serial1/0/0 receives RIP
packets.
[3Com] interface serial1/0/0
[3Com-serial1/0/0] rip metricin 2
View
Interface view
Parameter
■ value: Additional route metric added when transmitting a packet, ranging from
1 to 16. By default, the value is 1.
Description
Using the rip metricout command, you can configure the additional route metric
to the route when an interface transmits RIP packets. Using the undo rip metricout
command, you can restore the default value of this additional route metric.
This command is valid for the routes distributed by the local network and other
routes imported by other routes. This command is invalid for the routes imported
by the local router.
For the related command, see rip metricin.
Example
Set the additional route metric to 2 when the interface serial1/0/0 transmits RIP
packets.
[3Com] interface serial1/0/0
[3Com-serial1/0/0] rip metricout 2
RIP Configuration Commands 557
View
Interface view
Parameter
None
Description
Using the rip output command, you can configure an interface to transmit RIP
packets to the external. Using the undo rip output command, you can 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 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.
For the related command, see rip input and rip work.
Example
Disable the interface serial1/0/0 to transmit RIP packets.
[3Com] interface serial1/0/0
[3Com-serial1/0/0] undo rip output
View
Interface view
Parameter
None
Description
Using the rip split-horizon command, you can configure an interface to use split
horizon when transmitting RIP packets. Using the undo rip split-horizon
command, you can 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.
558 CHAPTER 6: ROUTING PROTOCOL
Normally, split horizon is necessary for reducing route loop. Only in some special
cases, split horizon should be disabled to ensure the correct execution of
protocols.
Example
Specify the interface serial1/0/0 not to use split horizon when processing RIP
packets.
[3Com] interface serial1/0/0
[3Com-serial1/0/0] undo rip split-horizon
View
Interface view
Parameter
■ 1: Interface version is RIP-1.
■ 2: Interface version is RIP-2. By default, multicast is used.
■ broadcast: Transmission mode of RIP-2 packet is broadcast.
■ multicast: Transmission mode of RIP-2 packet is multicast.
Description
Using the rip version command, you can configure the version of RIP packets on
an interface. Using the undo rip version command, you can 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
Configure the interface serial1/0/0 as RIP-2 broadcast mode.
[3Com] interface serial1/0/0
[3Com-serial1/0/0] rip version 2 broadcast
View
Interface view
Parameter
None
Description
Using the rip work command, you can enable the running of RIP on an interface.
Using the undo rip work command, you can 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.
For the related commands, see network, rip input, and rip output.
Example
Disable the interface serial1/0/0 to run the RIP.
[3Com] interface serial1/0/0
[3Com-serial1/0/0] undo rip work
summary Syntax
summary
undo summary
View
RIP view
Parameter
None
Description
Using the summary command, you can enable RIP-2 automatic route
summarization. Using the undo summary command, you can disable RIP-2
automatic route summarization.
By default, RIP-2 route summarization is enabled.
Route aggregation can be performed to reduce the routing traffic on the network
as well as to reduce the size of the routing table. If RIP-2 is used, route
summarization function can be disabled with the undo summary command, when
it is necessary to broadcast the subnet route.
RIP-1 does not support subnet mask. Forwarding subnet route may cause
ambiguity. Therefore, RIP-1 uses route summarization all the time. The undo
summary command is invalid for RIP-1.
For the related command, see rip version.
Example
Set RIP version on the interface serial1/0/0 as RIP-2 and disable the route
summarization function.
560 CHAPTER 6: ROUTING PROTOCOL
timers Syntax
timers { update update-timer-length | timeout timeout-timer-length } *
undo timers { update | timeout } *
View
RIP view
Parameters
■ update-timer-length: Period update value, measured in seconds ranging from 1
to 3600. The default value is 30 seconds.
■ timeout-timer-length: Timeout value, measured in seconds ranging from 1 to
3600. The default value is 180 seconds.
Description
Using the timers command, you can modify value for the three timers, Period
update, Timeout and Garbage-collection, of RIP. Using the undo timers command,
you can 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.
For the related command, see display rip.
Example
Set timer Period update to 10 seconds and timer Timeout to 30 seconds.
[3Com] rip
[3Com-rip] timers update 10 timeout 30
OSPF Configuration
Commands
abr-summary Syntax
abr-summary ip-address mask [ advertise | not-advertise ]
undo abr-summary ip-address mask
OSPF Configuration Commands 561
View
OSPF area view
Parameter
■ ip-address: Network segment address.
■ mask: Network mask.
■ Advertise: Advertises only the summarized route.
■ Notadvertise: Suppresses the advertisement of the routes in the matched
range.
Description
Using the abr-summary command, you can configure the route aggregation on
the area border router (ABR). Using the undo abr-summary command, you can
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.
[3Com-ospf-1] area 1
[3Com-ospf-1-area-0.0.0.1] network 36.42.10.0 0.0.0.255
[3Com-ospf-1-area-0.0.0.1] network 36.42.110.0 0.0.0.255
[3Com-ospf-1-area-0.0.0.1] abr-summary 36.42.0.0 255.255.0.0
area Syntax
area area-id
undo area area-id
View
OSPF view, OSPF area 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
Using the area command, you can enter OSPF area view. Using the undo area
command, you can cancel the designated area.
Example
Enter area 0 view.
[3Com-ospf-1] area 0
562 CHAPTER 6: ROUTING PROTOCOL
[3Com-ospf-1-area-0.0.0.0]
asbr-summary Syntax
asbr-summary ip-address mask [ not-advertise | tag value ]
undo asbr-summary ip-address mask [ not-advertise | tag value ]
View
OSPF view
Parameter
■ ip-address: Matched IP address in dotted decimal notation.
■ mask: IP address mask in dotted decimal notation.
■ not-advertise: Not advertises routes matching the specified IP address and
mask. Aggregated route will be advertised without this parameter.
■ tag-value: Control advertisement of routes via Route-policy. It is in the range
from 0 to 4294967295. If it is not specified, it is 1 by default.
Description
Using the asbr-summary command, you can configure summarization of imported
routes by OSPF. Using the undo asbr-summary command, you can cancel the
summarization.
By default, summarization of imported routes is disabled.
After the summarization of imported routes is configured, if the local router is an
autonomous system border router (ASBR), this command summarizes the
imported Type-5 LSAs in the summary address range. When NSSA is configured,
this command will also summarize the imported Type-7 LSAs in the summary
address range.
If the local router acts as both an ABR and a switch router in the NSSA, this
command summarizes Type-5 LSAs transformed from Type-7 LSAs. If the router is
not the router in the NSSA, the summarization is disabled.
For the related command, see display ospf asbr-summary.
Example
Set summarization of 3Com imported routes.
[3Com-ospf-1] asbr-summary 10.2.0.0 255.255.0.0 not-advertise
authentication-mode Syntax
authentication-mode [ simple | md5 ]
undo authentication-mode
View
OSPF area view
Parameter
■ simple: Simple text authentication mode.
OSPF Configuration Commands 563
Description
Using the authentication-mode command, you can configure one area of OSPF to
support the authentication attribute. Using the undo authentication-mode
command, you can cancel the authentication attribute of this area.
By default, an area does not support authentication attribute.
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.
For the related command, see ospf authentication-mode.
Example
Enter area 0 view.
[3Com-ospf-1] area 0
Specify the OSPF area 0 to support MD5 cipher text authentication.
[3Com-ospf-1-area-0.0.0.0] authentication-mode md5
View
User view
Parameter
■ process-id: OSPF process number. If no process number is specified, all the
process debugging is enabled or disabled.
■ event: Enables OSPF event information debugging.
■ packet: Enables OSPF packet information debugging. There are five sorts of
packets in OSPF as follows:
■ ack: LSAck packet.
■ dd: Database Description packet.
■ hello: Hello message.
■ request: Link State Request packet.
■ update: Link State Update packet.
■ Lsa-generate: Enables OSPF LSA packet information debugging.
■ spf: Enables the debugging of the calculation of the OSPF shortest-path tree.
■ te: Enables the debugging of OSPF TE.
564 CHAPTER 6: ROUTING PROTOCOL
Description
Using the debugging ospf command, you can enable OSPF debugging. Using the
undo debugging ospf command, you can disable the function.
In OSPF multi-process, using debugging command, you can enable the debugging
of all the process simultaneously or one of the processes only.
If no process number is specified in the debugging command, the command is
valid to all the processes. And it keeps the state during the router running period
no matter OSPF process exits or not. In this way, the execution of this command
will enable/disable each enabled OSPF debugging. At the same time, the
debugging specified by this command will be enabled automatically when new
OSPF is enabled.
If there is a specified process number in the debugging command, only the
specified process is debugged. The configuration command is invalid if OSPF is not
enabled. And the debugging state will not be kept after exiting the process, either.
For the related command, see display debugging ospf.
Example
Enable the information debugging of OSPF packets.
<3Com> debugging ospf packet
View
OSPF view
Parameter
■ value: Default routing cost of external route imported by OSPF, ranging from 0
to 16777214. By default, its value is 1.
Description
Using the default cost command, you can configure the default cost for OSPF to
import external routes. Using the undo default cost command, you can restore the
default value of the default routing cost configured for OSPF to import external
routes.
Since OSPF can import external routing information and propagate it to the entire
autonomous system, it is necessary to specify the default routing cost for the
protocol to import external routes.
If multiple OSPFs are enabled, the command is valid to this process only.
Example
Specify the default routing cost for OSPF to import external routes as 10.
[3Com-ospf-1] default cost 10
View
OSPF view
Parameter
■ seconds: Default interval for importing external routes. Its unit is second and
the value ranges from 1 to 2147483647. By default, the interval for OSPF to
import external routes is 1 second.
Description
Using the default interval command, you can configure the default interval for
OSPF to import external routes. Using the undo default interval command, you can
restore the default value of the default interval of importing external routes.
Because OSPF can import the external routing information and broadcast it to the
entire autonomous system, it is necessary to specify the default interval for the
protocol to import external routes.
Example
Specify the default interval for OSPF to import external routes as 10 seconds.
[3Com-ospf-1] default interval 10
View
OSPF view
Parameter
■ routes: Default value to the imported external routes in a unit time, ranging
from 200 to 2147483647. By default, the value is 1000.
Description
Using the default limit command, you can configure default value of maximum
number of imported routes. Using the undo default limit command, you can
restore the default value.
OSPF can import external route information and broadcast them to the whole
autonomous system, so it is necessary to regulate the default value of external
route information imported in one process.
For the related command, see default interval.
Example
Specify the default value of OSPF importing external routes as 200.
[3Com-ospf-1] default limit 200
View
OSPF view
Parameter
■ tag: Default tag, ranging from 0 to 4294967295.
Description
Using the default tag command, you can configure the default tag of OSPF when
it redistributes an external route. Using the undo default tag command, you can
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.
For the related command, see default type.
Example
Set the default tag of OSPF imported external route of the autonomous system as
10.
[3Com-ospf-1] default tag 10
View
OSPF view
Parameter
■ type 1: External routes of type 1.
■ type 2: External routes of type 2.
Description
Using the default type command, you can configure the default type when OSPF
redistributes external routes. Using the undo default type command, you can
restore the default type when OSPF redistributes external routes.
By default, the external routes of type 2 are imported.
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 imported.
For the related command, see default tag.
Example
Specify the default type as type 1 when OSPF imports an external route.
[3Com-ospf-1] default type 1
OSPF Configuration Commands 567
default-cost Syntax
default-cost value
undo default-cost
View
OSPF area 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
Using the default-cost command, you can configure the cost of the default route
transmitted by OSPF to the STUB or NSSA area. Using the undo default-cost
command, you can 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. Using the default-cost command, you can 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.
For the related commands, see 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.
[3Com-ospf-1] area 1
[3Com-ospf-1-area-0.0.0.1] network 20.0.0.0 0.255.255.255
[3Com-ospf-1-area-0.0.0.1] stub
[3Com-ospf-1-area-0.0.0.1] default-cost 60
default-route-advertise Syntax
default-route-advertise [ always ] [ cost cost-value ] [ type type-value ] [
route-policy route-policy-name ]
undo default-route-advertise [ always ] [ cost ] [ type ] [ route-policy ]
View
OSPF view
Parameter
■ always: Only available for the ASBR. 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.
568 CHAPTER 6: ROUTING PROTOCOL
■ 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
Using the default-route-advertise command, you can make the system generate a
default route to OSPF area. Using the undo default-route-advertise command, you
can cancel the generating of default route.
By default, OSPF does not generate default route.
Using the default-route-advertise command at ABR, you can generate a default
route which is advertised via the Type-5 LSA or Type-7 LSA no matter whether
there is a default route in the routing table.
An OSPF router after the default-route-advertise command is executed will
become an ASBR, as is similar to executing the import-route command on an OSPF
router. But you cannot import the default route into the OSPF area with the
import-route command.
In addition, the default-route-advertise command is not available for the Stub
area. For the ABR or ASBR in NSSA, the default-route-advertise command is
equivalent to the nssa default-route-advertise command in terms of effect.
This command is valid for the current process only if multiple OSPF processes are
enabled.
For the related commands, see import-route and nssa.
Example
If local route has default route, the LSA of default route will be generated,
otherwise it won’t be generated.
[3Com-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.
[3Com-ospf-1] default-route-advertise always
View
Any view
Description
Using the display debugging ospf command, you can view the global OSPF
debugging state and each process debugging state.
For the related command, see debugging ospf.
Example
View the global OSPF debugging state and each process debugging state.
OSPF Configuration Commands 569
View
Any view
Parameter
None
Description
Using the display ospf abr-asbr command, you can view the information about the
Area Border Router (ABR) and Autonomous System Border Router (ASBR) of OSPF.
Example
Display the information of the OSPF ABR and ASBR.
<3Com> display ospf abr-asbr
Routing Table to ABR and ASBR
Destination Area Cost Type Nexthop
Interface
Intra 1.2.3.9 0.0.0.0 1 ASBR 1.2.3.9
Ethernet2/0/0
View
Any view
Parameter
■ ip-address: Matched IP address, in dotted decimal notation.
■ mask: IP address mask in dotted decimal notation.
Description
Using the display ospf asbr-summary command, you can view the summary
information of OSPF imported routes.
If the parameters are not configured, the summary information of all imported
routes will be viewed.
For the related command, see asbr-summary.
570 CHAPTER 6: ROUTING PROTOCOL
Example
Display the summary information of all OSPF imported routes.
<3Com> display ospf asbr-summary
Total summary address count: 2
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
View
Any view
Parameter
■ process-id: Process number of OSPF. If no process number is specified, this
command displays the main information of all OSPF processes in configuration
sequence.
Description
Using the display ospf brief command, you can view the summary of OSPF.
Example
Display the OSPF summary.
<3Com> display ospf brief
RouterID: 3.3.3.3 Border Router: Area
spf-schedule-interval: 5
Routing preference: Inter/Intra: 10 External: 150
Default ASE parameters: Metric: 1 Tag: 0.0.0.1 Type: 2
SPF computation count: 13
Area Count: 2 Nssa Area Count: 0
Area 0.0.0.0:
Authtype: none Flags: <>
SPF scheduled: <>
Interface: 20.0.0.2 (Ethernet1/0/0)
Cost: 1 State: BackupDR Type: Broadcast
Priority: 1
Designated Router: 20.0.0.1
Backup Designated Router: 20.0.0.2
Timers: Hello 10, Dead 40, Poll 0, Retransmit 5, Transmit Delay
1
OSPF Configuration Commands 571
Area 0.0.0.1:
Authtype: none Flags: <Transit>
SPF scheduled: <>
Interface: 40.0.0.1 (LoopBack0) --> 40.0.0.1
Cost: 1562 State: P To P Type: PointToPoint
Priority: 1
Timers: Hello 10, Dead 40, Poll 0, Retransmit 5, Transmit Delay
1
Display the routing information of OSPF 100.
<3Com> display ospf 100
OSPF Process 100 with Router ID 1.2.3.4
OSPF Protocol Information
RouterID: 1.2.3.4
Spf-schedule-interval: 5
Routing preference: Inter/Intra: 10 External: 150
Default ASE parameters: Metric: 1 Tag: 0.0.0.1 Type: 2
SPF computation count: 0
Area Count: 0 Nssa Area Count: 0
View
Any view
Parameter
None
Description
Using the display ospf cumulative command, you can view the OSPF cumulative
information.
Example
Display the OSPF cumulative information.
<3Com> display ospf cumulative
IO Statistics
Type InputOutput
Hello 225 437
DB Description7886
Link-State Req1818
Link-State Update 4853
Link-State Ack2521
ASE: 1 Checksum Sum: FCAF
LSAs originated by this router
Router: 50SumNet: 40SumASB: 2
LSAs Originated: 92 LSAs Received: 33
572 CHAPTER 6: ROUTING PROTOCOL
Area 0.0.00.0:
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: 0sumasb: 1sumnet: 1
Routing Table:
Intra Area: 2 Inter Area: 0ASE: 1
View
Any view
Parameter
None
Description
Using the display ospf error command, you can view the statistics of error
information which OSPF received.
Example
Display the statistics of error information which OSPF received .
<3Com> display ospf error
OSPF packet error statistics:
0: IP: received my own packet0: OSPF: bad packet type
0: OSPF: bad version0: OSPF: bad checksum
0: OSPF: bad area id0: OSPF: area mismatch
0: OSPF: bad virtual link0: OSPF: bad authentication type
0: OSPF: bad authentication key 0: OSPF: packet too small
0: OSPF: packet size > ip length 0: OSPF: transmit error
0: OSPF: interface down0: OSPF: unknown neighbor
0: HELLO: netmask mismatch0: HELLO: hello timer mismatch
0: HELLO: dead timer mismatch0: HELLO: extern option mismatch
0: HELLO: router id confusion0: HELLO: virtual neighbor unknown
0: HELLO: NBMA neighbor unknown 0: DD: neighbor state low
0: DD: router id confusion0: DD: extern option mismatch
0: DD: unknown LSA type 0: LS ACK: neighbor state low
0: LS ACK: bad ack0: LS ACK: duplicate ack
0: LS ACK: unknown LSA type 0: LS REQ: neighbor state low
0: LS REQ: empty request0: LS REQ: bad request
0: LS UPD: neighbor state low0: LS UPD: newer self-generate LSA
0: LS UPD: LSA checksum bad0: LS UPD:received less recent LSA
0: LS UPD: unknown LSA type 0: OSPF routing: next hop not exist
0: DD: MTU option mismatch
View
Any view
Parameter
■ interface-type: Interface type
■ port-number: Interface number.
Description
Using the display ospf interface command, you can view the OSPF interface
information.
Example
Display the OSPF ethernet2/0/0 interface information.
<3Com> display ospf interface ethernet2/0/0
Interface: 10.110.0.2 (Ethernet2/0/0)
Cost: 1 State: BackupDR Type: Broadcast
Priority: 1
Designated Router: 10.110.0.1
Backup Designated Router: 10.110.0.2
Timers: Hello 10, Dead 40, Poll 0, Retransmit 5, Transmit Delay 1
View
Any view
Parameter
■ area-id: ID of the OSPF area, represented by decimal integer ranging from 0 to
4294967295 or in IP address format.
■ 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.
■ 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..
574 CHAPTER 6: ROUTING PROTOCOL
Description
Using the display ospf lsdb command, you can view the database
information about OSPF connecting state.
Example
Display the database information about OSPF connecting state.
<3Com> display ospf lsdb
OSPF Process 1 with Router ID 123.1.1.1
Link State Database
Area: 0.0.0.0
Type LinkState ID AdvRouter Age Len Sequence Metric Where
Rtr 1.1.1.1 1.1.1.1 563 36 80000008 0
SpfTree
Net 1.1.1.2 123.1.1.1 595 32 80000001 0
SpfTree
AS External Database:
Type LinkState ID AdvRouter Age Len Sequence Metric Where
ASE 1.1.0.0 1.1.1.1 561 36 80000001 1
Uninitialized
ASE 123.1.1.1 1.1.1.1 561 36 80000001 1
Uninitialized
Area: 0.0.0.1
type : NSSA
ls id : 1.1.0.0
adv rtr : 1.1.1.1
ls age : 93
len : 36
seq : 80000002
chksum : 0x3c66
options : (No Type 7/5 translation, DC)
Net mask : 255.255.0.0
Tos 0 metric: 1
E type : 2
Forwarding Address :2.2.2.1
OSPF Configuration Commands 575
Tag: 1
Area: 0.0.0.1
Type LinkState ID AdvRouter Age Len Sequence Metric Where
Stub 40.0.0.0 3.3.3.3 -1 24 0 0 SpfTree
ASB 20.0.0.1 3.3.3.3 1524 28 80000003 1 SumAsb
List
Area: 0.0.0.0
Type LinkState ID AdvRouter Age Len Sequence Metric Where
OSPF Configuration Commands 577
Area: 0.0.0.1
Type LinkState ID AdvRouter Age Len Sequence Metric Where
Rtr 1.1.1.1 1.1.1.1 539 36 8000000e 0
SpfTree
SNet 1.1.0.0 1.1.1.1 445 28 8000000a 1 Inter
List
ASB 123.1.1.1 1.1.1.1 445 28 80000007 1 SumAsb
List
AS External Database:
Type LinkState ID AdvRouter Age Len Sequence Metric Where
ASE 100.0.0.0 1.1.1.1 849 36 8000000a 2 Ase
List
ASE 1.1.0.0 1.1.1.1 737 36 8000000e 1 Ase
List
View
Any view
Parameter
None
Description
Using the display ospf nexthop command, you can view the information about the
next-hop
Example
Display the OSPF next-hop information.
<3Com> display ospf nexthop
Address Type Refcount Intf Addr Intf Name
--------------------------------------------------------------------
-
202.38.160.1Direct 3202.38.160.1 Interface serial2/0/0
202.38.160.2Neighbor 1202.38.160.1 Interface serial2/0/0
View
Any view
Parameter
brief: Brief information of neighbors in areas.
578 CHAPTER 6: ROUTING PROTOCOL
Description
Using the display ospf peer command, you can view the information about the
neighbors in OSPF areas.
Using the display ospf peer brief command, you can 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
View the information of OSPF peer.
<3Com> display ospf peer
Area 0.0.0.0 interface 1.1.1.1(Serial2/0/0)'s neighbor(s)
RouterID: 1.1.1.3 Address: 1.1.1.3
State: Full Mode: Nbr is Master Priority: 1
DR: 1.1.1.3 BDR: 1.1.1.1
Dead timer expires in 31s
Neighbor is comes for 00:08:24
View
Any view
Parameter
None
Description
Using the display ospf request-queue command, you can view the information
about the OSPF request-queue.
Example
View the information about the OSPF request-queue.
<3Com> display ospf request-queue
The Router's Neighbors is
RouterID: 103.160.1.1 Address: 103.169.2.5
OSPF Configuration Commands 579
View
Any view
Parameter
None
Description
Using the display ospf retrans-queue command, you can view the information
about the OSPF retransmission queue.
Example
View the information about the OSPF retransmission queue.
<3Com> display ospf retrans-queue
OSPF Process 200 with Router ID 103.160.1.1
Retransmit List
View
Any view
Parameter
None
Description
Using the display ospf routing command, you can view the information about
OSPF routing table.
Example
View the routing table information related to OSPF.
<3Com> display ospf routing
Routing for Network
580 CHAPTER 6: ROUTING PROTOCOL
Total Nets: 2
Intra Area: 2 Inter Area: 0 ASE: 0 NSSA: 0
View
Any view
Parameter
None
Description
Using the display ospf vlink command, you can view the information about OSPF
virtual links.
Example
View OSPF virtual links information.
<3Com> display ospf vlink
Virtual-link Neighbor-id -> 1.1.1.1, State: Down
Cost: 0 State: Down Type: Virtual
Transit Area: 0.0.0.1
Timers: Hello 10, Dead 40, Poll 0, Retransmit 5, Transmit Delay 1
View
OSPF view
Parameter
■ acl-number: Access control list number.
■ ip-prefix-name Name of the address prefix list.
■ routing-protocol: Protocol advertising the routing information, including direct,
isis, bgp, rip and static at present.
Description
Using the filter-policy export command, you can configure the rule of OSPF
filtering the advertised routing information. Using the undo filter-policy export
command, you can cancel the filtering rules that have been set.
By default, no filtering of the distributed routing information is performed.
OSPF Configuration Commands 581
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
configure the filtering conditions for the routing information to be advertised.
Only the routing information passing the filtration can be advertised.
For the related commands, see acl and ip ip-prefix
Example
Configure OSPF that only advertises the routing information permitted by acl 1.
[3Com] acl number 1
[3Com-acl-basic-1] rule permit source 11.0.0.0 0.255.255.255
[3Com-acl-basic-1] rule deny source any
[3Com-ospf] filter-policy 1 export
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
Using the filter-policy import command, you can configure the OSPF rules of
filtering the routing information received. Using the undo filter-policy import
command, you can 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.
Using the filter-policy import command, you can 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.
582 CHAPTER 6: ROUTING PROTOCOL
Example
Filter the received routing information according to the rule defined by the access
control list 2.
[3Com] acl number 2
[3Com-acl-basic-2] rule permit source 20.0.0.0 0.255.255.255
[3Com-acl-basic-2] rule deny source any
[3Com-ospf-1] filter-policy 2 import
import-route Syntax
import-route protocol [ cost value ] [ type value ] [ tag value ] [ route-policy
route-policy-name ]
undo import-route protocol
View
OSPF view
Parameter
■ protocol: Specifies the source routing protocol that can be imported. At
present, it includes direct, rip, bgp, isis, static, ospf, ospf-ase, and ospf-nssa.
■ ospf process-id: Imports 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: Imports 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: Imports 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.
■ route-policy route-policy-name: Imports only the routes matching the specified
Route-policy.
Description
Using the import-route command, you can import the information of another
routing protocol. Using the undo import-route command, you can cancel the
imported external routing information.
By default, the routing information of other protocols is not imported.
Example
Specify an imported RIP route as the route of type 2, with the route tag as 33 and
the route cost as 50.
[3Com-ospf-1] import-route rip type 2 tag 33 cost 50
Specify OSPF process 100 to import the route found by OSPF 160.
[3Com-ospf-160] import-route ospf 160
network Syntax
network ip-address wildcard
undo network ip-address wildcard
OSPF Configuration Commands 583
View
OSPF area view
Parameter
■ ip-address: Address of the network segment where the interface locates.
■ wildcard: IP address wildcard mask, which is similar to the reversed form of the
mask of IP address. But when configure this parameter, you can type it as mask
of IP address, it could be translated as wildcard mask by VRP system.
Description
Using the network command, you can configure the interface running OSPF. Using
the undo network command, you can cancel the interface running OSPF.
By default, the interface does not belong to any area.
To run the OSPF protocol on one interface, the master IP address of this interface
must be in the range of the network segment specified by this command. If only
the slave IP address of the interface is in the range of the network segment
specified by this command, this interface will not run OSPF protocol.
After OSPF multi-instance is configured, different OSPF processes are bound with
different VPN instances. 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. Otherwise, the
later configured command cannot be valid and the following will be displayed:
Network already set in OSPF process xx, that is, if network 10.1.0.0 0.0.255.255 is
enabled in process 100, network 10.1.0.0 0.0.255.255, network 10.1.1.0
0.0.0.255 or network 10.0.0.0 0.255.255.255 will fail to be enabled in other
OSPF processes.
CAUTION: OSPF configuration can only enable the interfaces that belong to the
same VPN instance.
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.
[3Com-ospf] area 6
[3Com-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.
[3Com] router id 10.110.1.9
[3Com] ospf 100
[3Com-ospf-100] area 2
[3Com-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.
584 CHAPTER 6: ROUTING PROTOCOL
nssa Syntax
nssa [ default-route-advertise ] [ no-import-route ] [ no-summary ]
undo nssa
View
OSPF area view
Parameter
■ default-route-advertise: Only available for the NSSA ABR or ASBR. When using
the parameter at NSSA ABR, you can 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, you can 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 imported in to the NSSA as
Type-7 LSAs. This parameters is available for the NSSA ABR and for the ASBR in
OSPF AS, to ensure all external route information is imported 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
Using the nssa command, you can configure an area as NSSA area. Using the
undo nssa command, you can cancel the function.
By default, NSSA area is not configured.
For all the routers in the NSSA area, the command nssa must be used to configure
the area as NSSA .
Example
Configure area 1 as NSSA.
[3Com-ospf-1] area 1
[3Com-ospf-1-area-0.0.0.1] network 10.110.0.0 0.255.255.255
[3Com-ospf-1-area-0.0.0.1] nssa
opaque-capability Syntax
opaque-capability enable
undo opaque-capability
OSPF Configuration Commands 585
View
OSPF view
Parameter
None
Description
Using the opaque-capability enable command, you can enable the Opaque
capability of OSPF. Using the undo opaque-capability command, you can disable
the Opaque capability of OSPF.
If the application based on Opaque LSA is enabled, for example, the area TE
capability is enabled, the Opaque capability cannot be disabled.
Example
Enable Opaque capability.
[3Com-ospf-100] opaque-capability enable
ospf Syntax
ospf [ process-id ]
undo ospf [ process-id ]
View
System view
Parameter
■ process-id: Number of OSPF. If no process number is specified, the default
number 1 is used.
Description
Using the ospf command, you can enable the OSPF protocol. Using the undo ospf
command, you can disable the OSPF protocol.
After enabling OSPF protocol, the user can make the corresponding configuration
in OSPF view.
By default, the system does not run the OSPF protocol.
VRP supports OSPF multi-process. Multiple OSPF processes can be enabled by
specifying different process numbers on a router.
It is suggested that user should specify router-id with parameter router-id when
enabling OSPF. Different router-ids should be specified for different processes if
multiple processes are enabled on the router.
For the related command, see network.
Example
Enable the running of the OSPF protocol.
[3Com] router id 10.110.1.8
[3Com] ospf
586 CHAPTER 6: ROUTING PROTOCOL
ospf Syntax
authentication-mode ospf authentication-mode { simple password | md5 key-id key }
undo ospf authentication-mode { simple | md5 }
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
Using the ospf authentication-mode command, you can configure the
authentication mode and key between adjacent routers. Using the undo ospf
authentication-mode command, you can cancel the authentication key that has
been set.
By default, the interface does not authenticate the OSPF packets.
The passwords for authentication keys of the routers on the same network
segment must be identical. In addition, using authentication-mode command, you
can set the authentication type of the area authentication key so as to validate the
configuration.
For the related command, see authentication-mode.
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 3Com.
[3Com-ospf-1] area 1
[3Com-ospf-1-area-0.0.0.1] network 131.119.0.0 0.0.255.255
[3Com-ospf-1-area-0.0.0.1] authentication-mode md5
[3Com-ospf-1-area-0.0.0.1] interface serial 1/0/0
[3Com-Serial1/0/0] ospf authentication-mode md5 15 3Com
View
Interface view
Parameter
■ value: Cost for running OSPF protocol, ranging from 1 to 65535.
Description
Using the ospf cost command, you can configure different packet sending costs so
as to send packets from different interfaces. Using the undo ospf cost command,
you can restore the default costs.
By default, the interface automatically calculates the costs required for running
OSPF protocol according to the current Baud rate.
Example
Specify the cost spent when an interface runs OSPF as 33.
[3Com] interface serial1/0/0
[3Com-Serial1/0/0] ospf cost 33
View
Interface view
Parameter
■ value: Interface priority for electing the "designated router", ranging from 0 to
255. By default, the value is 1.
Description
Using the ospf dr-priority command, you can configure the priority for electing the
"designated router" on an interface. Using the undo ospf dr-priority command,
you can 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.
Example
Set the priority of the interface Ethernet1/0/0 to 8, when electing the DR.
[3Com] interface Ethernet1/0/0
[3Com-Ethernet1/0/0] ospf dr-priority 8
View
System view
588 CHAPTER 6: ROUTING PROTOCOL
Parameter
■ process-id: Number of OSPF process.
Description
Using the ospf mib-binding command, MIB operation can be bound on the
specified OSPF process. Using the undo ospf mib-binding command, you can
restore the default configuration.
MIB operation is always bound on the first process enabled by OSPF protocol.
Using the this command, MIB operation can be bound on other OSPF processes.
Using the undo ospf mib-binding command, you can 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
Bind MIB operation on OSPF process 100.
[3Com] ospf mib-binding 100
Cancel MIB operation binding
[3Com] undo ospf mib-binding
View
Interface view
Parameter
None
Description
Using the ospf mtu-enable command, you can enable the interface to write MTU
value when sending DD packets. Using the undo ospf mtu-enable command, you
can 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.
[3Com] interface Ethernet1/0/0
[3Com-Ethernet1/0/0] ospf mtu-enable
OSPF Configuration Commands 589
View
Interface view
Parameter
■ broadcast: Changes the interface network type to broadcast.
■ nbma: Changes the interface network type to Non-Broadcast Multicast Access.
■ p2mp: Changes the interface network type to point-to-multipoint.
■ p2p: Changes the interface network type to point-to-point.
Description
Using the ospf network-type command, you can configure the network type of
OSPF interface. Using the undo ospf network-type command, you can restore the
default network type of the OSPF interface.
OSPF divides networks into four types by link layer protocol:
■ Broadcast: If Ethernet is adopted, OSFP defaults the network type to broadcast.
■ Non-Broadcast Multi-access (nbma): If Frame Relay, ATM, HDLC or X.25 is
adopted, OSPF defaults the network type to NBMA.
■ 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.
■ 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.
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.
Example
Set the interface serial1/0/0 to NBMA type.
590 CHAPTER 6: ROUTING PROTOCOL
View
Interface view
Parameter
■ seconds: Dead interval of the OSPF neighbor. It is in second and ranges from 1
to 65535.
Description
Using the ospf timer dead command, you can configure the dead interval of the
OSPF neighbor. Using the undo ospf timer dead command, you can 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 4 times of that of the Hello
seconds. The dead seconds for the routers on the same network segment must be
identical.
For the related command, see ospf timer hello.
Example
Set the neighbor dead interval on the interface serial1/0/0 to 80 seconds.
[3Com] interface serial1/0/0
[3Com-serial1/0/0] ospf timer dead 80
View
Interface view
Parameter
■ seconds: Interval in seconds for an interface to transmit hello message. It
ranges from 1 to 255.
Description
Using the ospf timer hello command, you can configure the interval for
transmitting Hello messages on an interface. Using the undo ospf timer hello
command, you can restore the default value.
OSPF Configuration Commands 591
Example
Configure the interval of transmitting Hello packets on the interface serial1/0/0 to
20 seconds.
[3Com] interface serial1/0/0
[3Com-serial1/0/0] ospf timer hello 20
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 120 seconds.
Description
Using the ospf timer poll command, you can configure the poll Hello message
interval on nbma and p2mp network. Using the undo ospf timer poll command,
you can 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 message before it
establishes adjacency with the adjacent router. The value of poll seconds should be
no less than 3 times of that of Hello seconds.
Example
Configure to transmit poll Hello message from interface serial2/0/0 every 130
seconds.
[3Com-serial2/0/0] ospf timer poll 130
View
Interface view
Parameter
■ interval: Interval in seconds for re-transmitting LSA on an interface. It ranges
from 1 to 65535.The default value is 5 seconds.
592 CHAPTER 6: ROUTING PROTOCOL
Description
Using the ospf timer retransmit command, you can configure the interval for LSA
re-transmitting on an interface. Using the undo ospf timer retransmit command,
you can 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.
[3Com] interface serial1/0/0
[3Com-serial1/0/0] ospf timer retransmit 12
View
Interface view
Parameter
■ seconds: Transmitting delay of LSA on an interface. It is in seconds and ranges
from 1 to 3600. By default, the value is 1 second.
Description
Using the ospf trans-delay command, you can configure the LSA transmitting
delay on an interface. Using the undo ospf trans-delay command, you can 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
Specify the trans-delay of transmitting LSA on the interface serial1/0/0 as 3
seconds.
[3Com] interface serial1/0/0
[3Com-serial1/0/0] ospf trans-delay 3
peer Syntax
peer ip-address [ dr-priority dr-priority-number ]
undo peer ip-address
OSPF Configuration Commands 593
View
OSPF view
Parameter
■ ip-address: IP address of the neighboring point.
■ dr-priority-number: Represents the corresponding value of the network
neighbor priority, being an integer ranging from 0 to 255. The default value is
1.
Description
Using the peer command, you can configure the IP address of adjacent routers
and specify a DR priority on an NBMA network. Using the undo peer command,
you can 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 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
Configure the IP address of peer router as 10.1.1.1.
[3Com-ospf-1] peer 10.1.1.1
preference Syntax
preference [ ase ] value
undo preference [ ase ]
View
OSPF view
Parameter
■ value: OSPF protocol route preference, ranging from 1 to 255.
■ ase: Preference of an imported external route of the AS.
Description
Using the preference command, you can configure the preference of an OSPF
protocol route. Using the undo preference command, you can 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.
594 CHAPTER 6: ROUTING PROTOCOL
Example
Specify the preference of an external imported route of the AS as 160.
[3Com-ospf-1] preference ase 160
View
User view
Parameter
■ statistics: Resets statistics of the OSPF process.
■ process-id: OSPF process number. If no OSPF process number is specified, all
the OSPF processes should be reset.
■ all: Resets all the OSPF processes.
Description
Using the reset ospf all command, you can reset all the OSPF processes. Using 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. Using the parameter of statistics to reset statistics about OSPF.
Using the reset ospf command to reset the OSPF process, the following results are
expected:
■ Clear invalid LSA immediately without waiting for LSA timeout.
■ If the Router ID changes, a new Router ID will take effect by executing the
command.
■ Re-elect DR and BDR conveniently.
■ OSPF configuration will not be lost if the system is restarted.
■ Delete the original OSPF routes.
■ 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
Reset all the OSPF processes
<3Com> reset ospf all
Reset the OSPF process 200
<3Com> reset ospf 200
router id Syntax
router id router-id
undo router id
OSPF Configuration Commands 595
View
System view
Parameter
■ router-id: Router ID that is a 32-bit unsigned integer.
Description
Using the router id command, you can configure the ID of a router running the
OSPF protocol. Using the undo router id command, you can 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 the router ID specified, the configurations of OSPF can not
be set.
When the router ID is configured manually, the IDs of any two routers cannot be
identical in the autonomous system. So, the IP address of certain interface might
as well be selected as the ID of this router.
Example
Set the router ID to 10.1.1.3.
[3Com] router id 10.1.1.3
silent-interface Syntax
silent-interface interface-type interface-number
undo silent-interface interface-type interface-number
View
OSPF view
Parameter
■ interface-type: Specifies the interface type
■ interface-number: Specifies the interface number.
Description
Using the silent-interface command, you can disable an interface to transmit OSPF
packet. Using the undo silent-interface command, you can restore the default
setting.
By default, the interface is enabled to transmit OSPF packet.
You can use this command to disable an interface to transmit OSPF packet, so as
to prevent the router on some network from receiving the OSPF routing
information.
596 CHAPTER 6: ROUTING PROTOCOL
Different processes can disable the same interface to transmit OSPF packet. While
silent-interface command only takes effect on the interface enabled with OSPF by
this process, being invalid for the interface enabled by other processes.
Example
Disable interface serial2/0/0 to transmit OSPF packet.
[3Com-ospf-1] silent-interface serial2/0/0
Disable interface Ethernet2/0/0 to transmit OSPF packet in both OSPF
process 100 and OSPF process 200.
[3Com] router id 10.110.1.9
[3Com] ospf 100
[3Com-ospf-100] silent-interface ethernet 2/0/0
[3Com-ospf-100] quit
[3Com] router id 20.18.0.7
[3Com] ospf 200
[3Com-ospf-200] silent-interface ethernet 2/0/0
View
System view
Parameter
■ process-id: OSPF process number. If no OSPF process number is specified, this
command is valid for all the current OSPF processes.
■ trap-type: Type of SNMP TRAP packet transmitted by OSPF. It can be the
keyword in the following table.
Table 3 SNMP TRAP type keywords
keyword description
ifauthfail Enables the InterfaceAuthenticationFailure trap packets
ifcfgerror Enables the InterfaceConfigError trap packets
ifrxbadpkt Enables the InterfaceRecieveBadPacket trap packets
ifstatechange Enables the InterfaceStateChange trap packets
iftxretransmit Enables the InterfaceTxRetransmitPacket trap packets
lsdbapproachoverflo Enables the LsdbApproachOverflow trap packets
w
lsdboverflow Enables the LsdbOverflow trap packets
maxagelsa Enables the MaxAgeLsa trap packets
nbrstatechange Enables the NeighborStateChange trap packets
originatelsa Enables the OriginateLsa trap packets
virifauthfail Enables the VirtualInterfaceAuthenticationFailure trap
packets
virifcfgerror Enables the VirtualInterfaceConfigError trap packets
virifrxbadpkt Enables the VirtualInterfaceRecieveBadPacket trap packets
virifstatechange Enables the VirtualInterfaceStateChange trap packets
viriftxretransmit Enables the VirtualInterfaceTxRetransmitPacket trap packets
virnbrstatechange Enables the VirtualNeighborStateChange trap packets
OSPF Configuration Commands 597
Description
Using the snmp-agent trap enable ospf command, you can enable the TRAP
function of OSPF. Using the undo snmp-agent trap enable ospf command, you can
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
Enable TRAP function of OSPF process 100.
<3Com> snmp-agent trap enable ospf 100
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
Using the spf-schedule-interval command, you can configure the route calculation
interval of OSPF. Using the undo spf-schedule-interval command, you can restore
the default setting.
According to the Link State Database (LSDB), the router running OSPF can
calculate the shortest path tree taking itself as the root and determine the next
hop to the destination network according to the shortest path tree. By adjusting
SPF calculation interval, network frequently changing can be restrained, which
may lead to that too many bandwidth resources and router resources will be used.
Example
Set the OSPF route calculation interval of 3Com to 6 seconds.
[3Com-ospf-1] spf-schedule-interval 6
stub Syntax
stub [ no-summary ]
undo stub
View
OSPF area view
598 CHAPTER 6: ROUTING PROTOCOL
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
Using the stub command, you can configure the type of an OSPF area as the STUB
area. Using the undo stub command, you can 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.
For the related command, see default-cost.
Example
Set the type of OSPF area 1 to the STUB area.
[3Com-ospf] area 1
[3Com-ospf-area-0.0.0.1] stub
vlink-peer Syntax
vlink-peer router-id [ hello seconds] [ retransmit seconds ] [ trans-delay seconds ] [
dead seconds ] [ simple password | md5 keyid key ]
undo vlink-peer router-id
View
OSPF area view
Parameter
■ router-id: Router ID of virtual link neighbor.
■ 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 8192 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 8192 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.
Integrated IS-IS Configuration Commands 599
Description
Using the vlink-peer command, you can create and configure a virtual link. Using
the undo vlink-peer command, you can cancel an existing virtual link.
According to RFC2328, the OSPF area should be connected with the backbone
network. You can use vlink-peer command to keep the connectivity. Virtual link
somewhat can be regarded as a common ospf enabled interface so that you can
easily understand how to configure the parameters such as hello, retransmit, and
trans-delay on it.
One thing should be mentioned. When configuring virtual link authentication,
authentication-mode command is used to set the authentication mode as MD5
cipher text or simple text on the backbone network.
For the related command, see authentication-mode, and display ospf.
Example
Create a virtual link to 10.110.0.3 and use the MD5 cipher text authentication
mode.
[3Com-ospf] area 10.0.0.0
[3Com-ospf-area-10.0.0.0] vlink-peer 10.110.0.3 md5 3 345
Integrated IS-IS
Configuration
Commands
area-authentication-mo Syntax
de area-authentication-mode { simple | md5 } password [ ip | osi ]
undo area-authentication-mode { simple | md5 } [ ip | osi ]
View
IS-IS view
Parameter
■ simple: Transmits the password in simple text.
■ md5: Transmits the password encrypted with MD5.
■ password: Specifies the password to be configured, in the range of 1~24 bits.
■ ip: Specifies the IP authentication password.
■ osi: Specifies the OSI authentication password.
■ The configuration of ip or osi authentication password is independent of the
real network environment.
600 CHAPTER 6: ROUTING PROTOCOL
Description
Using the area-authentication-mode command, you can configure IS-IS to
authenticate the received Level-1 routing information packets (LSP, CSNP and
PSNP), according to the pre-defined mode and password. Using the undo
area-authentication-mode command, you can configure IS-IS not to authenticate
the said packets.
In default configuration, the system will not authenticate the received Level-1
routing information packets, and there is no password. By using this command,
you can clear all the Level-1 routing packets, whose area authentication passwords
are not consistent with the one set via this command. At the same time, this
command will let IS-IS insert the area authentication password into all the Level-1
routing packets sent by this node, in a certain mode.
For the related commands, see reset isis all, domain-authentication-mode, and isis
authentication-mode.
Example
Set the area authentication password as "hello" and the authentication type as
simple.
[3Com] isis
[3Com-isis] area-authentication-mode simple hello
cost-style Syntax
cost-style { narrow | wide | compatible | narrow-compatible | wide-compatible } [
relax-spf-limit ]
View
IS-IS view
Parameter
■ narrow: Only receives/sends packets whose cost type is narrow.
■ wide: Only receives/sends packets whose cost type is wide.
■ compatible: Receives/sends packets whose cost type is narrow or wide.
■ narrow-compatible: Receives packets whose cost type is narrow or wide, but
only send packets whose cost type is narrow.
■ wide-compatible: Receives packets whose cost type is narrow or wide, but only
send packets whose cost type is wide.
■ relax-spf-metric: Permits to receive routes whose cost value is larger than 1024.
If this item is not set, the route whose metrics value is larger than 1024 will be
discarded. This setting is only valid for compatible, narrow-compatible, and
wide-compatible.
Description
Using the cost-style command, you can set the cost type of an IS-IS packet
received/sent by the router. Using the undo cost-style command, you can restore
the default setting.
By default, IS-IS only receives/sends packets whose cost type is narrow.
For the related command, see isis cost.
Integrated IS-IS Configuration Commands 601
Example
Set IS-IS to receive packets whose cost type is narrow or wide, but only send
packets whose cost type is narrow.
[3Com] isis
[3Com-isis] cost-style narrow-compatible
View
User view
Parameter
■ adjacency: IS-IS adjacency related packets.
■ all: All IS-IS related debugging information.
■ authentication-error: IS-IS authentication errors.
■ checksum-error: IS-IS checksum errors.
■ circuit-information: Information about IS-IS enabled interface.
■ configuration-error: IS-IS configuration errors.
■ datalink-receiving-packet: Data link layer's packets-receiving status.
■ datalink-sending-packet: Data link layer's packets-sending status.
■ general-error: IS-IS error information.
■ interface-information: Information about IS-IS enabled data link layer.
■ memory-allocating: IS-IS memory allocating status.
■ receiving-packet-content: Packets received through IS-IS protocol.
■ self-originate-update: Packets locally updated through IS-IS protocol.
■ sending-packet-content: Packets sent through IS-IS protocol.
■ snp-packet: CSNP/PSNP packet of IS-IS.
■ spf-event: IS-IS SPF events.
■ spf-summary: Statistics about IS-IS performing SPF calculation.
■ spf-timer: IS-IS SPF trigger events.
■ task-error: IS-IS events status.
602 CHAPTER 6: ROUTING PROTOCOL
Description
Using the debugging isis command, you can enable IS-IS debugging. Using the
undo debugging isis command, you can disable the function.
Example
Enable all the information debugging of IS-IS.
<3Com> debugging isis all
default-route-advertise Syntax
default-route-advertise [ route-policy [ route-policy-name ] ]
undo default-route-advertise [ route-policy [ route-policy-name ] ]
View
IS-IS view
Parameter
■ route-policy-name: Name of the specified route-policy.
Description
Using the default-route-advertise command, you can configure the default route
of Level-1 and Level-2 routers. Using the undo default-route-advertise command,
you can cancel this configuration.
By default, Level-2 router generates the default route.
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.
[3Com-isis] default-route-advertise
View
Any view
Parameter
■ verbose: If this parameter is used, the details of the interface will be displayed.
Integrated IS-IS Configuration Commands 603
Description
Using the display isis interface command, you can 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
Display the information about the IS-IS enabled interface.
<3Com> display isis interface
Interface IP Address Id Link.Sta IP.Sta MTU Type DR
Ethernet1/0/0 2.1.1.12 001 Up Up 1497 L12 No/No
View
Any view
Parameter
■ l1 and Level-1: Both refer to the link state database of Level-1.
■ l2 and level-2: Both refer to the link state database of Level-2.
■ local: Displays the Contents of the Local LSP Database
■ verbose: Displays the verbose information of the link state database.
■ LSPID: Specifies the LSPID of the network-entity-title.
Description
Using the display isis lsdb command, you can view the link state database of the
IS-IS.
Example
Display the output information of display isis lsdb command.
<3Com> display isis lsdb
604 CHAPTER 6: ROUTING PROTOCOL
View
Any view
Parameter
None
Description
Using the display isis mesh-group command, you can view the IS-IS mesh group.
This command is used for displaying the configurations of the mesh-group of the
current router interface.
Example
Add Interface serial1/0/0 and Interface serial2/0/0 running IS-IS into mesh group
100.
[3Com-Serial1/0/0] isis mesh-group 100
[3Com-Serial1/0/0] interface Interface serial2/0/0
[3Com-Serial2/0/0] isis mesh-group 100
Display the information of IS-IS mesh-group.
[3Com-serial2/0/0] display isis mesh-group
Serial1/0/0 100
Serial2/0/0 100
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
Using the display isis peer command, you can 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.
Integrated IS-IS Configuration Commands 605
Example
Display the output information of display isis peer command.
<3Com> display isis peer
NET Interface Id State HoldTime Type
Pri
0001.0002.0002 Ethernet2/0/0 0001.0002.0008.01 Up 26s L1(L12)
64
0001.0002.0002 Ethernet1/0/0 002 Up 29s L1
0
Output more information by using the verbose parameter.
<3Com> display isis peer verbose
NET Interface Id State HoldTime
Type Pri
0001.0002.0002 Ethernet2/0/0 0001.0002.0008.01 Up 24s L1
64
Area Address: 01 02 IP Address: 175.1.19.36 Period: 00:25:30
0001.0002.0002 Ethernet1/0/0 002 Up 27s L1
0
Area Address: 01 02 IP Address: 175.1.19.22 Period: 00:00:51
View
Any view
Parameter
None
Description
Using the display isis route command, you can view IS-IS routing information.
Example
View the output information of display isis route command.
<3Com> display isis route
ISIS Level - 1 Forwarding Table :
3.0.0.2 Ethernet1/0/0
View
Any view
Parameter
None
Description
Using the display isis spf-log command, you can view the SPF calculation log of the
IS-IS.
Example
View the output information of display isis spf-log command.
<3Com> display isis spf-log
Details of Level 1 SPF Run:
-------------------------------
Trig.Event No.Of NodesDurationStartTime
IS_SPFTRIG_ADJDOWN2023:10:54
IS_SPFTRIG_NEWADJ3023:10:54
IS_SPFTRIG_LSPCHANGE3023:10:54
IS_SPFTRIG_PERIODIC2023:10:37
IS_SPFTRIG_PERIODIC2023:10:52
IS_SPFTRIG_CIRC_UP3023:10:53
IS_SPFTRIG_CIRC_UP3023:10:53
IS_SPFTRIG_LSPCHANGE3023:10:53
Details of Level 2 SPF Run:
-------------------------------
Trig.Event No.Of NodesDurationStartTime
IS_SPFTRIG_NEWADJ4023:10:54
IS_SPFTRIG_LSPCHANGE4023:10:54
IS_SPFTRIG_PERIODIC4023:10:37
IS_SPFTRIG_PERIODIC4023:10:52
IS_SPFTRIG_PERIODIC4023:10:52
IS_SPFTRIG_CIRC_UP5023:10:53
IS_SPFTRIG_LSPCHANGE5023:10:53
Integrated IS-IS Configuration Commands 607
IS_SPFTRIG_CIRC_UP7023:10:53
IS_SPFTRIG_LSPCHANGE7023:10:53
IS_SPFTRIG_LSPCHANGE7023:10:53
IS_SPFTRIG_ADJDOWN4023:10:54
IS_SPFTRIG_ADJDOWN4023:10:54
domain-authentication- Syntax
mode domain-authentication-mode { simple | md5 } password [ ip | osi ]
undo domain-authentication-mode { simple | md5 } [ ip | osi ]
View
IS-IS view
Parameter
■ simple: Transmits the password in simple text.
■ md5: Transmits the password in MD5 encryption.
■ password: Specifies the password to be configured.
■ ip: Specifies the IP authentication password.
■ osi: Specifies the OSI authentication password.
■ The configuration of ip or osi authentication password is independent of the
real network environment.
Description
Using the domain-authentication-mode command, you can configure IS-IS route
area to authenticate the received Level-2 routing packets (LSP, CSNP, PSNP),
according to the pre-defined mode and password. Using the undo
domain-authentication-mode command, you can configure IS-IS not to
authenticate the said packets.
In default configuration, the system will not authenticate the received Level-2
routing packets, and there is no password. By using this command, you can
discard all the Layer 2 routing packets, whose area authentication passwords do
not consist with the one set via this command. At the same time, this command
will let IS-IS insert the area authentication password into all the Layer 2 routing
packets sent by this node, in a certain mode.
For the related commands, see area-authentication-mode and isis
authentication-mode.
Example
When you need to authenticate the layer 2 routing packets, you can select the
simple mode, and the password is "3Com".
[3Com] isis
[3Com-isis] domain-authentication-mode simple
View
IS-IS view
Parameter
■ acl-number: Specifies the number of the access control list, ranging from 1 to
199.
■ protocol: Specifies the protocols that distribute routing information, including
direct, static, rip, bgp, ospf, ospf-nssa and ospf-ase at present. Without this
parameter, all the distributed routes will be filtered.
Description
Using the filter-policy export command, you can configure to filter the routes
distributed by IS-IS. Using the undo filter-policy export command, you can cancel
the filtering for the exporting routes.
By default, IS-IS does not filter any distributed routing information.
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.
For the related command, see filter-policy import.
Example
Use acl 6 to filter the routes distributed by IS-IS.
[3Com-isis] filter-policy 6 export
View
IS-IS view
Parameter
■ acl-number: Specifies the number of the access control list, ranging from 1 to
199.
Description
Using the filter-policy import command, you can configure to filter the routes
received by IS-IS. Using the undo filter-policy import command, you can 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 thefilter-policy to specify the filter conditions so as
to accept the desired routing information only.
For the related command, see filter-policy export.
Integrated IS-IS Configuration Commands 609
Example
Filter the received routes by using acl 3.
[3Com-isis] filter-policy 3 import
ignore-lsp-checksum-err Syntax
or ignore-lsp-checksum-error
undo ignore-lsp-checksum-error
View
IS-IS view
Parameter
None
Description
Using the ignore-lsp-checksum-error command, you can configure the IS-IS to
ignore the checksum error of LSP. Using the undo ignore-lsp-checksum-error
command, you can configure the IS-IS not to ignore the checksum error of LSP.
By default, the checksum error of LSP is not ignored.
After receiving an LSP packet, the local IS-IS will calculate its checksum and
compares the result with the checksum in the LSP packet. This process is the
checksum authentication over the received LSP. By default, if the checksum in the
packet is found 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
Configure to ignore the checksum error of LSP.
[3Com-isis] ignore-lsp-checksum-error
import-route Syntax
import-route protocol [ cost value ] [ type { external | internal } ] [ level-1 ] [
level-1-2 ] [ level-2 ] [ route-policy route-policy-name ]
undo import-route protocol [ cost value ] [ type { external | internal } ] [ level-1 ] [
level-1-2 ] [ level-2 ] [ route-policy route-policy-name ]
View
IS-IS view
Parameter
■ protocol: Specifies source routing protocols which can be imported, including
direct, bgp, ospf, ospf-nssa , ospf-ase, rip and static at present.
■ cost value: Specifies the route cost of the imported route, ranging from 0 to
63.
■ level-1: Imports the route into Level-1 routing table.
■ level-2: Imports the route into Level-2 routing table.
610 CHAPTER 6: ROUTING PROTOCOL
Description
Using the import-route command, you can configure IS-IS to filter the imported
routes. Using the undo import-route command, you can configure IS-IS not to
import the routing information of other protocols.
By default, IS-IS does not import 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 importing the routes of other protocols,
you can specify the default cost for them. If OSPF routes are imported, you can
also specify the cost type for them.
When IS-IS imports routes, you can specify to import the routes to Level-1, Level-2
or Level-1-2.
IS-IS regards all the routes imported 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
Import a static route with cost 15.
[3Com-isis] import-route static cost 15
View
IS-IS view
Parameter
■ acl-list: ACL number. When configuring routing leak from Level-2 to Level-1,
only the routes that are permitted by ACL can be imported to Level-1 area if an
ACL has been specified.
Description
Using the import-route isis level-2 into level-1 command, you can enable routing
information in a Level-2 area to be imported to a Level-1 area. Using the undo
import-route isis level-2 into level-1 command, you can remove the function.
By default, routing information in a Level-2 area is not imported to a Level-1 area.
Example
Import routing information of a router from a Level-2 area to a Level-1 area.
[3Com] acl number 100 permit any
[3Com] isis
Integrated IS-IS Configuration Commands 611
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
Using the isis command, you can enable the corresponding IS-IS routing process
and enter the IS-IS view. Using the undo isis command, you can 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.
Example
Start an IS-IS routing process, in which the system ID is 0000.0000.0002 and the
area ID is 01.0001.
[3Com] isis
[3Com-isis] network-entity 01.0001.0000.0000.0002.00
View
Interface view
Parameter
■ simple: Transmit the authentication password in simple text.
■ md5: Transmit the authentication password in MD5 encryption.
■ password: Specifies the authentication password.
■ level-1: Configures authentication password for Level-1.
612 CHAPTER 6: ROUTING PROTOCOL
Description
Using the isis authentication-mode command, you can 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. Using the undo isis
authentication-mode command, you can 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.
For the related commands, see area-authentication-mode and
domain-authentication-mode.
Example
Set the authentication password "tangshi" in simple text for the Level-1
neighboring relationship onInterface serial1/0/0.
[3Com] interface serial1/0/0
[3Com-Serial1/0/0] isis authentication-mode simple tangshi level-1
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
Using the isis circuit-level command, you can configure the link adjacency
relationship. Using the undo isis circuit-level command, you can 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,
Integrated IS-IS Configuration Commands 613
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.
For the related command, see 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.
[3Com] interface serial1/0/0
[3Com-Serial1/0/0] isis enable
[3Com-Serial1/0/0] isis circuit-level level-1
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
Using the isis cost command, you can configure the link cost of this interface
when performing SPF calculation. Using the undo isis cost command, you can
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.
For the related command, see cost-style.
Example
Set the link cost of the Level-2 link on Interface serial1/0/0 to 5.
[3Com] interface serial1/0/0
[3Com-Serial1/0/0] isis cost 5 level-2
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.
Description
Using the isis dis-priority command, you can configure the priority of an interface
for the corresponding level DIS election. Using the undo isis dis-priority command,
you can 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.
For the related commands, see area-authentication-mode and
domain-authentication-mode.
Example
Set the priority of Interface serial1/0/0 to 127.
[3Com] interface serial1/0/0
[3Com-Serial1/0/0] isis dis-priority127 level-2
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
Using the isis enable command, you can configure this interface to activate the
corresponding IS-IS routing process. Using the undo isis enable command, you can
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.
For the related commands, see isis and network-entity.
Integrated IS-IS Configuration Commands 615
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 "3Com", and activate this routing process
on interface serial1/0/0.
[3Com] isis 3Com
[3Com-isis] network-entity 10.0001.1010.1020.1030.00
[3Com-isis] quit
[3Com] interface serial1/0/0
[3Com-serial1/0/0] isis enable 3Com
View
Interface view
Parameter
■ mesh-group-number: Specifies the mesh group number, ranging from 1 to
4294967295.
■ mesh-blocked: Blocks a specified interface, so that it will not flood the received
LSP to other interfaces.
Description
Using the isis mesh-group command, you can add an interface to a specified
mesh group. Using the undo isis mesh-group command, you can 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.
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
Add interface serial1/0/0 to mesh group 3.
[3Com-Serial1/0/0] isis mesh-group 3
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
Using the isis timer csnp command, you can configure the interval of sending
CSNP packets on the broadcast network. Using the undo isis timer csnp
command, you can 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.
[3Com] interface serial1/0/0
[3Com-Serial1/0/0] isis timer csnp 15 level-2
View
Interface view
Parameter
■ seconds: Specifies the dead interval, ranging from 9 to 65535 and measured in
seconds. The default value is 30 seconds.
■ level-1: Specifies the Level-1 dead interval.
■ level-2: Specifies the Level-2 dead interval.
■ If neither Level-1 nor Level-2 is specified, it is defaulted to Level-2 dead interval.
Description
Using the isis timer dead command, you can configure the interval of determining
the neighbor router is dead (or invalid). Using the undo isis timer dead command,
you can restore the default value, that is, 10 seconds.
If the router does not receive hello message from its neighbor in specified time,
the router will determine that the neighbor is dead (or invalid). Usually, user set
Integrated IS-IS Configuration Commands 617
this time 3 times of hello interval. That is to say, if the router does not receive hello
message from its neighbor 3 times, it would determine that the neighbor is dead.
User can adjust this parameter according to the network.
For the related command, see isis timer hello.
Example
Set the dead interval of Level-2 to 60 seconds on Interface serial1/0/0.
[3Com] interface serial1/0/0
[3Com-Serial1/0/0] isis timer dead 20 level-2
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.
■ level-2: Specifies the Level-2 Hello interval.
■ If neither Level-1 nor Level-2 is specified, it is defaulted to Level-1-2 Hello
message interval, that is, both Level-1 and Level-2 take effect.
Description
Using the isis timer hello command, you can configure the interval of sending
hello message of corresponding level. Using the undo isis timer hello command,
you can 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.
For the related command, see isis timer dead.
Example
Set the Hello message of Level-1 to be transmitted every 20 seconds on Interface
serial1/0/0.
[3Com] interface serial1/0/0
[3Com-Serial1/0/0] isis timer hello 20 level-1
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
Using the isis timer lsp command, you can configure minimum IS-IS LSP interval on
the interface. Using the undo isis timer lsp command, you can restore the default
setting.
For the related command, see isis timer retransmit.
Example
Set the LSP interval on Interface serial1/0/0 to 500 milliseconds.
[3Com] interface Interface serial1/0/0
[3Com-Serial1/0/0] isis timer lsp 500
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
Using the isis timer retransmit command, you can configure the LSP retransmission
interval over the point-to-point link. Using the undo isis timer retransmit
command, you can 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.
For the related command, see isis timer lsp.
Example
Set the LSP retransmission interval to 10 seconds on Interface serial1/0/0.
[3Com] interface serial1/0/0
[3Com-Serial1/0/0] isis timer retransmit 10
is-level Syntax
is-level { level-1 | level-1-2 | level-2 }
undo is-level
Integrated IS-IS Configuration Commands 619
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.
■ 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
Using the is-level command, you can configure the IS-IS level. Using the undo
is-level command, you can restore the default setting.
By default, the value is level-1-2.
You are recommended to set the system level when configuring IS-IS.
If there is only one area, you are recommended to set the level of all the routers as
Level-1 or Level-2, because it is not necessary for all the routers to maintain two
identical databases. You are recommended to set all the routers to Level-2 for
convenient future extension, when applying them to IP network.
For the related command, see isis circuit-level.
Example
Set the current router to operate on Level-1.
[3Com] isis
[3Com-isis] is-level level-1
log-peer-change Syntax
log-peer-change
undo log-peer-change
View
IS-IS view
Parameter
None
Description
Using the log-peer-change command, you can configure to log the IS-IS adjacency
changes. Using the undo log-peer-change command, you can 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
Configure to log the IS-IS adjacency changes on the current router.
620 CHAPTER 6: ROUTING PROTOCOL
[3Com-isis] log-peer-change
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
Using the network-entity command, you can configure the name of Network
Entity Title (NET) of the IS-IS routing process. Using the undo network-entity
command, you can 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.
For the related commands, see isis and isis enable.
Example
Specify NET as “10.0001.1010.1020.1030.00”, in which the system ID is
“1010.1020.1030”, area ID is “10.0001”.
[3Com] isis
[3Com-isis] network-entity 10.0001.1010.1020.1030.00
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.
Integrated IS-IS Configuration Commands 621
Description
Using the preference command, you can configure the preference of IS-IS
protocol. Using the undo preference command, you can restore the default value.
Several dynamic routing protocols could run simultaneously on a router. In this
case, there is an issue of sharing and selecting the routing information among all
the routing protocols. The system sets a preference for each routing protocol.
When various routing protocols find the route to the same destination, the
protocol with the higher preference will take effect.
Example
Configure the preference of IS-IS as 25.
[3Com-isis] preference 25
View
User view
Parameter
None
Description
Using the reset isis all command, you can 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.
For the related commands, see area-authentication-mode and
domain-authentication-mode.
Example
Clear all the IS-IS data.
<3Com> reset isis all
View
User view
Parameter
■ system-id: Specifiesy the system ID of IS-IS neighbor.
Description
Using the reset isis peer command, you can reset the IS-IS data of specified IS-IS
neighbor.
This command is used when you want to reconfigure a certain neighbor.
622 CHAPTER 6: ROUTING PROTOCOL
Example
Clear the IS-IS data of neighbor whose system ID is 0000.0c11.1111.
<3Com> reset isis peer 0000.0c11.1111
set-overload Syntax
set-overload
undo set-overload
View
IS-IS view
Parameter
None
Description
Using the set-overload command, you can configure overload flag bit for the
current router. Using the undo set-overload command, you can 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
Set overload flag bit on the current router.
[3Com-isis] set-overload
silent-interface Syntax
silent-interface interface-type interface-number
undo silent-interface interface-type interface-number
View
IS-IS view
Parameter
■ interface-type: Specifies the interface type.
■ interface-number: Specifies the interface number.
Description
Using the silent-interface command, you can disable a specified interface to
transmit IS-IS packet. Using the undo silent-interface command, you can enable
the interface to transmit IS-IS packet.
By default, all the interface are allowed to transmit/receive IS-IS packets.
Integrated IS-IS Configuration Commands 623
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
Prohibit the IS-IS packets to be transmitted via Interface Ethernet1/0/0.
[3Com-isis] silent-interface Ethernet1/0/0
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
Using the spf-delay-interval command, you can configure the interval for actively
releasing CPU in the SPF calculation. Using the undo spf-delay-interval command,
you can 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.
For the related command, see spf-slice-size.
Example
Set IS-IS to release CPU once after processing every 3000 pieces of routes.
[3Com-isis] spf-delay-interval 3000
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
624 CHAPTER 6: ROUTING PROTOCOL
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
Using the spf-slice-size command, you can configure whether to set slice and the
duration time each time when IS-IS performs SPF route calculation. Using the undo
spf-slice-size command, you can 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.
For the related command, see spf-delay-interval.
Example
Set the SPF duration time to 1 second.
[3Com-isis] spf-slice-size 1
summary Syntax
summary ip-address mask [ level-1 | level-1-2 | level-2 ]
undo summary ip-address mask [ level-1 | level-1-2 | level-2 ]
View
IS-IS view
Parameter
■ ip-address: Address segment of the routes to be aggregated.
■ mask: Aggregated route mask.
■ level-1: Aggregates the routes imported into Level-1.
■ level-1-2: Aggregates the routes imported to both areas and backbone
network.
■ level-2: Aggregates the routes imported to backbone network only.
Description
Using the summary command, you can configure IS-IS route summary. Using the
undo summary command, you can cancel the summary.
By default, no routes will be summarized.
Similarly, the routes with the same next hops can be aggregated into one route. In
this way, the sizes of the routing table, LSP packets and LSDB are reduced. Among
Integrated IS-IS Configuration Commands 625
them, the aggregated route can be either a route found by IS-IS protocol, or an
imported route. Furthermore, the cost value of the aggregated route adopts the
smallest cost of the routes aggregated.
Example
Set a route summary of 202.0.0.0/8.
[3Com-isis] summary 202.0.0.0 255.0.0.0
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.
Description
Using the timer lsp-max-age command, you can configure the maximum lifetime
of an LSP generated by the current router. Using the undo timer lsp-max-age
command, you can 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.
For the related command, see timer lsp-refresh.
Example
Set the lifetime of an LSP generated by the current system to 25 minutes, i.e.,
1500 seconds.
[3Com-isis] timer lsp-max-age 1500
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
Using the timer lsp-refresh command, you can configure the refresh interval of LSP.
Using the undo timer lsp-refresh command, you can restore the default value.
626 CHAPTER 6: ROUTING PROTOCOL
By this mechanism, synchronization of the LSPs within the entire area can be
maintained.
For the related command, see timer lsp-max-age.
Example
Set the LSP refresh interval of the current system to 1500 seconds.
[3Com-isis] timer lsp-refresh 1500
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
Using the timer spf command, you can configure the interval for the SPF
calculation.Using the undo timer spf command, you can 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
Set the SPF calculation interval of the router to 3 seconds.
[3Com-isis] timer spf 3
BGP Configuration For the commands defining routing policies in BGP, refer to the "IP Routing Policy Configuration
Commands Commands" of the next chapter.
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.
BGP Configuration Commands 627
aggregate Syntax
aggregate address mask [ as-set ] [ detail-suppressed ] [ suppress-policy
route-policy-name ] [ origin-policy route-policy-name ] [ attribute-policy
route-policy-name ]
undo aggregate address mask [ as-set ] [ detail-suppressed ] [ suppress-policy
route-policy-name ] [ origin-policy route-policy-name ] [ attribute-policy
route-policy-name ]
View
BGP view
Parameter
■ address: Address of the aggregated route, in dotted decimal notation.
■ mask: Network mask of the aggregated route, in dotted decimal notation.
■ as-set: Creates a route with AS segment.
■ detail-suppressed: Only advertise the aggregated route.
■ suppress-policy route-policy-name: Suppresses the specific route selected,
some of which are not advertised.
■ origin-policy route-policy-name: Selects the originating routes used for
aggregation.
■ attribute-policy route-policy-name: Sets the attributes of the aggregated route.
Description
Using the aggregate command, you can establish an aggregated record in the BGP
routing table. Using the undo aggregate command, you can cancel the function.
By default, there is no route aggregation.
The keywords are explained as follows:
Table 4 Functions of the keywords
Keywords Function
Used to create an aggregated route, whose AS path information
includes detailed routes. Use this keyword carefully when many AS
paths need to be aggregated, for the frequent change of routes may
as-set lead to route vibration.
This keyword does not establish any aggregated route, but it restrains
the advertisement of all the specific routes. If only some specific routes
detail-suppressed are to be restrained, use the peer filter-policy command carefully.
Create an aggregated route with this keyword, at the same time, the
advertisement of the specified route is restrained. If you want to restrain
some specific routes selectively and leaves other routes still being
suppress-policy advertised, use the if-match clause of the route-policy command.
Select only the specific routes that are in accordance with route-policy
origin-policy to create an aggregated route.
Set aggregated route attributes. The same work can be done by using
attribute-policy peer route-policy, etc.
Example
Establish an aggregated record in the BGP routing table.
[3Com-bgp] aggregate 192.213.0.0 255.255.0.0
628 CHAPTER 6: ROUTING PROTOCOL
balance Syntax
balance num
undo balance
View
BGP view
Parameter
■ num: Number of BGP load sharing routes. Their ranges are defined according
to the router types. You can get prompt information by inputting “?” at its
location to confirm the current product range.When num is 1, it indicates there
is no route to perform load sharing.
Description
Using the balance command, you can configure the number of routes performing
BGP load sharing. Using the undo balance command, you can restore the default
value.
By default, no load sharing is performed.
Different from IGP protocol, there is no specific indication for BGP to perform load
sharing. The load sharing of BGP is implemented by changing its routing rules.
For the related command, see display ip routing-table.
Example
Configure 2 routes to perform load sharing.
[3Com] bgp 100
[3Com-bgp] balance 2
bgp Syntax
bgp as-number
undo bgp [ as-number ]
View
System view
Parameter
as-number: Specifies local AS number, ranging from 1 to 65535.
Description
Using the bgp command, you can enable BGP and enter the BGP view. Using the
undo bgp command, you can 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.
[3Com] bgp 100
BGP Configuration Commands 629
[3Com-bgp]
compare-different-as-me Syntax
d compare-different-as-med
undo compare-different-as-med
View
BGP unicast view, BGP multicast view, VPNv4 view
Parameter
None
Description
Using the compare-different-as-med command, you can enable comparison of
MED values from different AS neighboring routes when determining the best
route. Using the undo compare-different-as-med command, you can disable the
comparison.
By default, it is disabled to compare the MED attribute values from the routing
paths of different AS peers.
If there are several routes available to one destination address, the route with
smaller MED parameter can be selected as the final route item.
You are not recommended to use this command unless you can make sure that
the ASs adopt the same IGP and routing method.
Example
Enable the comparison of the MED attribute values from different AS neighboring
route paths.
[3Com-bgp] compare-different-as-med
confederation id Syntax
confederation id as-number
undo confederation id
View
BGP view
Parameter
■ as-number: Number of the AS which contains multiple sub-ASs. The range is
from 1 to 65535.
Description
Using the confederation id command, you can configure confederation identifier.
Using the undo confederation id command, you can cancel the BGP confederation
specified by parameter as-number.
By default, the confederation ID is not configured.
Confederation can be adopted to solve the problem of too many IBGP full
connections in a large AS domain. The solution is, first dividing the AS domain into
630 CHAPTER 6: ROUTING PROTOCOL
several smaller sub-ASs, and each sub-ASs remains full-connected. These sub-ASs
form a confederation. Key IGP attributes of the route, such as next hop, MED,
local preference, are not discarded across each sub-ASs. The sub-ASs still look like
a whole from the point of view of a confederation although these sub-ASs have
EBGP relations. This can assure the integrality of the former AS domain, and ease
the problem of too many connections in the domain
For the related commands, see confederation nonstandard and confederation
peer-as.
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.
[3Com] bgp 41
[3Com-bgp] confederation id 9
[3Com-bgp] confederation peer-as 38 39 40
[3Com-bgp] peer 10.1.1.1 as-number 38
[3Com-bgp] peer 200.1.1.1 as-number 98
confederation Syntax
nonstandard confederation nonstandard
undo confederation nonstandard
View
BGP view
Parameter
None
Description
Using the confederation nonstandard command, the router can be compatible
with the AS confederation not adopting RFC1965. Using the undo confederation
nonstandard command, you can cancel this function.
By default, the configured confederation is consistent with RFC1965.
All the 3Com routers in the confederation should be configured with this
command for interworking with those nonstandard devices.
For the related commands, see confederation id and confederation peer-as.
Example
AS100 contains routers following nonstandard, which is composed of two
sub-ASs, 64000 and 65000.
[3Com] bgp 64000
[3Com-bgp] confederation id 100
[3Com-bgp] confederation peer-as 65000
[3Com-bgp] confederation nonstandard
BGP Configuration Commands 631
View
BGP view
Parameter
■ as-number-1...as-number-n: Sub-AS number, ranging from 1 to 65535. This
command can configure a maximum of 32 sub-Ass belonging to the
confederation.
Description
Using the confederation peer-as command, you can configure a confederation
consisting of which sub-ASs. Using the undo confederation peer-as command, you
can cancel the specified sub-AS in the confederation.
By default, no autonomous system is configured as a member of the
confederation.
The configured sub-ASs in this command is inside a confederation and each
sub-AS uses fully meshed network. The confederation id command is used to
specify the confederation to which each sub-AS belongs. This configuration is
invalid before this command is performed.
For the related commands, see confederation nonstandard and confederation id.
Example
Configure the confederation that contains AS 2000 and 2001.
[3Com-bgp] confederation peer-as 2000 2001
dampening Syntax
dampening [ half-life-reachable half-life-unreachable reuse suppress ceiling ] [
route-policy policy-name ]
undo dampening
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.
632 CHAPTER 6: ROUTING PROTOCOL
Description
Using the dampening command, you can make BGP route attenuation valid or
modify various BGP route attenuation parameters. Using the undo dampening
command, you can make the characteristics invalid.
By default, no route attenuation is configured.
If the parameters are not set, the BGP route attenuation is valid and each
parameter is taken as the default value. half-life-reachable, half-life-unreachable
,reuse, suppress and ceiling are mutually dependent. Once any parameter is
configured, all other parameters should also be specified.
For the related command, see reset dampening, reset bgp flap-info, display bgp
routing-table dampened, and display bgp routing-table flap-info.
Example
Modify various BGP route attenuation parameters.
[3Com-bgp] dampening 15 15 1000 2000 10000
View
User view
Parameter
■ all: Enables all BGP information debugging.
■ event: Enables BGP event information debugging.
■ keepalive: Enables BGP Keepalive packet information debugging.
■ open: Enables BGP Open packet information debugging.
■ packet: Enables BGP packet information debugging.
■ route-refresh: Enables BGP route-refresh packet information debugging.
■ update: Enables BGP Update packet information debugging.
Description
Using the debugging bgp all command, you can enable all the information
debugging of BGP packets and events.
Using the debugging bgp event command, you can enable the information
debugging of BGP events.
Using the debugging bgp keepalive command, you can enable the information
debugging of BGP Keepalive packets.
Using the debugging bgp packet command, you can enable the information
debugging of BGP packets.
System performance is influenced when information debugging is enabled.
Therefore, this command should be used cautiously. You should disable it after
debugging.
BGP Configuration Commands 633
Example
Enable the information debugging of BGP packets.
<3Com> debugging bgp packet
View
BGP unicast view, BGP multicast view, VPNv4 view
Parameter
■ value: Default local preference to be configured. The range is 0 to
4294967295, the larger the value is, the higher the preference is. By default, its
value is 100.
Description
Using the default local-preference command, you can configure the default local
preference. Using the undo default local-preference command, you can restore
the default value.
Configuring different local preferences will affect BGP routing selection.
Example
The two routers RTA and RTB in the same autonomous area use X.25 and Frame
Relay protocols separately to connect with external autonomous areas. The
command can be used to configure the default local preference of RTB as 180 so
that the route via RTB is selected first when the same route goes through RTA and
RTB at the same time.
[3Com-bgp] default local-preference 180
View
BGP unicast view, BGP multicast view, VPNv4 view, VPN instance view
Parameter
■ med-value: MED value to be specified. The range is 0 to 4294967295. By
default, the med-value is 0.
Description
Using the default med command, you can configure the system MED value. Using
the undo default med command, you can restore the default value of metric.
Multi-Exit Distinguish (MED) is the external metric of a route. Different from local
preference, MED is exchanged between ASs and will stay in the AS. MED indicates
the attribute of a route. The smaller an MED is, the better a route is. So the route
with a low MED is preferred.When a router running BGP obtains several routes
634 CHAPTER 6: ROUTING PROTOCOL
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.
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.
[3Com-bgp] default med 25
View
Any view
Parameter
■ group-name: A specified peer group.
■ vpn-instance vpn-instance-name: Name of vpn instance.
Description
Using the display bgp group command, you can view the information of peer
groups.
Example
View the information of the peer group "aaa".
<3Com> display bgp group aaa
group : aaa no as-number still
members in this group :
Description : aaa
route-policy specified in export policy : aaa
filter-policy specified in export policy : list no.30304410
acl specified in export policy : list no.30304410
ip-prefix specified in export policy : aaa
route-policy specified in import policy : aaa
filter-policy specified in import policy : list no.30304410
acl specified in import policy : list no.30304410
ip-prefix specified in import policy : aaa
with Route-policy aaa
View
Any view
BGP Configuration Commands 635
Parameter
vpn-instance vpn-instance-name: Name of VPN instance.
route-distinguisher route-distinguisher: Name of route-distinguisher.
Description
Using the display bgp network command, you can view the routing information
that has been configured.
Example
View the routing information that has been configured.
<3Com> display bgp network
NetworkMask Route-policy
133.1.1.0255.255.255.0None
112.1.0.0255.255.0.0None
View
Any view
Parameter
■ as-regular-expression: Matched AS path regular expression.
Description
Using the display bgp paths command, you can view the information about AS
paths
Example
Display the information about the AS paths.
<3Com> display bgp paths ^600$
Flags: - valid, ^ - best,
D - damped, H - history,
I - internal, S – aggregate suppressed
Id Hash-Index References Aggregator Origin As-Path
--------------------------------------------------------------------
6 90 15 <null> IGP 600
View
Any view
Parameter
■ peer-address: Specifies the peer to be displayed.
636 CHAPTER 6: ROUTING PROTOCOL
Description
Using the display bgp peer command, you can view the information of peer.
Using the display bgp multicast peer command, you can view the information of
MBGP peer.
Using the display bgp vpnv4 peer command, you can view the information of VPN
peer.
Example
Display the information of the peer 10.110.25.20.
<3Com> display bgp peer 10.110.25.20
Peer AS-number Version Queued-Tx Msg-Rx Msg-Tx Up/Down
State
--------------------------------------------------------------------
10.110.25.20 100 4 0 0 0
00:33:43 Active
View the details of peer 133.1.1.2.
<3Com> display bgp peer 133.1.1.2 verbose
Peer: 133.1.1.2 Local: Unspecified
Type: External
State: Idle Flags: <Idled>
Last State: NoState Last Event: NoEvent
Last Error: None
Options: <>
View
Any view
Parameter
■ multicast: Displays the MBGP routing information in BGP routing table.
■ all: Displays all VPNv4 routing information.
■ route-distinguisher route-distinguisher: Displays Network Layer Reachable
Information (NLRI) matching Routing Distinguisher (RD).
BGP Configuration Commands 637
Description
Using the display bgp multicast routing-table command, you can view the BGP
routing information of the specified IP address in the BGP routing table.
Using the display bgp multicast routing-table command, you can view the MBGP
routing information of the specified IP address in the BGP routing table.
Using the display bgp vpnv4 routing-table command, you can view the VPN
routing information of the specified IP address in the BGP routing table.
Example
View all the BGP routing information.
<3Com> display bgp routing-table
Flags: - valid, ^ - best,
D - damped, H - history,
I - internal, S – aggregate suppressed
View
Any view
638 CHAPTER 6: ROUTING PROTOCOL
Parameter
■ acl-number: Number of the specified AS path to be matched, ranging 1 to 199.
Description
Using the display bgp routing-table as-path-acl command, you can view routes
that match an as-path acl
Example
Display routes that match filtering list.
<3Com> display bgp routing-table as-path-acl 1
Flags: - valid, ^ - best,
D - damped, H - history,
I - internal, S – aggregate suppressed
View
Any view
Parameter
None
Description
Using the display bgp routing-table cidr command, you can view the routing
information about the non-natural mask (namely the classless inter-domain
routing, CIDR).
Example
<3Com> display bgp routing-table cidr
Flags: - valid, ^ - best,
D - damped, H - history,
I - internal, S – aggregate suppressed
View
Any view
Parameter
■ aa:nn: Specifies a community number.
■ no-export-subconfed: Not sends the matched routes outside the AS.
■ no-advertise: Not sends the matched routes to any peer.
■ no-export: Not exports routes outside the AS but advertise to other sub Ass.
■ whole-match: Displays the exactly matched routes.
Description
Using the display bgp routing-table community command, you can 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.
<3Com> display bgp routing-table community 11:22
Flags: - valid, ^ - best,
D - damped, H - history,
I - internal, S – aggregate suppressed
View
Any view
Parameter
■ community-list-number: Specifies a community-list number.
■ whole-match: Displays the exactly matched routes.
640 CHAPTER 6: ROUTING PROTOCOL
Description
Using the display bgp routing-table community-list command, you can view the
routing information matching the specified BGP community list.
Example
View the routing information matching BGP community list 1.
[3Com] display bgp routing-table community-list 1
Flags: - valid, ^ - best,
D - damped, H - history,
I - internal, S – aggregate suppressed
View
Any view
Parameter
None
Description
Using the display bgp routing-table dampened command, you can view BGP
dampened routes.
Example
View BGP dampened routes.
<3Com> display bgp routing-table dampened
Flags: - valid, ^ - best,
D - damped, H - history,
I - internal, S – aggregate suppressed
Dest/Mask Source Damping-limit Origin As-path
-----------------------------------------------------------------
D 11.1.0.0 133.1.1.2 1:20:00 IGP 200
Parameter
None
Description
Using the display bgp routing-table different-origin-as command, you can view
routes that have different source autonomous systems
Example
View the routes that have different source ASs.
<3Com> display bgp routing-table different-origin-as
Flags: - valid, ^ - best,
D - damped, H - history,
I - internal, S – aggregate suppressed
View
Any view
Parameter
■ as-regular-expression: Displays the route flap-info matching AS path regular
expression.
■ acl-number: Number of the specified AS path to be matched, ranging from 1
to 199.
■ network-address: Network IP address related to the flag information to be
displayed
■ mask: Network mask.
■ longer-match: Displays the route flap information that is more specific than
<network-address, mask>.
Description
Using the display bgp routing-table flap-info command, you can view BGP flap
information. When <network-address mask> is <0.0.0.0.0.0.0.0>, this command
will view the flap information of all BGP routes.
Example
Display BGP flap information.
<3Com> display bgp routing-table flap-info
Flags: - valid, ^ - best,
D - damped, H - history,
I - internal, S – aggregate suppressed
642 CHAPTER 6: ROUTING PROTOCOL
View
Any view
Parameter
■ peer-address: Specifies the peer to be displayed.
■ advertised: Routing information advertised by the specified peer.
■ received: Routing information the specified peer received.
Description
Using the display bgp routing-table peer command, you can view the routing
information the specified BGP peer advertised or received.
For the related command, see display bgp peer.
Example
View the routing information advertised by BGP peer 10.10.10.1.
<3Com> display bgp routing table peer 10.10.10.1 advertised
Flags: - valid, ^ - best,
D - damped, H - history,
I - internal, S – aggregate suppressed
Dest/mask Next -Hop Med Local-pref Origin As-path
-----------------------------------------------------------------
*> 10.10.10.0/24 0.0.0.0 INC
View
Any view
Parameter
■ as-regular-expression: Matched AS regular expression.
Description
Using the display bgp routing-table regular-expression command, you can view
the routing information matching the specified AS regular expression
Example
Display the routing information matching with AS regular expression ^600$.
BGP Configuration Commands 643
View
BGP unicast view, multicast view, VPNv4 view, VPN instance view
Parameter
■ acl-number: Specifies the number of access control list matching the
destination address field of routing information, ranging from 1 to 199.
■ 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: Routing information of which kind of route protocol to be filtered. It
includes direct, ospf, ospf-ase, ospf-nssa, isis, rip, and static at present.
Description
Using the filter-policy export command, you can filter the advertised routes and
only the routes passing the filter can be advertised by BGP. Using the undo
filter-policy export command, you can cancel the filtering to the advertised routes.
By default, the advertised routing information is not filtered.
If the parameter protocol is specified, only the imported route generated by the
specified protocol is filtered and the imported routes generated by other protocols
are not affected. If the parameter protocol is not specified, the imported route
generated by any protocol will be filtered.
Example
Use acl 3 to filter the routing information advertised by all BGPs.
[3Com-bgp] filter-policy 3 export
View
BGP unicast view, BGP multicast view, VPNv4 view, VPN instance view
Parameter
■ acl-number: Specifies the number of access control list matching the
destination address field of routing information, ranging from 1 to 199.
■ ip-prefix ip-prefix-name: Address prefix list name. The matched object is the
destination address domain 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
Using the filter-policy gateway import command, you can filter the learned routing
information advertised by the specified address. Using the undo filter-policy
gateway import command, you can remove the filtering to the routing
information advertised by the specified address.
Using the filter-policy import command, you can filter the received global routing
information. Using the undo filter-policy import command, you can 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
Display how to use acl 3 to filter the routing information received by BGP.
[3Com-bgp] filter-policy 3 import
group Syntax
group group-name { [ internal ] | external }
undo group group-name
View
BGP view
Parameter
■ group-name: Specifies the name of peer group. It can be described in character
and numeral with the length being 1 to 47.
■ internal: Creates an internal peer group.
■ external: Creates an external peer group, including other sub AS groups in the
confederation.
Description
Using the group command, you can establish a peer group. Using the undo group
command, you can delete the configured peer group.
The use of BGP peer group is for the convenience of the user’s configuration.
When the user starts several peers with the same configuration, a peer group can
BGP Configuration Commands 645
be established first and be configured. Then add all the peers to the peer group so
that they have the same configuration as this peer group.
The default IBGP peer will be added to the default peer group without any
configuration. The configuration of the route update policy for any IBGP peer is
valid for the other IBGP peers in its group. To be specific, if the router is not a
route reflector, all the IBGP peers are in the same group. If the router is a route
reflector, all the route reflection clients are in a group, while non-clients are in
another group.
The external peer group members must be in the same network segment.
Otherwise, some EBGP peers may discard the transmitted route update.
The peer group members cannot be configured with the route update policy
which is different from that of the peer group, but can be configured with
different ingress policies.
Example
Establish a peer group "test".
[3Com-bgp] group test
import-route Syntax
import-route protocol [ med med-value ] [ route-policy route-policy-name ]
undo import-route protocol
View
BGP view
Parameter
■ protocol: Specifies source routing protocols which can be imported, which
includes direct, ospf, ospf-nssa , ospf-ase, rip, bgp, and static at present.
■ med med-value: Specifies the MED value loaded by a redistributed route,
ranging from 0 to 4294967295.
■ route-policy route-policy-name: Specifies a route-policy to filter the
redistributed protocol route. It can be described in character and numeral with
the length being 1 to 19.
Description
Using the import-route command, you can import routes of other protocols. Using
the undo import-route command, you can remove importing routes of other
protocols.
By default, BGP does not import the routes of other protocols.
Example
Import routes of RIP.
[3Com-bgp] import-route rip
View
System view
Parameter
■ acl-number: Number of AS path list ranging from 1 to 199.
■ as-regular-expression: AS path regular expression.
Description
Using the ip as-path acl command, you can configure an AS path regular
expression. Using the undo ip as-path acl command, you can disable the defined
regular expression.
The configured AS path list can be used in BGP policy.
For the related command, see peer as-path-acl, and display bgp routing-table
as-path-acl.
Example
Configure an AS path list.
[3Com] ip as-path acl 10 permit 200,300
ip community-list Syntax
ip community-list stand-comm-list-number { permit | deny } { aa:nn | internet |
no-export-subconfed | no-advertise | no-export }
ip community-list ext-comm-list-number { permit | deny } as-regular-expression
undo ip community-list { stand-comm-list-number | ext-comm-list-number }
View
System view
Parameter
■ stand-comm-list-number: Number of the standard community list ranging from
1 to 99.
■ ext-comm-list-number: Number of the extended community list ranging from
100 to 199.
■ permit: Permits those that match conditions to access.
■ deny: Denies those that match conditions to access.
■ aa:nn: Community number.
■ internet: Advertises all routes.
■ no-export-subconfed: Used not to advertise the matched route beyond the
confederation.
■ no-advertise: Used not to send the matched route to any peer.
■ no-export: Used not to pass routes outside the AS but advertise to other sub
ASs.
■ as-regular-expression: Community attribute of the regular expression.
BGP Configuration Commands 647
Description
Using the ip community-list command, you can configure a BGP community list.
Using the undo ip community-list command, you can delete the configured BGP
community list.
The configured community list can be used in BGP policy.
For the related command, see apply community, and display bgp routing-table
community-list.
Example
Define a community attribute list which does not advertise routes with the
community attribute beyond the confederation.
[3Com] ip community-list 6 permit no-export-subconfed
network Syntax
network ip-address [ address-mask ] [ route-policy route-policy-name ]
undo network ip-address [ address-mask ] [ route-policy route-policy-name ]
View
BGP view
Parameter
■ ip-address: Network address that BGP advertises.
■ address-mask: Mask of the network address.
■ route-policy-name: Route-policy applied to advertised routes.
Description
Using the network command, you can configure the network routes advertised by
the local BGP. Using the undo network command, you can delete the existing
configuration.
By default, there is no network sent through BGP.
Example
Advertise routes to network segment 10.0.0.0/16.
[3Com-bgp] network 10.0.0.1 255.255.0.0
peer Syntax
advertise-community peer { group-name } advertise-community
undo peer { group-name } advertise-community
View
BGP view, VPNv4 view, VPN instance view
Parameter
■ group-name: Specifies the name of peer group.
648 CHAPTER 6: ROUTING PROTOCOL
Description
Using the peer advertise-community command, you can enable the transmission
of the community attribute to a peer/peer group. Using the undo peer
advertise-community command, you can cancel the existing configuration.
By default, the community attribute is not transmitted to any peer/peer group.
For the related commands, see if-match community-list and apply community.
Example
Enable the transmission of the community attribute to a peer group "test".
[3Com-bgp] peer test advertise-community
View
BGP view, VPNv4 view, VPN instance view
Parameter
■ group-name: Specifies the name of peer group.
■ peer-address: Specifies the IP address of the peer.
■ number: Specifies the repeating times of local AS number. The range is 1 to 10.
Description
Using the peer allow-as-loop command, you can configure the repeating time of
local AS. Using the undo peer allow-as-loop command, you can remove the
repeating time of local AS.
For the related command, see display current-configuration, display bgp
routing-table peer, and display bgp routing-table group.
Example
Specify to configure the repeating times of local AS to 2.
[3Com-bgp] peer 1.1.1.1 allow-as-loop 2
View
BGP view
Parameter
■ group-name: Specifies the name of peer group.
■ peer-address: Specifies the IP address of the peer.
■ as-number: Peer AS number of the peer/peer group. The range is 1 to 65535.
BGP Configuration Commands 649
Description
Using the peer as-number command, you can specify the peer AS number of peer
group. Using the undo peer as-number command, you can delete the AS number
of peer group.
By default, no AS number is configured.
Example
Specify the peer AS number for the peer test as 100.
[3Com-bgp] peer test as-number 100
View
BGP view, VPNv4 view, VPN instance view
Parameter
■ group-name: Specifies the name of peer group.
■ peer-address: Specifies the IP address of the peer.
■ acl-number: Specifies the filter list number of an AS regular expression. The
range is 1 to 199.
■ import: Import distribution list.
■ export: Export distribution list.
Description
Using the peer as-path-acl command, you can specify BGP route filtering policy
based on AS path list. Using the undo peer as-path-acl command, you can cancel
the existing configuration.
By default, the peer group has no AS path list.
Example
Set the AS path ACL of the peer group test.
[3Com-bgp] peer test as-number 100
[3Com-bgp] peer test as-path-acl 3 export
View
BGP view
Parameter
■ group-name: Specifies the name of the peer group.
■ peer-address: Specifies the IP address of the peer.
650 CHAPTER 6: ROUTING PROTOCOL
Description
Using the peer connect-interface command, you can specify the source interface
of a route update packet. Using the undo peer connect-interface command, you
can restore the best source interface.
By default, BGP uses the best source interface.
Usually, BGP uses the optimal route to update the source interface of the packets.
However, you can set the mode of the interface to Loopback in order to send
route updates even if the interface does not work normally.
Example
None
peer Syntax
default-route-advertise peer { group-name } default-route-advertise
undo peer { group-name } default-route-advertise
View
BGP view
Parameter
■ group-name: Specifies the name of peer group.
Description
Using the peer default-route-advertise command, you can configure a peer/peer
group to import a default route for a peer. Using the undo peer
default-route-advertise command, you can cancel the existing configuration.
By default, a peer/peer group does not import the default route.
For this command, no default route is required in the routing table. A default
route is sent unconditionally to a peer with the next hop as itself.
Example
Specify a peer group "test" to import the default route.
[3Com-bgp] peer test as-number 100
[3Com-bgp] peer test default-route-advertise
View
BGP view
Parameter
■ group-name: Specifies the name of peer group.
■ peer-address: Specifies the IP address of the peer.
BGP Configuration Commands 651
Description
Using the peer description command, you can configure the description information of the
peer/peer group. Using the undo peer description command, you can remove the
description information of the peer/peer group.
By default, description information of peers/peer group is not configured.
For the related command, see display current-configuration, display bgp peer, and
display bgp routing-table group.
Example
Configure the description information of the peer named group1 as beijing1.
[3Com-bgp] peer group1 description beijing1
View
BGP view
Parameter
■ group-name: Specifies the name of peer group.
■ ttl: Specifies the maximum hop value. The range is 1 to 255. By default, the
value is 64.
Description
Using the peer ebgp-max-hop command, you can allow establishing EBGP
connection with the peer on indirectly connected network. Using the undo peer
ebgp-max-hop command, you can cancel the existing configuration.
By default, this feature is disabled.
Example
Establish EBGP connection with the peer group "test" on the indirectly connected
network.
[3Com-bgp] peer test ebgp-max-hop
View
BGP unicast address family view, IPv4 multicast address family view, VPNv4 address
family view, L2VPN address family view
652 CHAPTER 6: ROUTING PROTOCOL
Parameter
■ group-name: Specifies the name of the peer group, which specifies the entire
peer group.
■ peer-address: IP address of the peer, which specifies a certain peer.
Description
Using the peer enable command, you can enable the specified peer (group) and
can exchange information with a peer. Using the undo peer enable command, you
can disable the specified peer (group).
Here,
The peer peer-address enable command can be configured in unicast address
family only. Using this command, you can 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
Deactivate the specified peer.
[3Com] bgp 180
[3Com-bgp] peer 18.10.0.9 as-number 180
[3Com-bgp] undo peer 18.10.0.9 enable
View
BGP view, IPv4 multicast sub-address family view
Parameter
■ group-name: Specifies the name of peer group.
■ peer-address: IP address of the peer.
■ list-number: Specifies the IP acl number.
■ import: Peer filter-policy used for imported routes
■ export: Peer filter-policy used for exported routes
Description
Using the peer filter-policy command, you can set the filter-policy list of a peer
group. Using the undo peer filter-policy command, you can cancel the existing
configuration.
By default, a peer group has no access control list (acl).
For the related commands, see ip as-path acl and peer as-path-acl.
BGP Configuration Commands 653
Example
Set the filter-policy list of a peer group test.
[3Com-bgp] peer test as-number 100
[3Com-bgp] peer test filter-policy 3 import
View
BGP view
Parameter
■ group-name: Specifies the name of peer group. It can be described in character
and numeral with the length being 1 to 47.
■ peer-address: Specifies the IP address of the peer.
■ as-number: Specifies AS number for the peer.
Description
Using the peer group command, you can add a peer to the peer group. Using the
undo peer group command, you can delete the specified peer in the peer group.
In the unicast/VPN-INSTANCE address family view, when adding a peer to an
external peer group without specified AS number, you should specify the peer AS
number at the same time. While it is unnecessary when adding the peer to an
internal peer group or an external peer group with specified AS number.
In the multicast/VPNv4 address family view, it is required that the peer to be added
should exist and has been added to a peer group in the unicast address family
view (The peer can be disabled).
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.
[3Com-bgp] group TEST
[3Com-bgp] peer 10.1.1.1 group TEST
View
BGP view, VPNv4 view, VPN instance view
Parameter
■ group-name: Name of peer group.
■ peer-address: Specifies the IP address of the peer.
■ prefixname: Name of the specified ip-prefix.
■ import: Applies the filtering policy on the route received by the specified
peer/peer group.
■ export: Applies the filtering policy on the route transmitted to the specified
peer/peer group.
Description
Using the peer ip-prefix command, you can configure the route filtering policy of
the peer/peer group based on the ip-prefix. Using the undo peer ip-prefix
command, you can cancel the route filtering policy of the peer/peer group based
on the ip-prefix.
By default, the route filtering policy of the peer/peer group is not specified.
For the related command, see ip ip-prefix.
Example
Configure the route filtering policy of the peer group based on the ip-prefix 1.
[3Com-bgp] peer group1 ip-prefix list1 import
View
BGP view
Parameter
■ group-name: Specifies the name of peer group.
Description
Using the peer next-hop-local command, you can perform the process of the next
hop in the route to be advertised to the peer/peer group and take the address of
itself as the next hop. Using the undo peer next-hop-local command, you can
cancel the existing configuration.
Example
When BGP distributes the route to the peer group "test", it will take its own
address as the next hop.
[3Com-bgp] peer test next-hop-local
BGP Configuration Commands 655
View
BGP view, MBGP VPN-instance address family view
Parameter
■ group-name: Name of the peer group.
■ peer-address: IP address of the peer, in dotted decimal format.
■ cipher: Displays the configured password in cipher text mode.
■ simple: Displays the configured password in simple text mode.
■ password: Password in character string form with 1 to 16 characters when
parameter simple is configured in the command or in the event of inputting the
password in simple text mode but parameter cipher is configured in the
command; with 24 characters in the event of inputting the password in cipher
text mode when parameter cipher is configured in the command.
Description
Using the peer password command, you can configure MD5 authentication for
BGP during TCP connection setup. Using the undo peer password command, you
can cancel the configuration.
By default, BGP does not perform MD5 authentication when TCP connection is set
up.
Once MD5 authentication is enabled, both parties involved in the authentication
must be configured with identical authentication modes and passwords.
Otherwise, TCP connection will not be set up because of the failed authentication.
This command is used to configure MD5 authentication for the specific peer only
when the peer group to which the peer belongs is not configured with MD5
authentication. Otherwise, the peer should be consistent with the peer group.
Example
Adopt 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.
[3Com-bgp] peer 10.1.100.2 password simple 3Com
Perform the similar configuration on the peer.
[3Com-bgp] peer 10.1.100.2 password simple 3Com
View
BGP view
Parameter
■ group-name: Specifies the name of a peer group.
656 CHAPTER 6: ROUTING PROTOCOL
Description
Using the peer public-as-only command, you can configure not to carry the AS
number when transmitting BGP update packets. Using the undo peer
public-as-only command, you can configure to carry the AS number when
transmitting BGP update packets.
By default, private AS number is carried when transmitting BGP update packets.
Generally, BGP transmits BGP update packets with the AS number (either public
AS number or private AS number). To enable some outbound routers to ignore the
AS number when transmitting update packets, you can configure not to carry the
AS number when transmitting BGP update packets.
Example
Configure not to carry the private AS number when transmitting BGP update
packets to the peer named test.
[3Com-bgp] peer test public-as-only
View
BGP view or VPNv4 view
Parameter
■ group-name: Specifies the name of peer group.
Description
Using the peer reflect-client command, you can configure a peer/peer group as the
route reflector client. Using the undo peer reflect-client command, you can 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 its default group. A single peer peer-address
reflect-client command should be used to configure the route reflector clients.
For the related commands, see reflect between-clients and reflect cluster-id.
Example
Configure the peer group "test" as the route reflector client.
[3Com-bgp] peer test reflect-client
View
BGP view, VPNv4 view, VPN instance view
Parameter
■ group-name: Specifies the name of peer group.
■ peer-address: Specifies IP address of a peer.
■ route-policy-name: Specifies route-policy.
■ import: Applies the route-policy to the routes coming from the peer (group).
■ export: Applies the route-policy to the routes advertised to the peer (group).
Description
Using the peer route-policy command, you can assign the route-policy to the route
coming from the peer (group) or the route advertised to the peer (group). Using
the undo peer route-policy command, you can delete the specified route-policy.
By default, the peer (group) has no route-policy association.
Example
Apply the route-policy named test-policy to the route coming from the peer
group "test".
[3Com-bgp] peer test route-policy test-policy import
peer Syntax
route-update-interval peer { group-name } route-update-interval seconds
undo peer { group-name } route-update-interval
View
BGP view, VPNv4 view, VPN instance view
Parameter
■ group-name: Specifies the name of peer group.
■ seconds: The minimum interval of sending UPDATE message. The range is 0 to
600. By default, the advertisement interval is: 5 seconds for internal peer
(group), and 30 seconds for external peer (group).
Description
Using the peer route-update-interval command, you can configure the interval for
the transmission route of a peer (group). Using the undo peer
route-update-interval command, you can restore the default value.
Example
Configure the interval of the BGP peer 172.168.10.1 sending the route update
packet as 10 seconds.
[3Com-bgp] peer 172.168.10.1 as-number 100
[3Com-bgp] peer 172.168.10.1 route-update-interval 10
658 CHAPTER 6: ROUTING PROTOCOL
View
BGP view
Parameter
■ group-name: Specifies the name of peer group.
■ peer-address: Specifies the IP address of the peer.
■ keepalive-interval: Keepalive interval to be specified. The range is 1 to
4294967295 seconds. By default, its value is 60 seconds.
■ holdtime-interval: Holdtime interval to be specified. The range is 3 to
4294967295 seconds. By default, its value is 180 seconds.
Description
Using the peer timer command, you can configure Keepalive and Keepalive
interval for a peer (group). Using the undo peer timer command, you can restore
the interval default value.
The timer configured by using this command has a higher priority than the one
configured by using the timer command.
Example
Configure Keepalive and Holdtime intervals of the peer group "test".
[3Com-bgp] peer test timer keep-alive 60 hold 180
View
VPN instance view
Parameter
None
Description
Using the policy vpn-target command, you can configure whether to perform the
filtering on the vpn-target extended community of the received routing
information. Using the undo policy vpn-target command, you can cancel the filter
function.
By default, the system performs the filtering on the vpn-target extended
community of the received routing information.
BGP Configuration Commands 659
Example
Perform the filtering on the vpn-target extended community of the received
routing information.
[3Com-bgp] policy vpn-target
preference Syntax
preference value
undo preference
View
BGP protocol view, BGP multicast address family view
Parameter
■ value: Specifies the preference, ranging from 1 to 256. By default, the value is
170.
Description
Using the preference command, you can configure the preference of BGP
protocol. Using the undo preference command, you can restore the default
preference.
Each kind of routing protocol has its own preference, by which the routing policy
will select the optimal one from the routes of different protocols. The greater the
preference value is, the lower the preference is. BGP defines two kinds of routes:
One is learned from external peer. The other is learned from internal peer. The
preferences of the two routes can be different, which can be set manually.
The system supports to configure different preferences for different sub-address
families, including unicast address family and multicast address family at present.
Example
Configure the preference of BGP protocol to 150.
[3Com-bgp] preference 150
View
BGP view, VPNv4 view, VPN instance view
Parameter
None
Description
Using the reflect between-clients command, you can set the between-client
reflection of a route. Using the undo reflect between-clients command, you can
disable this function.
By default, the reflection between clients is disabled.
660 CHAPTER 6: ROUTING PROTOCOL
After route reflector is configured, it reflects the routes of a client to other clients.
For the related commands, see reflector cluster-id and peer reflect-client.
Example
Disable the reflection between clients.
[3Com-bgp] undo reflect between-clients
View
BGP unicast view, BGP multicast view, VPNv4 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: Interface address of the route reflector’s cluster ID.
Description
Using the reflector cluster-id command, you can configure the cluster ID of the
route reflector. Using the undo reflector cluster-id command, you can remove the
cluster ID of the route reflector.
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 to identify the cluster. You can configure multiple route reflectors to
improve the stability of the network. If a cluster is configured multiple route
reflectors, you can use this command to configure identical cluster ID for all the
reflectors.
For the related commands, see reflect between-clients and peer reflect-client.
Example
Set cluster ID for local router to identify the cluster.
[3Com-bgp] reflector cluster-id 80
[3Com-bgp] peer 11.128.160.10 reflect-client
View
User view
Parameter
■ all: Refreshes all the peers.
■ peer-address: Refreshes the peer specified address.
BGP Configuration Commands 661
Description
Using the refresh bgp command, you can request the peer for route
retransmission or retransmit routes to the peer.
After BGP connection is created, only incremental routes are transmitted. But in
some cases, for example, when routing policy is changed, retransmission of routes
is required on both ends. And the routes should be filtered again according to the
new policy.
Example
Request all the peers to retransmit multicast routes.
<3Com> refresh bgp all multicast import
Retransmit all the routes to the CE peer 10.1.1.1 in VPN-INSTANCE vpn1.
<3Com> refresh bgp 10.1.1.1 vpn-instance vpn1 export
View
User view
Parameter
■ all: Resets all the connections with BGP.
■ peer-address: Resets connection with a specified BGP peer.
■ vpn-instance vpn-instance-name: Name of specified VPN-INSTANCE. The
range is 1 to 19.
Description
Using the reset bgp peer-address command, you can reset the connection of BGP
with a specified BGP peer.
Using the reset bgp all command, you can reset all the connections with BGP.
After changing the BGP policy or protocol configuration, resetting BGP connection
can make the newly configured policy in effect immediately.
Example
Reset all the BGP connections to enable the new configuration (after configuring
the new Keepalive interval and Holdtime interval using the timer command).
<3Com> reset bgp all
662 CHAPTER 6: ROUTING PROTOCOL
View
User view
Parameter
■ regular-expression as-regular-expression: Clears the flap information matching
the AS path regular expression.
■ as-path-acl acl-number: Clears the flap information in consistency with a
specified filter list. The range of the parameter acl-number is 1 to 199.
■ network-address: Clears the flap information of a record at this IP address. If
this parameter is put before flap-info, the router clears the flap information of
all the routes from this address.
■ mask: Network mask.
Description
Using the reset bgp flap-info command, you can reset the flap information of a
route.
For the related command, see dampening.
Example
Clear the flap information of all the routes that go through filter list 10.
<3Com> reset bgp flap-info as-path-acl 10
View
User view
Parameter
■ group-name: Specifies the name of the peer group, in characters ranging from
1 to 47.
■ vpn-instance vpn-instance-name: Name of specified VPN-INSTANCE.The range
is 1 to 19.
Description
Using the reset bgp group command, you can reset the connections between the
BGP and all the members of a group.
For the related command, see peer group.
Example
Reset BGP connections of all members from group1.
<3Com> reset bgp group group1
BGP Configuration Commands 663
View
User view
Parameter
■ network-address: Network IP address related to the clearing attenuation
information.
■ mask: Network mask.
Description
Using the reset dampening command, you can clear the attenuation information
of a route and release the suppression of a suppressed route.
For the related commands, see dampening and display bgp routing-table
dampened.
Example
Clear the attenuation information of the route to the network 20.1.0.0, and
release the suppression of a suppressed route.
<3Com> reset dampening 20.1.0.0 255.255.0.0
View
BGP unicast view, BGP multicast view, VPN instance view
Parameter
None
Description
Using the summary automatic command, you can make automatic aggregation of
sub-network routes and disable it by using undo summary automatic command.
By default, no automatic aggregation of sub-network routes is executed.
After the summary automatic is configured, BGP cannot receive the sub-network
routes imported from the IGP, so the amount of the routing information can be
reduced.
Example
Make the automatic aggregation of the sub-network routes.
[3Com-bgp] summary automatic
View
BGP unicast view, BGP multicast view, VPNv4 view, VPN instance view
Parameter
■ keepalive-interval: Interval for sending Keepalive, ranging from 1 to
4294967295. By default, its value is 60 seconds.
■ holdtime-interval: Keepalive time of BGP, ranging from 3 to 4294967295. By
default, its value is 180 seconds.
Description
Using the timer keep-alive hold command, you can configure the Keepalive and
Holdtime timer of BGP. Using the undo timer keep-alive hold command, you can
restore the default value of the Keepalive and Holdtime timer.
Example
Configure the Keep-alive and Hold-time timer as 30 seconds and 60 seconds.
[3Com-bgp] timer keep-alive 30 hold 60
View
BGP view, VPN instance view
Parameter
None
Description
Using the undo synchronization command, you can remove the synchronization
between BGP and IBGP.
Example
[3Com-bgp] undo synchronization
MBGP Configuration
Commands
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.
ipv4-family Syntax
ipv4-family { multicast | vpn-instance vpn-instance-name }
undo ipv4-family [ multicast | vpn-instance vpn-instance-name ]
MBGP Configuration Commands 665
View
BGP view, VPN instance view
Parameter
■ multicast: Enters the BGP multicast extended address family view with the
parameter.
■ 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
parameter.
Description
Using the ipv4-family command, you can enter IPv4 extended address family view
of BGP. Using the undo ipv4-family command, you can remove all configurations
in extended address family view and return to IPv4 unicast address view of BGP.
This command is used to enter the IPv4 extended address family view. In this view,
parameters related to the address family can be configured for BGP.
The undo ipv4-family multicast command can exit the multicast extended address
family view, remove all configurations in the address family view and return to BGP
unicast view.
The undo ipv4-family vpn-instance vpn-instance-name command is used 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.
The ipv4-family multicast command is used for multicast. For relevant contents,
refer to "MBGP Multicast Extended" chapter in module "Multicast" of this
manual.
The ipv4-family vpn-instance command is used for BGP/MPLS VPN. For related
description, refer to "MPLS VPN" chapter in module "MPLS" module of this
manual.
For the related commands, see ipv4-family vpnv4 and peer enable.
Example
None
View
BGP view
Parameter
■ unicast: Enters VPN-IPv4 unicast address family view with this parameter.
Description
Using the ipv4-family vpnv4 command, you can enter VPNv4 address family view
of BGP. Using the undo ipv4-family vpnv4 command, you can delete all
666 CHAPTER 6: ROUTING PROTOCOL
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 VRP software platform only supports IPv4 unicast address of VPN.
Execution of the ipv4-family vpnv4 command will enter VPN-IPv4 unicast address
family view even if the unicast parameter is not specified.
For the related commands, see ipv4-family and peer enable.
Example
None
View
BGP view, VPNv4 view, VPN instance view
Parameter
■ group-name: Specifies the name of the peer group, which specifies the entire
peer group.
■ peer-address: IP address of the peer, which specifies a certain peer.
Description
Using the peer enable command, you can enable the specified peer/peer group
and disable it by using undo peer enable command.
By default, the unicast peer/peer group of IPv4 address family is enabled and other
peers/peer groups are disabled.
Using this command, you can enable/disable the routing exchange between the
peers (peer groups).
By default, the peer (group) of IPv4 unicast is enabled. The undo command is used
to disable them. When a connection is used in both unicast and multicast, you can
configure to disable unicast peer to delete unicast connection only.
By default, the peer (group) in other address families is disabled. It cannot
exchange routing information normally until it is enabled.
Example
Configure and enable the specified peer of VPNv4 unicast address family.
[3Com] bgp 100
[3Com-bgp] peer 10.15.0.15 as-number 100
[3Com-bgp] ipv4-family vpnv4 unicast
[3Com-bgp-af-vpn] peer 10.15.0.15 enable
Configure and enable the specified peer of IPv4 multicast address
family.
[3Com] bgp 200
[3Com-bgp] peer 20.10.0.1 as-number 200
[3Com-bgp] ipv4-family multicast
IP Routing Policy Configuration Commands 667
IP Routing Policy
Configuration
Commands
View
Routing policy view
Parameter
■ as-number-1... as-number-n: AS number to be added.
Description
Using the apply as-path command, you can specify AS number to be added in
front of the original AS path in route-policy. Using the undo apply as-path
command, you can cancel the AS sequence number added in front of the original
AS path.
By default, no AS number is set.
If the match condition of route-policy is matched, the AS attribute of the
transmitting route will be changed. At least 10 AS numbers can be added.
Example
Add AS 200 in front of the original AS path in route-policy.
[3Com-route-policy] apply as-path 200
View
Routing policy view
Parameter
■ aa:nn: Community number.
■ no-export-subconfed: Not sends the matched route outside AS.
■ no-advertise: Not sends the matched route to any peer.
■ no-export: Not passes route through AS but advertise to other sub Ass.
■ additive: Community attributes of additional routes.
■ none: Community attributes of deleted routes.
668 CHAPTER 6: ROUTING PROTOCOL
Description
Using the apply community command, you can specify the set BGP community
attribute of route-policy. Using the undo apply community command, you can
cancel the set BGP community attribute.
By default, BGP community attribute is not set.
Configure BGP community attribute after matching the route-policy conditions.
For the related command, see ip community-list, if-match community-list,
route-policy, and display bgp routing-table 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.
[3Com] route-policy setcommunity permit node 16
[3Com-route-policy] if-match as-path 8
[3Com-route-policy] apply community no-export
View
Routing policy view
Parameter
■ value: Specifies the route cost value of route information.
Description
Using the apply cost command, you can set the route cost value of route
information. Using the undo apply cost command, you can cancel the apply
clause.
For the related commands, see 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.
[3Com-route-policy] apply cost 120
View
Routing policy view
IP Routing Policy Configuration Commands 669
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
Using the apply cost-type command, you can set the route cost type of route
information. Using the undo apply cost-type command, you can cancel the apply
clause.
By default, route cost type is not set.
Example
Set the cost type of IGP as MED value of BGP
[3Com-route-policy] apply cost-type internal
View
Routing policy view
Parameter
■ 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 1 to 99
Description
Using the apply ip-address command, you can set the next hop address of route
information. Using the undo apply ip-address command, you can 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.
For the related commands, see 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.
[3Com-route-policy] apply ip-address 193.1.1.8
670 CHAPTER 6: ROUTING PROTOCOL
View
Routing policy view
Parameter
■ level-1: Imports the matched route to Level-1 area.
■ level-2: Imports the matched route to Level-2 area.
■ level-1-2: Imports the matched route to both Level-1 and Level-2 area.
Description
Using the apply isis command, you can apply the level of a matched route to be
imported to Level-1, Level-2 or Level-1-2. Using the undo apply isis command, you
can remove the setting clause.
By default, no apply clause is defined.
For the related commands, see 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
Define an apply clause to set the imported route to Level-2.
[3Com-route-policy] apply isis level-2
View
Routing policy view
Parameter
■ local-preference: Newly set local preference.
Description
Using the apply local-preference command, you can apply the local preference of
route information. Using the undo apply local-preference command, you can
cancel the apply clause.
For the related commands, see 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
Apply the local preference level of route information as 130 when this apply
clause is used for setting route information attribute.
[3Com-route-policy] apply local-preference 130
IP Routing Policy Configuration Commands 671
View
Routing policy view
Parameter
■ igp: Sets the BGP route information source as internal route
■ egp: Sets the BGP route information source as external route
■ as-number: Specifies AS number of external route.
■ incomplete: Sets the BGP route information source as unknown source.
Description
Using the apply origin command, you can set the routing source of BGP routing
information. Using the undo apply origin command, you can cancel the apply
clause.
For the related commands, see 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.
[3Com-route-policy] apply origin igp
View
Routing policy view
Parameter
■ value: Specifies the tag value of route information.
Description
Using the apply tag command, you can set the tag area of OSPF route
information. Using the undo apply tag command, you can cancel the apply clause.
For the related commands, see 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.
[3Com-route-policy] apply tag 100
672 CHAPTER 6: ROUTING PROTOCOL
View
Any view
Parameter
■ ip-prefix-name: Specifies displayed address prefix list name.
Description
Using the display ip ip-prefix command, you can view the address prefix list.
Display all the configured address prefix lists when no ip-prefix-name is specified.
For the related command, see ip ip-prefix.
Example
Display the information of the address prefix list named p1.
<3Com> display ip ip-prefix p1
ip-prefix p1
index 10: permit 192.168.10.10/16 greater-equal 17 less-equel 18
View
Any view
Parameter
■ route-policy-name: Specifies displayed route-policy name.
Description
Using the display route-policy command, you can view the configured route-policy
Display all the configured route-policy when no route-policy-name is specified.
For the related command, see route-policy.
Example
Display the information of route-policy named policy1.
<3Com> display route-policy policy1
Route-policy : policy1
Permit 10 : if-match (prefixlist) p1
apply cost 100
matched : 0 denied : 0
View
Routing protocol view
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
Using the filter-policy export command, you can configure the filtering conditions
of the routing information advertised by a certain type of routing protocols. Using
the undo filter-policy export command, you can 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.
For the related command, see 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.
[3Com-rip] filter-policy ip-prefix p1 export
View
Routing protocol 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.
■ 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.
674 CHAPTER 6: ROUTING PROTOCOL
Description
Using the filter-policy gateway import command, you can filter the routing
information advertised by a specified router. Using the undo filter-policy gateway
import command, you can cancel the setting of the filtering condition.
Using the filter-policy import command, you can configure the condition for
filtering the routing information. Using the undo filter-policy import command,
you can 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.
For the related command, see 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.
[3Com-rip] filter-policy ip-prefix p1 import
View
Routing policy 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
Using the if-match acl command, you can configure the IP address range to
match the route-policy. Using the undo if-match acl command, you can cancel the
setting of the match rule.
Filtering is performed by quoting an ACL.
For the related command, see 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 10 is enabled to pass the if-match clause.
[3Com-route-policy] if-match acl 10
IP Routing Policy Configuration Commands 675
View
Routing policy view
Parameter
■ acl-number: AS path based access list number, ranging from 1 to 199.
Description
if-match as-path acl-number
undo if-match as-path
View
Routing policy view
Parameter
■ acl-number: AS path list number. The range is 1 to 199.
Description
Using the if-match as-path command, you can configure the matched AS path list
number of route-policy. Using the undo if-match as-path command, you can
cancel the matched path list number.
By default, AS path list number is not matched.
This if-match clause of route-policy is used to filter BGP routing information. The
match condition is specified according to the AS path attributes of the routing
information.
Example
Define an as-path numbered as 2 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 a if-match clause, which
quotes the definition of as-path.
[3Com] ip as-path acl 2 permit 200:300
[3Com] route-policy test permit node 10
[3Com-route-policy] if-match as-path 2
View
Routing policy view
676 CHAPTER 6: ROUTING PROTOCOL
Parameter
■ standard-community-list-number: Standard community list number, ranging
from 1 to 99.
■ extended-community-list-number: Extended community list number, ranging
from 100 to 199.
■ whole-match: Fully matching, i.e., all the communities must appear.
Description
Using the if-match community command, you can configure the community list
number to be matched in route-policy. Using the undo if-match community
command, you can 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.
For the related commands, see route-policy and ip community-list.
Example
Define a community-list numbered as 1, and allow the autonomous system
number to contain the routing information of 100 and 200. Then, the
route-policy named test is defined. The node No.10 of the route-policy defines a
if-match clause, which quotes the definition of the community-list.
[3Com] ip community-list 1 permit 100:200
[3Com] route-policy test permit node 10
[3Com-route-policy] if-match community 1
View
Routing policy view
Parameter
■ value: Specifies the required route cost value, ranging from 0 to 4294967295.
Description
Using the if-match cost command, you can configure one of the matching rules of
route-policy to match the cost of the routing information. Using the undo if-match
cost command, you can 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.
For the related command, see 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.
IP Routing Policy Configuration Commands 677
Example
Define an if-match clause, which allows the routing information with routing cost
8 to pass this if-match clause.
[3Com-route-policy] if-match cost 8
View
Routing policy view
Parameter
■ interface-type: Specifies interface type.
■ interface-number: Specifies interface number.
■ interface-name: Specifies interface name.
Description
Using the if-match interface command, you can match the route whose next hop
is designated interface. Using the undo if-match interface command, you can
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.
For the related command, see 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.
[3Com-route-policy] if-match interface Ethernet1/0/2
View
Routing policy view
Parameter
■ acl-number: Specifies the number of the access control list used for filtering.
The range is 1 to 99.
■ ip-prefix-name: Specifies the name of the prefix address list used for filtering.
The range is 1 to 19.
678 CHAPTER 6: ROUTING PROTOCOL
Description
Using the if-match ip next-hop command, you can configure one of the match
rules of route-policy on the next hop address of the routing information. Using the
undo if-match ip next-hop command, you can 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.
For the related command, see if-match interface, if-match acl, if-match ip-prefix,
if-match cost, if-match tag, route-policy, apply ip-address, apply cost, apply
local-preference, apply origin, and apply tag.
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.
[3Com-route-policy] if-match ip next-hop ip-prefix p1
View
Routing policy view
Parameter
■ ip-prefix-name: Specifies the name of the prefix address list used for filtering.
Description
Using the if-match ip-prefix command, you can configure one of the match rules
of route-policy on the IP address range of the routing information. Using the undo
if-match ip next-hop command, you can cancel the setting of match condition.
The filtering is achieved through importing an IP address prefix name.
For the related command, see 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
Define an if-match sub-statement in which the IP address prefix list p1 is used in
routing information filtering.
[3Com-route-policy] if-match ip-prefix p1
View
Routing policy view
Parameter
■ value: Specifies the required tag value.
Description
Using the if-match tag command, you can match the tag field of OSPF route
information. Using the undo if-match tag command, you can cancel the existing
matching rules.
For the related command, see 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.
[3Com-route-policy] if-match tag 8
ip ip-prefix Syntax
ip ip-prefix ip-prefix-name [ index index-number ] { permit | deny } network len [
greater-equal greater-equal | less-equal less-equal ]
undo ip ip-prefix ip-prefix-name [ index index-number | permit | deny ]
View
System view
Parameter
■ ip-prefix-name: Specifies an address prefix list name. It identifies one address
prefix list uniquely.
■ 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
680 CHAPTER 6: ROUTING PROTOCOL
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
Using the ip ip-prefix command, you can configure an address prefix list or one of
its items. Using the undo ip ip-prefix command, you can 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.
[3Com] ip ip-prefix p1 permit 10.0.192.0 8 greater-equal 17
less-equal 18
route-policy Syntax
route-policy route-policy-name { permit | deny } node { node-number }
undo route-policy route-policy-name [ permit | deny | node node-number ]
View
System view
Parameter
■ route-policy-name: Specifies the route-policy name to identify one route-policy
uniquely.
■ permit: Specifies the match mode of the defined route-policy node as permit
mode. If a route matches all the if-match clauses, it is permitted to pass the
filtering and execute the apply clauses of this node. If not, it will take the test
of next node of this route-policy.
■ deny: Specifies the match mode of the defined route-policy node as deny
mode. When a route matches all the if-match clauses of this node, it will be
refused to pass the filtering and will not take the next test.
■ node: Node of the route policy.
■ node-number: Index of the node in the route-policy. When this route-policy is
used for routing information filtering, the node with smaller node-number will
be tested first.
Route Capacity Configuration Commands 681
Description
Using the route-policy command, you can create and enter route-policy view.
Using the undo route-policy command, you can cancel the established
route-policy.
By default, no route-policy is defined.
Route-policy is used for route information filtering or route policy. One
route-policy comprises of some nodes and each node comprises of some if-match
and apply clauses. The if-match clause defines the match rules of this node and
the apply clause defines the actions after passing the filtering of this node. The
filtering relationship between the if-match clauses of the node is "and", i.e., all
if-match clauses that meet the node. The filtering relation between route-policy
nodes is "OR", i.e. passing the filtering of one node means passing the filtering of
this route-policy. If the information does not pass the filtering of any nodes, it
cannot pass the filtering of this route-policy.
For the related command, see if-match interface, if-match acl, if-match ip-prefix,
if-match ip next-hop, if-match cost, if-match tag, apply ip-address, apply
local-preference, apply cost, apply origin, and apply tag.
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.
[3Com] route-policy policy1 permit node 10
[3Com-route-policy]
Route Capacity
Configuration
Commands
View
Any view
Parameter
None
Description
Using the display memory limit command, you can view the memory setting and
state information related to the router 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
Display the current memory setting and state information.
<3Com> display memory limit
682 CHAPTER 6: ROUTING PROTOCOL
Item 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.
memory auto-establish enabled The system allows recovering the connection automatically.
(If the automatic recover is disabled, the "auto-establish
disabled" will be displayed.)
Free Memory: 73855332 (Byte) The size of the current idle memory is 73855332 bytes, that
is, 73.855M.
The times of disconnect: 0 The times of the connection disconnecting of the router is 0.
The times of reconnect: 0 The times of the connection re-establishment of the router is
0.
The current state: Normal The current state is normal. (If entering the emergent state,
the system will display "Exigency" .)
View
System view
Parameter
None
Description
Using the memory auto-establish disable command, you can 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).
Using the memory auto-establish disable command, you can 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.
Route Capacity Configuration Commands 683
Example
Disable to recover the connections of all the protocols automatically when the
current router memory resumes.
[3Com] memory auto-establish disable
[3Com]
%3/13/2003 15:47:2-RM-5-S1-RTLOG:You have changed the model of
connection
View
System view
Parameter
None
Description
Using the memory auto-establish enable command, you can 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).
Using the memory auto-establish disable command, you can disable the above function.
Using the memory auto-establish enable command, you can enable the above function
again. By default, the function is always enabled.
For the related command, see memory auto-establish disable, memory { safety | limit },
and display memory limit.
Example
Enable memory resume of the current router and recover connections of all the
protocols automatically.
[3Com] memory auto-establish enable
[3Com]
%3/13/2003 15:48:2-RM-5-S1-RTLOG:You have changed the model of
connection
View
System view
684 CHAPTER 6: ROUTING PROTOCOL
Parameter
■ limit-value: Lower limit of the router idle memory, in the unit of Mbytes. Its
value range depends on the idle memory of the current router. The default
value is 20Mbytes.
Description
Using the memory limit command, you can configure the lower limit of the router
idle memory. When the idle memory of the router is less than this limit, all the
routing protocol connections will be disconnected forcibly. Using the undo
memory limit command, you can configure the safety value and the lower limit of
the router idle memory to the default configuration.
The limit-value in the command must be less than the current idle memory safety
value, and otherwise the configuration will fail.
This command can be used with memory safety command to change the safety
value and lower limit of the router idle memory. The safety-value must be more
than the limit-value in the command, and otherwise the configuration will fail.
For the related commands, see memory auto-establish disable, memory
auto-establish enable, memory safety, and display memory limit.
Example
Set the lower limit of the router idle memory to 25Mbytes.
[3Com] memory limit 25
[3Com]
%8/19/2002 16:35:41-RM-5-RTLOG:You have changed the memory
limit/safety value
Set the lower limit of the router idle memory to 25Mbytes and the
safety value to 30Mbytes.
[3Com] memory safety 35 limit 25
[3Com]
%8/19/1995 15:45:58-RM-5-RTLOG:Changed the system memory
limit(20->25)/ safety(30->35) successfully
View
System view
Parameter
■ safety-value: Safety value of the router idle memory, in the unit of Mbytes. Its
value range depends on the idle memory of the active router. The default value
is 30Mbytes.
Description
Using the memory safety command, you can configure the safety value of the
router idle memory. Using the undo memory safety command, you can configure
the safety value and the lower limit of the router idle memory to the default
configuration.
Route Capacity Configuration Commands 685
The safety-value in the command must be more than the current idle memory
lower limit, and otherwise the configuration will fail.
This command can be used with memory limit command to change the safety
value and lower limit of the router idle memory. The safety-value must be more
than the limit-value in the command, and otherwise the configuration will fail.
For the related commands, see memory auto-establish disable, memory
auto-establish enable, memory limit, and display memory limit.
Example
Set the safety value of the router to 35Mbytes.
[3Com] memory safety 35
[3Com]
%8/19/2002 16:35:41-RM-5-RTLOG:You have changed the memory
limit/safety value
Set the lower limit of the router idle memory to 25Mbytes and the
safety value to 30Mbytes.
[3Com] memory safety 35 limit 25
[3Com3Com]
%8/19/1995 15:45:58-RM-5-RTLOG:Changed the system memory
limit(20->25)/ safety(30->35) successfully
686 CHAPTER 6: ROUTING PROTOCOL
Multicast Common Configuration
7 Commands
Multicast Common
Configuration
Commands
View
User view
Parameter
None
Description
Using the debugging multicast forwarding command, you can enable multicast
packet forwarding debugging functions. Using the undo debugging multicast
forwarding command, you can disable the debugging functions.
Example
Enable multicast packet forwarding debugging functions.
<3Com> debugging multicast forwarding
View
User view
Parameter
None
Description
Using the debugging multicast kernel-routing command, you can enable multicast
kernel routing debugging functions. Using the undo debugging multicast
kernel-routing command, you can disable the debugging functions.
Example
Enable multicast kernel routing debugging functions.
<3Com> debugging multicast kernel-routing
View
User view
Parameter
None
Description
Using the debugging multicast status-forwarding command, you can enable
multicast forwarding status debugging functions. Using the undo debugging
multicast status-forwarding command, you can disable the debugging functions.
Example
Enable multicast forwarding status debugging functions.
<3Com> debugging multicast status-forwarding
View
Any view
Multicast Common Configuration Commands 689
Parameter
group-address: Multicast group address, used to specify a multicast group,
ranging from 224.0.0.0 to 239.255.255.255.
mask: Mask.
Description
Using the display multicast forwarding-table command, you can view the
information of multicast forwarding table.
Example
Display the multicast forwarding table information.
<3Com> display multicast forwarding-table
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.
690 CHAPTER 7: MULTICAST COMMON CONFIGURATION COMMANDS
Description
Using the display multicast routing-table command, you can view the information
of IP multicast routing table.
This command displays the multicast routing table information, while the display
multicast forwarding-table command displays the multicast forwarding table
information.
The entry (S, G) in the multicast routing table, i.e., (multicast source, multicast
group) acts as the independent entry in the table. Each entry has an unique
Upstream, indicating the interface through which RPF goes to the multicast
source. Each entry has also a Downstream List, indicating which interfaces need
multicast forwarding. The related information about (S, G) includes:
■ proto - The multicast protocol number which possesses the (S, G) (in
hexadecimal notation format).
■ Flags - All kinds of flags, such as RPT 0x1, WC 0x2, SPT 0x4, NEG CACHE 0x8
and JOIN SUPP 0x10. All the flags are marked by binary “bit”. In which, RPT
indicates the (S, G) is in the shared tree status. WC is the abbreviation of
wildcard. SPT indicates the shortest path tree. NEG CACHE indicates the cache
record that the downstream interface list is null. JOIN SUPP indicates the prune
suppression status.
Example
Display the corresponding route entry information of multicast group in the
multicast routing table.
<3Com> display multicast routing-table
Multicast Routing Table
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
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.
mask: Mask.
Multicast Common Configuration Commands 691
Description
Using the display multicast routing-table static command, you can view the
configuration information of static multicast route.
Example
Display the configuration information of static multicast route.
<3Com>display multicast routing-table static
100.10.0.0/16
RPF interface = 10.10.1.20(Ethernet0/0/0), RPF neighbor =
10.10.1.20
Matched routing protocol = <none>, route-policy = <none>,
preference = 1
Running config = ip rpf-route-static 100.10.0.0 16 Ethernet0/0/0
preference 1
View
Any view
Parameter
source-address: IP address of the multicast source.
Description
Using the display multicast rpf-info command, you can view the Reverse Path
Forwarding (RPF) routing information for specified multicast source.
Example
Display all the RPF routing information.
<3Com> display multicast rpf-info 192.193.194.192
Multicast source's RPF route information about 192.193.194.192
RPF interface: InLoopBack0, RPF neighbor: 127.0.0.1
Referenced route/mask: 192.193.194.192/32
Referenced route type: unicast (DIRECT)
RPF-route selecting rule: preference-preferred
mtracert Syntax
mtracert { source-address } [ last-hop-address ] [ group-address ]
View
Any view
Parameter
source-address: Address of the multicast source.
692 CHAPTER 7: MULTICAST COMMON CONFIGURATION COMMANDS
Description
Using the mtracert command, you can 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.
<3Com> 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
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.
-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
View
Interface view
Parameter
ttl-value: The minimum TTL value, ranging from 0 to 255.
Description
Using the multicast minimum-ttl command, you can configure the minimum TTL
value for multicast forwarding. Using the undo multicast minimum-ttl command,
you can remove the minimum TTL value configured.
Example
Configure the minimum TTL value for multicast forwarding to 8.
<3Com-Ethernet1/0/1] multicast minimum-ttl 8
multicast Syntax
packet-boundary multicast packet-boundary acl-number
View
Interface view
Parameter
acl-number: Number of basic or advanced ACL, ranging from 1 to 199.
694 CHAPTER 7: MULTICAST COMMON CONFIGURATION COMMANDS
Description
Using the multicast packet-boundary command, you can configure a multicast
forwarding boundary. Using the undo multicast packet-boundary command, you
can remove the multicast forwarding boundary configured.
You can set boundary conditions for multicast packets on an interface via basic or
advanced Access Control List (ACL). Packets denied by the ACL will be discarded.
The source address of a multicast packet can be filtered through the basic ACL.
Both the source address and the destination address (source group address) of a
multicast packet can be filtered through the advanced ACL.
Example
Set boundary conditions for multicast packets through the basic ACL 1.
<3Com-Ethernet1/0/1] multicast packet-boundary 1
View
System view
Parameter
limit: Limit of multicast routing table capacity, ranging from 0 to
MAX_MROUTE_LIMIT. In which, MAX_MROUTE_LIMIT differs with the different
router types.
Description
Using the multicast route-limit command, you can 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).
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
Limit the multicast routing table capacity to 1000.
<3Com] multicast route-limit 1000
View
System view
Parameter
None
Description
Using the multicast routing-enable command, you can enable IP multicast routing.
Using the undo multicast routing-enable command, you can disable IP multicast
routing.
the system will not forward any multicast packet when IP multicast routing is
disabled.
Example
Enable IP multicast routing.
<3Com> system-view
<3Com] multicast routing-enable
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.
slot-number: Number of the slot where the interface board resides. This parameter
is only present in the distributed router.
Description
Using the reset multicast forwarding-table command, you can 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.
For the related commands, see reset pim routing-table, reset multicast
routing-table, and display multicast forwarding-table.
Example
Clear the forwarding entry whose group address is 225.5.4.3 from the MFC
forwarding table.
<3Com> 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.
View
User view
Parameter
all: All the route entries in multicast kernel routing table.
Description
Using the reset multicast routing-table command, you can 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.
For the related commands, see reset pim routing-table, reset multicast
forwarding-table. and display multicast forwarding-table.
Example
Clear the route entry whose group address is 225.5.4.3 from the multicast kernel
routing table.
<3Com> reset multicast routing-table 225.5.4.3
IGMP Configuration
Commands
View
User view
Parameter
all: All the debugging information of IGMP.
Description
Using the debugging igmp command, you can enable IGMP debugging functions.
Using the undo debugging igmp command, you can disable the debugging
functions.
Example
Enable all IGMP debugging functions
<3Com> debugging igmp all
View
Any view
Parameter
group-address: Multicast group address.
local: Information of the local interface which receives and sends multicast data.
Description
Using the display igmp group command, you can 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.
Example
Display the member information of the directly connected sub-network.
<3Com> display igmp group
LoopBack0 (20.20.20.20): Total 3 IGMP Groups reported:
Group Address Last Reporter Uptime Expires
225.1.1.1 20.20.20.20 00:02:04 00:01:15
225.1.1.3 20.20.20.20 00:02:04 00:01:15
225.1.1.2 20.20.20.20 00:02:04 00:01:17
Item Description
Group address Multicast group address
Last Reporter Report the last host which becomes the multicast group member
Uptime The time since the multicast group is found (hour, minute, second)
Expires The predicted time when the record will be removed from the IGMP
group table (hour, minute, second)
View
Any view
Parameter
interface-type interface-number: Interface type and interface number of the
router, used to specify the interface. If the parameters are not specified,
information about all the interfaces running IGMP will be displayed.
Description
Using the display igmp interface command, you can view the IGMP configuration
and running information on an interface.
■ If the interface is neither a proxy nor a client, the configuration of IGMP Proxy
will not be displayed.
■ If the interface is a proxy, all the clients will be displayed.
■ If the interface is a client, the proxy will be displayed.
Example
Display the IGMP configuration and running information on an interface.
<3Com> display igmp interface
Ethernet0/0/0 (10.10.1.20):
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: 10.10.1.10
Total 2 IGMP groups reported
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
View
Any view
Parameter
local: Information of the local interface which receives and sends multicast data.
700 CHAPTER 7: MULTICAST COMMON CONFIGURATION COMMANDS
Description
Using the display igmp local command, you can 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.
<3Com> 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
View
Interface view
Parameter
None
Description
Using the igmp enable command, you can enable IGMP on an interface. Using the
undo igmp enable command, you can disable IGMP on an interface.
Only after multicast is enabled, can this command take effect. After this command
is configured, the configuration of other attributes of IGMP can be performed.
Example
Enable IGMP on the interface Ethernet0/0/0.
<3Com-Ethernet0/0/0] igmp enable
View
Interface view
IGMP Configuration Commands 701
Parameter
limit: Number of IGMP groups, ranging from 0 to MAX_IF_IGMP_GROUP_LIMIT.
The value of MAX_IF_IGMP_GROUP_LIMIT on routers is MAX_MROUTE_LIMIT,
which differs with the different router types.
Description
Using the igmp group-limit command, you can 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. Using the undo igmp group-limit command,
you can 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.
<3Com-Ethernet1/0/0] igmp group-limit 100
View
Interface view
Parameter
acl-number: Number of basic IP ACL, defining the range of a multicast group. The
value ranges from 1 to 99.
1: IGMP Version 1.
Description
Using the igmp group-policy command, you can set the filter of multicast groups
on an interface to control the accessing to the IP multicast groups. Using the undo
igmp group-policy command, you can 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.
702 CHAPTER 7: MULTICAST COMMON CONFIGURATION COMMANDS
Example
Permit the hosts on the interface Ethernet1/0/0 to join multicast group 225.1.1.1
only.
<3Com] acl number 5
<3Com-acl-basci-5] rule permit source 225.1.1.1 0
<3Com-acl-basci-5] quit
<3Com] interface ethernet 1/0/0
<3Com-Ethernet1/0/0] igmp group-policy 5
View
Interface view
Parameter
group-address: Multicast address of the multicast group that an interface will join.
Description
Using the igmp host-join command, you can enable an interface of a router to join
a multicast group. Using the undo igmp host-join command, you can disable the
configuration.
Example
Configure Ethernet1/0/0 to join the multicast group 255.0.0.1.
<3Com-Ethernet1/0/0] igmp host-join 225.0.0.1
igmp Syntax
lastmember-queryinterv igmp lastmember-queryinterval seconds
al
undo igmp lastmember-queryinterval
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.
IGMP Configuration Commands 703
Description
Using the igmp lastmember-queryinterval command, you can set the interval at
which IGMP querier sends the IGMP specified group query packet when it receives
IGMP Leave packet from the host. Using the undo igmp lastmember-queryinterval
command, you can 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 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.
For the related commands, see 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.
<3Com-Ethernet1/0/0] igmp lastmember-queryinterval 3
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
Using the igmp max-response-time command, you can configure the maximum
response time contained in the IGMP query packet. Using the undo igmp
max-response-time command, you can restore the default value.
704 CHAPTER 7: MULTICAST COMMON CONFIGURATION COMMANDS
The maximum query response time determines the period for a router to quickly
detect that there are no more directly connected group members in a LAN.
Example
Configure the maximum response time to 8 seconds.
<3Com-Ethernet1/0/0] igmp max-response-time 8
View
Interface view
Parameter
interface-type: Proxy interface type.
Description
Using the igmp proxy command, you can specify an interface of a leaf network
router as the IGMP proxy of another interface. Using the undo igmp proxy
command, you can remove the configuration.
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.
Example
Configure the IGMP proxy of router Ethernet0/0/0 to Ethernet1/0/0.
<3Com-Ethernet0/0/0] igmp proxy ethernet 1/0/0
View
Interface view
IGMP Configuration Commands 705
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
Using the igmp robust-count command, you can set the times IGMP querier sends
the IGMP specified group query packet when it receives IGMP Leave packet from
the host. Using the undo igmp robust-count command, you can restore the
default value.
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.
For the related commands, see igmp lastmember-queryinterval and display igmp
interface.
Example
Configure the robust-value of querier on the interface Ethernet1/0/0 to 3.
<3Com-Ethernet1/0/0] igmp robust-count 3
View
Interface view
Parameter
seconds: IGMP querier present time, in second. The value ranges from 60 to 300
seconds. By default, the value is twice of IGMP query messages interval. It is 120
seconds in general.
706 CHAPTER 7: MULTICAST COMMON CONFIGURATION COMMANDS
Description
Using the igmp timer other-querier-present command, you can configure the
overtime value of presence of IGMP querier. Using the undo igmp timer
other-querier-present command, you can 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.
For the related commands, see igmp timer query and 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.
<3Com-Ethernet1/0/0] igmp timer other-querier-present 200
View
Interface view
Parameter
seconds: Interval at which the router sends the IGMP query messages, in second. It
ranges from 1 to 18000. By default, the value is 60 seconds.
Description
Using the igmp timer query command, you can configure the interval at which a
router interface sends IGMP query messages. Using the undo igmp timer query
command, you can 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.
Example
Configure the interval at which multicast router Ethernet1/0/0 sends IGMP query
packet to 125 seconds.
<3Com-Ethernet1/0/0] igmp timer query 125
IGMP Configuration Commands 707
View
Interface view
Parameter
1: IGMP Version 1.
Description
Using the igmp version command, you can specify the version of IGMP that a
router uses. Using the undo igmp version command, you can 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.
Example
Specify Ethernet1/0/0 to use IGMP Version 1.
<3Com-Ethernet1/0/0] igmp version 1
View
User view
Parameter
all: All IGMP groups.
Description
Using the reset igmp group command, you can delete the IGMP group joined on
the interface. The deletion of the group does not affect its joining again.
Example
Delete all the IGMP groups on all interfaces.
<3Com> reset igmp group all
Delete the IGMP groups ranging between the network segment 225.1.1.0 and
225.1.1.255 on the interface Ethernet0/0/0.
PIM Configuration
Commands
bsr-policy Syntax
bsr-policy acl-number
undo bsr-policy
View
PIM view
Parameter
acl-number: ACL number used by BSR filter policy , ranging from 1 to 99.
Description
Using the bsr-policy command, you can restrict the range for valid BSR so as to
prevent BSR spoofing. Using the undo bsr-policy command, you can 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:
■ 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.
■ 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
PIM Configuration Commands 709
are permitted as BSR, the router will 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.
Example
Configure BSR filter policy on a router. Only permit 1.1.1.1/32 to act as BSR and
regard others are invalid.
<3Com-pim] bsr-policy 1
<3Com-pim] quit
<3Com] acl number 1
<3Com-acl-basic-1] rule 0 permit source 1.1.1.1 0
c-bsr Syntax
c-bsr interface-type interface-number hash-mask-len [ priority ]
undo c-bsr
View
PIM view
Parameter
interface-type interface-number: Interface type and interface number of a router.
A candidate BSR is configured on this interface. PIM-SM must be enabled on this
interface, the configuration can take effect.
hash-mask-len: Mask length. The mask performs “And” operation with multicast
address at first and then performs the operation of searching for RP. The value
ranges from 0 to 32.
priority: Priority of the candidate BSR. The larger the value is, the higher the
priority of candidate BSR is. The value ranges from 0 to 255. By default, the
priority is 0.
Description
Using the c-bsr command, you can configure a candidate BSR. Using the undo
c-bsr command, you can remove the candidate BSR configuration.
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.
710 CHAPTER 7: MULTICAST COMMON CONFIGURATION COMMANDS
Example
Configure the IP address of the router on Ethernet1/0/0 as a candidate BSR with
the priority 2.
<3Com> system-view
<3Com] multicast routing-enable
<3Com] pim
<3Com-pim] c-bsr ethernet1/0/0 30 2
c-rp Syntax
c-rp interface-type interface-number [ group-policy acl-number ] [ priority
priority-value ]
View
PIM view
Parameter
interface-type interface-number: Specified interface with the IP address advertised
as a candidate RP address.
acl-number: Number of basic ACL that defines a group range, which is the service
range of the advertised RP. The value ranges from 1 to 99.
priority-value: Priority of a candidate RP. The larger the value is, the lower the
priority is. The value ranges from 0 to 255. By default, the value is 0.
Description
Using the c-rp command, you can configure the router to advertise itself as a
candidate RP to BSR. Using the undo c-rp command, you can remove the
configuration.
Example
Configure the interface Ethernet1/0/0 as the candidate RP for all groups.
<3Com> system-view
<3Com] multicast routing-enable
<3Com] pim
<3Com-pim] c-rp ethernet 1/0/0
crp-policy Syntax
crp-policy acl-number
PIM Configuration Commands 711
undo crp-policy
View
PIM view
Parameter
acl-number: ACL number used by C-RP filter policy, ranging from 100 to 199.
Description
Using the crp-policy command, you can restrict the range for valid C-RP and the
group range served by each C-RP so as to prevent C-RP cheating. Using the undo
crp-policy command, you can 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.
This command uses the ACL numbered from 100 to 199. 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.
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.
<3Com-pim] crp-policy 100
<3Com-pim] quit
<3Com] acl number 100
<3Com-acl-adv-100] rule 0 permit ip source 1.1.1.1 0 destination
225.1.0.0 0.0.255.255
View
User view
712 CHAPTER 7: MULTICAST COMMON CONFIGURATION COMMANDS
Parameter
all: All the common debugging information of PIM.
Description
Using the debugging pim common command, you can enable common PIM
debugging functions. Using the undo debugging pim common command, you
can disable the debugging functions.
Example
Enable all common PIM debugging functions.
<3Com> debugging pim common all
undo debugging pim dm { alert | all | mrt | timer | warning | { recv | send } { all |
assert | graft | graft-ack | join | prune } }
View
User view
Parameter
all: All the debugging information of PIM-DM.
Description
Using the debugging pim dm command, you can enable PIM-DM debugging
functions. Using the undo debugging pim dm command, you can disable the
debugging functions.
Example
Enable all PIM-DM debugging functions
<3Com> debugging pim dm all
undo debugging pim sm { all | mbr | mrt | msdp | timer | verbose | warning | { recv |
send } { assert | bootstrap | crpadv | jp | reg | regstop } }
View
User view
Parameter
mbr: Debugging information of PIM-SM multicast boundary router event.
Description
Using the debugging pim sm command, you can enable PIM-SM debugging
functions. Using the undo debugging pim sm command, you can disable the
debugging functions.
The command debugging pim sm register-proxy is only suitable for the distributed
router. This command can enable the debugging when an interface board acts as
a proxy of main control board to send register packets.
714 CHAPTER 7: MULTICAST COMMON CONFIGURATION COMMANDS
Example
Enable all PIM-SM debugging functions
<3Com> debugging pim sm all
View
Any view
Parameter
None
Description
Using the display pim bsr-info command, you can view Bootstrap Router (BSR)
information.
Example
Execute this command on a router running PIM-SM and display the current BSR
information.
<3Com> display pim bsr-info
Current BSR Address: 20.20.20.30
Priority: 0
Mask Length: 30
Expires: 00:01:55
Local host is BSR
View
Any view
Parameter
interface-type interface-number: Interface type and interface number.
Description
Using the display pim interface command, you can view the PIM interface
information.
Example
Display the PIM information about the interface Ethernet1/0/0.
<3Com> display pim interface ethernet 1/0/0
PIM information of interface Ethernet1/0/0:
IP address of the interface is 10.10.1.20
PIM is enabled on interface
PIM version is 2
PIM Configuration Commands 715
Item Description
PIM is enabled on interface PIM SM is enabled on the interface Ethernet1/0/0.
PIM query interval is 30 seconds The sending interval of Hello message is 30
seconds.
PIM DR (designated router) is 10.10.1.20 IP address of DR is 10.10.1.20.
View
Any view
Parameter
interface-type interface-number: Interface type and interface number.
Description
Using the display pim neighbor command, you can view the PIM neighbor
information.
Example
Display the PIM neighbor information of the interface Ethernet1/0/0 on the router.
<3Com> 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
View
Any view
Parameter
**rp: (*, *, RP) route entry.
Description
Using the display pim routing-table command, you can view the contents of the
PIM multicast routing table.
Example
Display the contents of the PIM multicast routing table on the router.
<3Com> display pim routing-table
PIM-SM Routing Table
Total 0 (S,G) entry, 2 (*,G) entries, 0 (*,*,RP) entry
View
Any view
Parameter
group-address: Group address.
Description
Using the display pim rp-info command, you can view the corresponding RP
information of multicast group, BSR and static RP information.
Example
Display the currently corresponding RP of 224.0.0.0.
<3Com> display pim rp-info 224.0.0.0
PIM-SM RP-SET information:
PIM Configuration Commands 717
Group/MaskLen: 224.0.0.0/4
RP 20.20.20.20
Version: 2
Priority: 0
Uptime: 00:00:05
Expires: 00:02:25
pim Syntax
pim
undo pim
View
System view
Parameter
None
Description
Using the pim command, you can enter PIM view. Using the undo pim command,
you can clear the configuration in PIM view.
The global parameter which is related with the PIM must be configured in PIM
view.
Example
<3Com> system-view
<3Com] multicast routing-enable
<3Com] pim
<3Com-pim]
View
Interface view
Parameter
None
Description
Using the pim bsr-boundary command, you can configure an interface to become
the PIM domain boundary. Using the undo pim bsr-boundary command, you can
remove the boundary.
Example
Configure a domain boundary on the interface Pos1/0/0.
<3Com-Pos1/0/0] pim bsr-boundary
pim dm Syntax
pim dm
undo pim dm
View
Interface view
Parameter
None
Description
Using the pim dm command, you can enable PIM-DM. Using the undo pim dm
command, you can disable PIM-DM.
Example
Enable PIM-DM on the interface Ethernet1/0/0.
<3Com] multicast routing-enable
<3Com] interface ethernet1/0/0
<3Com-Ethernet1/0/0] pim dm
View
Interface view
Parameter
limit: Upper limit of PIM neighbor number on an interface, ranging from 0 to 128.
Description
Using the pim neighbor-limit command, you can limit PIM neighbor number on an
router interface. If the number exceeds the limit configured, no new neighbor can
PIM Configuration Commands 719
be added to the router. Using the undo pim neighbor-limit command, you can
restore the default configuration.
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.
<3Com-Ethernet1/0/0] pim neighbor-limit 50
View
Interface view
Parameter
acl-number: Number of basic ACL. The value ranges from 1 to 99.
Description
Using the pim neighbor-policy command, you can configure a router to filter the
PIM neighbor of the current interface. Using the undo pim neighbor-policy
command, you can 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
Configure 10.10.1.2 rather than 10.10.1.1 as the PIM neighbor of Ethernet1/0/0.
<3Com-Ethernet1/0/0] pim neighbor-policy 1
<3Com-Ethernet1/0/0] quit
<3Com] acl number 1
<3Com-acl-basic-1] rule permit source 10.10.1.2 0
<3Com-acl-basic-1] rule deny source 10.10.1.1 0
pim sm Syntax
pim sm
undo pim sm
View
Interface view
720 CHAPTER 7: MULTICAST COMMON CONFIGURATION COMMANDS
Parameter
None
Description
Using the pim sm command, you can enable PIM-SM protocol on an interface.
Using the undo pim sm command, you can disable PIM-SM protocol.
Example
Enable PIM-SM on the interface Ethernet1/0/0.
<3Com> system-view
<3Com] multicast routing-enable
<3Com] interface ethernet 1/0/0
<3Com-Ethernet1/0/0] pim sm
View
Interface view
Parameter
seconds: Interval of sending Hello message in second, ranging from 1 to 18000.
By default, the value is 30 seconds.
Description
Using the pim timer hello command, you can configure the interval of sending PIM
router Hello message. Using the undo pim timer hello command, you can 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.
<3Com-Ethernet1/0/0] pim sm
<3Com-Ethernet1/0/0] pim timer hello 40
register-policy Syntax
register-policy acl-number
undo register-policy
View
PIM view
PIM Configuration Commands 721
Parameter
acl-number: Number of advanced IP ACL, defining the rule of filtering the source
and group addresses. The value ranges from 100 to 199.
Description
Using the register-policy command, you can configure a RP to filter the register
packet sent by the DR in the PIM-SM network and to accept the specific packet
only. Using the undo register-policy command, you can 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.
<3Com> system-view
<3Com] acl number 110
<3Com-acl-adv-110] rule permit ip source 10.10.0.0 255.255.0.0
destination 225.1.0.0 255.255.0.0
<3Com-acl-adv-110] quit
<3Com] multicast routing-enable
<3Com] pim
<3Com-pim] register-policy 110
View
User view
Parameter
all: All PIM neighbors.
Description
Using the reset pim neighbor command, you can clear PIM neighbor.
Example
Clear the PIM neighbor of the interface addressed with 25.5.4.3.
<3Com> reset pim neighbor 25.5.4.3
View
User view
Parameter
all: All PIM route entries.
Description
Using the reset pim routing-table command, you can 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.
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.
For the related commands, see reset multicast routing-table, reset multicast
forwarding-table, and display pim routing-table.
Example
Clear the route entry with group address of 225.5.4.3 in PIM routing table.
PIM Configuration Commands 723
source-policy Syntax
source-policy acl-number
undo source-policy
View
PIM view
Parameter
acl-number: Number of basic or advanced ACL. The value ranges from 1 to 199.
Description
Using the source-policy command, you can configure a router to filter the
multicast data packet received according to source (group) address. Using the
undo source-policy command, you can 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.
<3Com] multicast routing-enable
<3Com] pim
<3Com-pim] source-policy 1
<3Com-pim] quit
<3Com] acl number 1
<3Com-acl-basic-1] rule permit source 10.10.1.2 0
<3Com-acl-basic-1] rule deny source 10.10.1.1 0
spt-switch-threshold Syntax
spt-switch-threshold { traffic-rate | infinity } [ group-policy acl-number ]
View
PIM view
724 CHAPTER 7: MULTICAST COMMON 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.
acl-number: Number of basic IP ACL, defining the range of a multicast group. The
value ranges from 1 to 99.
Description
Using the spt-switch-threshold command, you can set the packet rate threshold
when the PIM leaf router switches from the RPT to the SPT. Using the undo
spt-switch-threshold command, you can restore the default setting.
Example
Set the threshold value to 4Kbps. If the transmission rate from the source to the
multicast group is higher than it, the router will switch to the SPT toward the
source.
<3Com> system-view
<3Com] multicast routing-enable
<3Com] pim
<3Com-pim] spt-switch-threshold 4
static-rp Syntax
static-rp rp-address [ acl-number ]
undo static-rp
View
PIM view
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 1 to 99.
Description
Using the static-rp command, you can configure static RP. Using the undo static-rp
command, you can remove the configuration.
RP is the kernel router in multicast routing. If the dynamic RP elected through BSR
mechanism is invalid for some reason, static RP can be configured as backup of
the dynamic RP to improve robusticity of the network and operation management
capability of the multicast network.
All routers in the PIM domain should be configured with this command and be
specified with the same RP address. If the configured static RP address is the
MSDP Configuration Commands 725
address of an UP interface on the local device, the local device will act as static RP.
PIM is not necessarily enabled on the interface which acts as static RP.
If this command is configured but ACL is not specified, the static RP configured
will serve all the multicast groups. If ACL is specified, the static RP configured will
only serve the multicast group permitted by the ACL.
In the case that the RP elected through BSR mechanism is valid, static RP does not
take effect.
If this command is executed repeatedly, the new configuration will overwrite the
previous one.
Example
Configure 10.110.0.6 as a static RP.
<3Com] multicast routing-enable
<3Com] pim
<3Com-pim] static-rp 10.110.0.6
MSDP Configuration
Commands
cache-sa-enable Syntax
cache-sa-enable
undo cache-sa-enable
View
MSDP view
Parameter
None
Description
Using the cache-sa-enable command, you can enable the router to cache SA state.
Using the undo cache-sa-enable command, you can remove the cache from the
router.
By default, the router caches the SA state, i.e., (S, G) entry after it receives SA
messages.
If the router is in cache state, it will not send SA request message to the specified
MSDP peer when it receives a new group join message.
Example
Configure the router to cache all the SA states.
<3Com> system-view
<3Com] msdp
<3Com-msdp] cache-sa-enable
726 CHAPTER 7: MULTICAST COMMON CONFIGURATION COMMANDS
View
User view
Parameter
all: All the debugging information of MSDP.
Description
Using the debugging msdp command, you can enable MSDP debugging
functions. Using the undo debugging msdp command, you can disable MSDP
debugging functions.
Example
Enable all common MSDP debugging functions.
<3Com> debugging msdp all
View
Any view
Parameter
None
Description
Using the display msdp brief command, you can view the state of MSDP peer.
Example
Display the state of MSDP peer.
<3Com> display msdp brief
MSDP Peer Brief Information
Peer's Address State Up/Down time AS SA Count Reset
Count
20.20.20.20 Up 00:00:13 100 0 0
MSDP Configuration Commands 727
View
Any view
Parameter
peer-address: Address of MSDP peer.
Description
Using the display msdp peer-status command, you can view the detailed
information of MSDP peer.
Example
Display the detailed information of the MSDP peer 10.110.11.11.
<3Com> display msdp peer-status 10.110.11.11
MSDP Peer 20.20.20.20, AS 100
Description:
Information about connection status:
State: Up
Up/down time: 14:41:08
Resets: 0
Connection interface: LoopBack0 (20.20.20.30)
Number of sent/received messages: 867/947
Number of discarded output messages: 0
Elapsed time since last connection or counters clear: 14:42:40
Information about (Source, Group)-based SA filtering policy:
Import policy: none
Export policy: none
Information about SA-Requests:
Policy to accept SA-Request messages: none
Sending SA-Requests status: disable
Minimum TTL to forward SA with encapsulated data: 0
SAs learned from this peer: 0, SA-cache maximum for the peer: none
Input queue size: 0, Output queue size: 0
Counters for MSDP message:
Count of RPF check failure: 0
Incoming/outgoing SA messages: 0/0
Incoming/outgoing SA requests: 0/0
Incoming/outgoing SA responses: 0/0
Incoming/outgoing data packets: 0/0
View
Any view
Parameter
group-address: Group address of (S, G) entry.
728 CHAPTER 7: MULTICAST COMMON CONFIGURATION COMMANDS
If neither group address nor source address is determined, all SA caches will be
displayed.
Description
Using the display msdp sa-cache command, you can view (S, G) state learnt from
MSDP peer.
Example
<3Com> display msdp sa-cache
MSDP Total Source-Active Cache - 5 entries
View
Any view
Parameter
autonomous-system-number: Number of sources and groups from the specified
autonomous system.
Description
Using the display msdp sa-count command, you can view the number of sources
and groups in MSDP cache.
Example
<3Com> display msdp sa-count
Number of cached Source-Active entries, counted by Peer
Peer's Address Number of SA
10.10.10.10 5
? 3 3
import-source Syntax
import-source [ acl acl-number ]
undo import-source
View
MSDP view
Parameter
acl-number: Number of basic or advanced IP ACL, ranging from 1 to 199,
controlling which sources SA messages will advertise and to which groups it will
be sent in the domain. Basic ACL performs filtering to source and advanced ACL
performs filtering to source/group. If no ACL is specified, no multicast source will
be advertised.
Description
Using the import-source command, you can configure which (S, G) entries in the
domain need to be advertised when a MSDP originates an SA message. Using the
undo import-source command, you can remove the configuration.
By default, all the (S, G) entries in the domain are advertised by the SA message.
Example
Configure which (S, G) entries from the multicast routing table will be advertised
in SA messages originated by the MSDP peer.
<3Com> system-view
<3Com] acl number 101
<3Com-acl-adv-101] rule permit ip source 10.10.0.0 0.0.255.255
destination 225.1.0.0 0.0.255.255
<3Com-acl-adv-101] quit
<3Com] msdp
<3Com-msdp] import-source acl 101
msdp Syntax
msdp
undo msdp
View
System view
Parameter
None
730 CHAPTER 7: MULTICAST COMMON CONFIGURATION COMMANDS
Description
Using the msdp command, you can enable MSDP and enter the MSDP view. Using
the undo msdp command, you can clear all configurations of MSDP, release all
resources that MSDP occupies, and restore the initial state.
Example
Clear all configurations of MSDP.
<3Com> system-view
<3Com] undo msdp
msdp-tracert Syntax
msdp-tracert source-address group-address rp-address [ max-hops max-hops ] [
next-hop-info ] [ sa-info ] [ peer-info ] [ skip-hops skip-hops ]
View
Any view
Parameter
source-address: Multicast address address.
max-hops: The maximum number of hops that are traced, ranging from 1 to 255.
By default, the value is 16.
Description
Using the msdp-tracert command, you can 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
Trace (10.10.1.1, 225.2.2.2, 20.20.20.20) path information.
<3Com> msdp-tracert 10.10.1.1 225.2.2.2 20.20.20.20
Specify the maximum number of hops that are traced and collect detailed
information of SA and MSDP peer.
MSDP Configuration Commands 731
Item Description
Router Address Address where the local router creates Peering session with Peer-RPF
neighbor.
Peer Uptime Time for which the local router performs Peering session with
Peer-RPF neighbor in minute, with the maximum value of 255.
Cache Entry Uptime Present time of (S, G, RP) entry in SA cache of the local router, in
minute, with the maximum value of 255.
D-bit: 1 (S, G, RP) entry existing in SA cache of the local router.
But the RP is different from the RP specified in the request message.
RP-bit: 1 The local router is an RP, but it is not necessarily the source RP in (S,
G, RP) entry.
NC-bit: 0 The local router enables SA cache.
C-bit: 1 (S, G, RP) entry exists in SA cache of the local router.
Return Code: Return reason is the reached maximum hops and other possible
Reached-max-hops value includes:
Hit-src-RP: The local hop router is the source RP in (S, G, RP) entry.
Next-Hop Router If the parameter next-hop-info is used, Peer-RPF neighbor address
Address: 0.0.0.0 will be displayed.
Count of SA messages Number of SA messages received for tracing this (S, G, RP) entry.
received for this (S,G,RP)
Count of encapsulated Number of encapsulated data packets received for tracing this (S, G,
data packets received for RP) entry.
this (S,G,RP)
SA cache entry uptime Present time of SA cache entry.
SA cache entry expiry Expiry time of SA cache entry.
time
Peering Uptime: 10 Time for which the local router performs Peering session with
minutes Peer-RPF neighbor.
Count of Peering Resets Number of Peering session resets.
originating-rp Syntax
originating-rp interface-type interface-number
undo originating-rp
732 CHAPTER 7: MULTICAST COMMON CONFIGURATION COMMANDS
View
MSDP view
Parameter
interface-type: Interface type.
Description
Using the originating-rp command, you can allow a MSDP to use the IP address of
specified interface as the RP address in the SA message originated. Using the undo
originating-rp command, you can remove the configuration.
Example
Configure IP address of the interface Ethernet1/0/0 as the RP address in the SA
message originated.
<3Com> system-view
<3Com] msdp
<3Com-msdp] originating-rp ethernet 1/0/0
peer Syntax
peer peer-address connect-interface interface-type interface-number
View
MSDP view
Parameter
peer-address: Address of MSDP peer.
Description
Using the peer command, you can configure an MSDP peer. Using the undo peer
command, you can remove the MSDP peer configured.
If the local router is also in BGP peer relation with a MSDP peer, the MSDP peer
and the BGP peer should use the same IP address.
Example
Configure the router using IP address 125.10.7.6 as an MSDP peer of the local
router.
MSDP Configuration Commands 733
<3Com> system-view
<3Com] msdp
<3Com-msdp] peer 125.10.7.6 connect-interface ethernet 0/1/0
View
MSDP view
Parameter
peer-address: Address of MSDP peer.
text: Descriptive text, being case sensitive. The maximum length is 80 characters.
Description
Using the peer description command, you can configure descriptive text to MSDP
peer. Using the undo peer description command, you can remove the descriptive
text configured.
Example
Add descriptive text CstmrA to router 125.10.7.6 to specify that the router is
Client A.
<3Com> system-view
<3Com] msdp
<3Com-msdp] peer 125.10.7.6 description router CstmrA
View
MSDP view
Parameter
name: Name of an Mesh Group, being case sensitive. The maximum length is 32
characters.
Description
Using the peer mesh-group command, you can configure an MSDP peer to join an
Mesh Group. Using the undo peer mesh-group command, you can remove the
configuration.
Example
Configure the MSDP peer with address 125.10.7.6 to be a member of the Mesh
Group Grp1.
<3Com> system-view
<3Com] msdp
<3Com-msdp] peer 125.10.7.6 mesh-group Grp1
View
MSDP view
Parameter
peer-address: Address of the MSDP peer to which the TTL limitation applies.
Description
Using the peer minimum-ttl command, you can configure the minimum TTL
(Time-to-Live) value of the multicast data packets encapsulated in SA messages to
be sent to specified MSDP peer. Using the undo peer minimum-ttl command, you
can restore the default TTL threshold.
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.
<3Com> system-view
<3Com] msdp
<3Com-msdp] peer 110.10.10.1 minimum-ttl 10
View
MSDP view
Parameter
peer-address: Address of MSDP peer.
Description
Using the peer request-sa-enable command, you can enable the router to send SA
request message to the specified MSDP peer when receiving a new group join
message. Using the undo peer request-sa-enable command, you can 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.
Example
Configure to send SA request message to the MSDP peer 125.10.7.6.
<3Com> system-view
<3Com] msdp
<3Com-msdp] peer 125.10.7.6 request-sa-enable
View
MSDP view
Parameter
peer-address: Address of MSDP peer.
sa-limit: Maximum value that the SA cache allows, ranging from 1 to 2048.
Description
Using the peer sa-cache-maximum command, you can limit the number of caches
originated when the router receives SA messages from an MSDP peer. Using the
undo peer sa-cache-maximum command, you can restore the default
configuration.
This configuration is recommended for all MSDP peers in the networks possibly
attacked by DoS.
For the related commands, see display msdp, sa-count, display msdp peer-status
and display msdp brief.
736 CHAPTER 7: MULTICAST COMMON CONFIGURATION COMMANDS
Example
Limit the number of caches originated to 100 when the router receives SA
messages from the MSDP peer 125.10.7.6.
<3Com> system-view
<3Com] msdp
<3Com-msdp] peer 125.10.7.6 sa-cache-maximum 100
View
MSDP view
Parameter
import: Receives SA messages from the specified MSDP peer.
acl acl-number: Number of advanced IP ACL, ranging from 100 to 199. If no ACL
is specified, all (S, G) entries are filtered.
Description
Using the peer sa-policy command, you can configure a filter list for SA messages
received or forwarded from the specified MSDP peer. Using the undo peer
sa-policy command, you can remove the configuration.
Example
Forward only those SA messages that passed the advanced IP ACL.
<3Com> system-view
<3Com] acl number 100
<3Com-acl-adv-100] rule permit ip source 170.15.0.0 0.0.255.255
destination 225.1.0.0 0.0.255.255
<3Com-acl-adv-100] quit
<3Com] msdp
<3Com-msdp] peer 125.10.7.6 connect-interface ethernet 0/0/0
<3Com-msdp] peer 125.10.7.6 sa-policy export acl 100
View
MSDP view
Parameter
peer-address: Address from which the local router receives SA request messages
sent by the specified MSDP peer.
Description
Using the peer sa-request-policy command, you can limit SA request messages
that the router receives from MSDP peers. Using the undo peer sa-request-policy
command, you can 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.
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.
<3Com> system-view
<3Com] acl number 1
<3Com-acl-basic-1] rule permit source 225.1.1.0 0.0.0.255
<3Com-acl-basic-1] quit
<3Com] msdp
<3Com-msdp] peer 175.58.6.5 sa-request-policy acl 1
View
User view
Parameter
peer-address: Address of MSDP peer.
Description
Using the reset msdp peer command, you can reset TCP connection with the
specified MSDP peer, and clear all the statistics of the specified MSDP peer.
Example
View
User view
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
Using the reset msdp sa-cache command, you can clear SMDP SA cache entries.
For the related commands, see cache-sa-enable and display msdp sa-cache.
Example
Clear the cache entries with group address 225.5.4.3 from the SA cache.
<3Com> reset msdp sa-cache 225.5.4.3
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
Using the reset msdp statistics command, you can clear statistics of one or more
MSDP peers without resetting the MSDP peer.
Example
Clear the statistics of the MSDP peer 25.10.7.6.
<3Com> reset msdp statistics 125.10.7.6
shutdown Syntax
shutdown peer-address
View
MSDP view
Parameter
peer-address: IP address of MSDP peer.
Description
Using the shutdown command, you can disable the MSDP peer specified. Using
the undo shutdown command, you can remove the configuration.
Example
Disable the MSDP peer 125.10.7.6.
<3Com> system-view
<3Com] msdp
<3Com-msdp] shutdown 125.10.7.6
static-rpf-peer Syntax
static-rpf-peer peer-address [ rp-policy list ]
View
MSDP view
Parameter
peer-address: Address of the static RPF peer to receive SA messages.
rp-policy list: Filter policy based on RP address, which filters the RP in SA messages.
If the parameter is not specified, all SA messages from static RPF peer will be
accepted. If the parameter rp-policy list is specified and filter policy is configured,
the router will only accept SA messages from the RP which passes filtering. If no
filter policy is configured, the router will still accept all SA messages from the static
RPF peer.
Description
Using the static-rpf-peer command, you can configure static RPF peer.. Using the
undo static-rpf-peer command, you can remove the static RPF peer.
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.
Example
Configure two static RPF peers.
<3Com> system-view
<3Com] ip ip-prefix list1 permit 130.10.0.0 16
<3Com] ip ip-prefix list2 permit 130.10.0.0 16
<3Com] msdp
<3Com-msdp] peer 130.10.7.6 connect-interface ethernet 1/0/0
<3Com-msdp] peer 130.10.7.5 connect-interface ethernet 1/0/0
<3Com-msdp] static-rpf-peer 130.10.7.6 rp-policy list1
<3Com-msdp] static-rpf-peer 130.10.7.5 rp-policy list2
View
MSDP view
Parameter
seconds: Value of connection request re-try period in second, ranging from 1 to
60.
Description
Using the timer retry command, you can configure the value of connection request
re-try period. Using the undo timer retry command, you can restore the default
value.
Example
Configure the connection request re-try period to 60 seconds.
<3Com> system-view
<3Com] msdp
<3Com-msdp] timer retry 60
MBGP Multicast
Extension
Configuration
Commands
aggregate Syntax
aggregate address mask [ as-set ] [ attribute-policy route-policy-name ] [
detail-suppressed ] [ origin-policy route-policy-name ] [ suppress-policy
route-policy-name ]
MBGP Multicast Extension Configuration Commands 741
View
IPv4 multicast sub-address family view
Parameter
address: Address of the aggregated route.
Description
Using the aggregate command, you can create a multicast aggregated record in
the BGP routing table. Using the undo aggregate command, you can remove the
aggregation.
Using the aggregate command without parameters, you can create one local
aggregated route and set atomic aggregation attributes.
Example
Create a multicast aggregated record in the BGP routing table and set the address
of aggregated route is 192.213.0.0.
<3Com-bgp-af-mul] aggregate 192.213.0.0 255.255.0.0
View
User view
Parameter
updates: Debug information of MBGP update packets.
742 CHAPTER 7: MULTICAST COMMON CONFIGURATION COMMANDS
Description
Using the debugging bgp mp-update command, you can enable the MBGP packet
debugging functions. Using the undo debugging bgp mp-update command, you
can disable the functions.
Example
Enable MBGP packet information debugging function.
<3Com> debugging bgp mp-update
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.
Description
Using the display bgp multicast group command, you can view the information
about peer groups.
Example
Display the information about the peer group named my_peer.
<3Com> display bgp multicast group my_peer
View
Any view
Parameter
None
Description
Using the display bgp multicast network command, you can view the routing
information that MBGP advertises.
Example
Display the network segment routing information that MBGP advertises.
<3Com> display bgp multicast network
View
Any view
Parameter
ip-address: MBGP routing information whose IP address is specified in the BGP
routing table.
Description
Using the display bgp multicast routing-table command, you can 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.
<3Com> display bgp multicast routing-table 14.1.0.0
View
Any view
Parameter
None
Description
Using the display bgp multicast routing-table cidr command, you can view the
routing information with non-natural network mask (i.e., classless inter-domain
routing, CIDR).
Example
Display CIDR routing information.
<3Com> display bgp multicast routing-table cidr
View
Any view
Parameter
community-number: Specifies community number.
no-export: Not advertises routes outside the local autonomous system but
advertise routes to other sub-autonomous systems.
Description
Using the display bgp multicast routing-table community command, you can view
the routing information that belongs to the specified MBGP community.
Example
Display the routing information that belongs to the specified MBGP community.
<3Com> display bgp multicast routing-table community 600:1
<3Com> display bgp multicast routing-table community no-export
Parameter
list-number: Number of community list.
Description
Using the display bgp multicast routing-table community-list command, you can
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.
<3Com> display bgp multicast routing-table community-list
Parameter
None
Description
Using the display bgp multicast routing-table different-origin-as command, you
can view AS routes with different origins.
Example
Display AS routes with different origins.
<3Com> display bgp multicast routing-table different-origin-as
MBGP Multicast Extension Configuration Commands 745
View
Any view
Parameter
peer-address: Address of multicast neighbor, in dotted decimal notation format.
Description
Using the display multicast routing-table peer command, you can view the route
received from or sent to the specified multicast neighbor.
Example
Display the routing information sent to the multicast neighbor 10.10.1.11.
<3Com> display multicast routing-table peer 10.10.1.11 advertised
Parameter
as-regular-expression: AS regular expression matched.
Description
Using the display bgp multicast routing-table regular-expression command, you
can view the routing information matching the specified AS regular expression.
Example
Display the MBGP routing information matching the regular expression ^600$.
<3Com> display bgp multicast routing-table regular-expression ^600$
View
Any view
Parameter
None
746 CHAPTER 7: MULTICAST COMMON CONFIGURATION COMMANDS
Description
Using the display bgp multicast routing-table statistic command, you can view
statistics of MBGP route information.
Example
Display statistics of MBGP route information.
<3Com> display bgp multicast routing-table statistic
import-route Syntax
import-route protocol [ route-policy policy-name ] [ med metric ]
View
IPv4 multicast sub-address family view
Parameter
protocol: Source routing protocols that can be imported, which can be direct,
ospf, ospf-ase, ospf-nssa, rip, isis and static at present.
Description
Using the import-route command, you can import routing information from other
protocols to BGP. Using the undo import-route command, you can cancel the
importing of routing information from other protocols.
By default, BGP will not import routing information from other protocols.
Example
Configure to import a static route.
<3Com-bgp-af-mul] import-route static
View
BGP view
Parameter
None
Description
Using the ipv4-family multicast command, you can enter the IPv4 multicast
sub-address family view. Using the undo ipv4-family multicast command, you can
remove all the configurations in the IPv4 multicast sub-address family view.
MBGP Multicast Extension Configuration Commands 747
Example
Enter the IPv4 multicast sub-address family view.
<3Com> system-view
<3Com] bgp 100
<3Com-bgp] ipv4-family multicast
<3Com-bgp-af-mul]
network Syntax
network ip-address [ address-mask ] [ route-policy policy-name ]
View
IPv4 multicast sub-address family view
Parameter
ip-address: Network address that BGP advertises.
Description
Using the network command, you can configure the network addresses to be sent
by the local BGP. Using the undo network command, you can remove the existing
configuration.
Example
Advertise routes to the network segment 10.0.0.0/16.
<3Com-bgp-af-mul] network 10.0.0.1 255.255.0.0
peer Syntax
advertise-community peer { group-name | peer-address } advertise-community
View
IPv4 multicast sub-address family view
Parameter
group-name: Name of the peer group.
Description
Using the peer advertise-community command, you can configure to advertise
community attributes to a peer (group). Using the undo peer advertise-community
command, you can remove the existing configuration.
748 CHAPTER 7: MULTICAST COMMON CONFIGURATION COMMANDS
Example
Advertise community attributes to the peer group named test.
<3Com-bgp-af-mul] peer test advertise-community
View
IPv4 multicast sub-address family view
Parameter
group-name: Peer group name
Description
Using the peer allow-as-loop command, you can specify to Using the undo peer
allow-as-loop command, you can specify not to contain the local AS number in
the AS-PATH attributes received, for routing loop should be removed in the route
update messages received in Hub&Spoke networking mode.
For the standard BGP, routing loop test is based on AS numbers. But in
Hub&Spoke networking mode, if EBGP runs between a PE and a CE, the local AS
number is contained in the PE's advertising routing information to the CE. Then
the PE will not be able to receive the update messages for this route.
The peer allow-as-loop command can solve this problem, for it enables to contain
the local AS number in the route update messages received from the CE. The
acceptable maximum of the local AS number is defined via the asn_limit
parameter.
Example
Specify to contain the local AS number in the AS_PATH attributes received.
<3Com-bgp] ipv4-family multicast
<3Com-bgp-af-vpn] peer 1.1.1.1 allow-as-loop 1
View
IPv4 multicast sub-address family view
Parameter
group-name: Name of the peer group.
Description
Using the peer as-path-acl command, you can configure BGP filter policy based on
AS path list for the peer (group). Using the undo peer as-path-acl command, you
can remove the configuration.
By default, the peer (group) has no filter policy based on AS path list.
Example
Set BGP filter policy based on AS path list for the peer (group).
<3Com-bgp] peer test as-number 100
<3Com-bgp] ipv4-family multicast
<3Com-bgp-af-mul] peer test enable
<3Com-bgp-af-mul] peer test as-path-acl 3 export
View
IPv4 multicast sub-address family view
Parameter
peer-address: IP address of the multicast peer.
Description
Using the peer enable command, you can enable the multicast peer or peer group.
Using the undo peer enable command, you can disable the multicast peer or peer
group.
Only after the peer (peer group) is enabled, can it establish connection with the
multicast peer.
750 CHAPTER 7: MULTICAST COMMON CONFIGURATION COMMANDS
Example
Enable the multicast peer 1.1.11.1.
View
IPv4 multicast sub-address family view
Parameter
group-name: Name of the peer group.
Description
Using the peer filter-policy command, you can set the filter policy list for a peer
(group). Using the undo peer filter-policy command, you can remove the existing
setting.
Example
Set the filter policy list for a peer.
<3Com-bgp] peer test as-number 100
<3Com-bgp] ipv4-family multicast
<3Com-bgp-af-mul] peer test enable
<3Com-bgp-af-mul] peer test filter-policy 3 import
View
IPv4 multicast sub-address family view
MBGP Multicast Extension Configuration Commands 751
Parameter
group-name: Name of the peer group.
import: Applies the filter policy to routes accepted by the specified peer (group).
export: Applies the filter policy to routes sent by the specified peer (group).
Description
Using the peer ip-prefix command, you can configure the route filter policy based
on the address prefix-list for the peer (group). Using the undo peer ip-prefix
command, you can remove the configuration.
Example
Configure the route filter policy based on the address prefix-list for the peer.
<3Com-bgp-af-mul] peer group1 ip-prefix list1 import
View
IPv4 multicast sub-address family view
Parameter
group-name: Name of the peer group.
Description
Using the peer next-hop-local command, you can 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. Using the undo peer next-hop-local command, you can
remove the existing setting.
Example
Set the local address as the next hop when advertising routes to peer group
named test.
<3Com-bgp-af-mul] peer test next-hop-local
View
IPv4 multicast sub-address family view
Parameter
group-name: Name of the peer group.
Description
Using the peer public-as-only command, you can configure only to carry public AS
number rather than private AS number when BGP sends update packets. Using
the undo peer public-as-only command, you can 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, you can 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.
<3Com-bgp-af-mul] peer test public-as-only
View
IPv4 multicast sub-address family view
Parameter
group-name: Name of the peer group.
Description
Using the peer reflect-client command, you can configure a peer (group) as a
client of the route reflector. Using the undo peer reflect-client command, you can
remove the existing configuration.
Example
Configure peer group named test to be client of the route reflector.
<3Com-bgp-af-mul] peer test reflect-client
Multicast Static Route Configuration Commands 753
View
IPv4 multicast sub-address family view
Parameter
group-name: Name of the peer group.
import: Applies route policy to the routes received from the peer (group).
export: Applies route policy to the routes advertised to the peer (group).
Description
Using the peer route-policy command, you can configure route policy for the
specified peer (group). Using the undo peer route-policy command, you can
remove the route policy of the peer (group).
Example
Apply route policy policy 1 to the routes received from the peer group named test.
<3Com-bgp-af-mul] peer test route-policy policy1 import
View
System view
Parameter
None
Description
Using the delete rpf-route-static all command, you can delete all the static
multicast routes.
754 CHAPTER 7: MULTICAST COMMON CONFIGURATION COMMANDS
When using this command, the system will prompt you to acknowledge. All static
multicast routes will be deleted after your acknowledgement.
Example
Delete all the static multicast routes.
<3Com] delete rpf-route-static all
View
Any view
Parameter
source: IP address of multicast source (unicast address).
Description
Using the display multicast routing-table static command, you can view the active
multicast static routes.
If no multicast source address is specified, all active multicast static routes will be
displayed.
For the related command, see display multicast routing-table static config.
Example
Display all active multicast static routes.
<3Com> display multicast routing-table static
22.22.0.0/16 [inactive]
RPF interface = serial0/0/0, RPF neighbor = 66.55.99.88
Matched routing protocol = = <none>, route-policy = <none>,
preference = 1
Running config = ip mroute 22.22.0.0 16 66.55.99.88 preference 1
Display the multicast static routes that exactly match the address 10.10.0.0/16.
Parameter
source: IP address of multicast source (unicast address).
Multicast Static Route Configuration Commands 755
Description
Using the display multicast routing-table static config command, you can view
multicast static routes configured.
If no multicast source address is specified, all configured multicast static routes will
be displayed.
Example
Display all the configured multicast static routes.
<3Com> display multicast routing-table static config
Display the multicast static routes that exactly match the address 1.0.0.0/8.
ip rpf-longest-match Syntax
ip rpf-longest-match
undo ip rpf-longest-match
View
System view
Parameter
None
Description
Using the ip rpf-longest-match command, you can configure the longest-match
rule to be the multicast RPF route selecting policy. Using the undo ip
rpf-longest-match command, you can restore the default configuration.
Example
Set the longest-match rule to be the multicast RPF route selecting policy.
<3Com] ip rpf-longest-match
ip rpf-route-static Syntax
ip rpf-route-static source { mask | mask-length } [ protocol ] [ route-policy
policyname ] { rpf-nbr | interface-name } [ order order-num | preference preference
]
View
System view
Parameter
source: IP address of multicast source (unicast address).
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.
Description
Using the ip rpf-route-static command, you can configure multicast static routes.
Using the undo ip rpf-route-static command, you can remove the multicast static
routes from the multicast static routing table.
For the related commands, see display multicast routing-table static config and
display multicast routing-table static.
Example
Configure a multicast static route.
<3Com> system-view
<3Com] ip rpf-route-static 1.0.0.0 255.0.0.0 rip route-policy map1
11.0.0.1
Basic Configuration
Commands
undo debugging mpls lspm { all | packet | event | ftn | process | agent | interface |
policy | vpn }
View
User view
Parameter
agent: Enables all MPLS Agent information debugging.
Description
Using the debugging mpls lspm command, you can enable various LSP
information debugging. Using the undo debugging mpls lspm command, you can
disable corresponding debugging.
This command is used for the debugging of the problem occurred while using
MPLS LSPM. Enabling the debugging will affect the performance of the router, so
it is recommended that the command be used with caution.
Example
Enable all relevant debugging of MPLS VPN.
<3Com> debugging mpls lspm vpn
View
Any view
Parameter
None
Description
Using the display mpls interface command, you can view all MPLS-enabled
interfaces.
For the related commands, see display mpls lsp, display mpls statistics, display
static-lsp.
Example
Display all MPLS-enabled interfaces.
[3Com] display mpls interface
View
Any view
Parameter
include text: Displays the information with the specified string included.
Description
Using the display mpls lsp command, you can view LSP information.
By default, the display mpls lsp command displays all LSP information.
For the related commands, see display mpls interface, display mpls statistics, and
display static-lsp.
Example
Display all LSPs whose incoming interfaces are Serial 3/0/0.
[3Com] display mpls lsp include incoming-interface serial3/0/0
Syntax
display mpls static-lsp { verbose | include text }
View
Any view
Parameter
include text: Displays the information with the specified string included.
Description
Using the display mpls static-lsp command, you can display the information of all
or single static LSP(s).
For the related commands, see display mpls interface, display mpls lsp, and display
mpls statistics.
Example
Display information of the static LSP named “marlborough”.
[3Com] display mpls static-lsp include marlborough
View
Any view
Parameter
interface-type: Type of network interface.
Description
Using the display mpls statistics command, you can display statistics of all or single
LSP(s) and LSP statistics on all or single interface(s).
Specifically, the displayed information includes the bytes, packets, errors and
discarded packets processed on each LSP ingress and each LSP egress, and those
received and transmitted on each MPLS-enabled interface.
For the related commands, see display mpls interface and display mpls lsp.
Example
Display MPLS statistics.
[3Com] display mpls statistics lsp all
Building the information...
LSP Index/LSP Name : 1/lsp1
InSegment Octets of LSP is: 0 Bytes processed on each
LSP ingress
InSegment Packets of LSP is: 0 Packets processed on each
LSP ingress
InSegment Errors of LSP is: 0 Errors processed on each LSP
ingress
InSegment Discard Packets of LSP is: 0 Discarded packets
processed on each LSP ingress
LSP Index/LSP Name : 1/lsp1
OutSegment Octets of LSP is: 0 Bytes processed on
each LSP egress
OutSegment Packets of LSP is: 0 Packets processed on
each LSP egress
OutSegment Errors of LSP is: 0 Errors processed on each
LSP egress
OutSegment Discard Packets of LSP is: 0 Discarded packets
processed on each LSP egress
LSP Index/LSP Name : 17416/dynamic-lsp
InSegment Octets of LSP is: 0
InSegment Packets of LSP is: 0
InSegment Errors of LSP is: 0
InSegment Discard Packets of LSP is: 0
LSP Index/LSP Name : 17416/dynamic-lsp
OutSegment Octets of LSP is: 0
OutSegment Packets of LSP is: 0
OutSegment Errors of LSP is: 0
OutSegment Discard Packets of LSP is: 0
Table 1 Description of the Output Information of the Display mpls statistics interface all
Command
Field Description
In Octets of Mpls interface is: 0 Bytes coming from the interface
In Packets of Mpls interface is: 0 Packets coming from the interface
In Errors of Mpls interface is: 0 Packet processing errors coming from the
interface
In Discard Packets of Mpls interface is: 0 Discarded packets coming from the interface
Out Octets of Mpls interface is: 0 Bytes sent from the interface
Out Packets of Mpls interface is: 0 Packets sent from the interface
Out Errors of Mpls interface is: 0 Packet processing errors sent from the
interface
Out Discard Packets of Mpls interface is: 0 Discarded packets sent from the interface
lsp-trigger Syntax
lsp-trigger { all | ip-prefix ip-prefix }
View
MPLS view
Parameter
all: Sets up LSPs at any routes.
ip-prefix: Sets up LSPs only at those routes with the specified IP prefix.
Description
Using the lsp-trigger command, you can configure topology-triggered LSP creation
policy. Using the undo lsp-trigger command, you can remove the filtering
conditions specified by parameters and enable no route to trigger LSP creation.
If you import an IP-prefix rule without contents, LSPs can be established at all host
routes according to the IP-prefix usage convention in VRP.
Example
Allow to set up LSPs at all routes.
[3Com-mpls] lsp-trigger all
mpls Syntax
mpls
View
System view, routing protocol view, interface view, virtual interface view
Parameter
None
Description
Using the mpls command in system view, you can enter MPLS view.
Using the mpls command in interface view, you can enable MPLS on the interface.
After executing the command, the user can enter MPLS view. Only after entering
MPLS view, can the user configure other MPLS commands.
To enter MPLS view, the user should configure the mpls lsr-id command first.
Example
Enter MPLS view in system view.
[3Com] mpls
[3Com-mpls]
[3Com-Ethernet6/0/0] mpls
Mpls starting, please wait... OK!
View
System view
Basic Configuration Commands 765
Parameter
ip-address: LSR ID, with a form like IP address, used to identify an LSR.
Description
Using the mpls lsr-id command, you can configure an LSR ID. Using the undo mpls
lsr-id command, you can delete an LSR ID.
As a premise for configuring other MPLS commands, this command you can
configure an LSR ID.
Example
Configure the ID of the LSR as 202.17.41.246.
View
MPLS view
Parameter
all: All interfaces or all LSPs
Description
Using the reset mpls statistics command, you can clear MPLS statistics.
This command clears statistics on all or single interface(s) or on all or single LSP(s).
Example
Clear statistics on the LSP named “Marlborough”.
[3Com] reset mpls statistics lsp name marlborough
766 CHAPTER 8: MPLS BASIC CONFIGURATION COMMANDS
View
System view
Parameter
None
Description
Using the snmp-agent trap enable ldp command, you can enable Trap function in
MPLS LDP creation. Using the snmp-agent trap enable ldp command, you can
disable Trap function in MPLS LDP creation.
Example
Enable TRAP function during MPLS LDP creation.
[3Com] snmp-agent trap enable lDp
View
System view
Parameter
None
Description
Using the snmp-agent trap enable lsp command, you can enable Trap function in
MPLS LSP creation. Using the snmp-agent trap enable lsp command, you can
disable Trap function in MPLS LSP creation.
Example
Enable TRAP function during MPLS LSP creation.
[3Com] snmp-agent trap enable lsp
View
MPLS view
Parameter
lsp-name: Name of LSP.
Description
Using the static-lsp egress command, you can configure a static LSP for an egress
LSR. Using the undo static-lsp egress command, you can delete an LSP for an
egress LSR.
By default, this command can be used to configure a static LSP for an egress LSR.
For the related commands, see static-lsp ingress and debugging mpls.
Example
Configure a static LSP named “bj-sh” on the egress LSR.
[3Com-mpls] static-lsp egress bj-sh incoming-interface serial8/0/0
in-label 233
View
MPLS view
Parameter
lsp-name: Name of LSP.
Description
Using the static-lsp ingress command, you can configure a static LSP for an ingress
LSR. Using the undo static-lsp ingress command, you can delete an LSP for an
ingress LSR.
This command can be used to configure a static LSP for ingress LSR and
simultaneously set precedence value and metric value for the LSP.
For the related commands, see static-lsp egress, static-lsp transit, and debugging
mpls.
Example
Configure a static LSP for the ingress LSR heading for the destination address
202.25.38.1.
[3Com-mpls] static-lsp ingress bj-sh destination 202.25.38.1 24
nexthop 202.55.25.33 out-label 237
View
MPLS view
Parameter
lsp-name: Name of LSP.
Description
Using the static-lsp transit command, you can configure a static LSP for transit LSR.
Using the undo static-lsp transit command, you can delete an LSP for transit LSR.
This command can be used to configure a static LSP for transmit LSR.
For the related commands, see static-lsp egress and static-lsp ingress.
Example
Configure a static LSP for the serial interface Serial3/0/0 on transit LSR, with an
inbound label of 123 and an outbound label of 253.
LDP Configuration Commands 769
View
MPLS view
Parameter
interval-time: Time interval in seconds. It ranges from 30 to 65535.
Description
Using the statistic interval command, you can configure the time interval for
reporting statistics. Using the undo statistic interval command, you can restore the
default value.
Example
Configure the time interval as 30 seconds, that is, to report statistics every 30
seconds.
[3Com-mpls] statistics interval 30
LDP Configuration
Commands
undo debugging mpls ldp { all | main | advertisement | session | pdu | notification |
remote } [ interface interface-type interface-num ]
View
User view
Parameter
all: displays all debugging information related to LDP.
pdu: Displays the debugging information during processing PDU data packets.
770 CHAPTER 8: MPLS BASIC CONFIGURATION COMMANDS
Description
Using the debugging ldp command, you can enable the debugging of various LDP
messages. Using the undo debugging ldp command, you can disable the
debugging of various LDP messages.
Example
Enable LDP debugging.
<3Com> debugging mpls ldp all
View
Any view
Parameter
None
Description
Using the display mpls ldp command, you can view LDP and LSR information.
Example
Display LDP and LSR information.
[3Com] display mpls ldp
View
Any view
Parameter
None
LDP Configuration Commands 771
Description
Using the display mpls ldp buffer-info command, you can view the buffer
information of LDP.
Example
Display LDP buffer information.
[3Com] display mpls ldp buffer-info
-----------------------------------------------------------------
Buffer-Name Buffer-ID Buffer-Size Total-Count Free-Count
-----------------------------------------------------------------
ENTITY 0 292 199 195
LOCAL-IF 1 36 200 196
PEER-IF 2 40 201 195
PDU 3 204 249 249
ADJACENCY 4 56 201 198
PEER-INF 5 116 201 198
SESSION 6 176 201 198
US-BLK 7 264 1052 1028
DS-BLK 8 240 1052 1042
FEC 9 40 1042 1032
US-LIST 10 16 1052 1028
TRIG-BLK 11 56 2076 2071
LABEL-RANGE 12 20 198 198
CR-TUNNEL 13 124 128 128
ER-HOP 14 40 4096 4096
IF-MSG 15 24 9999 9999
-----------------------------------------------------------------
Buffer no error.
View
Any view
Parameter
None
Description
Using the display mpls ldp interface command, you can view the information of an
LDP-enabled interface.
For the related commands, see mpls ldp enable and display mpls ldp session.
Example
Display the information of an LDP-enabled interface.
[3Com-Ethernet3/0/0] display mpls ldp interface
View
Any view
Parameter
None
Description
Using the display mpls ldp lsp command, you can view relevant LSP information
created via LDP.
Example
Display LSP.
[3Com-Ethernet3/0/0] display mpls ldp lsp
View
Any view
Parameter
None
Description
Using the display mpls ldp peer command, you can display peer information.
Example
Display peer information.
[3Com] display mpls ldp peer
View
Any view
Parameter
None
Description
Using the display mpls ldp remote command, you can display the configured
remote peer information.
For the related commands, see mpls ldp remote and remote-peer.
Example
Display the configured remote-peer information.
[3Com] display mpls ldp remote
View
Any view
Parameter
None
Description
Using the display mpls ldp session command, you can display the session between
peers.
Example
Display the session between peers.
[3Com] display mpls ldp session
View
System view
Parameter
None
Description
Using the mpls ldp command, you can enable LDP. Using the undo mpls ldp
command, you can disable LDP.
Before enabling LDP, you must enable MPLS and configure LSR ID first.
Example
Enable LDP.
774 CHAPTER 8: MPLS BASIC CONFIGURATION COMMANDS
View
System view
Parameter
explicit-null: Specifies to assign explicit null label to the penultimate hop at egress.
implicit-null: Specifies to assign implicit null label to the penultimate hop at egress.
■ 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 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 IPv4 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 need to pop the labels, but cannot replace them when
using label 3 to replace the original label.
■ Labels 4~15 are reserved.
Description
Using the mpls label advertise command, you can specify what label is to be
assigned to the penultimate hop at egress node. Using the undo mpls label
advertise command, you can restore the default value.
When the keyword explicit-null is selected, the m-layer label of a packet with
m-layer label parameter will be popped at the penultimate LSR of the LSP, but not
the egress LSR. This can lower operation restriction at egress node and mitigate
the traffic at the egress node to a degree.
If explicit null label is assigned to the penultimate hop, it can only reside at the
bottom of the label stack.
Example
Specify at the egress to allocate general labels to the penultimate hop.
LDP Configuration Commands 775
View
Interface view
Parameter
None
Description
Using the mpls ldp enable command, you can enable LDP on an interface. Using
the undo mpls ldp enable command, you can disable LDP on an interface.
To enable an interface, you must enable LDP first. After LDP is enabled on an
interface, peer discovery and session creation proceed.
Example
Enable LDP on the interface.
[3Com-Ethernet3/0/0] mpls ldp disable
View
System view
Parameter
hop-number: The maximum hops of loop detection, ranging from 1 to 32.
Description
Using the mpls ldp hops-count command, you can set the maximum hops of loop
detection. Using the undo mpls ldp hops-count command, you can restore the
default value.
This command should be configured before enabling LDP on all interfaces. Its
value, which depends on actual networking situation, decides the loop detection
speed during LSP creation
For the related commands, see mpls ldp loop-detection and mpls ldp path-vector.
776 CHAPTER 8: MPLS BASIC CONFIGURATION COMMANDS
Example
Set the maximum hops of loop detection to be 22.
[3Com] mpls ldp hops-count 22
Set the maximum hops of loop detection as 32, the default value.
[3Com] undo mpls ldp hops-count
View
System view
Parameter
None
Description
Using the mpls ldp loop-detect command, you can enable loop detection. Using
the undo mpls ldp loop-detect command, you can disable loop detection.
For the related commands, see mpls ldp hops-count, mpls ldp path-vectors.
Example
Enable loop detection.
[3Com] mpls ldp loop-detect
View
Interface view, remote-peer view
Parameter
simple: Transmitted in plain text.
Description
Using the mpls ldp password command, you can configure LDP authentication
mode. Using the undo mpls ldp password command, you can remove the
configuration.
Example
Configure the LDP authentication mode to be in plain text, with a password of
123.
[3Com-Ethernet0/0/0.1] mpls ldp password simple 123
View
System view
Parameter
pv-number: The configured maximum value of path vector, ranging from 1 to 32.
Description
Using the mpls ldp path-vectors command, you can set the maximum value of
path vector. Using the undo mpls ldp path-vectors command, you can restore the
maximum value of path vector.
This command should be configured before enabling LDP on all interface. Its
value, which depends on actual networking situation, decides the loop detection
speed in LSP creation.
For the related commands, see mpls ldp loop-detection and mps ldp hops-count.
Example
Set the maximum value of path vector to be 23
[3Com] mpls ldp path-vectors 23
View
System view or remote-peer view
778 CHAPTER 8: MPLS BASIC CONFIGURATION COMMANDS
Parameter
Index: Index of remote peer, used to identify an entity. It ranges from 0 to 99.
Description
Using the mpls ldp remote-peer command, you can create a remote-peer entity
and enter remote-peer view. Using the undo mpls ldp remote-peer command, you
can delete a remote-peer entity.
Example
Create a remote-peer.
[3Com] mpls ldp remote-peer 22
[3Com-mpls-remote22]
Delete a remote-peer.
[3Com-mpls-remote22] undo mpls ldp remote-peer 12
[3Com]
View
Interface view
Parameter
peer-address: Corresponding LDP Peer address (in IP address format).
Description
Using the mpls ldp reset-session command, you can reset a specified session on an
interface.
After LDP is configured on an interface and LDP session is created, this command
can be used to reset a specified session on the interface only by specifying the
address of the peer corresponding to the session to be reset.
For the related commands, see mpls ldp and mpls ldp enable.
Example
Reset the sessions at the interface Ethernet0/0/0.
[3Com-Ethernet0/0/0] mpls ldp reset-session 10.1.1.1
View
Interface view, remote-peer view
Parameter
hello hello-holdtime: Specifies hold time of hello timer, in seconds and the range
of 6 seconds to 65535 seconds.
Description
Using the mpls ldp timer command, you can set the duration of a Hello timer.
Using the undo mpls ldp timer command, you can restore the default value.
Timeout of Hello timer means that the adjacency relation with the peer is down,
while timeout of hold timer means that the session relation with the peer is down.
Generally speaking, the default value can be directly adopted. In special cases, it
needs to be modified according to requirements. It should be noted that the
modification of hello parameter may cause the original session to be recreated and
the LSP created on the basis of this session will also be deleted and needs to be
recreated.
For the related commands, see mpls ldp and mpls ldp enable.
Example
Modify the duration of a Hello timer.
[3Com-Ethernet3/0/0] mpls ldp timer hello 30
View
Interface view
Parameter
interface: Takes the IP address of the interface as the transport address.
Description
Using the mpls ldp transport-ip command, you can configure an LDP transport
address. Using the undo mpls ldp transport-ip command, you can restore the
default LDP transport address.
780 CHAPTER 8: MPLS BASIC CONFIGURATION COMMANDS
For a remote-peer, the configuration of transport address is not supported and its
transport address is fixed as an LSR ID.
Example
Take the address of the local interface as a transport address.
[Quidwa-Ethernet3/0/0] mpls ldp transport-ip interface
remote-ip Syntax
remote-ip remoteip
View
Remote-peer view
Parameter
remote-ip: IP address of a remote peer.
Description
Using the remote-ip command, you can configure a remote IP address. The
address should be the LSR ID of the remote LSR. For remote peers, as they adopt
LSR ID as their transport address, two remote peers take their LSR ID as their
transport addresses for creating TCP connection.
Example
Configure the address of remote-peer.
[3Com] mpls ldp remote-peer 12
[3Com-remote-peer12] remote-ip 192.168.1.
BGP/MPLS VPN
Configuration
Commands
View
Route-policy view
Parameter
vpn-name: Name of the configured VPN instance. At most, 6 VPN names can be
configured.
Description
Using the apply access-vpn vpn-instance command, you can specify packet to
search private network forwarding route in vpn-name1, vpn-name2, vpn-name3,
vpn-name4, vpn-name5, vpn-name6(if they all exist) and perform the
corresponding forwarding after policy route is enabled. Using the undo apply
access-vpn vpn-instance command, you can remove this function.
Example
Specify the configured VPN instance.
[3Com-route-policy] apply access-vpn vpn-instance vpn1
View
User view
Parameter
keepalive: Displays BGP keepalives.
Description
The debugging bgp command you can display the information concerning BGP
processing. The undo debugging bgp command you can disable debugging
function.
Example
<3Com> debugging bgp vpnv4
description Syntax
description vpn-instance-description
undo description
View
Vpn-instance view
Parameter
vpn-instance-description: Specify the description information of VPN instance.
Description
Using the description command, you can configure description information for
specified VPN instance. Using the undo description command, you can remove the
description of VPN instance.
Example
Display description information of VPN.
[3Com-vpn-vpna] description 3com
View
Any view
Parameter
all: Displays all VPNv4 database.
Description
Using the display bgp vpnv4 command, you can display VPNv4 information in BGP
database.
Example
Display the information about all BGP VPNV4 peers.
[3Com] display bgp vpnv4 all
BGP local router ID is 1.1.248.23
Status codes: s suppressed, d damped, h history, * valid, > best, i
internal
Origin codes: i – IGP, e – EGP, ? - incomplete
Network Next Hop Label Metric LocPrf
Path
Route Distinguisher:100:9 (default for vpn-instance
vpn-instance_1)
*> 192.5.1.0 0.0.0.0 16/0
View
Any view
Parameter
vpn-instance-name: Name assigned to vpn-instance.
Description
Using the display ip routing-table vpn-instance command, you can view the
specified information in the IP routing table of vpn-instance.
Example
Display the IP routing table associated with the vpn-instance.
[3Com] display ip routing-table vpn-instance vpn-instance1
Routing Table: vpn-instance1 RD: 1233:11
Destination/Mask ProtoPreMetric Nexthop Interface
192.1.1.0/24 Direct0 0192.1.1.1 GigabitEthernet1/0/0
192.1.1.1/32 Direct0 0127.0.0.1 InLoopBack0
192.1.1.255/32 Direct0 0127.0.0.1 InLoopBack0
View
Any view
784 CHAPTER 8: MPLS BASIC CONFIGURATION COMMANDS
Parameter
vpn-instance-name: Name assigned to vpn-instance.
Description
Using the display ip vpn-instance command, you can view such information
associated with vpn-instance as the VPN instance RD, description and associated
interface.
Example
Display the information about vpn-instance 3Com.
[3Com] display ip vpn-instance 3com
VPN-Instance : vpn1
No description
Route-Distinguisher : 100:6
Interfaces :
Ethernet0/0/0.101
View
Any view
Parameter
None
Description
Using the display ospf sham-link command, you can view the information of sham
links.
Example
Display the information of sham links.
<3Com>display ospf sham-link
OSPF Process 1 with Router ID 1.1.1.1
Sham Links
Sham-link 3.3.3.3 -> 5.5.5.5, State: Down
Area: 0.0.0.1
Cost: 1 State: Down Type: Sham
Timers: Hello 10, Dead 40, Poll 0, Retransmit 5, Transmit Delay 1
View
Any view
BGP/MPLS VPN Configuration Commands 785
Parameter
include text: Displays the MPLS L3VPN LSPs with the specified FEC string.
Description
Using the display mpls l3vpn-lsp include command, you can view the information
of MPLS L3VPN LSPs.
Example
Display the label swith path vpn-instance relative information of mpls l3vpn.
<3Com> display mpls l3vpn-lsp transit
--------------------------------------------------------------------
LSP Information: L3vpn Transit Lsp
--------------------------------------------------------------------
View
Any view
Parameter
transit: LSP of ASBR VPN
include text: Displays the MPLS L3VPN LSPs with the specified FEC string.
Description
Using the display ip routing-table vpn-instance command, you can view the
vpn-instance information of MPLS L3VPN LSPs.
Example
Display the vpn-instance information of MPLS L3VPN LSPs.
<3Com> display mpls l3vpn-lsp transit
--------------------------------------------------------------------
LSP Information: L3vpn Transit Lsp
--------------------------------------------------------------------
786 CHAPTER 8: MPLS BASIC CONFIGURATION COMMANDS
domain-id Syntax
domain-id { id-number | id-addr }
undo domain-id
View
OSPF protocol view
Parameter
id-number: Domain ID for a VPN instance, in range of 0~4294967295. By default,
it is 0.
Description
Using the domain-id command, you can specify domain ID for a VPN instance.
Using the undo domain-id command, you can restore the default domain ID.
The specified domain ID will not take effect until the reset ospf command is
executed.
Example
Configure domain ID 100 for OSPF procedure 100.
[3Com-ospf-100]domain-id 100
[3Com-ospf-100]domain-id 0.0.0.100
import-route Syntax
import-route { ospf | ospf-ase | ospf-nssa } [ process-id ] [ med value | route-policy
route-policyname ]
View
BGP unicast/multicast VPN-instance address family view, MBGP Interface
VPN-instance address family view
Parameter
process-id: OSPF procedure ID. By default, it is 1.
ospf: When only OSPF procedure ID is imported, ASE internal route is taken as
external route information.
Description
Using the ip binding vpn-instance command, you can enable to import OSPF
route. Using the undo ip binding vpn-instance command, you can disable to
import OSPF route.
Example
Enable to import an OSPF route with procedure ID 100.
[3Com] ip vpn-instance sphinx
[3Com-vpn-sphinx] route-distinuisher 168.168.55.1:85
[3Com-vpn-sphinx] quit
[3Com] bgp 352
[3Com-bgp] ip vpn-instance sphinx
[3Com-bgp-af-vpn-instance] import-route ospf 100
View
Interface view
Parameter
vpn-instance-name: Name assigned to vpn-instance.
Description
Using the ip binding vpn-instance command, you can connect an interface or
sububterface with a vpn-instance. Using the undo ip binding vpn-instance
command, you can remove the connection.
788 CHAPTER 8: MPLS BASIC CONFIGURATION COMMANDS
The IP address of the interface will be removed if executing this command on it, so
the IP address of the interface needs to be reconfigured.
Example
Bind VPN instance vpn1 to the interface atm0/0/0.
[3Com] interface atm1/0/0
[3Com-Atm1/0/0] ip binding vpn-instance vpn1
ip route-static Syntax
vpn-instance ip route-static vpn-instance { vpn--name1 vpn-name2 …| ip-address1 } { mask |
mask-length } { interface-name | [ vpn-instance vpn-name-nexthop ip-address2 ] } [
public ] [ preference preference-value ] [ reject | blackhole ]
View
System view
Parameter
vpn-name: Name of VPN instance can be configured 6 names at most.
Description
Using the ip route-static vpn-instance command, you can configure static route,
specifying an private network interface as the out-interface of this static route. In
the application background of multi-role host, you can configure a static route in a
private network with an interface of another private network or public network as
its out-interface. Using the undo ip route-static vpn-instance command, you can
remove the configuration of this static route.
BGP/MPLS VPN Configuration Commands 789
Example
Configure static route with destination address 100.1.1.1, next hop address
1.1.1.2.
[3Com] ip route-static vpn-instance vpn1 100.1.1.1 16 vpn-instance
vpn1 1.1.1.2
ip vpn-instance Syntax
ip vpn-instance vpn-name
View
System view, routing protocol view
Parameter
vpn-name: Name assigned to vpn-instance.
Description
Using the ip vpn-instance command, you can create and configure a vpn-instance.
Using the undo ip vpn-instance command, you can delete the specified
vpn-instance.
By default, vpn-instance is not defined. Neither input nor output list is associated
with vpn-instance. no route-map is associated with vpn-instance.
Example
Create VPN instance vpn1.
[3Com] ip vpn-instance vpn1
[3Com-vpn-vpn1]
ipv4-family Syntax
ipv4-family [ vpnv4 [ unicast ] | multicast | vpn-instance vpn-instance-name ]
View
BGP view
Parameter
multicast: IPv4 multicast address used by the address family. This parameter is used
to enter MBGP multicast address family view.
Description
Using the ipv4-family command, you can enter BGP IPv4 address family view or
MBGP VPNv4 address family view. Using the undo ipv4-family command, you can
delete the configuration of specified address family view or MBGP VPNv4 address
family view.
Use this command to enter address family view and configure parameters
associated with address family for BGP in this view.
The ipv4-family vpn-instance command you can enter MBGP vpn-instance address
family view.
Example
Associate the specified vpn-instance example with IPv4 address family to enter
MBGP vpn-instance address family view, which can be configured only after
vpn-instance has been configured.
[3Com] bgp 100
[3Com–bgp] ipv4 family vpn-instance abc
[3Com-bgp-af-vpn-instance]
ospf Syntax
ospf process-id [ router-id router-id-number ] [ vpn-instance vpn-instance-name ]
View
System view
Parameter
process-id: OSPF procedure ID. By default, it is 1.
Description
Using the ospf command, you can an enable OSPF procedure. Using the undo ospf
command, you can disable an OSPF procedure.
After enabling OSPF procedure, you can perform OSPF configurations in the OSPF
protocol view.
VRP supports multiple OSPF procedures, so you can specify different procedure IDs
to enable multiple OSPF procedures on a router.
If router ID is not specified in enabling OSPF procedure and binding the procedure
with a VPN instance is required, an interface must exist which has been configured
with IP address.
If you want to bind a procedure to a VPN instance, you must specify VPN instance
name.
One VPN instance may include several procedures. For example, for the VPN
instance 1, you can configure it into OSPF procedures 1, 2 and 3 with the
commands ospf 1 vpn-instance vpn1, ospf 2 vpn-instance vpn1, and ospf 3
vpn-instance vpn1.
But one procedure can belong to only one instance. If you have executed ospf 1
vpn-instance vpn1, you cannot configure ospf 1 vpn-instance vpn2. Otherwise,
the system prompts the information “Wrong configuration. Process 1 has been
bound to vpn-instance VRF1”. If you configure ospf 1 first and then execute ospf 1
vpn-instance vpn1, the system prompts the information “Wrong configuration.
Process 1 has been running in public domain”.
If you execute ospf 1 vpn-instance vpn1 first and then configure ospf 1, the system
enters ospf 1 vpn-instance vpn1 view, in which the commands ospf 1 and ospf 1
vpn-instance vpn1 are equivalent.
When an OSPF procedure is bound to a VPN instance, the default OSPF router is PE
router. After executing the display ospf process-id brief command, you will get the
information “PE router, connected to VPN backbone”.
CAUTION:
■ A router can run a maximum of 1024 OSPF procedures, with up to 10
procedures in each VPN instance.
792 CHAPTER 8: MPLS BASIC CONFIGURATION COMMANDS
Example
Enable the default OSPF procedure 1.
[3Com] router id 10.110.1.8
[3Com] ospf
Enable OSPF procedure 100, specify its route ID as 2.2.2.2 and bind it to the VPN
instance vpn1.
[3Com] ospf 100 router-id 2.2.2.2 vpn-instance vpn1
[3Com-ospf-100]
View
BGP view, MBGP IPv4-family view
Parameter
group-name: Name of the peer group
asn-limit: The maximum number allowed in received route updates of the local
autonomous system number AS.
Description
Using the peer allow-as-loop command, you can enable route loop detection in
the received route updates in hub&spoke networking mode. Using the undo peer
allow-as-loop command, you can prohibit loop to occur in the received route
updates.
In the case of standard BGP, BGP tests routing loop via AS number. In the case of
Hub&Spoke networking, however, PE carries the AS number of the local
autonomous system when advertising the routing information to CE, if EBGP is
run between PE and CE. Accordingly, the updated routing information will carry
the AS number of the local autonomous system when route update is received
from CE. In this case, PE cannot receive the route update information.
Example
Enable route loop detection in the received route updates.
[3Com-bgp] ipv4-family vpn-instance one
[3Com-bgp-af-vpn-instance] peer 1.1.1.1 allow-as-loop 1
View
BGP view, MBGP vpn-instance view
Parameter
group-name: Peer group name.
Description
Using the peer as-number command, you can configure the remote AS number of
the specified peer (group). Using the undo peer as-number command, you can
remove the remote AS number of the specified peer (group).
Example
Set the remote AS number of the specified peer (group) to 100.
[3Com-bgp] peer test as-number 100
View
BGP view, MBGP VPNv4 view
794 CHAPTER 8: MPLS BASIC CONFIGURATION COMMANDS
Parameter
group-name: Peer group name
Description
Using the peer enable command, you can enable the specified peer (group). Using
the undo peer enable command, you can disable the specified peer (group).
Example
Enable the peer (group) 168.
[3Com-bgp-af-vpn] peer 168 enable
View
BGP view, MBGP vpn-instance view
Parameter
group-name: Peer group name.
Description
Using the peer connect-interface command, you can configure to allow the
internal BGP session to use any operable interface that connects with TCP. Using
the undo peer connect-interface command, you can restore to use the best local
address to implement TCP connection.
By default, BGP uses the best local address to implement TCP connection.
Generally, BGP uses the best local address to implement TCP connection. In order
to make the TCP connection valid even when the interface fails, the internal BGP
session can be configures to be allowed to use any operable TCP-connected
interface (For example, Loopback interface).
Example
Allow the internal BGP session to use any operable interface that connects with
TCP.
[3Com-bgp-af-vpn-instance] peer 1.1.1.1 connect-interface loopback 0
BGP/MPLS VPN Configuration Commands 795
peer Syntax
default-route-advertise peer { group-name | peer-address } default-route-advertise
View
BGP view, MBGP IPv4-family view
Parameter
group-name: Peer group name.
Description
Using the peer default-route-advertise command, you can enable a peer (group) to
import a default route. Using the undo peer default-route-advertise command,
you can remove the existing setting.
This command does not require any default route in the routing table but
transmits a default route whose next hop address is itself to the peer
unconditionally.
Example
Enable the peer (group) test to import a default route.
[3Com–bgp] peer test as-number
[3Com–bgp] peer test default-route-advertise
View
BGP view, MBGP IPv4-family view
Parameter
group-name: Peer group name.
Description
Using the peer next-hop-local command, you can remove the processing of the
next hop in the routes that BGP advertises to a peer (group) and configure to use
its self-address as the next-hop. Using the undo peer next-hop-local command,
you can remove the existing setting.
Example
Specify the local IP address as the next hop in BGP's route advertising to the peer
(group).
796 CHAPTER 8: MPLS BASIC CONFIGURATION COMMANDS
View
BGP view, MBGP IPv4-family view
Parameter
group-name: Peer group name.
Description
Using the peer public-as-only command, you can configure not to carry private AS
number when transmitting BGP update packets. Using the undo peer
public-as-only command, you can configure to carry private AS number when
transmitting BGP update packets.
Generally, BGP carries the AS number (either public or private AS number) when
transmitting BGP update packets. BGP can be configured not to carry the private
AS number so that some output routers may ignore the private AS number when
transmitting BGP update packets.
Example
Send MBGP update packets without bearing private AS number.
[3Com-bgp-af-vpn] peer 168 public-as-only
View
BGP view
Parameter
peer-address: IP address of a peer.
Description
Using the peer upe command, you can configure BGP peer as the UPE of
hierarchical BGP/MPLS VPN. Using the undo peer upe command, you can remove
this configuration.
Example
Configure BGP peer as the UPE of hierarchical BGP/MPLS VPN.
BGP/MPLS VPN Configuration Commands 797
route-distinguisher Syntax
route-distinguisher route-distinguisher
View
vpn-instance view
Parameter
route-distinguisher: Configures a VPN IPv4 prefix by adding an 8-byte value to a
IPv4 prefix.
Description
Using the route-distinguisher command, you can configure RD for an MPLS VPN
instance. A vpn-instance cannot run until it is configured with an RD.
A route distinguisher (RD) creates route and forwarding list for a VPN and specify
default route identifier. Add RD to a specific IPv4 prefix start to make it the only
VPN IPv4 prefix.
Example
Configure RD for the MPLS VPN instance.
[3Com] ip vpn-instance vpn_blue
[3Com-vpn-vpn_blue] route-distinguisher 100:3
[3Com] ip vpn-instance vpn_red
[3Com-vpn-vpn_red] route-distinguisher 173.13.0.12:200
route-tag Syntax
route-tag tag-number
undo route-tag
View
OSPF protocol view
Parameter
tag-number: Tag value to identify VPN import route, in range of 0~4294967295.
By default, its first two fields are fixed to 0xD000, while the last two fields are the
ASN of local BGP. For example, if local BGP ASN is 100, then the default tag value
in decimal is 3489661028.
798 CHAPTER 8: MPLS BASIC CONFIGURATION COMMANDS
Description
Using the route-tag command, you can specify a tag value to identify VPN import
route. Using the undo route-tag command, you can restore the default value.
If a VPN site is linked to multiple PEs, when the 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 route loop. To avoid route loop,
you should configure route-tag and it is 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. The route-tag is not transmitted in the extended community
attributes of BGP, but can only be configured and function on the PE router which
receives BGP route and generates OSPF LSA.
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: The route-tag configured will not take effect until the reset ospf
command is executed.
Example
Configure route-tag 100 to OSPF procedure 100.
[3Com-ospf-100] route-tag 100
OSPF: Process 100's route tag has been changed
OSPF: Reload or use 'reset ospf' command for this to take effect
vpn-target Syntax
vpn-target vpn-target-ext-community [ import-extcommunity |
export-extcommunity | both ]
View
Vpn-instance view
Parameter
import-extcommunity: Ingress route information from the extended community of
target VPN.
both: Imports ingress and egress route information to the extended community of
target VPN.
Description
Using the vpn-target command, you can create vpn-target extended community
for vpn-instance. Using the undo vpn-target command, you can remove the
vpn-target extended community attribute.
The vpn-target command you can create ingress and egress route target extended
community list for specified vpn-instance. Execute this command once for each
target community. Import the received route bearing the specific route target
extended community to all vpn-instances, which are configured extended
community as ingress route target. Vpn-target specifies a target VPN extended
community. Same as RD, an extended community is either composed with an
autonomous system number and an arbitrary number or composed with an IP
address and an arbitrary number.
Example
Create vpn-target extended community for the vpn-instance.
[3Com] ip vpn-instance vpn_red
[3Com-vpn-vpn_red] vpn-target 1000:1 both
[3Com-vpn-vpn_red] vpn-target 1000:2 export-extcommunity
[3Com-vpn-vpn_red] vpn-target 173.27.0.130:2 import-extcommunity
View
MBGP vpn-instance view
Parameter
limit: Specifies the route maximum allowed in a vpn-instance.
warn threshold: Rejects routes when the threshold value is reached. This threshold
value is the percentage of the specified route maximum from 1 to 100.
simply-alert: When the route maximum specified for a vpn-instance exceeds the
threshold, routes can be added and only a SYSLOG error message is sent out.
800 CHAPTER 8: MPLS BASIC CONFIGURATION COMMANDS
Description
Using the routing-table limit command, you can limit the route maximum in a
vpn-instance, to avoid too many routes in the ingress interface of the PE router.
Using the undo routing-table limit command, you can remove the limitation.
Example
[3Com] ip vpn-instance vpn1
[3Com-vpn- vpn1] route-distinguisher 100:1
[3Com-vpn- vpn1] vpn-target 100:1 import-extcommunity
[3Com-vpn- vpn1] routing-table limit 1000 simply-alert
sham-link Syntax
sham-link source-addr destination-addr [ cost cost-value ] [ dead seconds ] [ hello
seconds ] [ md5 keyid key seconds ] [ retransimit seconds ] [ simple password ] [
trans-delay seconds ]
View
OSPF area view
Parameter
source-addr: Source address of sham-link, a loopback interface address with 32-bit
mask
MD5 authentication string in cipher text. You can also input 24-character
authentication string in cipher text.
dead seconds: Specifies interval for the dead timer, in range of 1~8192 seconds.
By default, it is 40 seconds. It must be consistent with the dead seconds value for
sham link peer.
trans-delay seconds: Specifies delay period for LSA message transmission at the
interface, in range of 1~8192 seconds. By default, it is 1 second.
Description
Using the sham-link command, you can configure a sham link. Using the undo
sham-link command, you can delete a sham link.
In the OSPF PE-CE connection, suppose that in an OSPF area there are two sites
which belong to the same VPN, with each connected to different PE router and an
intra-domain link (backdoor) established between them. Though there may be
other routes connecting the two sites via the PE router, these routes are just
intra-domain routes, so OSPF will select those routes through the backdoor first.
Sometimes, the routes through VPN backbone are desired to be selected first, then
it is required to establish sham link between PE routers. In this case, the routes
through VPN backbone are of the highest priority within the OSPF area.
The sham link between VPN PE routers is taken as a link within the OSPF area. Its
source and destination addresses are both loopback interface addresses with
32-bit mask. This loopback interface must be bound with a VPN instance and
imported into BGP through a direct-connect route. The optional parameters can
be appended in the sham link command and only those appended in the sham
link command can be selected in the undo command.
CAUTION:
■ The source and destination addresses of a sham link are both loopback
interface addresses with 32-bit mask. This loopback interface must be bound
with a VPN instance and imported into BGP through a direct-connect route.
■ The source and destination addresses of a sham link cannot be the same.
■ The same sham link cannot be configured in the different OSPF procedures.
■ A maximum of 50 sham link can be configured in an OSPF procedure.
Example
Configure a sham link, with source address 1.1.1.1 and destination address
2.2.2.2.
[3Com-ospf-100-area-0.0.0.1] sham-link 1.1.1.1 2.2.2.2 cost 100
802 CHAPTER 8: MPLS BASIC CONFIGURATION COMMANDS
vpn-instance-capability Syntax
simple vpn-instance-capability simple
undo vpn-instance-capability
View
OSPF protocol view
Parameter
None
Description
Using the routing-table limit command, you can configure a router as
Multi-VPN-Instance CE. Using the undo routing-table limit command, you can
remove the configuration.
When OSPF procedures are bound with VPN instances, the default OSPF router
serves as PE router. This command will remove the default configuration and
change a router into Multi-VPN-Instance CE. Then OSPF procedure will set up all
peers again. DN bits and route-tag will not be check in routing calculation. To
prevent route loss, loop test function is disabled on PE routes. MGP/OSPF
interoperability is also disabled to save system resources.
After the display ospf brief command is executed successfully, the system prompts
the information “Multi-VPN-Instance enable on CE router”.
CAUTION: OSPF process will set up all peers again after this command is run.
Example
Configure OSPF procedure 100 as Multi-VPN-Instance CE.
[3Com-ospf-100] vpn-instance-capability simple
View
System view
Parameter
interface-type interface-number: Interface for the remote connection.
Description
Using the ccc interface transmit-lsp receive-lsp command, you can create a remote
CCC connection. Using the undo ccc command, you can delete a remote CCC
connection.
Example
Create a remote CCC connection clink, with the transmit-LSP being tlsp and the
receive-LSP being rlsp.
[3Com-Ethernet3/0/0] ccc clink interface serial0/0/0 transmit-lsp
tlsp receive-lsp rlsp
View
System view
Parameter
ccc-connection-name: CCC connection name of 1 to 20 characters, which is used
for uniquely identifying the CCC inside the PE.
Description
Using the ccc interface out-interface command, you can create a local CCC
connection. Using the undo ccc command, you can 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.
804 CHAPTER 8: MPLS BASIC CONFIGURATION COMMANDS
Example
Create a local CCC connection clink, with two CEs connected respectively to
Ethernet0/0/0 and Ethernet2/0/0.
[3Com] ccc clink interface serial0/0/0 out-interface Ethernet 2/0/0
View
User view
Parameter
all: Enables/Disables all L2VPN debugging.
Description
Using the debugging mpls l2vpn command, you can view L2VPN link information.
Using the undo debugging mpls l2vpn command, you can disable the debug
function.
Example
<3Com> debugging mpls l2vpn all
View
Any view
MPLS L2VPN CCC Configuration Commands 805
Parameter
ccc-name: Name of the connection to be displayed.
Description
Using the display ccc command, you can view CCC connection information.
Example
Display CCC connection information.
[3Com] display ccc c-link
View
MPLS view
Parameter
lsp-name: LSP name
Description
Using the static-lsp egress l2vpn command, you can configure a static LSP used in
L2VPN for egress LSR. Using the undo static-lsp egress l2vpn command, you can
delete an LSP used in L2VPN of egress LSR.
Two LSPs (one in each direction) should be created in advance before creating
remote CCC connection.
For related commands, see static-lsp ingress l2vpn and debugging mpls.
Example
Add the static LSP bj-sh at egress LSR.
[3Com-mpls] static-lsp egress bj-sh l2vpn incoming-interface
serial8/0/0 in-label 233
View
MPLS view
Parameter
lsp-name: LSP name
Description
Using the static-lsp egress l2vpn command, you can configure a static LSP used in
L2VPN for ingress LSR. Using the undo static-lsp egress l2vpn command, you can
delete an LSP used in L2VPN of ingress LSR.
With this command, you can configure a static LSP for ingress LSR, as well as
setting preference and measurement value for it.
Two LSPs (one in each direction) should be created in advance before creating
remote CCC connection.
For related commands, see static-lsp egress lvpn, static-lsp transit, and debugging
mpls.
Example
Add the static LSP with destination address 202.25.38.1 at ingress LSR.
[3Com-mpls] static-lsp ingress bj-sh destination 202.25.38.1 24
nexthop 202.55.25.33 out-label 237
View
MPLS view
Parameter
lsp-name: LSP name
Description
Using the static-lsp transit command, you can configure a static LSP used in L2VPN
for transit LSR. Using the undo static-lsp transit command, you can 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 remote CCC connection.
For related commands, see 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 being 123 and outbound label being 253.
[3Com-mpls] static-lsp transit bj-sh l2vpn incoming-interface
serial0/0/0 in-label 123 nexthop 202.34.114.7 out-label 253
View
Any view
Parameter
interface-type interface -num: Interface type and interface number
Description
Using the display mpls static-l2vc command, you can view the connection
information of static MPLS L2VPN.
Example
Display basic information of static connection.
[3Com-Ethernet1/0/1] display mpls static-l2vc
total connections: 1, 0 up, 1 down
ce-intf state destination tr-label rcv-label tnl-type
tnl-index
Ethernet1/0/1 down 192.1.1.1 222 111 --
0
View
Interface view
Parameter
destination-ip-address: ROUTER ID of destination router.
Description
Using the mpls static-l2vc command, you can create an SVC MPLS L2VPN
connection. Using the undo mpls static-l2vc command, you can delete the
connection.
Example
Create SVC MPLS L2VPN connection.
[3Com-s1/1/0] mpls static-l2vc destination 192.1.1.1
transmit-vpn-label 333 receive-vpn-label 111
View
Any view
Parameter
verbose: Displays the detailed information.
Description
Using the display mpls l2vc command, you can view the VC information in LDP
mode.
Example
None
View
Interface view
Parameter
ip-address: lsr-id address of peer PE.
Description
Using the mpls l2vc command, you can create an LDP connection. Using the undo
mpls l2vc command, you can delete the connection.
Supporting interface types: Serial, Asy Serial, POS, ATM, ATM subinterface,
Ethernet, Ethernet subinterface, VE, GE, GE subinterface.
Enable MPLS L2VPN and encapsulate CCC on the interface before using this
command.
Example
Create LDP connection.
[3Com-Ethernet3/0/0] mpls l2vc 10.0.0.11
ce Syntax
ce name [ id id range range ] [ default-offset offset ] ]
undo ce name
View
Parameter
name: CE name, unique in the current PE VPN.
range: CE range, in other words, the maximum CE number local CE can connect
with, ranging from 1 to 100. Default value is 10.
810 CHAPTER 8: MPLS BASIC CONFIGURATION COMMANDS
Description
Using the ce command, you can create CE or modify CE range. Using the undo ce
command, you can delete CE.
After CE is created, system will create a CE mode and all the configurations of CE
will be performed in this mode.
To facilitate VPN expansion, CE range can be configured larger than the real
capacity. But it’s a waste of identifier because system will distribute an identifier
block as large as the CE range.
If the CE range is smaller than need in VPN expansion, for example, the CE range
is 10 while the needed CE number is 20, you can modify the CE range to 20.
Example
Create a CE for vpna, named “Marlborough,” with CEID being 1, range default
value being 10.
[3Com]mpls l2vpn
[3Com] mpls l2vpn vpna encapsulation ppp
[3Com-mpls-l2vpn-vpna] ce marlborough id 1
[3Com-mpls-l2vpn-ce-vpna-marlborough]
connection Syntax
connection [ ce-offset offset ] { interface interface-type interface-num }
View
MPLS L2VPN CE view
Parameter
offset: Specifies remote CE ID for L2VPN connection in establishing local
connection
Description
Using the connection command, you can create a CE connection. Using the undo
connection command, you can delete a CE connection.
Example
Establish a CE connection.
[3Com] mpls l2vpn vpna
[3Com-l2vpn-vpna] ce ce-a id 1 range 4
[3Com-l2vpn-vpna-ce-ce-a] connection s0/0/0 ce-offset 2
Kompella MPLS L2VPN Configuration Commands 811
View
Any view
Parameter
all: All L2VPN information in local address family.
Description
Using the display bgp l2vpn all command, you can view system operating
information and all L2VPN information.
Example
Display all L2VPN information.
[3Com] display bgp l2vpn all
View
Any view
Parameter
vclabel: VC label
Description
Using the display mpls l2vpn forwarding-info command, you can view the L2VPN
information under a specific interface.
Example
Display the L2VPN information under a specific interface.
[3Com] display mpls l2vpn forwarding-info interface serial1/0/0
VCLABEL TUNNELTYPE ENTRYTYPE OUTINTERFACE OUTSLOT TOKEN CTRLWORD
102402 LSP SEND Serial1 0 0
FALSE
Record(s) Found.
l2vpn-family Syntax
l2vpn-family
undo l2vpn-family
View
BGP view
Parameter
None
Description
Using the l2vpn-family command, you can create an L2VPN address family view.
Using the undo l2vpn-family command, you can delete the L2VPN address family
view.
Using this command, you can enter L2VPN address family view.
Execute the undo l2vpn-family command to exit multicast extended address family
view. Delete all the configurations in this address family and back to BGP unicast
view.
Example
Create L2VPN address family view.
[3Com] bgp 100
[3Com-bgp] l2vpn-family
[3Com-bgp-af-l2vpn]
View
System view
Kompella MPLS L2VPN Configuration Commands 813
Parameter
None
Description
Using the mpls l2vpn command, you can enable L2VPN. Using the undo mpls
l2vpn command, you can disable L2VPN.
Example
Enter MPLS view, then configure LSR ID and enable MPLS.
[3Com] undo mpls
[3Com-mpls] mpls lsr-id 10.0.0.1
[3Com] mpls
Enable L2VPN.
[3Com] mpls l2vpn
View
System view
Parameter
vpn-name: Unique VPN name in PE with 1 to 20 bytes.
atm-aal5 | ethernet | fr | vlan | hdlc | ppp: VPN encapsulation types. The CCC
encapsulation type on CE interface must keep accordance with that of VPN when
creating BGP L2VPN connection. Otherwise, the connection can not be performed
normally.
Description
Using the mpls l2vpn encapsulation command, you can create Kompella MPLS
L2VPN and specify encapsulation mode. Using the undo mpls l2vpn encapsulation
command, you can remove the encapsulation.
After creating Kompella MPLS L2VPN, system will create a L2VPN mode, all the
parameters of which are configured in L2VPN mode.
Example
Create a Kompella MPLS L2VPN, named “3Com”, with encapsulation type being
vlan:
814 CHAPTER 8: MPLS BASIC CONFIGURATION COMMANDS
mtu Syntax
mtu mtu
View
L2VPN view
Parameter
mtu: Layer2 MTU value of VPN. MTU is defaulted as 1500.
Description
Using the mtu command, you can configure MTU of Kompella MPLS L2VPN.
When configuring VPN layer2 mtu, the mtu value of the same VPN on different
PEs must be the consistent in the whole SP network. Otherwise, VPN will not work
normally.
Example
Configure the mtu of VPN “3Com” as 1000.
[3Com-l2vpn-3Com] mtu 1000
View
L2VPN address family view
Parameter
group-name: Peer group name, specifying the whole peer group.
Description
Using the peer enable command, you can activate specified peer (group) in L2VPN
address family view. Using the undo peer enable command, you can deactivate
specified peer (group) in L2VPN address family view.
By default, unicast peer (group) of IPv4 address family is activated, while other
peer (groups) are deactivated.
Example
Activate the peer (group) 192 in the L2VPN address family view.
[3Com-bgp] peer 1.1.1.1 as-number 100
[3Com-bgp] l2vpn-family
[3Com-bgp-af-l2vpn] peer 1.1.1.1 enable
MPLS TE Configuration Commands 815
MPLS TE
Configuration
Commands
View
Explicit path view
Parameter
ip-address1: IP address for the node to be added, which can be the interface
address or the router ID.
loose: Next hop and local node can be in the mode other than direct-connect.
Description
Using the add hop command, you can add a node in the explicit path view.
Example
Add a node into the explicit path.
[3Com] mpls te explicit-path 3Com enable
[3Com-mpls-te-expl-path-3Com] add hop 10.0.0.1 after 10.0.0.2 loose
undo debugging mpls rsvp-te { all | error | path | ptear | resv | rtear | rconf | hello |
perr | rerr | encdec | socket | traffic-control | main | tool }
View
User view
Parameter
all: Enables alarming of all levels.
Description
Using the debugging mpls rsvp-te command, you can enable alarming for all
RSVP-TE modules. Using the undo debugging mpls rsvp-te command, you can
disable alarming for all RSVP-TE modules.
Example
Enable alarming for all RSVP-TE modules.
<3Com> debugging mpls rsvp-te all
View
Explicit path view
Parameter
ip-address: IP address for the node to be deleted
Description
Using the delete hop command, you can delete a node in the explicit path view.
Example
Delete a node.
[3Com] mpls te explicit-path 3Com enable
[3Com-mpls-te-expl-path-3Com] delete hop 10.0.0.1
View
Any view
MPLS TE Configuration Commands 817
Parameter
interface-type: Specifies interface type.
Description
Using the display mpls rsvp-te command, you can view RSVP interface
information.
Example
Display information of all RSVP interfaces.
[3Com-Ethernet0] display mpls rsvp-te
Display MPLS RSVP-TE config information
LSR ID: 1.1.1.1
RSVP-TE is enable
RSVP HELLO is disable
RSVP RCONF is disable
Default RSVP style is SE
HELLO interval is 3 second
HELLO lost times is 3
PATH and RESV message refresh interval is 30 second
PATH and RESV message resent times is 3
Blockade keep times is 4
# Display information of the interface Ethernet0/0/0.
[3Com] display mpls rsvp-te interface e0/0/0
IF Name Status Total-BW Used-BW Hello Nbr
Ethernet0/0/0 DOWN 75000k 0k NO 0
View
Any view
Parameter
interface-type: Specifies interface type.
Description
Using the display mpls rsvp-te established command, you can view LSP and
bandwidth information for RSVP.
By default, the filtering rule and bandwidth of all RSVP interfaces will be displayed.
Example
Display LSP and bandwidth of all RSVP interfaces.
[3Com] display mpls rsvp-te established
818 CHAPTER 8: MPLS BASIC CONFIGURATION COMMANDS
View
Any view
Parameter
interface-type: Specifies interface type.
Description
Using the display mpls rsvp-te peer command, you can view peer information for
RSVP.
Example
Display the peer information of all RSVP interfaces.
[3Com] display mpls rsvp-te peer
View
Any view
Parameter
ip-address: Specifies an ip address.
Description
Using the display mpls rsvp-te path command, you can view path information for
RSVP.
Example
Display path information of all RSVP interfaces.
[3Com] display mpls rsvp-te path
View
Any view
MPLS TE Configuration Commands 819
Parameter
ip-address: Specifies IP address.
Description
Using the display mpls rsvp-te resv command, you can view reserved resources of
RSVP.
Example
Display the reserved resources of all RSVP interfaces.
[3Com] display mpls rsvp-te resv
View
Any view
Parameter
path-name: Specifies explicit path name.
Description
Using the display mpls te explicit-path command, you can view explicit path
information.
Example
Display explicit path information of the router.
[3Com] display mpls te explicit-path
ip explicit-path ID : 200, name : test-path-1, status : enable
1: next-address 3.3.28.3 strict
2: next-address 3.3.27.3 strict
View
Any view
Parameter
interface-type: Specifies interface type.
820 CHAPTER 8: MPLS BASIC CONFIGURATION COMMANDS
Description
Using the display mpls te link-administration admission-control command, you can
view local tunnels and their parameters (for example, priority, bandwidth, ingress,
egress and status).
Example
Display the admission control information of all RSVP interfaces.
[3Com] display mpls te link-administration admission-control
System Information::
CrLsp Count: 4
CrLsp Selected: 4
CrLsp ID UP IF DOWN IF PRIORITY BW (kbps)
10.106.0.6:1 AT1/0/0.2 - 0/0 0
10.106.0.6:2 Et4/0/1 - 1/1 0
10.106.0.6:3 Et4/0/1 Et4/0/2 1/13000
10.106.0.6:4 AT1/0/0.2 AT0/0/0.2 1/1 3000
View
Any view
Parameter
interface-type: Specifies interface type.
Description
Using the display mpls te link-administration bandwidth-distribution command,
you can view the information about the current link.
The displayed information may vary, in comparison with the actual configuration.
It depends on the flooding mode.
MPLS TE Configuration Commands 821
Example
Display MPLS TE link-administration bandwidth distribution.
[3Com] display mpls te link-administration bandwidth-distribution
Ethernet4/0/1
System Information::
Links Count: 2
Link ID: Et4/0/1 (10.1.0.6)
Physical Bandwidth: 10000 kbits/sec
Max Reservable BW: 5000 kbits/sec (reserved:0% in, 60% out)
Up Thresholds: 15 30 45 60 75 80 85 90 95 96 97 98 99 100 (default)
Down Thresholds: 100 99 98 97 96 95 90 85 80 75 60 45 30 15 (default)
Downstream Bandwidth Information (kbits/sec):
KEEP PRIORITY LOCKED BW TOTAL LOCKED
0 0 0
1 3000 3000
2 0 3000
3 0 3000
4 0 3000
5 0 3000
6 0 3000
7 0 3000
View
Any view
Parameter
destination address: Displays the tunnels with this specified destination address.
lsp-role { all | ingress | egress | remote | transit }: Displays the tunnels with specified
role (all, ingress, egress, remote and transmit).
name tun-name: Displays the tunnel information with a specified name. If this
parameter is selected, the tunnel name will be got from the interface description.
Otherwise, tunnel name is contained in signaling messages and will be got by all
hops along the explicit path.
Description
Using the display mpls te tunnel command, you can view tunnel information.
Example
Display MPLS TE Tunnel.
[3Com] display mpls te tunnel
Total Tunnel Number: 1
TunnelID 10.10.10.10-1,TunnelName test-tunnel-1 on Ingress
10.10.10.10,
Primary 1.1.1.1:1 10.10.10.10 - eth1/1/0down down
Reoptimized 1.1.1.1:10 10.10.10.10 - eth1/2/0up up
backup 1.1.1.1:2 10.10.10.10 - eth1/3/0down down
ordinary 1.1.1.1:3 10.10.10.10 - eth1/2/0down up
View
Any view
Parameter
tun-num: Specifies tunnel number.
Description
Using the display mpls te tunnel commit-last command, you can view the latest
tunnel configuration information.
Example
Display the latest tunnel configuration information.
[3Com] display mpls te tunnel commit-last 0/0/0
Tunnel0
Status: Down
Loop detection: Enable
Record label: Disable
Resv Style: SE
Explicit path: xhy
Tunnel bandwidth: 200(kbps)
Destination: 100.1.1.1
MPLS TE Configuration Commands 823
View
Any view
Parameter
tun-num: Specifies tunnel number.
Description
Using the display mpls te tunnel running command, you can view the information
of active tunnels. Only configuration information of those tunnels where LSP has
been created will be displayed, excluding those for which configuration result has
been submitted, but no LSP has been created.
Example
Display the configuration information of the CR-LSPs created successfully.
[3Com] display mpls te tunnel running 0
Tunnel0
Status: Down
Loop detection: Enable
Record label: Disable
Resv Style: SE
Explicit path: xhy
Tunnel bandwidth: 200(kbps)
Destination: 100.1.1.1
View
Any view
Parameter
None
Description
Using the display mpls te tunnel statistics command, you can view tunnel statistics.
Example
Display MPLS TE tunnel statistics.
[3Com] display mpls te tunnel statistics
Ingress: 1 ( 0 ready, 0 modifying, 1 setuping, 0 failed )
Transit: 0
Egress: 0
View
Explicit path view
Parameter
ip-address1: Current IP address.
loose: Next hop and local node can be in the mode other than direct-connect.
Description
Using the modify hop command, you can specify or modify the addresses of the
nodes along explicit path in the explicit path view by index.
Example
Modify node information.
[3Com-mpls-te-expl-path-3Com] modify hop 10.0.0.1 10.0.0.2 loose
View
System view, interface view
Parameter
None
Description
Using the mpls rsvp-te command, you can enable RSVP-TE feature. Using the undo
mpls rsvp-te command, you can disable RSVP-TE feature.
Disabling RSVP-TE feature in the system view will disable the feature at all
interfaces.
Example
Enable globally RSVP-TE feature.
[3Com] mpls rsvp-te
View
System view
Parameter
times: RSVP refreshing period multiplier for blockaded state timeout, in the range
of 1~255. By default, it is 3.
Description
Using the mpls rsvp-te blockade-multiplier command, you can set the multiplier
for blockaded state timeout. Blockade_Expired_Time = Kb ¥ refresh-time. Using
the undo mpls rsvp-te blockade-multiplier command, you can restore the default
value.
Example
Set the multiplier as 5.
[3Com] mpls rsvp-te blockade-multiplier 5
View
System view, interface view
Parameter
None
Description
Using the mpls rsvp-te hello command, you can enable Hello mechanism to detect
RSVP peer. Using the undo mpls rsvp-te hello command, you can disable Hello
mechanism.
Example
Enable Hello mechanism.
[3Com] mpls rsvp-te hello
826 CHAPTER 8: MPLS BASIC CONFIGURATION COMMANDS
View
System view
Parameter
times: Times value when no Hello response messages are received consecutively, in
the range of 3~10. By default, it is 3.
Description
Using the mpls rsvp-te hello-lost command, you can the times value when no
Hello response messages are received consecutively. When the times value is
exceeded, the corresponding link is judged as faulty. Using the undo mpls rsvp-te
hello-lost command, you can restore the default value.
Example
Set the times value to 5 when no Hello response messages are received
consecutively.
[3Com] mpls rsvp-te hello-lost 5
View
System view
Parameter
times: RSVP refreshing period multiplier for PSB and RSB timeout, in the range of
1~255. By default, it is 3.
Description
Using the mpls rsvp-te keep-multiplier command, you can set the multiplier for
PSB and RSB timeout. In calculating timed refreshing of PSB and RSB,
Expired_Time = (keep-multiplier + 0.5) ¥ 1.5 ¥ refresh-time. Using the undo mpls
rsvp-te keep-multiplier command, you can restore the default value.
Example
Set the multiplier as 5.
[3Com] mpls rsvp-te keep-multiplier 5
MPLS TE Configuration Commands 827
View
Any view
Parameter
None
Description
Using the mpls rsvp-te resvconfirm command, you can start the confirmation
mechanism for resource reservation on a node. Using the undo mpls rsvp-te
resvconfirm command, you can close reservation confirmation mechanism.
Example
Enable and disable reservation confirmation mechanism.
[3Com] mpls rsvp-te resvconfirm
[3Com] undo mpls rsvp-te resvconfirm
View
System view
Parameter
seconds: Time interval for refreshing Hello messages, in the range of 1 to 60
seconds. By default, it is 3 seconds.
Description
Using the mpls rsvp-te timer hello command, you can define time interval for
refreshing Hello messages. Using the undo mpls rsvp-te timer hello command, you
can restore the default value.
For the related commands, see mpls rsvp-te hello and mpls rsvp-te hello-lost.
Example
Set Hello message refreshing period as 5 seconds.
[3Com] mpls rsvp-te timer hello 5
828 CHAPTER 8: MPLS BASIC CONFIGURATION COMMANDS
View
System view
Parameter
seconds: Time interval for refreshing Path/Resv messages, in the range of 1~65535
seconds. By default, it is 30 seconds.
Description
Using the mpls rsvp-te timer refresh command, you can define refreshing period
for Path and Resv messages of the node. Using the undo mpls rsvp-te timer refresh
command, you can restore the default values.
Example
Set refreshing period for Path and Resv messages as 60 seconds.
[3Com] mpls rsvp-te timer refresh 60
undo mpls-te
View
Area view
Parameter
None
Description
Using the mpls-te enable command, you can enable TE function in OSPF area.
Using the undo mpls-te command, you can cancel TE function in OSPF area.
CAUTION:
■ By default, TE function is disabled in OSPF area.
■ TE function cannot be enabled until Opaque function is enabled for OSPF
procedure.
MPLS TE Configuration Commands 829
Example
Enable TE function in OSPF area.
[3Com-ospf-100] area 1
[3Com-ospf-100-area-0.0.0.1] mpls-te enable
mpls te Syntax
mpls te
undo mpls te
View
MPLS view, interface view
Parameter
None
Description
Using the mpls te command, you can enable MPLS TE feature. Using the undo
mpls te command, you can disable MPLS TE feature.
You need to enable this feature both globally and on the interface, and then the
interface will flood this resource information to the right IGP link state database
and accept TE tunnel signaling request.
Example
Globally enable MPLS TE feature.
[3Com-mpls] mpls te
View
Tunnel view
Parameter
bandwidth: Bandwidth for the tunnel, in kbps. By default, it is 0.
830 CHAPTER 8: MPLS BASIC CONFIGURATION COMMANDS
Description
Using the mpls te bandwidth command, you can specify bandwidth for MPLS TE
tunnel. Using the undo mpls te bandwidth command, you can restore the default
value.
The maximum reservable bandwidth must be greater than sum of the bandwidth
of all tunnels.
Example
Set the tunnel bandwidth as 8kbps.
[3Com-tunnel1/0/0] mpls te bandwidth 8
View
Tunnel view
Parameter
None
Description
Using the mpls te commit command, you can submit current configuration result
for the tunnel interface to MPLS.
The configuration will not take effect and no LSP will be set up until the
configured tunnel feature is submitted. If you modify a feature option and submit
the result for several times in one option, only the last modification will take
effect.
You can use the display mpls te commit-last command to view the latest
configuration result.
Example
Submit current configuration result for the tunnel interface to MPLS.
[3Com-tunnel1/0/0] mpls te commit
View
System view
MPLS TE Configuration Commands 831
Parameter
path-name: Path name
disable: Current path is unavailable. This setting prevents the path from being
used during configuration.
Description
Using the mpls te explicit-path command, you can enter the explicit path view and
create an explicit path or modify a specific path. The explicit is a list of IP
addresses, with each entry representing a node or a link. Using the undo mpls te
explicit-path command, you can delete a specified path.
Example
Enter the explicit path “3Com” view.
[3Com] mpls te explicit-path 3Com
mpls te Syntax
flooding-thresholds mpls te flooding-thresholds { down | up } percent [ percent ] ...
View
Interface view
Parameter
down: Reservable bandwidth values available in descending order
percent: Threshold level for flooding, in percentage, in the range of 1~100. For
the up keyword: the values available include 15, 30, 45, 60, 75, 80, 85, 90, 95,
96, 97, 98, 99 and 100. For the down keyword, the values include 100, 99, 98,
97, 96, 95, 90, 85, 80, 75, 60, 45, 30 and 15.
Description
Using the mpls te flooding-thresholds command, you can define flooding
threshold. Using the undo mpls te flooding-thresholds te loop-detection
command, you can restore the default value.
If the reservable bandwidth available at the interface exceeds the preset threshold,
it will trigger link state update messages being distributed among the network.
Otherwise, the link state update messages are sent by flooding period.
Example
None
mpls te Syntax
link-administrative- mpls te link-administrative-group attribute
group
undo mpls te link-administrative-group
View
Interface view
Parameter
attribute: Link management group attribute, also called color, which is an integer
in hexadecimal. It can be a constraint in matching physical path.
Description
Using the mpls te link-administrative-group command, you can configure link
management group at the interface. Using the undo mpls te loop-detection
command, you can remove the configuration.
By configuring link management group attribute, you can set up the explicit paths
which match the requirements. For example, you can set the attribute of all
interfaces along the LSP as 20.
Example
Configure link management group at the interface ethernet1/0/0 to 20.
[3Com-ethernet1/0/0] mpls te link-administrative-group 20
View
Interface view
Parameter
metric: IGP cost for TE links. By default, it is 1.
Description
Using the mpls te metric command, you can configure IGP cost for TE links. Using
the undo mpls te metric command, you can restore the default cost value.
Example
Configure the IGP cost at the interface tunnel1 as 20.
[3Com-tunnel1] mpls te metric 20
MPLS TE Configuration Commands 833
View
Tunnel view
Parameter
None
Description
Using the mpls te loop-detection command, you can indicate to run loop test in
creating tunnels. Using the undo mpls te loop-detection command, you can
remove loop test.
Example
Indicate to run loop test in creating tunnels.
[3Com-tunnel1] mpls te loop-detection
mpls te Syntax
max-link-bandwidth mpls te max-link-bandwidth bandwidth
View
Interface view
Parameter
bandwidth: Maximum link bandwidth at the interface, in the range of
0~32000000bps. By default, it is the actual bandwidth of the physical interface.
Description
Using the mpls te max-link-bandwidth command, you can configure maximum
link bandwidth at the interface. Using the undo mpls te max-link-bandwidth
command, you can restore the default value.
Example
Set the maximum bandwidth at the interface as 64kbps.
[3Com-Ethernet1/0/0] mpls te max-link-bandwidth 64
mpls te Syntax
max-reservable-bandwi mpls te max-reservable-bandwidth bandwidth
dth
undo mpls te max-reservable-bandwidth
834 CHAPTER 8: MPLS BASIC CONFIGURATION COMMANDS
View
Interface view
Parameter
bandwidth: The maximum link bandwidth at the interface, in the range of
0~32000000bps. By default, it is 75 percentage of the actual bandwidth at the
interface.
Description
Using the mpls te max-reservable-bandwidth command, you can configure the
reservable bandwidth at the interface. Using the undo mpls te
max-reservable-bandwidth command, you can restore the default value.
Example
Set the maximum reservable bandwidth at an interface as 64kbps.
[3Com-Ethernet1/0/0] mpls te max-reservable-bandwidth 64
View
Tunnel view
Parameter
path-name: Explicit path name.
Description
Using the mpls te path explicit-path command, you can configure explicit for a
tunnel. Using the undo mpls te path explicit-path command, you can delete the
route.
Example
[3Com-tunnel1] mpls te path explicit-path 3Com
View
Tunnel view
MPLS TE Configuration Commands 835
Parameter
None
Description
Using the mpls te record-label command, you can indicate to record actual route
and label in creating tunnels. Using the undo mpls te record-label command, you
can remove the setting.
For signaling protocol, recording actual route is optional. RSVP-TE can also record
route labels.
Example
Indicate to record actual route and label in creating tunnels.
[3Com-tunnel1] mpls te record-label
View
Tunnel view
Parameter
ff: Selects FF (fixed filter) for resource reservation
Description
Using the mpls te resv-style command, you can define resource reservation style in
creating tunnels. Using the undo mpls te resv-style command, you can restore the
default style.
By default, se is selected.
Only RSVP-TE protocol supports both FF and SE modes, so you must first indicate
to run RSVP-TE protocol in creating tunnels before defining resource reservation
style. Each LSP must be configured with a definite reservation style.
The FE type defines a distinct sender list (with IP address and LSP ID defined) and
particular reservation style which is not shared with other senders for each sender.
The FE type is applicable to concurrent but independent services which are from
different senders.
In the SE type, only a single reservation style is defined for an explicit path, which
can be shared by those definitely-listed senders Since the senders are contained in
RESV messages and different labels are allocated with different receiver-sender
pairs, so in this mode separate LSP can be established.
836 CHAPTER 8: MPLS BASIC CONFIGURATION COMMANDS
Example
Select SE type in creating CRLSP tunnels.
[3Com-tunnel1] mpls te signal-protocol rsvp-te
[3Com-tunnel1] mpls te resv-style se
View
Tunnel view
Parameter
None
Description
Using the mpls te signal-protocol rsvp-te command, you can set signaling protocol
in creating tunnels as RSVP.
Example
Select RSVP in creating RSVP tunnels.
[3Com-tunnel] mpls te signal protocol cpldp
View
MPLS view
Parameter
seconds: Flood period, in the range of 0~3600 seconds. By default, it is 180
seconds.
Description
Using the mpls te timer periodic-flooding command, you can define flooding
period. Using the undo mpls te timer periodic-flooding command, you can restore
the default value.
Example
Set flood period to 2000 seconds.
[3Com-mpls] mpls te timer periodic-flooding 2000
View
Explicit path view
Parameter
ip-address: Next IP address along the explicit path
strict: The next hop and local node must be in direct-connect mode.
loose: The next hop and local node can be in the mode other than direct-connect.
Description
Using the next hop command, you can specify next IP address on the explicit path.
Using the undo next hop command, you can delete the IP address specified.
Example
Specify the next IP address as 10.0.0.1.
[3Com-mpls-te-expl-path-3Com]] next hop 10.0.0.1 loose
View
Tunnel view
Parameter
None
Description
Using the tunnel-protocol mpls te command, you can set the Tunnel interface in
CR-LSP tunnel mode.
When TE is disabled, all tunnel interfaces turns into GRE tunnel mode, in which,
only GRE-related commands are visible and executable. While in CR-LSP tunnel
mode, you can only see and execute CR-LSP-related commands.
Example
Set up a tunnel between Routers Quidway1 and Quidway2, with encapsulation
protocol being mpls te.
[3Com1-Tunnel3] tunnel-protocol mpls te
[3Com2-Tunnel2] tunnel-protocol mpls te
View
Explicit path view
Parameter
ip-address: IP address of the node
Description
Using the view hop command, you can view node information.
Example
Display node information.
[3Com-mpls-te-expl-path-tandoon] view hop
explicit-path id : 0, name : xhy, status : enable