display interface virtual-ethernet

HP 6600/HSR6600 Routers
Layer 2 - WAN
Command Reference
Part number: 5998-1502
Software version: A6602-CMW520-R3103
A6600-CMW520-R3102-RPE
A6600-CMW520-R3102-RSE
HSR6602_MCP-CMW520-R3102
Document version: 6PW103-20130628
Legal and notice information
© Copyright 2013 Hewlett-Packard Development Company, L.P.
No part of this documentation may be reproduced or transmitted in any form or by any means without
prior written consent of Hewlett-Packard Development Company, L.P.
The information contained herein is subject to change without notice.
HEWLETT-PACKARD COMPANY MAKES NO WARRANTY OF ANY KIND WITH REGARD TO THIS
MATERIAL, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS FOR A PARTICULAR PURPOSE. Hewlett-Packard shall not be liable for errors contained
herein or for incidental or consequential damages in connection with the furnishing, performance, or use
of this material.
The only warranties for HP products and services are set forth in the express warranty statements
accompanying such products and services. Nothing herein should be construed as constituting an
additional warranty. HP shall not be liable for technical or editorial errors or omissions contained herein.
Contents
ATM configuration commands ···································································································································· 1 atm class ···································································································································································· 1 atm-class ···································································································································································· 1 atm-link check ··························································································································································· 2 bandwidth ································································································································································· 2 clock ··········································································································································································· 3 default ········································································································································································ 4 description ································································································································································· 4 display atm class ······················································································································································ 5 display atm interface················································································································································ 6 display atm map-info ··············································································································································· 7 display atm pvc-group ············································································································································· 9 display atm pvc-info ·············································································································································· 10 display interface virtual-ethernet ·························································································································· 13 encapsulation ························································································································································· 16 interface atm ·························································································································································· 17 interface virtual-ethernet ········································································································································ 18 ip-precedence ························································································································································ 18 map bridge ···························································································································································· 19 map ip ···································································································································································· 20 map ppp ································································································································································· 21 mtu ·········································································································································································· 22 oam ais-rdi ····························································································································································· 23 oam frequency ······················································································································································· 24 oamping interface ················································································································································· 25 pvc ·········································································································································································· 26 pvc-group ······························································································································································· 27 pvc max-number ···················································································································································· 27 pvp limit ·································································································································································· 28 remark atm-clp ······················································································································································· 29 reset counters interface virtual-ethernet ··············································································································· 30 service cbr ······························································································································································ 30 service ubr ······························································································································································ 32 service vbr-nrt ························································································································································· 33 service vbr-rt ··························································································································································· 34 shutdown ································································································································································ 35 transmit-priority ······················································································································································ 35 PPP and MP configuration commands ······················································································································ 37 PPP configuration commands ········································································································································ 37 ip address ppp-negotiate ······································································································································ 37 ip pool ···································································································································································· 37 link-protocol ppp···················································································································································· 38 ppp account-statistics enable ······························································································································· 39 ppp authentication-mode ······································································································································ 39 ppp chap password ·············································································································································· 41 ppp chap user························································································································································ 41 ppp ipcp dns ·························································································································································· 42 ppp ipcp dns admit-any ········································································································································ 43 i
ppp ipcp dns request ············································································································································ 44 ppp ipcp remote-address forced ·························································································································· 44 ppp pap local-user ················································································································································ 45 ppp timer negotiate ··············································································································································· 46 remote address ······················································································································································ 47 timer hold ······························································································································································· 48 MP configuration commands ········································································································································ 48 bandwidth ······························································································································································ 48 broadcast-limit link ················································································································································ 49 default ····································································································································································· 50 description ······························································································································································ 51 display interface mp-group··································································································································· 51 display interface virtual-template ························································································································· 54 display ppp mp ····················································································································································· 55 display virtual-access ············································································································································ 57 interface mp-group ················································································································································ 59 interface virtual-template ······································································································································· 60 mtu ·········································································································································································· 60 ppp mp ··································································································································································· 61 ppp mp binding-mode ·········································································································································· 61 ppp mp endpoint ··················································································································································· 62 ppp mp fragment enable ······································································································································ 63 ppp mp max-bind ·················································································································································· 64 ppp mp min-fragment ············································································································································ 65 ppp mp mp-group·················································································································································· 65 ppp mp short-sequence ········································································································································· 66 ppp mp user ··························································································································································· 67 ppp mp virtual-template ········································································································································ 68 reset counters interface mp-group························································································································ 69 reset counters interface virtual-template ·············································································································· 69 shutdown ································································································································································ 70 PPP link efficiency mechanism configuration commands ··························································································· 70 ppp mp lfi ······························································································································································· 70 ppp mp lfi delay-per-frag ······································································································································ 71 ppp mp lfi size-per-frag········································································································································· 71 PPPoE server configuration commands ····················································································································· 73 display pppoe-server session ······························································································································· 73 pppoe-server abnormal-offline-count threshold ··································································································· 74 pppoe-server abnormal-offline-percent threshold ······························································································· 74 pppoe-server bind ················································································································································· 75 pppoe-server log-information off ·························································································································· 76 pppoe-server max-sessions local-mac ·················································································································· 76 pppoe-server max-sessions remote-mac ·············································································································· 77 pppoe-server max-sessions total ··························································································································· 77 pppoe-server normal-offline-percent threshold ···································································································· 78 reset pppoe-server ················································································································································· 79 L2TP configuration commands ·································································································································· 80 allow l2tp ······························································································································································· 80 display l2tp session ··············································································································································· 81 display l2tp tunnel ················································································································································· 82 display ppp access-control interface ··················································································································· 83 interface virtual-template ······································································································································· 84 l2tp enable ····························································································································································· 85 ii
l2tp-group ······························································································································································· 85 l2tpmoreexam enable ··········································································································································· 86 mandatory-chap····················································································································································· 87 mandatory-lcp ························································································································································ 87 ppp lcp imsi accept ··············································································································································· 88 ppp lcp imsi request ·············································································································································· 88 ppp lcp imsi string ················································································································································· 89 ppp lcp sn accept ·················································································································································· 89 ppp lcp sn request ················································································································································· 90 ppp lcp sn string ···················································································································································· 90 ppp user accept-format imsi-sn split ····················································································································· 91 ppp user attach-format imsi-sn split······················································································································ 92 ppp user replace ··················································································································································· 92 reset l2tp tunnel ····················································································································································· 93 start l2tp·································································································································································· 93 tunnel authentication ············································································································································· 94 tunnel avp-hidden ·················································································································································· 95 tunnel flow-control ················································································································································· 95 tunnel name ···························································································································································· 96 tunnel password····················································································································································· 96 tunnel timer hello ··················································································································································· 97 HDLC configuration commands ································································································································ 99 default ····································································································································································· 99 link-protocol hdlc ··················································································································································· 99 timer hold ····························································································································································· 100 HDLC link bundling configuration commands······································································································· 101 bandwidth ···························································································································································· 101 bundle id ······························································································································································ 101 bundle max-active links ······································································································································· 102 bundle member-priority ······································································································································· 103 bundle min-active bandwidth ····························································································································· 103 bundle min-active links ········································································································································ 104 default ··································································································································································· 105 description ···························································································································································· 105 display bundle member hdlc-bundle ················································································································· 106 display interface hdlc-bundle ····························································································································· 108 interface hdlc-bundle ··········································································································································· 111 mtu ········································································································································································ 112 reset counters interface ······································································································································· 112 service ··································································································································································· 113 shutdown ······························································································································································ 114 Frame relay configuration commands ··················································································································· 115 Basic frame relay configuration commands ·············································································································· 115 display fr dlci-switch ············································································································································ 115 display fr inarp-info ············································································································································· 116 display fr interface ·············································································································································· 117 display fr lmi-info ················································································································································· 118 display fr map-info ·············································································································································· 119 display fr pvc-info ················································································································································ 120 display fr statistics ··············································································································································· 122 fr dlci ····································································································································································· 123 fr inarp ·································································································································································· 124 fr interface-type ···················································································································································· 125 iii
fr lmi n391dte ······················································································································································ 125 fr lmi n392dce ····················································································································································· 126 fr lmi n392dte ······················································································································································ 127 fr lmi n393dce ····················································································································································· 128 fr lmi n393dte ······················································································································································ 128 fr lmi t392dce ······················································································································································ 129 fr lmi type ····························································································································································· 130 fr map ip ······························································································································································· 131 fr switch ································································································································································ 132 fr switching ··························································································································································· 132 interface ································································································································································ 133 link-protocol fr ······················································································································································ 133 link-protocol fr mfr ··············································································································································· 134 reset fr inarp························································································································································· 135 reset fr pvc···························································································································································· 135 shutdown ······························································································································································ 136 timer hold ····························································································································································· 136 MFR configuration commands ···································································································································· 137 bandwidth ···························································································································································· 137 display interface mfr ··········································································································································· 138 display mfr ··························································································································································· 141 interface mfr ························································································································································· 144 link-protocol fr mfr ··············································································································································· 145 mfr bundle-name ·················································································································································· 146 mfr fragment ························································································································································· 146 mfr fragment-size ················································································································································· 147 mfr link-name························································································································································ 147 mfr retry ································································································································································ 148 mfr timer ack ························································································································································ 149 mfr timer hello ······················································································································································ 150 mfr window-size··················································································································································· 150 reset counters interface ······································································································································· 151 sub-interface rate-statistic ···································································································································· 151 Modem management commands··························································································································· 153 modem ·································································································································································· 153 modem auto-answer ············································································································································ 153 modem timer answer··········································································································································· 154 service modem-callback ······································································································································ 155 Support and other resources ·································································································································· 156 Contacting HP ······························································································································································ 156 Subscription service ············································································································································ 156 Related information ······················································································································································ 156 Documents ···························································································································································· 156 Websites······························································································································································· 156 Conventions ·································································································································································· 157 Index ········································································································································································ 159 iv
ATM configuration commands
atm class
Use atm class to create an ATM class and enter the ATM class view.
Use undo atm class to delete the specified ATM class.
Syntax
atm class atm-class-name
undo atm class atm-class-name
Views
System view
Default command level
2: System level
Parameters
atm-class-name: Name of an ATM class, a string of 1 to 16 characters.
Usage guidelines
An ATM class is a group of predefined parameters that can be used for an ATM interface or PVC.
Examples
# Create an ATM class named main and enter ATM class view.
<Sysname> system-view
[Sysname] atm class main
[Sysname-atm-class-main]
Related commands
atm-class
atm-class
Use atm-class to apply an ATM class to an ATM interface or a PVC.
Use undo atm-class to cancel the ATM class application.
Syntax
atm-class atm-class-name
undo atm-class
Views
ATM interface view, PVC view
Default command level
2: System level
1
Parameters
atm-class-name: Name of an ATM class, a string of 1 to 16 characters.
Examples
# Apply the ATM class named main to interface ATM 1/0/1.
<Sysname> system-view
[Sysname] interface atm 1/0/1
[Sysname-Atm1/0/1] atm-class main
Related commands
atm class
atm-link check
Use atm-link check to adapt the protocol state of an ATM P2P subinterface to the status of the PVC on the
subinterface in addition to the status of the physical interface. The protocol state of the subinterface is up
only when both the physical interface and the PVC configured on the subinterface are up. If either of them
is down, the protocol state of the subinterface is down.
Use undo atm-link check to restore the default.
Syntax
atm-link check
undo atm-link check
Default
The protocol state of an ATM P2P subinterface is consistent with the status of the physical interface.
Views
ATM P2P subinterface view
Default command level
2: System level
Examples
# Adapt the protocol state of ATM P2P subinterface 4/0/1.1 to PVC status in addition to physical
interface status.
<Sysname> system-view
[Sysname] interface atm 4/0/1.1 p2p
[Sysname-Atm4/0/1.1] atm-link check
bandwidth
Use bandwidth to set the intended bandwidth for an interface.
Use undo bandwidth to restore the default.
Syntax
bandwidth bandwidth-value
undo bandwidth
2
Views
Layer 3 VE interface view, Layer 3 VE subinterface view
Default command level
2: System level
Parameters
bandwidth-value: Specifies the intended bandwidth for the interface, in the range of 1 to 4294967295
kbps.
Usage guidelines
You can obtain the intended bandwidth of an interface by querying the ifspeed value of the MIB node
with third-party software.
The intended bandwidth is used for bandwidth monitoring of the network management, but does not
affect the actual bandwidth of the interface.
Examples
# Set the intended bandwidth to 10000 kbps for interface Virtual-Ethernet 1/0/1.
<Sysname> system-view
[Sysname] interface virtual-ethernet 1/0/1
[Sysname-Virtual-Ethernet1/0/1] bandwidth 10000
clock
Use clock to specify the clock to be used by the ATM interface.
Use undo clock to restore the default.
Syntax
clock { master | slave }
undo clock
Default
An ATM interface uses the line clock (slave).
Views
ATM main interface view
Default command level
2: System level
Parameters
master: Specifies the interface to use the internal transmission clock.
slave: Specifies the interface to use the line clock.
Usage guidelines
When two network devices are connected back-to-back through ATM interfaces, you must configure the
clock mode as master on one side and as slave on the other side.
The effect of this command applies to both ATM main interface and subinterface. However, the
command is available only in ATM main interface view.
3
Examples
# Specify interface ATM 1/0/1 to use the internal transmission clock.
<Sysname> system-view
[Sysname] interface atm 1/0/1
[Sysname-Atm1/0/1] clock master
Related commands
display atm interface
default
Use default to restore the default settings for an interface.
Syntax
default
Views
Layer 2 VE interface view, Layer 3 VE interface view, Layer 3 VE subinterface view
Default command level
2: System level
Usage guidelines
CAUTION:
The default command might interrupt ongoing network services. Make sure you are fully aware of the
impacts of this command when you execute it on a live network.
This command might fail to restore the default settings for some commands for reasons such as command
dependencies or system restrictions. Use the display this command in interface view to identify these
commands, and then use their undo forms or follow the command reference to individually restore their
default settings. If your restoration attempt still fails, follow the error message instructions to resolve the
problem.
Examples
# Restore the default settings of interface Virtual-Ethernet 1/0/1.
<Sysname> system-view
[Sysname] interface virtual-ethernet 1/0/1
[Sysname-Virtual-Ethernet1/0/1] default
This command will restore the default settings. Continue? [Y/N]:y
description
Use description to configure a description for a VE interface.
Use undo description to restore the default.
Syntax
description text
undo description
4
Default
The description of a VE interface is interface name Interface, for example, Virtual-Ethernet1/0/1
Interface.
Views
Layer 2 VE interface view, Layer 3 VE interface view, Layer 3 VE subinterface view
Default command level
2: System level
Parameters
text: Interface description, a case-sensitive character string of 1 to 240 characters. The string can include
case-sensitive letters, digits, special characters such as tilde (~), exclamation point (!), at sign (@), pound
sign (#), dollar sign ($), percent sign (%), caret (^), ampersand sign (&), asterisk (*), left brace({), right
brace (}), left parenthesis ((), right parenthesis ()), left bracket ([), right bracket (]), left angle bracket (<),
right angle bracket (>), hyphen (-), underscore(_), plus sign (+), equal sign (=), vertical bar (|), back
slash (\), colon (:), semi-colon (;) quotation marks ("), apostrophe ('), comma (,), dot (.), and slash (/),
spaces, and other Unicode characters and symbols.
When you specify an interface description, follow these guidelines:
•
Each Unicode character takes the space of two regular characters.
•
To use Unicode characters or symbols in an interface description, install the specific input method
editor and log in to the device through remote login software that supports the character type.
•
When the length of a description string reaches or exceeds the maximum line width on the terminal
software, the software starts a new line, possibly breaking a Unicode character into two. As a result,
garbled characters are displayed at the end of a line.
Examples
# Set the description for Layer 3 VE interface Virtual-Ethernet 1/0/1 to out-interface.
<Sysname> system-view
[Sysname] interface Virtual-Ethernet 1/0/1
[Sysname-Virtual-Ethernet1/0/1] description out-interface
Related commands
display interface
display atm class
Use display atm class to display the information about an ATM class.
Syntax
display atm class [ atm-class-name ] [ | { begin | exclude | include } regular-expression ]
Views
Any view
Default command level
1: Monitor level
Parameters
atm-class-name: ATM class name, a string of 1 to 16 characters.
5
|: Filters command output by specifying a regular expression. For more information about regular
expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Usage guidelines
If you provide the atm-class-name argument, this command displays the information about the ATM class
identified by the argument.
If you do not specify the atm-class-name argument, this command displays the information about all the
ATM classes.
Examples
# Display the information about the ATM class named main.
<Sysname> display atm class main
ATM CLASS: main
Service ubr 8000
encapsulation aal5snap
Table 1 Command output
Field
Description
ATM CLASS
ATM class name.
Service ubr 8000
PVC's service type and the bit rate.
encapsulation aal5snap
The type of ATM AAL5 encapsulation of the PVC is aal5snap.
display atm interface
Use display atm interface to display the configuration and status information of the specified ATM
interface, or all ATM interfaces if no ATM interface is specified.
Syntax
display atm interface [ atm interface-number ] [ | { begin | exclude | include } regular-expression ]
Views
Any view
Default command level
1: Monitor level
Parameters
interface-number: Specifies an ATM interface to view its configuration and status information.
|: Filters command output by specifying a regular expression. For more information about regular
expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
6
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Examples
# Display the information interface about ATM 2/0/1.
<Sysname> display atm interface atm 2/0/1
ATM interface Atm2/0/1, State UP
Port Information:
Maximum VCs: 1024
PVCs: 5, MAPs: 1
input pkts: 11603, input bytes: 426476, input pkt errors: 37092
output pkts: 14053, output bytes: 519106, output pkt errors: 0
Main interface Information:
PVCs: 4, MAPs: 1
input pkts: 11603, input bytes: 426476, input pkt errors: 19210
output pkts: 14053, output bytes: 519106, output pkt errors: 0
ATM interface Atm2/0/1.1, point-to-point, State UP
Sub-interface Information:
PVCs: 1, MAPs: 0
input pkts: 0, input bytes: 0, input pkt errors: 17880
output pkts: 0, output bytes: 0, output pkt errors: 0
Table 2 Command output
Field
Description
Maximum VCs
Maximum number of VCs allowed on the ATM interface.
PVCs
Number of PVCs configured on the interface.
MAPs
Number of mappings on the interface.
input pkts: 0, input bytes: 0, input pkt errors: 0
Received packets, bytes, and errors.
output pkts: 69, output bytes: 2218, output pkt
errors: 8
Transmitted packets, bytes, and errors.
display atm map-info
Use display atm map-info to display the PVC mapping information.
Syntax
display atm map-info [ interface interface-type interface-number [ pvc { pvc-name [ vpi/vci ] | vpi/vci } ] ]
[ | { begin | exclude | include } regular-expression ]
Views
Any view
Default command level
1: Monitor level
Parameters
interface-type interface-number: Specifies an interface by its type and number.
7
pvc-name: PVC name, a unique string of 1 to 16 characters on the specified ATM interface,
case-insensitive. The name cannot be the same as any valid VPI/VCI pair. For example, the name 1/20
is not allowed.
vpi/vci: VPI/VCI pair. VPI is short for virtual path identifier, and its value range is 0 to 255. VCI is short
for virtual channel identifier, and its value range varies by interface type. As VCIs from 0 to 31 are
reserved for special purposes, do not use them in normal cases. For more information about the value
range, see Table 3.
Table 3 VCI range for each type of ATM interface
Interface type
VCI
ADSL 2+
0 to 255
G.SHDSL
0 to 255
ATMOC3
0 to 1023
ATM E1
0 to 511
ATM T1
0 to 511
ATM E3
0 to 1023
ATM T3
0 to 1023
|: Filters command output by specifying a regular expression. For more information about regular
expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Usage guidelines
If no ATM interface is specified, the PVC mapping information of all ATM interfaces is displayed.
If an ATM interface is specified but no PVC or VPI/VCI pair is specified, the PVC mapping information
of all PVCs on the specified ATM interface is displayed.
Examples
# Display the PVC mapping information of all ATM interfaces.
<Sysname> display atm map-info
Atm1/0/1, PVC 1/32, PPP, Virtual-Template10, UP
Atm1/0/1, PVC 1/33, IP & Mask, State UP
100.11.1.1, mask 255.255.0.0, vlink 1
Atm1/0/1, PVC 2/101, ETH, Virtual-Ethernet1/0/1, UP
Table 4 Command output
Field
Description
Atm1/0/1
Interface number.
PVC 1/33
PVC identifier.
IP & Mask
Protocol type.
8
Field
Description
State UP
PVC state.
100.11.1.1, mask 255.255.0.0
Protocol address.
vlink 1
Virtual link number.
display atm pvc-group
Use display atm pvc-group to view the information about PVC-Group.
Syntax
display atm pvc-group [ interface interface-type interface-number [ pvc { pvc-name [ vpi/vci ] |
vpi/vci } ] ] [ | { begin | exclude | include } regular-expression ]
Views
Any view
Default command level
1: Monitor level
Parameters
interface-type interface-number: Interface type and interface number.
pvc-name: PVC name, a unique string of 1 to 16 characters on an ATM interface, case-insensitive. The
name cannot be the same as a valid VPI/VCI value pair. For example, the name 1/20 is not allowed.
vpi/vci: VPI/VCI pair. VPI is short for virtual path identifier, and its value range is 0 to 255. VCI is short
for virtual channel identifier, and its value range varies by interface type. HP recommends not using VCI
values from 0 to 31, because they are reserved for special purposes. For more information about the
value range, see Table 3.
|: Filters command output by specifying a regular expression. For more information about regular
expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Usage guidelines
If no interface is specified, this command displays PVC-Group information on all ATM interfaces.
If the PVC name or the VPI/VCI value pair is not specified, this command displays information of all
PVC-Groups on the specified ATM interface.
Examples
# Display the information about PVC-Group on all ATM interfaces.
<Sysname> display atm pvc-group
VPI/VCI
1/32
PVC-NAME
aa
STATE ENCAP PROT
INTERFACE
GROUP
UP
SNAP
IP
Atm1/0/1(UP)
1/32
1/33
UP
SNAP
IP
Atm1/0/1(UP)
1/32
3/34
UP
SNAP
IP
Atm1/0/1(UP)
1/32
9
Table 5 Command output
Field
Description
VPI/VCI
VPI/VCI value pair.
PVC-NAME
PVC name.
STATE
PVC state.
ENCAP
AAL5 encapsulation type of the PVC.
PROT
Upper protocol running on the PVC.
INTERFACE
Interface to which the PVC belongs.
GROUP
PVC group to which the PVC belongs.
display atm pvc-info
Use display atm pvc-info to view the information about a PVC.
Syntax
display atm pvc-info [ interface interface-type interface-number [ pvc { pvc-name [ vpi/vci ] | vpi/vci } ] ]
[ | { begin | exclude | include } regular-expression ]
Views
Any view
Default command level
1: Monitor level
Parameters
interface-type interface-number: Specifies an interface by its type and number.
pvc-name: PVC name, a unique string of 1 to 16 characters on an ATM interface, case-insensitive. The
name cannot be the same as a valid VPI/VCI value pair. For example, the name 1/20 is not allowed.
vpi/vci: VPI/VCI pair. VPI is short for virtual path identifier, and its value range is 0 to 255. VCI is short
for virtual channel identifier, and its value range varies by interface type. HP recommends not using VCI
values from 0 to 31, because they are reserved for special purposes. For more information about the
value range, see Table 3.
|: Filters command output by specifying a regular expression. For more information about regular
expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Usage guidelines
Without an interface specified, this command displays PVC information on all ATM interfaces.
Without a PVC name or a VPI/VCI value pair specified, this command displays all the PVC information
on the specified ATM interface.
10
Examples
# Display the PVC information on all ATM interfaces.
<Sysname> display atm pvc-info
VPI/VCI | STATE
| PVC-NAME
| INDEX
| ENCAP
| PROT | INTERFACE
--------|---------|-----------|--------|--------|------|---------1/32
|UP
|aa
|33
|SNAP
|IP
|Atm1/0/1 (UP)
1/33
|UP
|Sysname
|34
|MUX
|None
|Atm1/0/1 (UP)
1/55
|UP
|datacomm
|56
|SNAP
|PPP
|Atm1/0/1.1 (UP)
2/66
|UP
|
|68
|SNAP
|IP
|Atm1/0/1.4 (UP)
2/101
|UP
|beijing
|103
|SNAP
|ETH
|Atm1/0/1.2 (UP)
Table 6 Command output
Field
Description
VPI/VCI
VPI/VCI value pair.
STATE
PVC state.
PVC-NAME
PVC name.
INDEX
Internal index of the PVC.
ENCAP
AAL5 encapsulation type of the PVC.
PROT
Upper protocol running on the PVC.
INTERFACE
Interface to which the PVC belongs.
# Display information about a specified ATM PVC.
<Sysname> display atm pvc-info interface atm 2/0/1 pvc 1/100
Atm2/0/1, VPI: 1, VCI: 100, INDEX: 0
AAL5 Encaps: SNAP, Protocol: IP
Service-type: CBR, output-pcr: 200 kbps, CDVT: 500 us
Transmit-Priority: 0
OAM interval: 0 sec(disabled), OAM retry interval: 1 sec
OAM retry count (up/down): 3/5
OAM ais-rdi count (up/down): 3/1
input pkts: 0, input bytes: 0, input pkt errors: 0
output pkts: 0, output bytes: 0, output pkt errors: 0
Interface State: UP, OAM State: UP, PVC State: UP
Output queue : (Urgent queuing : Size/Length/Discards)
0/100/0
Output queue : (Protocol queuing : Size/Length/Discards)
Output queue : (FIFO queuing : Size/Length/Discards)
OAM cells received: 42
F5 InEndloop: 0, F5 InAIS: 42, F5 InRDI: 0
OAM cells sent: 0
F5 OutEndloop: 0
OAM cell drops: 0
OAM CC State: No CC Alarm
11
0/500/0
0/75/0
Table 7 Command output
Field
Description
VPI
Virtual path identifier of the specified ATM PVC.
VCI
Virtual channel identifier of the specified ATM PVC.
INDEX
Internal index of the PVC.
AAL5 Encaps
AAL5 encapsulation type of the PVC.
Protocol
Upper layer protocol running on the PVC.
Service-type
Service type.
Transmit-Priority
Transmit priority.
OAM interval
Interval at which OAM F5 loopback cells are sent.
OAM retry interval
Interval at which the system retransmits OAM F5 loopback cells.
OAM retry count
Number of OAM cells transmitted before a PVC is declared up or down.
OAM ais-rdi count
Number of OAM AIS/RDI cells for the device to receive before reporting that the
PVC is down. Number of seconds for the device to wait before reporting that the
PVC is up after the PVC has stopped receiving OAM AIS/RDI cells.
input pkts:
Count of received packets.
input bytes:
Count of received bytes.
input pkt errors:
Count of received error packets.
output pkts
Count of transmitted packets.
output bytes
Count of transmitted bytes.
output pkt errors
Count of transmitted error packets.
Interface State
Link layer protocol status of the interface.
PVC State
PVC status.
Output queue
Information about each output queue on the PVC.
OAM cells received
Count of received OAM cells.
F5 InEndloop
Count of received F5 loopback cells.
Count of received AIS cells.
F5 InAIS
If the AIS alarm state is not supported, this command displays only the count of
AIS cells, not the AIS alarm state, which is the OAM AIS State field.
Count of received RDI cells.
F5 InRDI
If the RDI alarm state is not supported, this command displays only the count of
RDI cells, not the RDI alarm state, which is the OAM RDI State field.
OAM cells sent
Count of transmitted OAM cells.
F5 OutEndloop
Count of transmitted F5 loopback cells.
AID alarm state.
OAM AIS State
OAM RDI State
If the AIS alarm state is supported, this command displays only the AIS alarm
state, not the count of received AIS cells, which is the F5 InAIS field.
If the RDI alarm state is supported, this command displays only the RDI alarm
state, not the count of received RDI cells, which is the F5 InRDI field.
12
Field
Description
OAM cell drops
Count of dropped OAM cells.
OAM CC alarm state:
OAM CC State
•
•
•
•
A dash (–)—The system does not support obtaining OAM CC state.
No CC Alarm—No OAM CC alarm is present.
E2E CC Alarm—An end-to-end OAM CC alarm is present.
SEG CC Alarm—A segment OAM CC alarm is present (not supported).
display interface virtual-ethernet
Use display interface virtual-ethernet to display information about Layer 3 VE interfaces.
Syntax
display interface [ virtual-ethernet ] [ brief [ down ] ] [ | { begin | exclude | include } regular-expression ]
display interface virtual-ethernet interface-number [ brief ] [ | { begin | exclude | include }
regular-expression ]
Views
Any view
Default command level
1: Monitor level
Parameters
interface-number: Layer 3 VE interface number.
brief: Displays brief interface information. Without this keyword specified, this command displays
detailed interface information.
down: Displays information about interfaces in the down state and the causes. Without this keyword
specified, this command displays information about interfaces in all states.
|: Filters command output by specifying a regular expression. For more information about regular
expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Usage guidelines
If you do not specify the virtual-ethernet keyword, this command displays information about all
interfaces on the device.
If you specify the virtual-ethernet keyword without the interface-number argument, this command
displays information about all Layer 3 VE interfaces.
Examples
# Display detailed information about interface Virtual-Ethernet 1/0/1. (Assume the interface supports
traffic accounting.)
13
<Sysname> display interface virtual-ethernet 1/0/1
Virtual-Ethernet1/0/1 current state: UP
Line protocol current state: UP
Description: Virtual-Ethernet1/0/1 Interface
The Maximum Transmit Unit is 1500
Internet protocol processing : disabled
IP Packet Frame Type: PKTFMT_ETHNT_2,
Hardware Address: 00e0-fc0d-9485
IPv6 Packet Frame Type: PKTFMT_ETHNT_2,
Hardware Address: 00e0-fc0d-9485
Physical is EoPW, baudrate: 10000000 bps
Output queue : (Urgent queuing : Size/Length/Discards)
0/100/0
Output queue : (Protocol queuing : Size/Length/Discards)
Output queue : (FIFO queuing : Size/Length/Discards)
Last clearing of counters:
0/500/0
0/75/0
Never
Last 300 seconds input rate: 0 bytes/sec, 0 bits/sec, 0 packets/sec
Last 300 seconds output rate: 0 bytes/sec, 0 bits/sec, 0 packets/sec
0 packets input, 0 bytes, 0 drops
0 packets output, 0 bytes, 0 drops
# Display detailed information about interface Virtual-Ethernet 1/0/2. (Assume the interface does not
support traffic accounting.)
<Sysname> display interface virtual-ethernet 1/0/2
Virtual-Ethernet1/0/2 current state: DOWN
Line protocol current state: DOWN
Description: Virtual-Ethernet1/0/2 Interface
The Maximum Transmit Unit is 1500
Internet protocol processing : disabled
IP Packet Frame Type: PKTFMT_ETHNT_2,
Hardware Address: 0023-8970-1fd7
IPv6 Packet Frame Type: PKTFMT_ETHNT_2,
Last clearing of counters:
Hardware Address: 0023-8970-1fd7
Never
# Display brief information about interface Virtual-Ethernet 1/0/1.
<Sysname> display interface virtual-ethernet 1/0/1 brief
The brief information of interface(s) under route mode:
Link: ADM - administratively down; Stby - standby
Protocol: (s) - spoofing
Interface
Link Protocol Main IP
VE1
DOWN DOWN
Description
--
# Display brief information about all VE interfaces in down state.
<Sysname> display interface virtual-ethernet brief down
The brief information of interface(s) under route mode:
Link: ADM - administratively down; Stby - standby
Interface
Link Cause
VE1
DOWN Not connected
14
Table 8 Command output
Field
Description
Physical state of the interface:
current state
• DOWN—The interface is physically down (possibly because no
physical link is present or the link has failed).
• UP—The interface is physically up.
Line protocol current state
Link layer state of the interface: UP or DOWN.
Description
Interface description.
The Maximum Transmit Unit
Maximum transmission unit (MTU) of the interface.
Internet protocol processing
Processing state of the network layer protocol: enabled or
disabled.
IP Packet Frame Type
Encapsulation format for IPv4 packets.
Hardware Address
MAC address of the interface.
IPv6 Packet Frame Type
Encapsulation format for IPv6 packets.
Physical is EoPW
The physical state of the interface is Ethernet over Pseudo Wire
(EoPW). This field is displayed only when you configure the VE
interface to connect an MPLS L2VPN to an MPLS L3VPN.
baudrate
Maximum bandwidth of the interface. This field is displayed only
when you configure the VE interface to enable an MPLS L2VPN to
access an MPLS L3VPN.
Link service is PWE3 ethernet mode
Ethernet mode of the link PWE3. This field is displayed only when
the VE interface is connected to an MPLS L2VPN.
Link service is PWE3 ethernet tagged
mode
VLAN mode of the link PWE3. This field is displayed only when the
VE interface is connected to an MPLS L2VPN.
Output queue : (Urgent queue :
Size/Length/Discards)
Packet statistics for the following output queues:
Output queue : (Protocol queue :
Size/Length/Discards)
Output queue : (FIFO queuing :
Size/Length/Discards)
Last clearing of counters: Never
Last 300 seconds input: 0 bytes/sec 0
packets/sec
Last 300 seconds output: 0 bytes/sec 0
packets/sec
• Urgent queues.
• Protocol queues.
• FIFO queues.
Time when the reset counters interface command was last used to
clear the interface statistics. Never indicates the reset counters
interface command has never been used on the interface after the
device has started up.
Average input or output rate over the last 300 seconds in bps and
pps. This field is displayed only when the interface supports traffic
accounting.
0 packets input, 0 bytes, 0 drops
Statistics on the packets received. This field is displayed only when
the interface supports traffic accounting.
0 packets output, 0 bytes, 0 drops
Statistics on the packets sent. This field is displayed only when the
interface supports traffic accounting.
The brief information of interface(s) under
route mode:
Brief information about Layer 3 interfaces.
15
Field
Description
Link layer state of the interface:
• ADM—The interface was shut down by the network
Link: ADM - administratively down; Stby standby
administrator. To recover its physical layer state, perform the
undo shutdown command.
• Stby—The interface is a standby interface. You can use the
display standby state command to check the corresponding
primary interface.
Protocol: (s) - spoofing
If the network layer protocol state of an interface is shown as UP,
but its link is an on-demand link or not present at all, its protocol
attribute includes the spoofing flag (an s in parentheses).
Interface
Interface name.
Physical link state of the interface:
Link
• UP—The link is up.
• ADM—The link was administratively shut down. To recover its
physical state, execute the undo shutdown command.
Protocol
Protocol connection state of the interface: UP(s).
Main IP
Primary IP address.
Description
Interface description.
Cause for a DOWN physical link:
Cause
• Administratively—The port was shut down with the shutdown
command. To restore the physical state of the interface, use the
undo shutdown command.
• Not connected—No physical connection exists.
Related commands
interface virtual-ethernet
encapsulation
Use encapsulation to specify an ATM AAL5 encapsulation type for a PVC.
Use undo encapsulation to restore the default.
Syntax
encapsulation aal5-encap
undo encapsulation
Default
Aal5snap encapsulation is used.
Views
PVC view, ATM class view
Default command level
2: System level
16
Parameters
aal5-encap: Specifies an AAL5 encapsulation type. The following are available values:
•
aal5mux—MUX encapsulation
•
aal5nlpid—RFC1490 encapsulation
•
aal5snap—LLC/SNAP encapsulation
Usage guidelines
Among aal5snap, aal5mux and aal5nlpid, only aal5snap encapsulation supports InARP.
If InARP is enabled, you must disable it before changing AAL5 encapsulation to aal5mux or aal5nlpid.
An ATM PVC can carry multiple protocols simultaneously, but certain types of encapsulation might not
support some applications (one or more of IPoA, IPoEoA, PPPoA, and PPPoEoA). When such cases occur,
the system gives a prompt.
Examples
# Set the AAL5 encapsulation of PVC 1/32 on interface ATM 1/0/1 to aal5nlpid.
<Sysname>system-view
[Sysname] interface atm 1/0/1
[Sysname-Atm1/0/1] pvc 1/32
[Sysname-atm-pvc-Atm1/0/1-1/32] encapsulation aal5nlpid
interface atm
Use interface atm to create an ATM subinterface or enter an ATM subinterface view.
Use undo interface atm to delete ATM subinterface.
Syntax
interface atm { interface-number | interface-number.subnumber [ p2mp | p2p ] }
undo interface atm interface-number.subnumber
Default
The connection type of subinterface is p2mp.
Views
System view
Default command level
2: System level
Parameters
interface-number: Specifies an ATM main interface by its number.
subnumber: Specifies an ATM subinterface by its number in the range of 0 to 1023.
p2mp: Sets the connection type on the subinterface to point-to-multiple point.
p2p: Sets the connection type on the subinterface to point-to-point.
17
Usage guidelines
Two types of connections are available on an ATM subinterface: p2mp and p2p. In p2mp connection,
you can create multiple PVCs on the subinterface. In p2p connection, you can create just one PVC on the
subinterface.
Examples
# Enter the view of interface ATM 1/0/1.
<Sysname> system-view
[Sysname] interface atm 1/0/1
[Sysname-Atm1/0/1]
# Create subinterface ATM 1/0/1.1, enter subinterface view, and set its connection type to point-to-point.
<Sysname> system-view
[Sysname] interface atm 1/0/1.1 p2p
[Sysname-Atm1/0/1.1]
interface virtual-ethernet
Use interface virtual-ethernet to create a Layer 3 VE interface and enter its view.
Use undo interface virtual-ethernet to remove a Layer 3 VE interface.
Syntax
interface virtual-ethernet interface-number
undo interface virtual-ethernet interface-number
Views
System view
Default command level
2: System level
Parameters
interface-number: Layer 3 VE interface number.
Usage guidelines
You cannot remove a Layer 3 VE interface that has been associated with a PVC.
Examples
# Create a Layer 3 VE interface Virtual-Ethernet 1/0/1.
<Sysname> system-view
[Sysname] interface virtual-ethernet 1/0/1
[Sysname-Virtual-Ethernet1/0/1]
ip-precedence
Use ip-precedence to set the precedence of the IP packets carried on PVCs.
Use undo ip-precedence to remove the precedence setting of IP packets carried on PVCs.
Syntax
ip-precedence { pvc-name [ vpi/vci ] | vpi/vci } { min [ max ] | default }
18
undo ip-precedence { pvc-name [ vpi/vci ] | vpi/vci }
Views
ATM PVC-group view
Default command level
2: System level
Parameters
pvc-name: PVC name, a unique string of 1 to 16 characters on ATM interface, case-insensitive. The name
cannot be the same as a valid VPI/VCI pair value. For example, the name 1/20 is not allowed.
vpi/vci: VPI/VCI pair. VPI is short for virtual path identifier, and its value range is 0 to 255. VCI is short
for virtual channel identifier, and its value range varies by interface type. HP recommends not using VCI
values from 0 to 31, because they are reserved for special purposes. For more information about the
value range, see Table 3.
min: Specifies the minimum precedence of IP packets carried by the PVC, in the range of 0 to 7.
max: Specifies the maximum precedence of IP packets carried by the PVC, in the range of 0 to 7.
default: Uses the specified PVC as the default PVC.
Usage guidelines
If the ip-precedence command is not configured, all IP packets, regardless of their precedence levels, are
transmitted over the primary PVC (the one used when the PVC group is created) in the PVC group.
If this command is configured with the default keyword, which means the current PVC is configured as the
default PVC, all the IP packets without specified precedence levels are transmitted over this PVC.
If this command is configured without the default keyword, which means no PVC is taken as the default
PVC, all IP packets without specified precedence levels are transmitted over the primary PVC.
This command is for configuration of the PVCs in the PVC group only. The specified minimum preference
min must be smaller than or equal to the specified maximum preference max.
This command does not change the precedence levels of IP packets.
Related commands
•
pvc-group
•
pvc
Examples
# Configure a PVC named aa, whose VPI/VCI is 1/32, to carry IP packets with precedence levels 0 to
3.
<Sysname> system-view
[Sysname] interface atm 1/0/1
[Sysname-Atm1/0/1] pvc-group aa 1/32
[Sysname-atm-pvc-group-Atm1/0/1-1/32-aa] ip-precedence aa 1/32 0 3
map bridge
Use map bridge to establish the IPoEoA mapping or PPPoEoA mapping on a PVC.
Use undo map bridge to delete the mapping.
19
Syntax
map bridge virtual-ethernet interface-number
undo map bridge
Default
No mapping is configured.
Views
PVC view, ATM Class view
Default command level
2: System level
Parameters
interface-number: Specifies a VE interface by its number.
Usage guidelines
Before using this command, make sure the VE has been created.
Examples
The following example demonstrates a complete process of IPoEoA configuration.
# Create interface Virtual-Ethernet 1/0/1.
<Sysname> system-view
[Sysname] interface virtual-ethernet 1/0/1
# Assign IP address 10.1.1.1/16 to the VE interface.
[Sysname-Virtual-Ethernet1/0/1] ip address 10.1.1.1 255.255.0.0
[Sysname-Virtual-Ethernet1/0/1] quit
# Create PVC 1/102 on the ATM interface ATM2/0/1.
[Sysname] interface atm 2/0/1
[Sysname-Atm2/0/1] pvc 1/102
# Establish the IPoEoA mapping using the established VE interface in PVC view.
[Sysname-atm-pvc-Atm2/0/1-1/102] map bridge virtual-ethernet 1/0/1
map ip
Use map ip to create an IPoA mapping for the PVC.
Use undo map ip to delete the mapping.
Syntax
In PVC view:
map ip { ip-address [ ip-mask ] | default | inarp [ minutes ] } [ broadcast ]
undo map ip { ip-address | default | inarp }
In ATM class view:
map ip inarp [ minutes ] [ broadcast ]
undo map ip inarp
20
Default
No mapping is configured. If a mapping is configured, pseudo-broadcast is not supported by default.
Views
PVC view, ATM class view
Default command level
2: System level
Parameters
ip-address: Remote IP address mapped to the current PVC.
ip-mask: IP address mask. It specifies a network segment together with the ip-address argument. This
allows the device to forward an IP packet out of the PVC as long as a next-hop address in the specified
network segment is found for the packet.
default: Sets the default PVC mapping. If no PVC mapping can be found for the next hop address of a
packet, the packet will be sent from the PVC in the default PVC mapping.
inarp: Enables InARP on the PVC.
minutes: Specifies the interval for sending InARP packets. The value range is 1 to 600 minutes, and the
default is 15 minutes.
broadcast: Enables pseudo-broadcast. If the mapping of a PVC is configured with pseudo-broadcast, the
device sends on the PVC a copy of each broadcast or multicast packet that it sends out of the interface
to which the PVC belongs.
You must configure the broadcast keyword on an ATM PVC where broadcast or multicast packets must be
sent, for example, to allow PIM multicast to create neighbor relationship with the router connected using
the ATM interface.
Usage guidelines
Before configuring InARP, make sure the aal5snap encapsulation is used. InARP is not supported when
using aal5mux or aal5nlpid encapsulations.
Examples
# Create an IPoA mapping on PVC 1/32, specifying the opposite IP address to 61.123.30.169 and
supporting pseudo-broadcast.
<Sysname> system-view
[Sysname] interface atm 1/0/1
[Sysname-Atm1/0/1] pvc 1/32
[Sysname-atm-pvc-Atm1/0/1-1/32] map ip 61.123.30.169 broadcast
# Enable InARP on PVC 1/33 and send InARP packets every 10 minutes.
<Sysname> system-view
[Sysname] interface atm 1/0/1
[Sysname-Atm1/0/1] pvc 1/33
[Sysname-atm-pvc-Atm1/0/1-1/33] map ip inarp 10
map ppp
Use map ppp to create a PPPoA map on the PVC.
Use undo map ppp to delete the map.
21
Syntax
map ppp virtual-template vt-number
undo map ppp
Default
No mapping is configured.
Views
PVC view, ATM class view
Default command level
2: System level
Parameters
vt-number: Specifies the number of the VT interface corresponding to a PPPoA mapping.
Usage guidelines
Before using this command, make sure that the VT has been created.
Examples
The following example demonstrates a complete process of PPPoA configuration.
# Create a VT interface numbered 10, and assign it an IP address.
<Sysname> system-view
[Sysname] interface virtual-template 10
[Sysname-Virtual-Template10] ip address 202.38.160.1 255.255.255.0
[Sysname-Virtual-Template10] quit
# Create PVC 1/101 on interface ATM 1/0/1.
[Sysname] interface atm 1/0/1
[Sysname-Atm1/0/1] pvc 1/101
# Create a PPPoA map using the VT interface created.
[Sysname-atm-pvc-Atm1/0/1-1/101] map ppp virtual-template 10
mtu
Use mtu to set the MTU on an ATM interface.
Use undo mtu to restore the default.
Syntax
mtu mtu-number
undo mtu
Default
The MTU for ATM interfaces is 1500 bytes.
Views
ATM interface view
Default command level
2: System level
22
Parameters
mtu-number: Specifies the MTU size on an ATM interface in bytes. The value range for this argument is
128 to 2000 except for HIM-AL1P and HIM-AL2P cards installed in HSR6602 routers or in 6604, 6608,
or 6616 routers with MCP as the MPU. The value range is 128 to 9600 for these HIM-AL1P and HIM-AL2P
cards.
Usage guidelines
The MTU only influences the packet assembly and disassembly at the IP layer at the ATM interface. Due
to the limit of QoS queue length, too small an MTU causes numerous fragments. Thus, some fragments
might be dropped by the QoS queue. The length of the QoS queue can be increased appropriately. The
default queue dispatching mechanism used by PVC is FIFO. You can use the qos fifo queue-length
command in the PVC view to change its queue length.
This command applies to ATM main interface and subinterface simultaneously.
Examples
# Set the MTU to 1492 bytes for interface ATM 1/0/1.
<Sysname> system-view
[Sysname] interface atm 1/0/1
[Sysname-Atm1/0/1] mtu 1492
oam ais-rdi
Use oam ais-rdi to set the parameters related to AIS/RDI alarm cell detection.
Use undo oam ais-rdi to restore the default.
Syntax
oam ais-rdi up up-seconds down down-count
undo oam ais-rdi
Default
A PVC goes down when an AIS/RDI alarm cell is received and goes up if no AIS/RDI alarm cells are
received in the last 3 seconds.
Views
PVC view, ATM class view
Default command level
2: System level
Parameters
up up-seconds: Specifies that the PVC goes up if no AIS/RDI alarm cells are received in a period
specified by the up-seconds argument (in seconds). The value range for the up-seconds argument is 3 to
60.
down down-count: Specifies that the PVC goes down when the number of successive AIS/RDI alarm cells
received reaches the value specified by the down-count argument. The value range for the down-count
argument is 1 to 60.
Usage guidelines
The oam ais-rdi command is not applicable to the secondary PVCs of a PVC group.
23
The primary PVC of a PVC group is the PVC based on which the PVC group is created.
Second PVCs are created in PVC groups.
Examples
# Set the AIS/RDI alarm detection parameters for PVC 1/32, setting up-seconds to 10, and down-count
to 5.
<Sysname> system-view
[Sysname] interface atm 1/0/1
[Sysname-Atm1/0/1] pvc 1/32
[Sysname-atm-pvc-Atm1/0/1-1/32] oam ais-rdi up 10 down 5
oam frequency
Use oam frequency to enable the transmission and retransmission detection of the OAM F5 Loopback
cell, as well as to modify the related parameters.
Use undo oam frequency to disable the transmission and retransmission detection of the cell.
Syntax
oam frequency frequency [ up up-count down down-count retry-frequency retry-frequency ]
undo oam frequency
Default
OAM F5 Loopback cell transmission is disabled, but if an OAM F5 Loopback cell is received, it should
be responded.
Views
PVC view, ATM class view
Default command level
2: System level
Parameters
frequency: Interval (in seconds) at which OAM F5 loopback cells are sent. The value range is 1 to 600.
up up-count: Specifies that the PVC goes up when the number of successive OAM F5 loopback cells
received correctly reaches the value specified by the up-count argument. The value range for the up-count
argument is 1 to 600, and the default is 3.
down down-count: Specifies that the PVC goes down when the number of successive OAM F5 loopback
cells that it fails to receive reaches the value specified by the down-count argument. The value range for
the down-count argument is 1 to 600, and the default is 5.
retry-frequency retry-frequency: Specifies the interval (in seconds) at which OAM F5 loopback cells
should be transmitted to verify a change in the PVC state (up/down). The value range is 1 to 1000. The
default is 1.
Usage guidelines
The oam frequency command is not applicable to the secondary PVCs of a PVC group.
24
Examples
# Enable OAM F5 Loopback detection on PVC 1/32, and set the transmission interval of OAM F5
loopback cells to 12 seconds, set the retransmission detection up-count to 4, down-count to 4, and
retransmission period to 1 second.
<Sysname> system-view
[Sysname] interface atm 1/0/1
[Sysname-Atm1/0/1] pvc 1/32
[Sysname-atm-pvc-Atm1/0/1-1/32] oam frequency 12 up 4 down 4 retry-frequency 1
oamping interface
Use oamping interface to send OAM cells over the specified PVC on the specified ATM interface so as
to check the link state. If no response is received within the specified time, the link is bad or so busy that
packets are lost.
Syntax
oamping interface atm interface-number pvc { pvc-name | vpi/vci } [ number timeout ]
Views
ATM interface view
Default command level
2: Monitor level
Parameters
atm interface-number: Specifies an ATM main interface by its number.
pvc-name: PVC name, a unique string of 1 to 16 characters on ATM interface, case-insensitive. The name
cannot be the same as a valid VPI/VCI pair value. For example, the name 1/20 is not allowed.
vpi/vci: VPI/VCI pair. VPI is short for virtual path identifier, and its value range is 0 to 255. VCI is short
for virtual channel identifier, and its value range varies by interface type. HP recommends not using VCI
values from 0 to 31, because they are reserved for special purposes. For more information about the
value range, see Table 3.
number: Specifies the number of OAM cells to be transmitted consecutively, in the range of 1 to 1000.
The system default is 5.
timeout: Specifies the OAM response timeout period in the range of 1 to 30 seconds. The system default
is 2 seconds.
Examples
# Check the link state of PVC 1/32 on interface ATM 1/0/1, sending three cells and setting timeout
period to 1 second.
<Sysname> system-view
[Sysname] interface atm 1/0/1
[Sysname-Atm1/0/1] oamping interface atm 3/0/1 pvc 1/32 3 1
Ping interface Atm3/0/1,pvc 0/45, with 3 of 53 bytes of ATM OAM F5 end-to-end
cell(s),
timeout is 1 second(s), press CTRL_C to break
Receive reply from pvc 1/32: time=1 ms
Receive reply from pvc 1/32: time=1 ms
Receive reply from pvc 1/32: time=1 ms
25
pvc
Use pvc to create a PVC or enter the PVC view on ATM interface, or to add the specified PVC into
PVC-Group.
Use undo pvc to delete the specified PVC.
Syntax
pvc { pvc-name [ vpi/vci ] | vpi/vci }
undo pvc { pvc-name [ vpi/vci ] | vpi/vci }
Default
No PVC is created.
Views
ATM interface view, PVC-group view
Default command level
2: System level
Parameters
pvc-name: PVC name, a unique string of 1 to 16 characters on ATM interface, case-insensitive. The name
cannot be the same as a valid VPI/VCI pair value. For example, the name 1/20 is not allowed.
vpi/vci: VPI/VCI pair. VPI is short for virtual path identifier, and its value range is 0 to 255. VCI is short
for virtual channel identifier, and its value range varies by interface type. HP recommends not using VCI
values from 0 to 31, because they are reserved for special purposes. For more information about the
value range, see Table 3.
Usage guidelines
If you specified the pvc-name argument when creating a PVC, you can use the pvc pvc-name [ vpi/vci ]
command to enter the view of that PVC.
You can use either the undo pvc pvc-name [ vpi/vci ] command or the undo pvc vpi/vci command to
delete that PVC.
The VPI/VCI value of a PVC should be unique at an ATM interface (including the main interface and the
subinterface).
The actual number of PVCs that can be created depends on the pvc max-number command.
The vpi and vci argument cannot both be 0.
A PVC in a specific PVC-group cannot be removed in ATM interface view.
Examples
# Create a PVC named aa with the VPI/VCI value of 1/101.
<Sysname> system-view
[Sysname] interface atm 1/0/1
[Sysname-Atm1/0/1] pvc aa 1/101
Related commands
•
display atm pvc-info
•
pvc max-number
26
pvc-group
Use pvc-group to create a PVC group or enter PVC group view.
Use undo pvc-group to delete the specified PVC-Group.
Syntax
pvc-group { pvc-name [ vpi/vci ] | vpi/vci }
undo pvc-group { pvc-name [ vpi/vci ] | vpi/vci }
Views
ATM interface view
Default command level
2: System level
Parameters
pvc-name: PVC name, a unique string of 1 to 16 characters on ATM interface, case-insensitive. The name
cannot be the same as a valid VPI/VCI pair value. For example, the name 1/20 is not allowed. The PVC
corresponding to pvc-name must have already been created.
vpi/vci: VPI/VCI pair. VPI is short for virtual path identifier, and its value range is 0 to 255. VCI is short
for virtual channel identifier, and its value range varies by interface type. HP recommends not using VCI
values from 0 to 31, because they are reserved for special purposes. For more information about the
value range, see Table 3.
Usage guidelines
In creating a PVC-Group, the pvc-name argument or the vpi/vci argument defines the primary PVC of the
PVC-Group.
Before creating a PVC group, make sure the corresponding PVC exists.
The encapsulation command and the oam-related commands are not applicable to secondary PVCs. The
configurations corresponding to these commands on the primary PVC of a PVC group apply to all the
secondary PVCs in the PVC group.
Examples
# Create a PVC group named aa, with the primary PVC being the PVC with the VPI/VCI value of 1/32.
<Sysname> system-view
[Sysname] interface atm 1/0/1
[Sysname-Atm1/0/1] pvc aa 1/32
[Sysname-atm-pvc-Atm1/0/1-1/32-aa] quit
[Sysname-Atm1/0/1] pvc-group aa 1/32
Related commands
•
ip-precedence
•
pvc
pvc max-number
Use pvc max-number to set the maximum number of PVCs allowed on an ATM interface.
Use undo pvc max-number to restore the default.
27
Syntax
pvc max-number max-number
undo pvc max-number
Views
ATM main interface view
Default command level
2: System level
Parameters
max-number: Maximum number of PVCs allowed on the ATM interface. The value range varies by the
type of physical interface, as shown in Table 9.
Table 9 Maximum number of PVCs supported on ATM interfaces
Interface type
Maximum number
Default
ADSL
1 to 32
32
GSHDSL
1 to 32
32
ATM OC3
1 to 1024
1024
ATM25
1 to 256
256
ATM E3
1 to 1024
1024
ATM T3
1 to 1024
1024
Usage guidelines
The maximum number of PVCs allowed varies with interface type.
The maximum number specified in this command is the total number of the PVCs available to both ATM
main interface and the subinterfaces.
This command applies to both ATM main interface and subinterface. However, the command itself is
available only in ATM main interface view.
Examples
# Configure ATM 1/0/1 interface to support up to 1024 PVCs.
<Sysname> system-view
[Sysname] interface atm 1/0/1
[Sysname-Atm1/0/1] pvc max-number 1024
pvp limit
Use pvp limit to set the parameters for VP policing.
Use undo pvp limit to delete the VP policing.
Syntax
pvp limit vpi output-scr
undo pvp limit vpi
28
Default
VP policing is not performed.
Views
ATM interface view
Default command level
2: System level
Parameters
vpi: Specifies the VPI of the ATM network, in the range of 0 to 255.
output-scr: Specifies the sustainable rate of ATM cell output (in kbps). For more information about the
value range, see Table 10.
Usage guidelines
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 and received. In calculating the traffic, the
LLC/SNAP, MUX and NLPID headers are included, but the ATM cell header is not included.
Examples
# Set the traffic of VP with vpi 1 to 2000 Kbps.
<Sysname> system-view
[Sysname] interface atm 1/0/1
[Sysname-Atm1/0/1] pvp limit 1 2000
Related commands
•
pvc
•
service cbr
•
service vbr-nrt
•
service vbr-rt
•
service ubr
remark atm-clp
Use remark atm-clp to configure the action of setting the CLP bit for ATM cells for the traffic behavior.
Use undo remark atm-clp to cancel the action.
Syntax
remark [ green | red | yellow ] atm-clp atm-clp-value
undo remark atm-clp
Default
The action of marking the CLP flag bit of ATM cells is not configured.
Views
Traffic behavior view
Default command level
2: System level
29
Parameters
green: Sets the CLP bit for green packets.
red: Sets the CLP bit for red packets.
yellow: Sets the CLP bit for yellow packets.
atm-clp-value: Specifies the value of the CLP bit in an ATM cell. The value of this argument is 0 or 1. When
congestion occurs, ATM cells with CLP 1 are dropped preferentially.
Usage guidelines
A QoS policy that references the behavior can be applied only to the outgoing traffic of an ATM PVC.
For more information about green, red, and yellow packets, see ACL and QoS Configuration Guide.
Examples
# Create a traffic behavior named database and configure the action of setting the CLP bit of ATM cells
to 1 for the traffic behavior.
<Sysname> system-view
[Sysname] traffic behavior database
[Sysname-behavior-database] remark atm-clp 1
reset counters interface virtual-ethernet
Use reset counters interface virtual-ethernet to clear the statistics of Layer 3 VE interfaces.
Syntax
reset counters interface [ virtual-ethernet [ interface-number ] ]
Views
User view
Default command level
2: System level
Parameters
interface-number: Layer 3 VE interface number.
Usage guidelines
To collect traffic statistics for a specified period of time on an interface, clear the old statistics first.
•
Without the virtual-ethernet keyword specified, this command clears the statistics of all interfaces
on the device.
•
If you specify the virtual-ethernet keyword without the interface-number argument, this command
clears the statistics of all Layer 3 VE interfaces.
Examples
# Clear the statistics of the Layer 3 VE interface Virtual-Ethernet 1/0/1.
<Sysname> reset counters interface virtual-ethernet 1/0/1
service cbr
Use service cbr to specify the PVC service type as CBR.
30
Use the undo service command to restore the default.
Syntax
service cbr output-pcr [ cdvt cdvt-value ]
undo service
Default
The service type is UBR after a PVC is created.
Views
PVC view, ATM class view
Default command level
2: System level
Parameters
output-pcr: Specifies the output peak rate of an ATM cell (in kbps). The value range for this parameter
varies with interface types, as shown in Table 10.
Table 10 Value ranges of the output-pcr argument
Interface type
Value range of output-pcr
ADSL 2+
64 to 640
• For two-wire interfaces or four-wire interfaces in
two-wire mode: 64 to 2312
G.SHDSL
• For four-wire interfaces: 128 to 4624
ATMOC3/STM-1
64 to 155000
ATM OC12/STM-4
64 to 622000
ATM E1
64 to 1920
ATM T1
64 to 1536
ATM E3
64 to 34000
ATM T3
64 to 44000
cdvt-value: Specifies the cell delay variation tolerance in μs. The effective range is 0 to 10,000 μs and the
default is 500 μs. This argument cannot be configured in ATM class view.
Usage guidelines
Use this command to set the PVC service type and rate-related parameters. A newly set service type
overwrites the previous one.
Configure the PVC with greater bandwidth first and then the one with smaller bandwidth. If you fail to
configure them, increase the cdvt-value and try again. In the command line, the system will prompt you
on this.
"fail to set service parameter, please adjust cdvt value"
The command is not applicable to ATM E1 interfaces and ATM E3 interfaces.
Examples
# Create a PVC named aa, with the VPI/VCI value of 1/101.
<Sysname> system-view
[Sysname] interface atm 1/0/1
31
[Sysname-Atm1/0/1] pvc aa 1/101
# Specify the service type of the PVC as CBR and the peak rate of an ATM cell as 50000 kbps, and the
cell delay variation tolerance as 1000 μs.
[Sysname-atm-pvc-Atm1/0/1-1/101-aa] service cbr 50000 cdvt 1000
Related commands
•
service vbr-nrt
•
service vbr-rt
•
service ubr
service ubr
Use service ubr to specify the service type of PVC as UBR and specify the related rate parameters.
Use undo service to restore the default.
Syntax
service ubr output-pcr
undo service
Default
The service type is UBR after a PVC is created.
Views
PVC view, ATM class view
Default command level
2: System level
Parameters
output-pcr: Specifies the output peak rate of an ATM cell (in kbps). For more information about the value
range, see Table 10.
Usage guidelines
Use this command and the service vbr-nrt, service vbr-rt, and service cbr commands to set the PVC
service type and rate-related parameters. A newly set service type overwrites the previous one.
Examples
# Create a PVC named aa with the VPI/VCI value of 1/101.
<Sysname> system-view
[Sysname] interface atm 1/0/1
[Sysname-Atm1/0/1] pvc aa 1/101
# Specify the service type of the PVC as UBR and the peak cell rate of ATM cell as 100000 kbps.
[Sysname-atm-pvc-Atm1/0/1-1/101-aa] service ubr 100000
Related commands
•
service vbr-nrt
•
service vbr-rt
•
service cbr
32
service vbr-nrt
Use service vbr-nrt to specify the service type of PVC as NRT-VBR and specify the related rate
parameters.
Use undo service to restore the default.
Syntax
service vbr-nrt output-pcr output-scr output-mbs
undo service
Default
The service type is UBR after a PVC is created.
Views
PVC view, ATM class view
Default command level
2: System level
Parameters
output-pcr: Specifies the peak rate of ATM cell output (in kbps). For more information about the value
range, see Table 10.
output-scr: Specifies the sustainable rate of ATM cell output (in kbps). Its value ranges are the same as
those of the output-pcr argument.
output-mbs: Specifies the maximum burst size for ATM cell output, which specifies the maximum number
of ATM cells that the output interface can cache. The value range is 1 to 512.
Usage guidelines
You can use this command as well as the service ubr, service vbr-rt and service cbr commands to set the
service type and rate-related parameters of a PVC. A newly configured PVC service type overwrites the
existing one.
Examples
# Create a PVC named aa, with the VPI/VCI value of 1/101.
<Sysname> system-view
[Sysname] interface atm 1/0/1
[Sysname-Atm1/0/1] pvc aa 1/101
# Specify the service type of the PVC as nrt-VBR, setting the peak bit rate of ATM cell to 100000 kbps,
the sustainable bit rate to 50000 kbps, and the maximum burst size to 320 cells.
[Sysname-atm-pvc-Atm1/0/1-1/101-aa] service vbr-nrt 100000 50000 320
Related commands
•
service ubr
•
service vbr-rt
•
service cbr
33
service vbr-rt
Use service vbr-rt to set the service type of a PVC to RT-VBR and specify the related rate parameters in
PVC view.
Use undo service to restore the default.
Syntax
service vbr-rt output-pcr output-scr output-mbs
undo service
Default
The service type is UBR after a PVC is created.
Views
PVC view, ATM class view
Default command level
2: System level
Parameters
output-pcr: Specifies the peak cell rate of ATM output (in kbps). For more information about the value
range, see Table 10.
output-scr: Specifies the sustainable cell rate of ATM output (in kbps). Its value ranges are the same as
those of the output-pcr argument.
output-mbs: Specifies the maximum burst size of ATM cell output, which specifies 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.
Usage guidelines
You can use this command as well as the service ubr, service cbr and service vbr-nrt commands to set
the service type and rate-related parameters of a PVC. A newly configured PVC service type overwrites
the existing one. This command is not applicable to ATM E1 interfaces.
Examples
# Create a PVC named aa with the VPI/VCI value of 1/101.
<Sysname> system-view
[Sysname] interface atm 1/0/1
[Sysname-Atm1/0/1] pvc aa 1/101
# Specify the service type of the PVC as rt-VBR, setting the peak cell rate of ATM to 100000 kbps, the
sustainable cell rate to 50000 kbps, and the maximum burst size to 320 cells.
[Sysname-atm-pvc-Atm1/0/1-1/101-aa] service vbr-rt 100000 50000 320
Related commands
•
service vbr-nrt
•
service ubr
•
service cbr
34
shutdown
Use shutdown to shut down an ATM interface.
Use undo shutdown to bring up an ATM interface.
Syntax
shutdown
undo shutdown
Default
An ATM interface is up.
Views
ATM interface view
Default command level
2: System level
Examples
# Shut down interface ATM 5/0/1.
<Sysname> system-view
[Sysname] interface atm 5/0/1
[Sysname-Atm5/0/1] shutdown
# Bring up interface ATM 5/0/1.
<Sysname> system-view
[Sysname] interface atm 5/0/1
[Sysname-Atm5/0/1] undo shutdown
transmit-priority
Use transmit-priority to assign transmission priority for an ATM PVC associated with the UBR, rt-VBR, or
nrt-VBR service. At the time of bandwidth allocation, the PVCs with higher priorities take precedence over
those with lower priorities.
Use undo transmit-priority to restore the default transmission priority.
Syntax
transmit-priority value
undo transmit-priority
Default
The transmission priority of UBR service, nrt-VBR service, and rt-VBR service are 0, 5, and 8.
Views
PVC view
Default command level
2: System level
35
Parameters
value: Specifies the transmission priority in the range of 0 to 9. A higher value indicating a higher
priority.
The priority level for the UBR service is in the range of 0 to 4.
The priority level for the nrt-VBR service is in the range of 5 to 7.
The priority level for the rt-VBR service is in the range of 8 to 9.
Usage guidelines
If you change the service type of a PVC, the transmission priority of the PVC changes to the default for the
current service.
Only MIM-ATM cards support this command.
Examples
# Set the transmission priority of ATM PVC 1/32 to 3.
<Sysname> system-view
[Sysname] interface atm 1/0/1
[Sysname-Atm1/0/1] pvc 1/32
[Sysname-atm-pvc-Atm1/0/1-1/32] transmit-priority 3
36
PPP and MP configuration commands
PPP configuration commands
ip address ppp-negotiate
Use ip address ppp-negotiate to enable IP address negotiation on the local interface, so that the local
interface can accept the IP address allocated by the peer end.
Use undo ip address ppp-negotiate to disable IP address negotiation.
Syntax
ip address ppp-negotiate
undo ip address ppp-negotiate
Default
IP address negotiation is disabled.
Views
Interface view
Default command level
2: System level
Examples
# Enable IP address negotiation on Serial 2/0/1.
<Sysname> system-view
[Sysname] interface serial 2/0/1
[Sysname-Serial2/0/1] ip address ppp-negotiate
Related commands
•
remote address
•
ppp ipcp remote-address forced
ip pool
Use ip pool to configure an address pool for assigning IP addresses to PPP users.
Use undo ip pool to remove an address pool.
Syntax
ip pool pool-number low-ip-address [ high-ip-address ]
undo ip pool pool-number
Default
No IP address pool is configured for PPP users.
37
Views
System view, ISP domain view
Default command level
2: System level
Parameters
pool-number: Specifies an address pool by its number in the range of 0 to 99.
low-ip-address: Start address of the address pool.
high-ip-address: End IP address of the address pool. An address pool can contain up to 1024 IP
addresses. If no end IP address is specified, the address pool has only one IP address, the start IP
address.
Usage guidelines
IP address pools configured in system view are for PPP users that do not need authentication. To configure
an IP address pool for the peer PPP users, use the remote address command in a specified interface view.
IP address pools configured in ISP domain view are for PPP users that need authentication in the specified
ISP domain. These IP address pools apply to the interfaces that connect to a larger number of PPP users
than those the interfaces can assign IP addresses for. For example, an Ethernet interface running PPPoE
can accommodate up to 4096 users, but you can configure only one address pool containing up to 1024
addresses on the virtual template of the Ethernet interface, which cannot meet the demand. However, IP
address pools configured in ISP domains can solve the problem.
Examples
# Configure IP address pool 0 that contains IP addresses 129.102.0.1 through 129.102.0.10.
<Sysname> system-view
[Sysname] domain test
[Sysname-isp-test] ip pool 0 129.102.0.1 129.102.0.10
Related commands
remote address
link-protocol ppp
Use link-protocol ppp to enable PPP encapsulation on an interface.
Syntax
link-protocol ppp
Default
PPP encapsulation is enabled on all the interfaces except for Ethernet and VLAN interfaces.
Views
Interface view
Default command level
2: System level
Examples
# Enable PPP encapsulation on Serial 2/0/1.
<Sysname> system-view
38
[Sysname] interface serial 2/0/1
[Sysname-Serial2/0/1] link-protocol ppp
ppp account-statistics enable
Use ppp account-statistics enable to enable PPP traffic statistics collection.
Use undo ppp account-statistics enable to disable PPP traffic statistics collection.
Syntax
ppp account-statistics enable [ acl { acl-number | name acl-name } ]
undo ppp account-statistics enable
Default
PPP traffic statistics collection is disabled.
Views
Interface view
Default command level
2: System level
Parameters
acl: Generates PPP accounting statistics for traffic that matches the configured ACL. If no ACL is
configured, the device generates PPP accounting statistics for all traffic.
acl-number: Specifies an ACL by its number in the range of 2000 to 3999, where:
•
2000 to 2999 are numbers for basic IPv4 ACLs.
•
3000 to 3999 are numbers for advanced IPv4 ACLs.
name acl-name: Specifies an ACL by its name. The acl-name represents the name of an IPv4 ACL, a
case-sensitive string that starts with an English letter and contains 1 to 63 characters. To avoid confusion,
do not use the English word all as an IPv4 ACL name.
Examples
# Enable PPP traffic statistics collection on interface Serial 2/0/1.
<Sysname> system-view
[Sysname] interface serial 2/0/1
[Sysname-Serial2/0/1] ppp account-statistics enable
ppp authentication-mode
Use ppp authentication-mode to configure the PPP authentication mode.
Use undo ppp authentication-mode to disable PPP authentication.
Syntax
ppp authentication-mode { chap | ms-chap | ms-chap-v2 | pap } * [ [ call-in ] domain isp-name ]
undo ppp authentication-mode
Default
PPP authentication is disabled.
39
Views
Interface view
Default command level
2: System level
Parameters
chap: Uses CHAP authentication.
ms-chap: Uses MS-CHAP authentication.
ms-chap-v2: Uses MS-CHAP-V2 authentication.
pap: Uses PAP authentication.
call-in: Authenticates the call-in users only.
domain isp-name: Specifies the domain name for authentication, a case-insensitive string of 1 to 24
characters.
Usage guidelines
If you run the ppp authentication-mode command with the domain keyword specified, you must
configure an address pool in the corresponding domain. You can use the display domain command to
display the domain configuration.
If you configure the ppp authentication-mode command without specifying the domain name, the system
checks the username for domain information. If the username contains a domain name, the domain will
be used for authentication If the domain does not exist, the user's access request will be denied. If the
username does not contain a domain name, the default domain is used. You can use the domain default
command to configure the default domain. If no default domain is configured, the default domain system
is used by default.
PPP authentication falls into the following categories:
•
PAP—Two-way handshake authentication. The password used is in plain text.
•
CHAP—Three-way handshake authentication. The password is in cipher text.
•
MS-CHAP—Three-way handshake authentication. The password is in cipher text.
•
MS-CHAP-V2—Three-way handshake authentication. The password is in cipher text.
You can configure several authentication modes simultaneously. In any PPP authentication mode, AAA
determines whether a user can pass the authentication through a local authentication database or an
AAA server.
Examples
# Configure interface Serial 2/0/1 to authenticate the peer device by using PAP.
<Sysname> system-view
[Sysname] interface serial 2/0/1
[Sysname-Serial2/0/1] ppp authentication-mode pap domain system
# Configure interface Serial 2/0/1 to authenticate the peer device by using PAP, CHAP, and MS-CHAP.
<Sysname> system-view
[Sysname] interface serial 2/0/1
[Sysname-Serial2/0/1] ppp authentication-mode pap chap ms-chap domain system
Related commands
•
ppp chap user
40
•
ppp pap local-user
•
ppp chap password
•
local-user (Security Command Reference)
•
domain default (Security Command Reference)
ppp chap password
Use ppp chap password to set the password for CHAP authentication.
Use undo ppp chap password to cancel the configuration.
Syntax
ppp chap password { cipher | simple } password
undo ppp chap password
Views
Interface view
Default command level
2: System level
Parameters
cipher: Sets a ciphertext password.
simple: Sets a plaintext password.
password: Specifies the password string for CHAP authentication. This argument is case sensitive. If
simple is specified, it must be a string of 1 to 48 characters. If cipher is specified, it must be a ciphertext
string of 1 to 97 characters.
Usage guidelines
For security purposes, all passwords, including passwords configured in plain text, are saved in cipher
text to the configuration file.
Examples
# Set the password for CHAP authentication to a plaintext password sysname.
<Sysname> system-view
[Sysname] interface serial 2/0/1
[Sysname-Serial2/0/1] ppp chap password simple sysname
Related commands
ppp authentication-mode chap
ppp chap user
Use ppp chap user to set the username for CHAP authentication.
Use undo ppp chap user to cancel the configuration.
Syntax
ppp chap user username
undo ppp chap user
41
Default
The username for CHAP authentication is null.
Views
Interface view
Default command level
2: System level
Parameters
username: Username for CHAP authentication, a case-sensitive string of 1 to 80 characters. The
username is sent to the peer device for the local device to be authenticated.
Usage guidelines
To pass CHAP authentication, the username/password of one side must be the local
username/password of the peer.
Examples
# Set the username for CHAP authentication as Root on interface Serial 2/0/1.
<Sysname> system-view
[Sysname] interface serial 2/0/1
[Sysname-Serial2/0/1] ppp chap user Root
Related commands
ppp authentication-mode
ppp ipcp dns
Use ppp ipcp dns to configure the primary and secondary DNS server IP addresses to be used in PPP
negotiation.
Use undo ppp ipcp dns to cancel the configuration.
Syntax
ppp ipcp dns primary-dns-address [ secondary-dns-address ]
undo ppp ipcp dns primary-dns-address [ secondary-dns-address ]
Default
A device does not allocate DNS server IP addresses for its peer.
Views
Interface view
Default command level
2: System level
Parameters
primary-dns-address: Primary DNS server IP address to be set.
secondary-dns-address: Secondary DNS server IP address to be set.
42
Usage guidelines
When connected through PPP, a device can assign DNS server IP addresses to its peer during PPP
negotiation (if the peer requests) for the peer to access the network by domain names.
If a host is connected to the device through PPP, you can execute the winipcfg command or the ipconfig
/all command on the host to check the DNS server IP addresses assigned by the device.
A device can provide a primary DNS server IP address and a secondary DNS server IP address to its
peer.
Examples
# Set the primary DNS server IP address to 100.1.1.1 and the secondary DNS server IP address to
100.1.1.2 on interface Serial 2/0/1.
<Sysname> system-view
[Sysname] interface serial 2/0/1
[Sysname-Serial2/0/1] ppp ipcp dns 100.1.1.1 100.1.1.2
ppp ipcp dns admit-any
Use ppp ipcp dns admit-any to configure the device to accept the DNS server IP addresses assigned by
the peer even though it does not request the peer for the DNS server IP addresses.
Use undo ppp ipcp dns admit-any to configure the device to deny the DNS server IP addresses assigned
by the peer if it does not request the peer for the DNS server IP addresses.
Syntax
ppp ipcp dns admit-any
undo ppp ipcp dns admit-any
Default
A device does not accept the DNS server IP addresses assigned by the peer if it does not request the peer
for the DNS server IP addresses.
Views
Interface view
Default command level
2: System level
Usage guidelines
You can configure a device to accept the DNS server IP addresses assigned by the peer, through which
domain names can be resolved for the device.
Examples
# Configure interface Serial 2/0/1 of the local device to accept the DNS server IP addresses allocated
by the peer.
<Sysname> system-view
[Sysname] interface serial 2/0/1
[Sysname-Serial2/0/1] ppp ipcp dns admit-any
43
ppp ipcp dns request
Use ppp ipcp dns request to enable a device to request its peer for the DNS server IP address actively
through a port.
Use undo ppp ipcp dns request to restore the default.
Syntax
ppp ipcp dns request
undo ppp ipcp dns request
Default
A device does not request its peer for the DNS server IP address actively.
Views
Interface view
Default command level
2: System level
Usage guidelines
Suppose a device is connected to another device through PPP, for example, a device is connected to the
operator's access server through a dial-up link. In this case, you can configure a device to request its peer
for the DNS server IP address during IPCP negotiation, so that the device can resolve domain names
through the DNS server specified by the peer.
You can check the DNS server IP addresses of a port by displaying information about the port.
Examples
# Enable the device to request its peer for the DNS server IP address actively through interface Serial
2/0/1.
<Sysname> system-view
[Sysname] interface serial 2/0/1
[Sysname-Serial2/0/1] ppp ipcp dns request
ppp ipcp remote-address forced
Use ppp ipcp remote-address forced to configure a device to assign an IP address to the peer by force.
This command also disables the peer from using a locally configured IP address.
Use undo ppp ipcp remote-address forced to cancel the configuration.
Syntax
ppp ipcp remote-address forced
undo ppp ipcp remote-address forced
Default
The peer is allowed to use its locally configured IP address. The local end assigns an IP address to the
peer only when being explicitly requested to do so. When the peer has already an IP address, the local
end will not assign one to the peer.
44
Views
Interface view
Default command level
2: System level
Usage guidelines
To disable the peer from using a locally configured IP address, configure the ppp ipcp remote-address
forced command.
Examples
# Configure an optional IP address 10.0.0.1 on interface Serial 2/0/1 for the peer.
<Sysname> system-view
[Sysname] interface serial 2/0/1
[Sysname-Serial2/0/1] remote address 10.0.0.1
# Configure IP address 10.0.0.1 on interface Serial 2/0/1 for the peer and assign the IP address to the
peer by force.
<Sysname> system-view
[Sysname] interface serial 2/0/1
[Sysname-Serial2/0/1] remote address 10.0.0.1
[Sysname-Serial2/0/1] ppp ipcp remote-address forced
Related commands
remote address
ppp pap local-user
Use ppp pap local-user to set the local username and password for PAP authentication.
Use undo ppp pap local-user to cancel the local username and password configured.
Syntax
ppp pap local-user username password { cipher | simple } password
undo ppp pap local-user
Default
The username and the password for PAP authentication are not set.
Views
Interface view
Default command level
2: System level
Parameters
username: Username of the local device for PAP authentication, a case-sensitive string of 1 to 80
characters.
cipher: Sets a ciphertext password.
simple: Sets a plaintext password.
45
password: Specifies the password string for PAP authentication. If simple is specified, it must be a string
of 1 to 48 characters. If cipher is specified, it must be a ciphertext string of 1 to 97 characters.
Usage guidelines
For the local device to pass PAP authentication on the remote device, make sure that the same username
and password configured for the local device are also configured on the remote device with the
commands local-user username and password { cipher | simple } password.
For security purposes, all passwords, including passwords configured in plain text, are saved in cipher
text to the configuration file.
Examples
# Configure the local username and password for PAP authentication to plaintext passwords user1 and
pass1.
<Sysname> system-view
[Sysname] interface serial 2/0/1
[Sysname-Serial2/0/1] ppp pap local-user user1 password simple pass1
Related commands
•
local-user (Security Command Reference)
•
password (Security Command Reference)
ppp timer negotiate
Use ppp timer negotiate to set the PPP negotiation timeout time.
Use undo ppp timer negotiate to restore the default.
Syntax
ppp timer negotiate seconds
undo ppp timer negotiate
Default
The PPP negotiation timeout time is three seconds.
Views
Interface view
Default command level
2: System level
Parameters
seconds: Negotiation timeout time to be set, in the range of 1 to 10 seconds. In PPP negotiation, if the
local device receives no response from the peer during this period after it sends a packet, the local device
sends the last packet again.
Examples
# Set the PPP negotiation timeout time to 5 seconds.
<Sysname> system-view
[Sysname] interface serial 2/0/1
[Sysname-Serial2/0/1] ppp timer negotiate 5
46
remote address
Use remote address to set the IP address to be assigned to the peer device, or to specify the address pool
used for assigning an IP address to the peer device.
Use undo remote address to cancel the IP address configured to be assigned to the peer device.
Syntax
remote address { ip-address | pool [ pool-number ] }
undo remote address
Default
An interface does not assign IP addresses to the peer device.
Views
Interface view
Default command level
2: System level
Parameters
ip-address: IP address to be assigned to the peer device.
pool [ pool-number ]: Specifies the number of the address pool used for assigning an IP address to the
peer. The pool-number argument ranges from 0 to 99 and defaults to 0.
Usage guidelines
The remote address command can be used when the local device is configured with an IP address, but
the peer has no IP address. To enable the peer device to accept the IP address assigned to it by the local
device, you must configure the ip address ppp-negotiate command on the peer device in addition to
configuring the remote address command on the local device.
The IP address assigned to the peer device by the local device is not mandatory on the peer device, or
the peer device can still use a locally configured IP address even if the local device assigned one to it. To
make the IP address assigned by the local device mandatory, you must configure the ppp ipcp
remote-address forced command.
After you use the remote address command to assign an IP address for the peer device, you cannot
configure the remote address/undo remote address command for the peer again unless the peer
releases the assigned IP address. Shut down the port to release the assigned IP address before you
configure the remote address/undo remote address command for the peer. However, after you use the
command to assign an IP address to the peer from the address pool of the specified domain through
AAA authentication, you can configure the command for the peer again. In this case, the original
assigned IP address can still work, and the newly assigned IP address is used when the original one is
released or used by a new PPP access.
This command does not take effect until the next IPCP negotiation. To make the remote address command
take effect, configure the remote address command before the ip address command.
Examples
# Specify the IP address to be assigned to the peer device through interface Serial 2/0/1 as 10.0.0.1.
<Sysname> system-view
[Sysname] interface serial 2/0/1
[Sysname-Serial2/0/1] remote address 10.0.0.1
47
Related commands
•
ip address ppp-negotiate
•
ppp ipcp remote-address forced
timer hold
Use timer hold to set the interval for sending keepalive packets.
Use undo timer hold to restore the default.
Syntax
timer hold seconds
undo timer hold
Default
The interval for sending keepalive packets is 10 seconds.
Views
Interface view
Default command level
2: System level
Parameters
seconds: Interval (in seconds) for sending keepalive packets, in the range 0 to 32767. A value of 0
disables keepalive packet sending.
Usage guidelines
Because a slow link takes a long period of time to transmit large packets, the sending and receiving of
keepalives may be delayed so long that one end cannot receive keepalive packets from the peer for a
specific number of keepalive periods and shuts down the link. To prevent this, set the interval for sending
keepalive packets to a relatively longer length of time.
When an interface is enabled with PPP, the interval for sending keepalive packets must be the same on
the two ends of the link.
Examples
# Set the interval for sending keepalive packets to 20 seconds on interface Serial 2/0/1.
<Sysname> system-view
[Sysname] interface serial 2/0/1
[Sysname-Serial2/0/1] timer hold 20
MP configuration commands
bandwidth
Use bandwidth to set the intended bandwidth for an interface.
Use undo bandwidth to restore the default.
48
Syntax
bandwidth bandwidth-value
undo bandwidth
Views
VT interface view, MP-group interface view
Default command level
2: System level
Parameters
bandwidth-value: Specifies the intended bandwidth, ranging from 1 to 4294967295 kbps.
Usage guidelines
You can obtain the intended bandwidth of an interface by querying the ifspeed value of the MIB node
with third-party software.
The intended bandwidth is used by the network for bandwidth monitoring. It does not affect the actual
bandwidth of the interface.
Examples
# Set the intended bandwidth to 1000 kbps for interface VT 10.
<Sysname> system-view
[Sysname] interface virtual-template 10
[Sysname-Virtual-Template10] bandwidth 1000
# Set the intended bandwidth to 1000 kbps for interface MP-group 3.
<Sysname> system-view
[Sysname] interface mp-group 3
[Sysname-Mp-group3] bandwidth 1000
broadcast-limit link
Use broadcast-limit link to set the maximum number of links that can be used for transmitting multicast
packets or broadcast packets for the VT.
Use undo broadcast-limit link to restore the default.
Syntax
broadcast-limit link number
undo broadcast-limit link
Default
The maximum number of links that can be used for transmitting multicast or broadcast packets is 30 for
a VT.
Views
VT interface view
Default command level
2: System level
49
Parameters
number: Maximum number of links that can be used for transmitting multicast or broadcast packets, in
the range of 0 to 128. A value of 0 indicates that the transmission of multicast or broadcast packets is not
supported.
Usage guidelines
For a VT containing multiple links, the system performance may decrease if all the links of the VT are
engaged in multicast or broadcast packet transmission. You can use the broadcast-limit link command
to limit the number of links that are capable of multicast or broadcast packet transmission.
Examples
# Set the maximum number of links that are capable of multicast or broadcast packets transmission to
100 for VT 1.
<Sysname> system-view
[Sysname] interface virtual-template 1
[Sysname-Virtual-Template1] broadcast-limit link 100
default
Use default to restore the default setting for the VT or MP-group interface.
Syntax
default
Views
VT interface view, MP-group interface view
Default command level
2: System level
Usage guidelines
CAUTION:
The default command might interrupt ongoing network services. Make sure you are fully aware of the
impacts of this command when you execute it on a live network.
This command might fail to restore the default settings for some commands for reasons such as command
dependencies and system restrictions. Use the display this command in interface view to identify these
commands, and then use their undo forms or follow the command reference to individually restore their
default settings. If your restoration attempt still fails, follow the error message instructions to resolve the
problem.
Examples
# Restore the default setting of interface VT 10.
<Sysname> system-view
[Sysname] interface virtual-template 10
[Sysname-Virtual-Template10] default
This command will restore the default settings. Continue? [Y/N]:y
# Restore the default setting of interface MP-group 3.
<Sysname> system-view
50
[Sysname] interface mp-group 3
[Sysname-Mp-group3] default
This command will restore the default settings. Continue? [Y/N]:y
description
Use description to set the description for the VT or MP-group interface.
Use undo description to restore the default.
Syntax
description text
undo description
Default
A VT or MP-group interface is described in the form of interface name Interface (for example,
Virtual-Template1 Interface).
Views
VT interface view, MP-group interface view
Default command level
2: System level
Parameters
text: Interface description, a case-sensitive character string of 1 to 80 characters.
Examples
# Set the description for interface VT 10 to virtual-interface.
<Sysname> system-view
[Sysname] interface virtual-template 10
[Sysname-Virtual-Template10] description virtual-interface
# Set the description for interface MP-group 3 to mpgroup-interface.
<Sysname> system-view
[Sysname] interface mp-group 3
[Sysname-Mp-group3] description mpgroup-interface
display interface mp-group
Use display interface mp-group to display information about the specified MP-group interface or all
existing MP-group interfaces.
Syntax
display interface mp-group mp-number [ brief ] [ | { begin | exclude | include } regular-expression ]
display interface [ mp-group ] [ brief [ down ] ] [ | { begin | exclude | include } regular-expression ]
Views
Any view
Default command level
1: Monitor level
51
Parameters
mp-number: Number of an existing MP-group interface.
brief: Displays brief interface information. If you do not specify this keyword, this command displays
detailed interface information.
down: Displays information about interfaces in DOWN state and the causes. If you do not specify this
keyword, this command displays information about interfaces in all states.
|: Filters command output by specifying a regular expression. For more information about regular
expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Usage guidelines
If you do not specify the mp-group keyword, this command displays information about interfaces on the
device.
If you specify the mp-group keyword without the mp-number argument, this command displays
information about all existing MP-group interfaces.
Examples
# Display detailed information about interface MP-group 12.
<Sysname> display interface mp-group 12
Mp-group12 current state: DOWN
Line protocol current state: DOWN
Description: Mp-group12 Interface
The Maximum Transmit Unit is 1500, Hold timer is 10(sec)
Internet protocol processing : disabled
Link layer protocol is PPP
LCP initial
Physical is MP
Output queue : (Urgent queue : Size/Length/Discards)
0/50/0
Output queue : (Protocol queue : Size/Length/Discards) 0/500/0
Output queue : (FIFO queuing : Size/Length/Discards)
Last clearing of counters:
0/75/0
Never
Last 300 seconds input:
0 bytes/sec 0 packets/sec
Last 300 seconds output:
0 bytes/sec 0 packets/sec
0 packets input, 0 bytes, 0 drops
0 packets output, 0 bytes, 0 drops
# Display brief information about interface MP-group12.
<Sysname> display interface mp-group 12 brief
The brief information of interface(s) under route mode:
Link: ADM - administratively down; Stby - standby
Protocol: (s) - spoofing
Interface
Link Protocol Main IP
MP12
DOWN DOWN
--
52
Description
# Display brief information about all MP-group interfaces in DOWN state.
<Sysname> display interface mp-group brief down
The brief information of interface(s) under route mode:
Link: ADM - administratively down; Stby - standby
Interface
Link Cause
MP1
ADM
MP12
DOWN Not connected
Administratively
Table 11 Command output
Field
Description
Physical state of the interface:
• DOWN (Administratively)—The interface was shut down with the
current state
shutdown command, that is, is administratively down.
• DOWN—The interface is administratively up but physically down.
• UP—The interface is both administratively and physically up.
Line protocol current state
Data link layer state (UP or DOWN).
Description
Description string of the interface.
The Maximum Transmit Unit
MTU of the interface.
Hold timer
Interval at which the current interface sends keepalive packets.
Internet protocol processing
Network layer state (enabled or disabled).
LCP initial
LCP negotiation is complete.
Physical
Physical type of the interface.
Output queue : (Urgent queue :
Size/Length/Discards)
Output queue : (Protocol queue :
Size/Length/Discards)
Traffic statistics of the interface output queues.
Output queue : (FIFO queuing :
Size/Length/Discards)
Last clearing of counters: Never
Last 300 seconds input: 0 bytes/sec 0
packets/sec
Last 300 seconds output: 0 bytes/sec
0 packets/sec
Last time when statistics on the interface were cleared. Never
indicates that statistics on the interface were never cleared.
Average rate of input packets and output packets in the last 300
seconds.
0 packets input, 0 bytes, 0 drops
Total amount of the inbound packets of the interface (in the number of
packets and in bytes), and the number of packets dropped among
the inbound packets.
0 packets output, 0 bytes, 0 drops
Total amount of outbound packets of the interface (in the number of
packets and in bytes), and the number of packets dropped among
the outbound packets.
The brief information of interface(s)
under route mode
Brief information about Layer 3 interfaces.
53
Field
Description
Link status:
Link: ADM - administratively down;
Stby - standby
• ADM—The interface has been administratively shut down. To
recover its physical state, perform the undo shutdown command.
• Stby—The interface is operating as a backup interface. To see the
primary interface, use the display standby state command in
High Availability Command Reference.
Protocol: (s) - spoofing
If the network layer protocol state of an interface is shown as UP, but
its link is an on-demand link or is not present at all, its protocol
attribute includes the spoofing flag (an s in parentheses).
Interface
Abbreviated interface name.
Physical link state of the interface:
Link
• UP—The link is up.
• ADM—The link has been administratively shut down. To recover
its physical state, use the undo shutdown command.
Protocol
Protocol connection state of the interface: UP, DOWN, or UP(s).
Main IP
Main IP address of the interface.
Description
Description of the interface.
Cause
Cause of a DOWN physical link. If the port has been shut down with
the shutdown command, this field displays Administratively. To
restore the physical state of the interface, use the undo shutdown
command.
display interface virtual-template
Use display interface virtual-template to display the information about a VT.
Syntax
display interface virtual-template number [ brief ] [ | { begin | exclude | include } regular-expression ]
display interface [ virtual-template ] [ brief [ down ] ] [ | { begin | exclude | include }
regular-expression ]
Views
Any view
Default command level
1: Monitor level
Parameters
number: Number of an existing VT interface.
brief: Displays brief interface information. If you do not specify this keyword, this command displays
detailed interface information.
down: Displays information about interfaces in DOWN state and the causes. If you do not specify this
keyword, this command displays information about interfaces in all states.
|: Filters command output by specifying a regular expression. For more information about regular
expressions, see Fundamentals Configuration Guide.
54
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Usage guidelines
If you do not specify the virtual-template keyword, this command displays information about all
interfaces on the device.
If you specify the virtual-template keyword without the number argument, this command displays
information about all existing VTs.
Examples
# Display detailed information about VT 1.
<Sysname> display interface virtual-template 1
Virtual-Template1 current state: UP
Line protocol current state: UP (spoofing)
Description: Virtual-Template1 Interface
The Maximum Transmit Unit is 1500, Hold timer is 10(sec)
Internet Address is 6.1.1.2/8 Primary
Link layer protocol is PPP
LCP initial, MP opened
Physical is None, baudrate: 64000 bps
Output queue : (Urgent queuing : Length)
100
Output queue : (Protocol queuing : Length)
Output queue : (FIFO queuing : Length)
Last clearing of counters:
500
75
Never
Last 300 seconds input rate: 0 bytes/sec, 0 bits/sec, 0 packets/sec
Last 300 seconds output rate: 0 bytes/sec, 0 bits/sec, 0 packets/sec
512 packets input, 43008 bytes, 0 drops
614 packets output, 49636 bytes, 0 drops
# Display brief information about VT 1.
<Sysname> display interface virtual-template 1 brief
The brief information of interface(s) under route mode:
Link: ADM - administratively down; Stby - standby
Protocol: (s) - spoofing
Interface
Link Protocol Main IP
VT1
UP
UP(s)
Description
--
See Table 11 for the output description.
Related commands
interface virtual-template
display ppp mp
Use display ppp mp to display the information about an MP interface.
55
Syntax
display ppp mp [ interface interface-type interface-number ] [ | { begin | exclude | include }
regular-expression ]
Views
Any view
Default command level
1: Monitor level
Parameters
interface interface-type interface-number: Specifies an interface by its type and number.
|: Filters command output by specifying a regular expression. For more information about regular
expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Examples
# Display the information about all the MP interfaces.
<Sysname> display ppp mp
Mp-group is Mp-group0
max-bind: 20, fragment: enable, min-fragment: 128 ,LFI max-delay: 100
Bundle Multilink, 6 members, Master link is Mp-group0
Peer's endPoint descriptor: 1e9935f57c85
Sequence format: short/long rcv/sent
Bundle Up Time: 2005/03/13
19:54:23:60
0 lost fragments, 0 reordered, 0 unassigned, 0 interleaved,
sequence 0/0 rcvd/sent
The member channels bundled are:
Serial2/0/1:15
Up-Time:2005/03/13
19:54:23:60
Serial2/0/1:16
Up-Time:2005/03/13
19:54:23:60
Serial2/0/1:17
Up-Time:2005/03/13
19:54:23:60
Serial2/0/1:18
Up-Time:2005/03/13
19:54:23:60
Serial2/0/1:19
Up-Time:2005/03/13
19:54:23:60
Serial2/0/1:20
Up-Time:2005/03/13
19:54:23:60
Inactive member channels: 4 members
Serial2/0/1:21
(inactive)
Serial2/0/1:22
(inactive)
Serial2/0/1:23
(inactive)
Serial2/0/1:24
(inactive)
Table 12 Command output
Field
Description
Mp-group is Mp-group0
Information about interface MP-group 0.
max-bind
Maximum number of links that can be bundled.
56
Field
Description
fragment
Indicates whether MP fragmentation is enabled.
min-fragment
Minimum size of an MP fragment.
LFI max-delay
Maximum delay to transmit an LFI fragment.
LFI max-size
Maximum number of bytes of an LFI fragment.
Bundle Multilink
Peer MP username is Multilink.
6 members
Six channels are bundled.
Master link is MP-group0
The master channel is MP-group 0.
Peer's endPoint descriptor: 1e9935f57c85
The description string of the peer is 1e9935f57c85.
Sequence format: short/long rcv/sent
Sequence number header format of MP. The short sequence
number format is used in the incoming direction and the long
sequence number format is used in the outgoing direction.
Bundle Up Time: 2005/03/13
19:54:23:60
The MP channel went up at 19:54:23:60 on March 13, 2005.
0 lost fragments
Number of the lost fragments.
0 reordered
Number of the packets reassembled.
0 unassigned
Number of the packets waiting for being reassembled.
0 interleaved
Number of the interleaved packets.
sequence 0/0 rcvd/sent
Received sequence number/sent sequence number.
The member channels bundled are
The following displays all the member channels bundled in this
logical channel.
Serial2/0/1:15
19:54:23:60
Subchannel Serial2/0/1:15 is up at 19:54:23:60 on March
13, 2005.
Up-Time:2005/03/13
Inactive member channels
List of the inactive subchannels.
Related commands
•
link-protocol ppp
•
ppp mp
display virtual-access
Use display virtual-access to display the information about a VA interface or the VA interfaces that are
formed based on a VT.
Syntax
display virtual-access [ va-number | peer peer-address | slot slot-number | user user-name | vt
vt-number ] * [ | { begin | exclude | include } regular-expression ]
Views
Any view
Default command level
1: Monitor level
57
Parameters
va-number: VA interface number, ranging from 0 to 65535.
peer peer-address: Specifies the peer IP address of a VA interface, in dotted decimal notation.
slot slot-number: Specifies a card by its slot number.
user user-name: Specifies the username of a user logging in through a VA interface. This argument is a
string of 1 to 80 characters.
vt vt-number: Specifies a VT number, in the range of 0 to 1023.
|: Filters command output by specifying a regular expression. For more information about regular
expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Usage guidelines
VA interfaces are created automatically by the system. They use the settings of the corresponding VTs. A
VA interface can be removed due to failures of lower layer connections or user intervention.
The following matrix shows the option and router compatibility:
Option
6602
HSR6602
6604/6608/6616
slot slot-number
No
Yes
Yes
Examples
# Display the information about all the VA interfaces that are formed based on VT 1.
<Sysname> display virtual-access vt 1
Virtual-Template1:0 current state: UP
Line protocol current state: UP
Description: Virtual-Template1:0 Interface
The Maximum Transmit Unit is 1500
Internet protocol processing : disabled
Link layer protocol is PPP
LCP opened, MP opened, IPCP opened, OSICP opened
Physical is MP, baudrate: 64000 bps
Output queue : (Urgent queuing : Size/Length/Discards)
0/100/0
Output queue : (Protocol queuing : Size/Length/Discards)
Output queue : (FIFO queuing : Size/Length/Discards)
Last 300 seconds input:
Last 300 seconds output:
0 bytes/sec 0 packets/sec
0 bytes/sec 0 packets/sec
520 packets input, 44132 bytes, 0 drops
527 packets output, 44566 bytes, 4 drops
For the output description, see Table 12.
58
0/500/0
0/75/0
interface mp-group
Use interface mp-group to create an MP-group interface and enter MP-group interface view. If the
interface already exists, enter its view directly.
Use undo interface mp-group to remove an MP-group interface.
Syntax
interface mp-group mp-number
undo interface mp-group mp-number
Views
System view
Default command level
2: System level
Parameters
mp-number: MP-group interface number.
•
6602 routers support one-dimensional MP-group interface numbers in the range of 0 to 1023.
•
HSR6602, 6604, 6608, and 6616 routers support three-dimensional MP-group interface numbers,
in the format of X/Y/Z:
{
{
{
X indicates the number of the slot where the base card resides. The value range depends on the
device model.
Y indicates the number of the slot where the subcard resides. The value range depends on the
device model.
Z indicates the interface number on the subcard. The value range is 0 to 1023.
Usage guidelines
You must use the interface mp-group command together with the ppp mp mp-group command. You can
execute the two commands in either order.
MP-group interfaces do not support cross-base-card bundling.
Examples
On an 6602 router:
# Create interface MP group 3.
<Sysname> system-view
[Sysname] interface mp-group 3
[Sysname-Mp-group3]
On an HSR6602 /6604/6608/6616 router:
# Create interface MP group 1/0/0.
<Sysname> system-view
[Sysname] interface mp-group 1/0/0
[Sysname-Mp-group1/0/0]
59
interface virtual-template
Use interface virtual-template to create a VT and enter VT view. If the VT already exists, enter its view
directly.
Use undo interface virtual-template to remove a VT.
Syntax
interface virtual-template number
undo interface virtual-template number
Views
System view
Default command level
2: System level
Parameters
number: VT number, in the range of 0 to 1023.
Usage guidelines
To remove a VT, make sure that all the corresponding VA interfaces are removed and the VT is not in use.
Examples
# Create VT 10 interface.
<Sysname> system-view
[Sysname] interface virtual-template 10
[Sysname-Virtual-Template10]
mtu
Use mtu to set the MTU size of the interface.
Use undo mtu to restore the default.
Syntax
mtu size
undo mtu
Default
The MTU of an interface is 1500 bytes.
Views
Virtual-template interface view, MP-group interface view
Default command level
2: System level
Parameters
size: MTU in bytes, in the range of 128 to 1500.
60
Examples
# Set the MTU of VT 10 to 1200 bytes.
<Sysname> system-view
[Sysname] interface virtual-template 10
[Sysname-Virtual-Template10] mtu 1200
# Set the MTU of MP group 1 to 1200 bytes.
<Sysname> system-view
[Sysname] interface mp-group 1
[Sysname-Mp-group1] mtu 1200
ppp mp
Use ppp mp to configure an interface encapsulated with PPP to operate in MP mode.
Use undo ppp mp to restore the default.
Syntax
ppp mp
undo ppp mp
Default
An interface encapsulated with PPP operates in standard PPP mode.
Views
Interface view
Default command level
2: System level
Usage guidelines
To obtain more bandwidth, you can bind multiple PPP links to form a logical MP interface.
Examples
# Configure interface Serial 2/0/1 to operate in MP mode. (Assume that the interface has PPP
encapsulation enabled.)
<Sysname> system-view
[Sysname] interface serial 2/0/1
[Sysname-Serial2/0/1] ppp mp
ppp mp binding-mode
Use ppp mp binding-mode to set the way in which MP binding is performed.
Use undo ppp mp binding-mode to restore the default.
Syntax
ppp mp binding-mode { authentication | both | descriptor }
undo ppp mp binding-mode
61
Default
MP binding is performed by both PPP authentication username and endpoint descriptor.
Views
Virtual template interface view
Default command level
2: System level
Parameters
authentication: Performs MP binding by PPP authentication username.
both: Performs MP binding by both PPP authentication username and endpoint descriptor.
descriptor: Performs MP binding by endpoint descriptor.
Usage guidelines
The PPP authentication username is the peer username received when performing PAP, CHAP, MS-CHAP,
or MS-CHAP-V2 authentication. The endpoint descriptor, which uniquely identifies a device, refers to the
one received during LCP negotiation. Based on the username or endpoint descriptor, the system can
locate the corresponding VT interface and then create an MP binding according to the template.
In endpoint descriptor-based MP bindings, users cannot be differentiated. To bind users to different
bundles, use the keyword both in the command.
In authentication username-based MP bindings, peer devices cannot be differentiated. When multiple
peer devices exist, use the keyword both in the command.
Examples
# Specify to perform MP binding by PPP authentication username.
<Sysname> system-view
[Sysname] interface virtual-template 0
[Sysname-virtual-template0] ppp mp binding-mode authentication
Related commands
ppp mp user
ppp mp endpoint
Use ppp mp endpoint to configure the endpoint descriptor for LCP negotiation on an interface associated
with a VT interface.
Use undo ppp mp endpoint to restore the default endpoint descriptor.
Syntax
ppp mp endpoint string char-string
undo ppp mp endpoint
Default
If the interface is assigned to an MP group by using the ppp mp mp-group command, the endpoint
descriptor of the interface is the MP group interface name.
If the interface is associated with a virtual template, the endpoint descriptor of the interface is the device
name (configured by the sysname command).
62
If the endpoint descriptor exceeds 20 bytes, the first 20 bytes are taken as the endpoint descriptor.
Views
Interface view
Default command level
2: System level
Parameters
string char-string: Specifies the endpoint descriptor in the Endpoint option field. The char-string argument
is a string of 1 to 20 characters.
Usage guidelines
This command is valid only for interfaces associated with a virtual template.
In the virtual template approach to MP, an MP endpoint bases its link bundling decisions on the remote
endpoint descriptors of links, and assigns the links that receives the same endpoint descriptor to the same
bundle. To avoid incorrect link bundling on a virtual template, make sure that the link descriptors used by
different negotiating devices are unique. For example, you must re-configure an endpoint descriptor if the
default endpoint descriptor (device name) cannot uniquely identify the MP bundle at the remote end for
the device.
In the MP-group approach to MP, the negotiating endpoints do not base their bundling decisions on the
endpoint descriptor. The endpoint descriptors of the interfaces in an MP-group are always the same as
the MP-group interface name.
Examples
# Configure the endpoint descriptor of Serial 2/0/1 as 123456 for LCP negotiation.
<Sysname> system-view
[Sysname] interface serial 2/0/1
[Sysname-Serial2/0/1] ppp mp endpoint string 123456
ppp mp fragment enable
Use ppp mp fragment enable to enable MP fragmentation.
Use undo ppp mp fragment enable disable MP fragmentation.
Syntax
ppp mp fragment enable
undo ppp mp fragment enable
Default
MP fragmentation is enabled.
Views
Virtual template interface view, MP-group interface view
Default command level
2: System level
Usage guidelines
If the peer device does not support fragment reassembly, you must configure the undo ppp mp fragment
enable command on the local device to disable MP fragmentation. This enables the two devices to
63
communicate. After that, outgoing packets are not fragmented, but they still carry an MP sequence
number and fragment tag.
After you configure the undo ppp mp fragment enable command on an interface, the settings configured
with the ppp mp lfi and ppp mp min-fragment commands become invalid on the interface.
Examples
# Disable MP fragmentation on interface MP-group 1.
<Sysname> system-view
[Sysname] interface mp-group 1
[Sysname-Mp-group1] undo ppp mp fragment enable
ppp mp max-bind
Use ppp mp max-bind to set the maximum number of links allowed in an MP bundle.
Use undo ppp mp max-bind to restore the default.
Syntax
ppp mp max-bind max-bind-num
undo ppp mp max-bind
Default
The maximum number of links allowed in an MP bundle is 16.
Views
Virtual template interface view, MP-group interface view
Default command level
2: System level
Parameters
max-bind-num: Maximum number of links allowed in an MP bundle, in the range of 1 to 128.
Usage guidelines
Use the default setting in normal cases. Inappropriate use of this command can cause PPP performance
degradation. Make sure you understand the impact of this command on your network before you use it.
If the maximum number of links allowed in an MP bundle configured is less than the actual link number
of an MP bundle, you will fail in MP bundling. Therefore, make sure that the maximum link number
configured is larger than the actual one.
After you change the maximum number of bundled links for an MP bundle, you must shut down and then
bring up all the physical interfaces bound to the MP bundle for the modification to take effect.
Examples
# Set the maximum number of links allowed in an MP bundle to 12.
<Sysname> system-view
[Sysname] interface virtual-template 0
[Sysname-Virtual-Template0] ppp mp max-bind 12
Related commands
ppp mp
64
ppp mp min-fragment
Use ppp mp min-fragment to set the minimum MP packet size for fragmentation.
Use undo ppp mp min-fragment to restore the default, or 128 bytes.
Syntax
ppp mp min-fragment size
undo ppp mp min-fragment
Views
Virtual template interface view, MP-group interface view
Default command level
2: System level
Parameters
size: Minimum MP packet size for fragmentation to be set, in the range of 128 to 1500 (in bytes). MP
outgoing packets smaller than this value will not be fragmented, but those larger than or equal to this
value will be fragmented.
Usage guidelines
If MP bundle is implemented through hardware (CPOS chip for example), the minimum MP packet size
for fragmentation varies with chips (the fragment size on certain chips can only be 128, 256, and 512
bytes). In this case, make sure the setting configured with the ppp mp min-fragment command conforms
to the hardware specifications for the MP bundle to be created and the sub-channel LCP link to be
established successfully.
After executing the ppp mp min-fragment command, you must re-enable all the bundled ports (by using
the shutdown and undo shutdown commands) for the new setting to take effect.
Examples
# Set the minimum MP packet size for fragmentation to 500 bytes.
<Sysname> system-view
[Sysname] interface virtual-template 0
[Sysname-Virtual-Template0] ppp mp min-fragment 500
ppp mp mp-group
Use ppp mp mp-group to add the current interface to an MP-group.
Use undo ppp mp to remove the current interface from the specified MP-group it belongs to.
Syntax
ppp mp mp-group mp-number
undo ppp mp
Views
Interface view
Default command level
2: System level
65
Parameters
mp-number: MP-group interface number.
•
6602 routers support one-dimensional MP-group interface numbers in the range of 0 to 1023.
•
HSR6602, 6604, 6608, and 6616 routers support three-dimensional MP-group interface numbers,
in the format of X/Y/Z:
{
{
{
X indicates the number of the slot where the base card resides. The value range depends on the
device model.
Y indicates the number of the slot where the subcard resides. The value range depends on the
device model.
Z indicates the interface number on the subcard. The value range is 0 to 1023.
Usage guidelines
This command should be used together with the interface mp-group command. However, the order in
which the two commands are executed can be either one. You can create an MP-group interface and
then add an interface to the MP-group; or add the interface to the MP-group and then create the
MP-group.
You can add only physical interfaces to an MP group. Logical interfaces (such as Tunnel interfaces) do
not support the ppp mp mp-group command.
MP-group interfaces do not support cross-base-card bundling.
Examples
On an 6602 router:
# Add interface Serial 2/1 to MP-group 3.
<Sysname> system-view
[Sysname] interface serial 2/1
[Sysname-Serial2/1] ppp mp mp-group 3
On an HSR6602 /6604/6608/6616 router:
# Add interface Serial 2/0/1 to MP-group 1/0/3.
<Sysname> system-view
[Sysname] interface serial 2/0/1
[Sysname-Serial2/0/1] ppp mp mp-group 1/0/3
ppp mp short-sequence
Use ppp mp short-sequence to trigger MP short sequence number header format negotiation. After the
negotiation succeeds, the local end receives packets with short sequence numbers.
Use undo ppp mp short-sequence to restore the default.
Syntax
ppp mp short-sequence
undo ppp mp short-sequence
Default
The long sequence number header format is used.
66
Views
Interface view
Default command level
2: System level
Usage guidelines
This command applies to the incoming direction only. To enable the local end to transmit packets with
short sequence numbers, configure the remote end to receive packets with short sequence numbers.
The sequence number format (long or short) of an MP bundle depends on the configuration of the first
channel joining the MP bundle.
To negotiate the use of short sequence numbers on a dialer MP bundle, configure the command on the
ISDN D channel; to do that on a common MP bundle, use the command on all its channels. The
command will cause PPP re-negotiation.
Examples
# Configure the short sequence number header format of MP in the incoming direction of interface Serial
2/0/1.
<Sysname> system-view
[Sysname] interface serial 2/0/1
[Sysname-Serial2/0/1] ppp mp mp-group 0
[Sysname-Serial2/0/1] ppp mp short-sequence
ppp mp user
Use ppp mp user to specify to add PPP links with specific usernames to the corresponding MP bundles
according to usernames.
Use undo ppp mp user to remove a username-based MP bundle.
Syntax
ppp mp user username bind virtual-template number
undo ppp mp user username
Views
System view
Default command level
2: System level
Parameters
username: Username, a string of 1 to 80 characters.
virtual-template number: Specifies a virtual-template number, in the range of 0 to 1023.
Usage guidelines
In establishing a PPP connection, if PPP authentication succeeds and a virtual-template is specified, the
PPP link established will be added to the corresponding MP bundle according to the configuration of the
virtual-template, and a new virtual interface will be formed for data transmission.
You can configure the following parameters for a virtual-template:
•
Local IP address and the peer IP address (or IP address pool)
67
•
PPP operating parameters
Examples
# Specify the VT interface that corresponds to user 1 as VT interface 1, setting the IP address of the VT
interface as 202.38.60.1/24.
<Sysname> system-view
[Sysname] ppp mp user user1 bind virtual-template 1
[Sysname] interface virtual-template 1
[Sysname-Virtual-Template1] ip address 202.38.60.1 255.255.255.0
Related commands
•
ppp mp
•
ppp mp max-bind
ppp mp virtual-template
Use ppp mp virtual-template to bind an interface to a VT interface, enabling the interface to operate in
MP mode.
Use undo ppp mp to cancel an interface-VT interface binding, making the interface to operate in normal
PPP mode.
Syntax
ppp mp virtual-template number
undo ppp mp
Default
An interface is not bound to a VT interface, and the interface operates in normal PPP mode.
Views
Interface view
Default command level
2: System level
Parameters
number: Number of the VT interface to be bound to the interface, in the range of 0 to 1023.
Usage guidelines
After binding an interface to a VT interface, you can optionally enable PAP, CHAP, MS-CHAP, or
MS-CHAP-V2 authentication.
Interfaces bound to the same VT interface are bound together directly. The ppp mp virtual-template
command and the ppp mp command are mutually exclusive.
Examples
# Bind interface Serial 2/0/1 to VT interface 1. (Assume the interface has PPP encapsulation enabled.)
<Sysname> system-view
[Sysname] interface serial 2/0/1
[Sysname-Serial2/0/1] ppp mp virtual-template 1
68
reset counters interface mp-group
Use reset counters interface mp-group to clear traffic statistics on MP-group interfaces.
Syntax
reset counters interface [ mp-group [ interface-number ] ]
Views
User view
Default command level
2: System level
Parameters
interface-number: Number of an MP-group interface.
Usage guidelines
Before collecting traffic statistics within a specific period of time on an MP-group interface, clear the
existing statistics.
If you do not specify the mp-group keyword, this command clears statistics on all interfaces.
If you specify the mp-group keyword without the interface-number argument, this command clears
statistics on all MP-group interfaces.
Examples
# Clear the statistics of interface MP-group3.
<Sysname> reset counters interface mp-group 3
reset counters interface virtual-template
Use reset counters interface virtual-template to clear statistics on VTs.
Syntax
reset counters interface [ virtual-template [ interface-number ] ]
Views
User view
Default command level
2: System level
Parameters
interface-number: Number of a VT.
Usage guidelines
Before collecting traffic statistics within a specific period of time on a VT, clear the existing statistics.
If you do not specify the virtual-template keyword, this command clears statistics on all interfaces.
If you specify the virtual-template keyword without the interface-number argument, this command clears
statistics on all VTs.
69
Examples
# Clear statistics on VT 10.
<Sysname> reset counters interface virtual-template 10
shutdown
Use shutdown to shut down the MP-group interface.
Use undo shutdown to bring up the MP-group interface.
Syntax
shutdown
undo shutdown
Default
A MP-group interface is up.
Views
MP-group interface view
Default command level
2: System level
Examples
# Shut down MP-group 3.
<Sysname> system-view
[Sysname] interface mp-group 3
[Sysname-Mp-group3] shutdown
PPP link efficiency mechanism configuration
commands
ppp mp lfi
Use ppp mp lfi to enable LFI on an interface.
Use undo ppp mp lfi to disable LFI.
Syntax
ppp mp lfi
undo ppp mp lfi
Default
LFI is disabled.
Views
Virtual template interface view, MP-group interface view
70
Default command level
2: System level
Usage guidelines
Disabling LFI also removes the user-configured settings of maximum LFI fragment delay and size.
Examples
# Enable LFI on Virtual-Template1 interface.
<Sysname> system-view
[Sysname] interface virtual-template 1
[Sysname-Virtual-Template1] ppp mp lfi
Related commands
•
ppp mp lfi delay-per-frag
•
ppp mp lfi size-per-frag
ppp mp lfi delay-per-frag
Use ppp mp lfi delay-per-frag to set the maximum delay for transmitting an LFI fragment.
Use undo ppp mp lfi delay-per-frag to restore the default.
Syntax
ppp mp lfi delay-per-frag time
undo ppp mp lfi delay-per-frag
Default
The maximum delay for transmitting an LFI fragment is 10 ms.
Views
Virtual template interface view, MP-group interface view
Default command level
2: System level
Parameters
time: Maximum delay of an LFI fragment, in the range of 1 to 1000 (in ms).
Examples
# Set the maximum delay for transmitting an LFI fragment to 20 ms on Virtual-Template1 interface.
<Sysname> system-view
[Sysname] interface virtual-template 1
[Sysname-Virtual-Template1] ppp mp lfi delay-per-frag 20
ppp mp lfi size-per-frag
Use ppp mp lfi size-per-frag to set the maximum size (in bytes) of LFI fragments.
Use undo ppp mp lfi size-per-frag to restore the default.
Syntax
ppp mp lfi size-per-frag size
71
undo ppp mp lfi size-per-frag
Default
The size of LFI fragments depends on the configuration of the ppp mp lfi delay-per-frag command.
Views
Virtual template interface view, MP-group interface view
Default command level
2: System level
Parameters
size: Maximum size of an LFI fragment, in bytes, in the range of 40 to 1500.
Examples
# Configure the maximum size of LFI fragments on interface Virtual-Template 1 as 80 bytes.
<Sysname> system-view
[Sysname] interface virtual-template 1
[Sysname-Virtual-Template1] ppp mp lfi size-per-frag 80
72
PPPoE server configuration commands
Support for the commands in this chapter depends on the device model.
Cross-card Layer 3 aggregate interfaces do not support the commands in this chapter.
display pppoe-server session
Use display pppoe-server session to display the information about PPPoE sessions on a device operating
as a PPPoE server.
Syntax
display pppoe-server session all [ | { begin | exclude | include } regular-expression ]
Views
Any view
Default command level
1: Monitor level
Parameters
all: Displays all the information about PPPoE sessions.
|: Filters command output by specifying a regular expression. For more information about regular
expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Examples
# Display all the information about PPPoE sessions. (Assume the current device is operating as a PPPoE
server.)
<Sysname> display pppoe-server session all
Total PPPoE Session(s): 2
SID
Intf
State OIntf
1
Virtual-Template1:0
UP
GE1/0/1
RemMAC
00e015004100 00e014004300
2
Virtual-Template2:0
UP
GE1/0/2
00e016004100 00e015004300
Table 13 Command output
Field
Description
SID
PPPoE session ID.
Intf
Virtual-template interface.
State
PPPoE session state.
73
LocMAC
Field
Description
OIntf
Corresponding Ethernet interface.
RemMAC
Peer MAC address.
LocMAC
Local MAC address.
pppoe-server abnormal-offline-count threshold
Use pppoe-server abnormal-offline-count threshold to set the upper threshold for the PPPoE abnormal
offline event count in five minutes.
Use undo pppoe-server abnormal-offline-count threshold to restore the default.
Syntax
pppoe-server abnormal-offline-count threshold number
undo pppoe-server abnormal-offline-count threshold
Default
The upper threshold for the PPPoE abnormal offline event count in five minutes is 65535.
Views
System view
Default command level
2: System level
Parameters
number: Upper threshold for the PPPoE abnormal offline event count in five minutes, in the range of 0 to
65535.
Usage guidelines
If the PPPoE abnormal offline event count in the last five minutes exceeds this threshold, the system outputs
a trap message.
Examples
# Set the upper threshold for the PPPoE abnormal offline event count in five minutes to 100.
<Sysname> system-view
[Sysname] pppoe-server abnormal-offline-count threshold 100
pppoe-server abnormal-offline-percent threshold
Use pppoe-server abnormal-offline-percent threshold to set the upper threshold for the PPPoE abnormal
offline event percentage in five minutes.
Use undo pppoe-server abnormal-offline-percent threshold to restore the default.
Syntax
pppoe-server abnormal-offline-percent threshold number
undo pppoe-server abnormal-offline-percent threshold
74
Default
The upper threshold for the PPPoE abnormal offline event percentage in five minutes is 100.
Views
System view
Default command level
2: System level
Parameters
number: Upper threshold for the PPPoE abnormal offline event percentage, in the range of 0 to 100.
Usage guidelines
If the PPPoE abnormal offline event percentage in the last five minutes exceeds this threshold, the system
outputs a trap message.
PPPoE abnormal offline event percentage = 100 x Abnormal offline event count/(Abnormal offline event
count + Normal offline event count).
Examples
# Set the upper threshold for the PPPoE abnormal offline event percentage to 10.
<Sysname> system-view
[Sysname] pppoe-server abnormal-offline-percent threshold 10
Related commands
pppoe-server normal-offline-percent threshold
pppoe-server bind
Use pppoe-server bind to enable PPPoE on an Ethernet interface and bind the Ethernet interface to a
virtual-template interface.
Use undo pppoe-server bind to disable PPPoE on an Ethernet interface.
Syntax
pppoe-server bind virtual-template number
undo pppoe-server bind
Default
PPPoE is disabled.
Views
Interface view
Default command level
2: System level
Parameters
virtual template number: Specifies a virtual-template interface number, in the range of 0 to 1023.
Examples
# Enable PPPoE on interface GigabitEthernet 1/0/1 and bind the Ethernet interface to Virtual-template
1.
75
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] pppoe-server bind virtual-template 1
pppoe-server log-information off
Use pppoe-server log-information off to disable PPP log displaying on a device operating as a PPPoE
server.
Use undo pppoe-server log-information off to restore the default.
Syntax
pppoe-server log-information off
undo pppoe-server log-information off
Default
PPP log displaying is enabled on a PPPoE server.
Views
System view
Default command level
2: System level
Usage guidelines
With PPP log displaying enabled, large amounts of log information can affect device performance and
be a nuisance to users during configuration. You can disable PPP log displaying by using the
pppoe-server log-information off command.
Examples
# Disable PPP log displaying.
<Sysname> system-view
[Sysname] pppoe-server log-information off
pppoe-server max-sessions local-mac
Use pppoe-server max-sessions local-mac to set the maximum number of PPPoE sessions allowed with
regard to the local MAC address on a device operating as a PPPoE server.
Use undo pppoe-server max-sessions local-mac to restore the default.
Syntax
pppoe-server max-sessions local-mac number
undo pppoe-server max-sessions local-mac
Default
The maximum number of PPPoE sessions allowed with regard to the local MAC address is 4096.
Views
System view
76
Default command level
2: System level
Parameters
number: Maximum number of sessions allowed with regard to the local MAC address. The value range
is 1 to 4096.
Examples
# Set the maximum number of PPPoE sessions allowed with regard to the local MAC address to 50.
(Assume the device is operating as a PPPoE server.)
<Sysname> system-view
[Sysname] pppoe-server max-sessions local-mac 50
pppoe-server max-sessions remote-mac
Use pppoe-server max-sessions remote-mac to set the maximum number of PPPoE sessions allowed with
regard to a peer MAC address.
Use undo pppoe-server max-sessions remote-mac to restore the default.
Syntax
pppoe-server max-sessions remote-mac number
undo pppoe-server max-sessions remote-mac
Default
The maximum number of PPPoE sessions allowed with regard to a peer MAC address is 100.
Views
System view
Default command level
2: System level
Parameters
number: Maximum number of PPPoE sessions that the entire system or a card can establish with a peer
MAC address, in the range of 1 to 4096.
Examples
# Set the maximum number of PPPoE sessions allowed with regard to a peer MAC address to 50.
<Sysname> system-view
[Sysname] pppoe-server max-sessions remote-mac 50
pppoe-server max-sessions total
Use pppoe-server max-sessions total to set the maximum number of PPPoE sessions allowed.
Use undo pppoe-server max-sessions total to restore the default.
Syntax
pppoe-server max-sessions slot slot-number total number
undo pppoe-server max-sessions slot slot-number
77
Default
The maximum number of PPPoE sessions allowed varies by device.
Views
System view
Default command level
2: System level
Parameters
slot slot-number: Specifies a card by its slot number.
number: Maximum number of PPPoE sessions allowed.
Usage guidelines
The following matrix shows the option and router compatibility:
Option
6602
HSR6602
6604/6608/6616
slot slot-number
No
Yes
Yes
The following matrix shows the value ranges for the number argument:
6602
HSR6602
6604/6608/6616
1 to 18000
1 to 65535
1 to 65535
Examples
On an 6602 router:
# Set the maximum number of PPPoE sessions allowed to 3000 in the system.
<Sysname> system-view
[Sysname] pppoe-server max-sessions total 3000
On an HSR6602 /6604/6608/6616 router:
# Set the maximum number of PPPoE sessions supported on card 3 to 1500.
<Sysname> system-view
[Sysname] pppoe-server max-sessions slot 3 total 1500
pppoe-server normal-offline-percent threshold
Use pppoe-server normal-offline-percent threshold to set the lower threshold for the PPPoE normal offline
event percentage.
Use undo pppoe-server normal-offline-percent threshold to restore the default.
Syntax
pppoe-server normal-offline-percent threshold number
undo pppoe-server normal-offline-percent threshold
Default
The lower threshold for the PPPoE normal offline event percentage is 0.
78
Views
System view
Default command level
2: System level
Parameters
number: Lower threshold for the PPPoE normal offline event percentage, in the range of 0 to 100.
Usage guidelines
If the PPPoE normal offline event percentage in the last five minutes is lower than this threshold, the system
outputs a trap message.
PPPoE normal offline event percentage = 100 – PPPoE abnormal offline event percentage.
Examples
# Set the lower threshold for the PPPoE normal offline event percentage to 10.
<Sysname> system-view
[Sysname] pppoe-server normal-offline-percent threshold 10
Related commands
pppoe-server abnormal-offline-percent threshold
reset pppoe-server
Use reset pppoe-server to terminate a PPPoE session on the PPPoE server side.
Syntax
reset pppoe-server { all | interface interface-type interface-number | virtual-template number }
Views
User view
Default command level
2: System level
Parameters
all: Terminates all the PPPoE sessions.
interface interface-type interface-number: Specifies a port by its type and number.
virtual-template number: Specifies a virtual template interface by its number in the range of 0 to 1023.
Examples
# Terminate the session established based on Virtual-template 1 interface on the PPPoE server side.
<Sysname> reset pppoe-server virtual-template 1
79
L2TP configuration commands
allow l2tp
Use allow l2tp to specify the VT interface for receiving calls, the tunnel name on the LAC, and the domain
name.
Use undo allow to remove the configuration.
Syntax
allow l2tp virtual-template virtual-template-number remote remote-name [ domain domain-name ]
undo allow
Default
An LNS denies all incoming calls.
Views
L2TP group view
Default command level
2: System level
Parameters
virtual-template virtual-template-number: Specifies a VT interface for creating VA interfaces. The value
range for virtual-template-number is 0 to 1023.
remote remote-name: Specifies the name of the tunnel peer initiating a connection request, a
case-sensitive string of 1 to 30 characters.
domain domain-name: Specifies the name of the domain initiating a connection request, a
case-insensitive string of 1 to 30 characters.
Usage guidelines
The domain domain-name option is required in L2TP multi-instance applications.
The remote remote-name option is optional for L2TP group 1, the default L2TP group. For L2TP group 1,
the syntax of the command is allow l2tp virtual-template virtual-template-number [ remote remote-name ]
[ domain domain-name ]. A peer with any name can initiate a tunneling request.
If you specify the remote remote-name option for L2TP group 1, L2TP group 1 will not serve as the default
L2TP group.
In Windows 2000 beta 2, if the local end name for the VPN connection is null, the peer name received
by the router is null, too. You can configure a default L2TP group to test the connectivity and receive the
tunneling request initiated by such an unknown remote end.
The allow l2tp command is available for only LNSs. If the tunnel name on the LAC is specified, make sure
that it is the same as the tunnel name configured on the LAC.
Examples
# Accept the L2TP tunneling request initiated by the peer (LAC) of aaa and create a VA interface
according to virtual template 1.
80
<Sysname> system-view
[Sysname] l2tp-group 2
[Sysname-l2tp2] allow l2tp virtual-template 1 remote aaa
# Specify L2TP group 1 as the default L2TP group, accept the L2TP tunneling request initiated by any peer,
and create a VA interface based on virtual template 1.
<Sysname> system-view
[Sysname] l2tp-group 1
[Sysname-l2tp1] allow l2tp virtual-template 1
Related commands
l2tp-group
display l2tp session
Use display l2tp session to display information about L2TP sessions.
Syntax
display l2tp session [ | { begin | exclude | include } regular-expression ]
Views
Any view
Default command level
1: Monitor level
Parameters
|: Filters command output by specifying a regular expression. For more information about regular
expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Examples
# Display information about L2TP sessions.
<Sysname> display l2tp session
Total session = 1
LocalSID
17922
RemoteSID
LocalTID
12990
1
Table 14 Command output
Field
Description
Total session
Number of active sessions.
LocalSID
Unique ID of the session at the local end.
RemoteSID
Unique ID of the session at the remote end.
81
Field
Description
LocalTID
Unique ID of the tunnel at the local end.
Related commands
display l2tp tunnel
display l2tp tunnel
Use display l2tp tunnel to display information about L2TP tunnels.
Syntax
display l2tp tunnel [ | { begin | exclude | include } regular-expression ]
Views
Any view
Default command level
1: Monitor level
Parameters
|: Filters command output by specifying a regular expression. For more information about regular
expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Examples
# Display information about L2TP tunnels.
<Sysname> display l2tp tunnel
Total tunnel = 1
LocalTID RemoteTID RemoteAddress
Port
Sessions RemoteName
1
1701
1
1
20.1.1.2
lns
Table 15 Command output
Field
Description
Total tunnel
Number of active tunnels.
LocalTID
Unique ID of the tunnel at the local end.
RemoteTID
Unique ID of the tunnel at the remote end.
RemoteAddress
IP address of the peer.
Port
Port number of the peer.
Sessions
Number of sessions within the tunnel.
RemoteName
Name of the tunnel at the peer.
82
display ppp access-control interface
Use display ppp access-control interface to display statistics about the dynamic firewalls on the VA
interfaces created based on the specified VT interface.
Syntax
display ppp access-control interface interface-type interface-number [ | { begin | exclude | include }
regular-expression ]
Views
Any view
Default command level
1: Monitor level
Parameters
interface interface-type interface-number: Specifies an interface by its type and number.
|: Filters command output by specifying a regular expression. For more information about regular
expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Examples
# Display statistics about the dynamic firewalls on the VA interfaces created based on VT 2.
<Sysname> display ppp access-control interface virtual-template 2
Interface: Virtual-Template2:0
User Name: mike
In-bound Policy: acl 3000
From 2000-04-29 18:47:05
to 2000-04-29 18:47:16
0 packets, 0 bytes, 0% permitted,
0 packets, 0 bytes, 0% denied,
0 packets, 0 bytes, 0% permitted default,
0 packets, 0 bytes, 0% denied default,
Totally 0 packets, 0 bytes, 0% permitted,
Totally 0 packets, 0 bytes, 0% denied.
Interface: Virtual-Template2:1
User Name: tim
In-bound Policy: acl 3001
From 2000-04-30 18:41:05
to 2000-04-30 18:47:16
0 packets, 0 bytes, 0% permitted,
0 packets, 0 bytes, 0% denied,
0 packets, 0 bytes, 0% permitted default,
0 packets, 0 bytes, 0% denied default,
Totally 0 packets, 0 bytes, 0% permitted,
Totally 0 packets, 0 bytes, 0% denied.
83
Table 16 Command output
Field
Description
Interface
VA interface servicing the PPP user.
User Name
PPP username.
In-bound Policy
ACL that filters PPP user data packets.
From xx to xx
Time range during which the firewall takes effect.
x packets, x bytes, x% permitted
Indicates the packets permitted by ACL rules: the number of packets
and bytes, and the percentage of the permitted to the total.
x packets, x bytes, x% denied
Indicates the packets denied by ACL rules: the number of packets and
bytes, and the percentage of the denied to the total.
x packets, x bytes, x% permitted
default
Indicates the packets that matched no ACL rule and were permitted
according to the default filtering rule: number of packets and bytes,
and the percentage of the permitted to the total.
x packets, x bytes, x% denied default
Indicates the packets that matched no ACL rule and were denied
according to the default filtering rule: number of packets and bytes,
and the percentage of the denied to the total.
Totally x packets, x bytes, x%
permitted
Indicates all permitted packets: the number of packets and bytes, and
the percentage of all the permitted to the total.
Totally x packets, x bytes, x% denied
Indicates all denied packets: the number of packets and bytes, and
the percentage of all the denied to the total.
interface virtual-template
Use interface virtual-template to create a VT interface and enter its view.
Use undo interface virtual-template to remove a VT interface.
Syntax
interface virtual-template virtual-template-number
undo interface virtual-template virtual-template-number
Default
No VT interface exists.
Views
System view
Default command level
2: System level
Parameters
virtual-template-number: Number of a VT interface, in the range of 0 to 1023.
Usage guidelines
A VT interface is intended to provide parameters for VA interfaces to be dynamically created by the
device, such as logical MP interfaces and logical L2TP interfaces.
Examples
# Create VT interface 1 and enter VT interface view.
<Sysname> system-view
84
[Sysname] interface virtual-template 1
[Sysname-Virtual-Template1]
Related commands
allow l2tp
l2tp enable
Use l2tp enable to enable the L2TP function.
Use undo l2tp enable to disable the L2TP function.
Syntax
l2tp enable
undo l2tp enable
Default
The L2TP function is disabled.
Views
System view
Default command level
2: System level
Usage guidelines
L2TP must be enabled for relevant L2TP configurations to take effect.
Examples
# Enable the L2TP function.
<Sysname> system-view
[Sysname] l2tp enable
Related commands
l2tp-group
l2tp-group
Use l2tp-group to create an L2TP group and enter its view.
Use undo l2tp-group to remove an L2TP group.
Syntax
l2tp-group group-number
undo l2tp-group group-number
Default
No L2TP group exists.
Views
System view
85
Default command level
2: System level
Parameters
group-number: Number of an L2TP group, in the range of 1 to 1000.
Usage guidelines
When you use the undo l2tp-group command to remove an L2TP group, all configuration information
associated with the group will be deleted.
Examples
# Create an L2TP group numbered 2, and enter its view.
<Sysname> system-view
[Sysname] l2tp-group 2
[Sysname-l2tp2]
Related commands
•
allow l2tp
•
start l2tp
l2tpmoreexam enable
Use l2tpmoreexam enable to enable the L2TP multi-instance function.
Use undo l2tpmoreexam enable to disable the L2TP multi-instance function.
Syntax
l2tpmoreexam enable
undo l2tpmoreexam enable
Default
The L2TP multi-instance function is disabled.
Views
System view
Default command level
2: System level
Usage guidelines
This command is available for only LNSs.
Examples
# Enable the L2TP multi-instance function for the LNS.
<Sysname> system-view
[Sysname] l2tpmoreexam enable
Related commands
l2tp enable
86
mandatory-chap
Use mandatory-chap to force the LNS to perform a CHAP authentication of the user.
Use undo mandatory-chap to disable CHAP authentication on the LNS.
Syntax
mandatory-chap
undo mandatory-chap
Default
An LNS does not perform CHAP authentication of users.
Views
L2TP group view
Default command level
2: System level
Usage guidelines
An LNS authenticates the client in addition to the proxy authentication that occurs at the LAC for higher
security. If the mandatory-chap command is used, two authentications are performed for the clients
connected to the VPN through an NAS-initialized tunnel: one on the NAS side and the other on the LNS
side. Some PPP clients do not support the second authentication. In this case, the LNS-side CHAP
authentication will fail.
Examples
# Perform CHAP authentication by force.
<Sysname> system-view
[Sysname] l2tp-group 1
[Sysname-l2tp1] mandatory-chap
Related commands
mandatory-lcp
mandatory-lcp
Use mandatory-lcp to force an LNS to perform LCP negotiation with users.
Use undo mandatory-lcp to disable the LCP negotiation.
Syntax
mandatory-lcp
undo mandatory-lcp
Default
An LNS does not perform LCP negotiation with users.
Views
L2TP group view
87
Default command level
2: System level
Usage guidelines
When you start a PPP session, a client of NAS-initialized VPN will first negotiate with the NAS for LCP
parameters. If the negotiation succeeds, the NAS initializes a tunnel and then transfers the negotiated
results to the LNS. Then the LNS verifies whether the client is valid, depending on the proxy authentication
information. You can use the mandatory-lcp command to force the LNS to perform LCP re-negotiation for
the client. In this case, the proxy authentication information of the NAS will be neglected. Some PPP
clients do not support LCP re-negotiation. In this case, the LCP re-negotiation will fail.
Examples
# Perform LCP negotiation by force.
<Sysname> system-view
[Sysname] l2tp-group 1
[Sysname-l2tp1] mandatory-lcp
Related commands
mandatory-chap
ppp lcp imsi accept
Use ppp lcp imsi accept to configure the client side to accept LNS-initiated requests to negotiate the
International Mobile Subscriber Identity (IMSI).
Use undo ppp lcp imsi accept to restore the default.
Syntax
ppp lcp imsi accept
undo ppp lcp imsi accept
Default
The client side rejects LNS-initiated requests to negotiate the IMSI.
Views
VT interface view
Default command level
2: System level
Examples
# Configure the client side to accept LNS-initiated requests to negotiate the IMSI.
<Sysname> system-view
[Sysname] interface virtual-template 1
[Sysname-Virtual-Template1] ppp lcp imsi accept
ppp lcp imsi request
Use ppp lcp imsi request to configure the LNS side to initiate an IMSI negotiation request.
Use undo ppp lcp imsi request to restore the default.
88
Syntax
ppp lcp imsi request
undo ppp lcp imsi request
Default
The LNS side does not initiate an IMSI negotiation request.
Views
VT interface view
Default command level
2: System level
Examples
# Configure the LNS side to initiate an IMSI negotiation request.
<Sysname> system-view
[Sysname] interface virtual-template 1
[Sysname-Virtual-Template1] ppp lcp imsi request
ppp lcp imsi string
Use ppp lcp imsi string to configure IMSI information for the client.
Use undo ppp lcp imsi string to remove IMSI information from the client.
Syntax
ppp lcp imsi string imsi-info
undo ppp lcp imsi string
Default
IMSI information is automatically obtained from the client.
Views
VT interface view
Default command level
2: System level
Parameters
string imsi-info: Configures IMSI information for the client, a case-sensitive string of 1 to 31 characters.
Examples
# Configure IMSI information as imsi1 for the client.
<Sysname> system-view
[Sysname] interface virtual-template 1
[Sysname-Virtual-Template1]ppp lcp imsi string imsi1
ppp lcp sn accept
Use ppp lcp sn accept to configure the client side to accept LNS-initiated serial number (SN) negotiation
requests.
89
Use undo ppp lcp sn accept to restore the default.
Syntax
ppp lcp sn accept
undo ppp lcp sn accept
Default
The client side rejects LNS-initiated SN negotiation requests.
Views
VT interface view
Default command level
2: System level
Examples
# Configure the client side to accept LNS-initiated SN negotiation requests.
<Sysname> system-view
[Sysname] interface virtual-template 1
[Sysname-Virtual-Template1] ppp lcp sn accept
ppp lcp sn request
Use ppp lcp sn request to configure the LNS side to initiate an SN negotiation request.
Use undo ppp lcp sn request to restore the default.
Syntax
ppp lcp imsi request
undo ppp lcp imsi request
Default
The LNS side does not initiate an SN negotiation request.
Views
VT interface view
Default command level
2: System level
Examples
# Configure the LNS side to initiate an SN negotiation request.
<Sysname> system-view
[Sysname] interface virtual-template 1
[Sysname-Virtual-Template1] ppp lcp sn request
ppp lcp sn string
Use ppp lcp sn string to configure SN information for the client.
Use undo ppp lcp sn string to remove SN information from the client.
90
Syntax
ppp lcp sn string sn-info
undo ppp lcp sn string
Default
SN information is automatically obtained from the client.
Views
VT interface view
Default command level
2: System level
Parameters
string sn-info: Configures SN information for the client, a case-sensitive string of 1 to 31 characters.
Examples
# Configure SN information as sn1 for the client.
<Sysname> system-view
[Sysname] interface virtual-template 1
[Sysname-Virtual-Template1]ppp lcp sn string sn1
ppp user accept-format imsi-sn split
Use ppp user accept-format imsi-sn split to configure a separator for splitting the peer username used for
authentication.
Use undo ppp user accept-format to restore the default.
Syntax
ppp user accept-format imsi-sn split splitchart
undo ppp user accept-format
Default
No separator is configured.
Views
VT interface view
Default command level
2: System level
Parameters
splitchart: Specifies a separator for splitting the peer username used for authentication. The separator is
one character in length and can be a letter, number, or signs such as percent sign (%), pound sign (#),
and at sign (@).
Usage guidelines
If IMSI/SN information fails to be negotiated, the split IMSI/SN information is used.
Examples
# Configure the separator for splitting the peer username as #.
91
<Sysname> system-view
[Sysname] interface virtual-template 1
[Sysname-Virtual-Template1]ppp user accept-format imsi-sn split #
ppp user attach-format imsi-sn split
Use ppp user attach-format imsi-sn split to configure a separator for the username sent for authentication
during negotiation.
Use undo ppp user attach-format to remove the configured separator.
Syntax
ppp user attach-format imsi-sn split splitchart
undo ppp user attach-format
Default
No separator is configured.
Views
VT interface view
Default command level
2: System level
Parameters
splitchart: Specifies a separator for the username sent for authentication during negotiation. The
separator is one character in length and can be a letter, number, or signs such as percent sign (%),
pound sign (#), and at sign (@). For example, if you set splitchart to @, the username is sent in the format
of imsiinfo@sninfo@username.
Examples
# Configure the separator for the username as imsiinfo#sninfo#username.
<Sysname> system-view
[Sysname] interface virtual-template 1
[Sysname-Virtual-Template1]ppp user attach-format imsi-sn split #
ppp user replace
Use ppp user replace to replace the username with IMSI or SN information for authentication during
negotiation.
Use undo ppp user replace imsi to remove the replacement.
Syntax
ppp user replace { imsi | sn }
undo ppp user replace imsi
Default
The username is used for authentication.
Views
VT interface view
92
Default command level
2: System level
Examples
# Replace the username with IMSI for authentication during negotiation.
<Sysname> system-view
[Sysname] interface virtual-template 1
[Sysname-Virtual-Template1] ppp user replace imsi
reset l2tp tunnel
Use reset l2tp tunnel to disconnect tunnels and all sessions of the tunnels.
Syntax
reset l2tp tunnel { id tunnel-id | name remote-name }
Views
User view
Default command level
2: System level
Parameters
id tunnel-id: Specifies a tunnel by its local ID in the range of 1 to 18000.
name remote-name: Specifies tunnels by the tunnel name at the remote end, a case-sensitive string of 1
to 30 characters.
Usage guidelines
If you specify a tunnel name, all tunnels with the name will be disconnected. If no tunnel with the name
exists, nothing happens.
If you specify a tunnel ID, only the tunnel with the ID is disconnected.
A tunnel disconnected by force can be re-established when a client makes a call.
Examples
# Disconnect all tunnels with the remote name of aaa.
<Sysname> reset l2tp tunnel name aaa
Related commands
display l2tp tunnel
start l2tp
Use start l2tp to enable the device (as an LAC) to initiate tunneling requests to the specified IP addresses
for the specified VPN users.
Use undo start to remove the configuration.
Syntax
start l2tp { ip ip-address }&<1-5> { domain domain-name | fullusername user-name }
undo start
93
Views
L2TP group view
Default command level
2: System level
Parameters
{ ip ip-address }&<1-5>: Specifies the IP addresses of the tunnel peers (LNSs). &<1-5> means that you
can specify up to five IP addresses.
domain domain-name: Specifies the user domain that triggers the device to initiate a tunneling request
to the tunnel peer. The domain-name argument is the name of a user domain, a case-insensitive string of
1 to 30 characters.
fullusername user-name: Specifies the fully qualified user name that triggers the device to initiate a
tunneling request to the tunnel peer. The user-name argument is the fully qualified name of a user, a
case-sensitive string of 1 to 32 characters.
Usage guidelines
The start l2tp command is only available for LACs.
An LAC can initiate tunneling requests for users in a specific domain. For example, if the domain name
of a company is aabbcc.net, users with such a domain name are considered VPN users.
To specify a single VPN user, provide the fully qualified name of the user.
When an LAC detects a VPN user, it initiates an L2TP tunneling request to LNSs one by one in their
configuration order until it receives the acknowledgement of an LNS, which is considered the tunnel peer.
Examples
# Configure the device to initiate L2TP tunneling requests to LNS 202.1.1.1 for users in domain
aabbcc.net.
<Sysname> system-view
[Sysname] l2tp-group 1
[Sysname-l2tp1] start l2tp ip 202.1.1.1 domain aabbcc.net
tunnel authentication
Use tunnel authentication to enable the L2TP tunnel authentication function.
Use undo tunnel authentication to disable the L2TP tunnel authentication function.
Syntax
tunnel authentication
undo tunnel authentication
Default
L2TP tunnel authentication is enabled.
Views
L2TP group view
Default command level
2: System level
94
Usage guidelines
Generally, authentication is required at both ends of a tunnel for the sake of security. However, you can
disable the authentication when you check network connectivity or you have to receive tunneling requests
from unknown tunnel peers.
Examples
# Disable L2TP tunnel authentication.
<Sysname> system-view
[Sysname] l2tp-group 1
[Sysname-l2tp1] undo tunnel authentication
tunnel avp-hidden
Use tunnel avp-hidden to specify to transfer AVP data in hidden mode.
Use undo tunnel avp-hidden to restore the default.
Syntax
tunnel avp-hidden
undo tunnel avp-hidden
Default
AVP data is transferred over the tunnel in plain text mode.
Views
L2TP group view
Default command level
2: System level
Usage guidelines
The tunnel avp-hidden command is available for only LACs.
Examples
# Transfer AVP data in hidden mode.
<Sysname> system-view
[Sysname] l2tp-group 1
[Sysname-l2tp1] tunnel avp-hidden
tunnel flow-control
Use tunnel flow-control to enable the L2TP tunnel flow control function.
Use undo tunnel flow-control to disable the L2TP tunnel flow control function.
Syntax
tunnel flow-control
undo tunnel flow-control
Default
The L2TP tunnel flow control function is disabled.
95
Views
L2TP group view
Default command level
2: System level
Examples
# Enable the L2TP tunnel flow control function.
<Sysname> system-view
[Sysname] l2tp-group 1
[Sysname-l2tp1] tunnel flow-control
tunnel name
Use tunnel name to specify the name of a tunnel at the local end.
Use undo tunnel name to restore the default.
Syntax
tunnel name name
undo tunnel name
Default
A tunnel takes the system name of the device as its name at the local end.
Views
L2TP group view
Default command level
2: System level
Parameters
name: Specifies the name for the tunnel at the local end, a case-sensitive string of 1 to 30 characters.
Examples
# Specify the local name for a tunnel as itsme.
<Sysname> system-view
[Sysname] l2tp-group 1
[Sysname-l2tp1] tunnel name itsme
Related commands
sysname (Fundamentals Command Reference)
tunnel password
Use tunnel password to specify the key for tunnel authentication.
Use undo tunnel password to remove the configuration.
Syntax
tunnel password { cipher | simple } password
96
undo tunnel password
Default
The key for tunnel authentication is null.
Views
L2TP group view
Default command level
2: System level
Parameters
cipher: Sets a ciphertext key.
simple: Sets a plaintext key.
password: Specifies the key for tunnel authentication. This argument is case sensitive. If simple is
specified, it must be a string of 1 to 53 characters. If cipher is specified, it must be a ciphertext string of
1 to 16 characters.
Usage guidelines
For security purposes, all keys, including keys configured in plain text, are saved in cipher text to the
configuration file.
Examples
# Set the key for tunnel authentication to a plaintext key yougotit.
<Sysname> system-view
[Sysname] l2tp-group 1
[Sysname-l2tp1] tunnel password simple yougotit
tunnel timer hello
Use tunnel timer hello to set the hello interval in sending hello packets in a tunnel.
Use undo tunnel timer hello to restore the default.
Syntax
tunnel timer hello hello-interval
undo tunnel timer hello
Default
The interval is 60 seconds.
Views
L2TP group view
Default command level
2: System level
Parameters
hello-interval: Specifies the interval at which the LAC or the LNS sends Hello packets when receiving no
packets. The value range is 60 to 1000 seconds.
97
Usage guidelines
You can set different hello intervals for the LNS and LAC.
Examples
# Set the hello interval to 99 seconds.
<Sysname> system-view
[Sysname] l2tp-group 1
[Sysname-l2tp1] tunnel timer hello 99
98
HDLC configuration commands
default
Use default to restore the default settings for an interface.
Syntax
default
Views
HDLC interface view
Default command level
2: System level
Usage guidelines
CAUTION:
The default command might interrupt ongoing network services. Make sure you are fully aware of the
impacts of this command when you execute it on a live network.
This command might fail to restore the default settings for some commands for reasons such as command
dependencies or system restrictions. Use the display this command in interface view to identify these
commands, and then use their undo forms or follow the command reference to individually restore their
default settings. If your restoration attempt still fails, follow the error message instructions to resolve the
problem.
Examples
# Restore the default settings of interface Serial 3/1/1.
<Sysname> system-view
[Sysname] interface Serial3/1/1
[Sysname-Serial3/1/1] default
This command will restore the default settings. Continue? [Y/N]:y
link-protocol hdlc
Use link-protocol hdlc to enable HDLC encapsulation on an interface.
Syntax
link-protocol hdlc
Default
PPP encapsulation is configured on an interface.
Views
Interface view
99
Default command level
2: System level
Usage guidelines
HDLC can carry the network layer protocols, such as IP.
Related commands
timer hold
Examples
# Enable HDLC encapsulation on interface Serial 2/0/1.
<Sysname> system-view
[Sysname] interface serial 2/0/1
[Sysname-Serial2/0/1] link-protocol hdlc
timer hold
Use timer hold to set the link status polling interval on an interface.
Use undo timer hold to restore the default.
Syntax
timer hold seconds
undo timer hold
Default
The default link status polling interval is 10 seconds on an interface.
Views
Interface view
Default command level
2: System level
Parameters
seconds: Link status polling interval (in seconds), in the range 0 to 32767.
Usage guidelines
It is a good practice to set the same polling interval for the two ends of a link.
Setting the link status polling interval to zero disables link status check.
Examples
# Set the link status polling interval to 100 seconds on interface Serial 2/0/1.
<Sysname> system-view
[Sysname] interface serial 2/0/1
[Sysname-serial2/0/1] timer hold 100
100
HDLC link bundling configuration commands
bandwidth
Use bandwidth to set the intended bandwidth for a HDLC link bundle interface.
Use undo bandwidth to restore the default.
Syntax
bandwidth bandwidth-value
undo bandwidth
Views
HDLC link bundle interface view
Default command level
2: System level
Parameters
bandwidth-value: Specifies the intended bandwidth in the range of 1 to 4294967295 kbps.
Usage guidelines
You can obtain the intended bandwidth of an interface by using third-party software to query the value
of the MIB ifspeed.
The intended bandwidth of an interface is for the network management system to monitor the interface
bandwidth, and does not affect the actual bandwidth of the interface.
Examples
# Set the intended bandwidth to 1000 kbps for HDLC link bundle interface 1.
<Sysname> system-view
[Sysname] interface hdlc-bundle 1
[Sysname-Hdlc-bundle1] bandwidth 1000
bundle id
Use bundle id to assign the interface to an HDLC link bundle.
Use undo bundle id to remove the interface from an HDLC link bundle.
Syntax
bundle id bundle-id
undo bundle id
Views
Interface view
Default command level
2: System level
101
Parameters
bundle-id: Number of an HDLC link bundle.
Usage guidelines
You cannot assign interfaces configured with the following features to an HDLC link bundle: IPv4
addresses, IPv4 unnumbered, IPv6 addresses, URPF, NetStream, and IPv6 NetStream. After an interface
is assigned to an HDLC link bundle, you cannot configure any of these features on the interface.
An interface can be the member of only one HDLC link bundle. To move an interface from one HDLC link
bundle to another HDLC link bundle, remove the interface from the current HDLC link bundle first.
The link layer protocol of an interface to be assigned to an HDLC link bundle can only be HDLC. You
cannot change the link layer protocol of an HDLC link bundle member interface.
You can assign interfaces to an HDLC link bundle before you create the bundle.
Examples
# Assign POS 5/0/1 to HDLC link bundle numbered 1.
<Sysname> system-view
[Sysname] interface pos 5/0/1
[Sysname-Pos5/0/1] bundle id 1
bundle max-active links
Use bundle max-active links to limit the number of selected interfaces in an HDLC link bundle.
Use undo bundle max-active links to remove the limit.
Syntax
bundle max-active links number
undo bundle max-active links
Default
The maximum number of selected member interfaces allowed in an HDLC link bundle is not set.
Views
HDLC link bundle interface view
Default command level
2: System level
Parameters
number: Maximum number of selected member interfaces allowed in an HDLC link bundle. The value
range for this argument is 1 to 8.
Usage guidelines
The value specified using this command cannot be smaller than that specified using the bundle
min-active links command.
Use the undo bundle max-active links command together with the bundle member-priority command to
make sure that the peer interfaces of a link always have the same selected status. Your communication
will fail if one end is selected but the other end is unselected.
102
Examples
# Limit the number of selected member interfaces in HDLC link bundle 1 to 8.
<Sysname> system-view
[Sysname] interface hdlc-bundle 1
[Sysname-Hdlc-bundle1] bundle max-active links 8
Related commands
•
bundle min-active links
•
bundle member-priority
bundle member-priority
Use bundle member-priority to set the bundling priority for an HDLC-enabled interface.
Use undo bundle member-priority to restore the default.
Syntax
bundle member-priority priority
undo bundle member-priority
Default
The bundling priority of an HDLC-enabled interface is 32768.
Views
Interface view
Default command level
2: System level
Parameters
priority: Bundling priority of an HDLC-enabled interface. The value range for this argument is 1 to 65535.
Usage guidelines
A higher priority value means a lower bundling priority.
Examples
# Set the bundling priority of HDLC-enabled interface POS 5/0/1 to 1.
<Sysname> system-view
[Sysname] interface pos 5/0/1
[Sysname-Pos5/0/1] bundle member-priority 1
bundle min-active bandwidth
Use bundle min-active bandwidth to set the minimum amount of bandwidth required to bring up the
HDLC link bundle.
Use undo bundle min-active bandwidth to remove the limit.
Syntax
bundle min-active bandwidth bandwidth
undo bundle min-active bandwidth
103
Default
No limit is set on the minimum amount of bandwidth required to bring up an HDLC link bundle.
Views
HDLC link bundle interface view
Default command level
2: System level
Parameters
bandwidth: Minimum amount of bandwidth (in kbps) required to bring up the HDLC link bundle. The
value range for this argument is 64 to 1342177280.
Examples
# Set the minimum amount of bandwidth required to bring up HDLC link bundle 1 to 1000 kbps.
<Sysname> system-view
[Sysname] interface hdlc-bundle 1
[Sysname-Hdlc-bundle1] bundle min-active bandwidth 1000
bundle min-active links
Use bundle min-active links to set the minimum number of selected interfaces required to bring up the
HDLC link bundle.
Use undo bundle min-active links to remove the configuration.
Syntax
bundle min-active links number
undo bundle min-active links
Default
No limit is set on the minimum number of selected interfaces required to bring up an HDLC link bundle.
Views
HDLC link bundle interface view
Default command level
2: System level
Parameters
number: Number of selected member interfaces required to bring up the HDLC link bundle. The value
range for this argument is 1 to 8.
Usage guidelines
The value specified using this command cannot be bigger than that specified using the bundle
max-active links command.
Examples
# Set the number of selected member interfaces required to bring up HDLC link bundle 1 to 5.
<Sysname> system-view
[Sysname] interface hdlc-bundle 1
[Sysname-Hdlc-bundle1] bundle min-active links 5
104
Related commands
bundle max-active links
default
Use default to restore the default settings for an HDLC link bundle interface.
Syntax
default
Views
HDLC bundle interface view
Default command level
2: System level
Usage guidelines
CAUTION:
The default command might interrupt ongoing network services. Make sure you are fully aware of the
impacts of this command when you execute it on a live network.
This command might fail to restore the default settings for some commands for reasons such as command
dependencies or system restrictions. Use the display this command in interface view to identify these
commands, and then use their undo forms or follow the command reference to individually restore their
default settings. If your restoration attempt still fails, follow the error message instructions to resolve the
problem.
Examples
# Restore the default settings for HDLC link bundle interface 1.
<Sysname> system-view
[Sysname] interface hdlc-bundle 1
[Sysname-Hdlc-bundle1] default
This command will restore the default settings. Continue? [Y/N]:y
description
Use description to configure the description of an interface.
Use undo description to restore the default.
Syntax
description text
undo description
Default
The description of an interface is the interface name followed by the Interface string, for example,
Hdlc-bundle1 Interface.
Views
HDLC link bundle interface view
105
Default command level
2: System level
Parameters
text: Description of an interface, a case-sensitive string of 1 to 240 characters.
Examples
# Configure the description of HDLC link bundle interface 1 as hdlc-bundle interface.
<Sysname> system-view
[Sysname] interface hdlc-bundle 1
[Sysname-Hdlc-bundle1] description hdlc-bundle interface
display bundle member hdlc-bundle
Use display bundle member hdlc-bundle to display information about a specific HDLC link bundle.
Syntax
display bundle member hdlc-bundle [ bundle-id ] [ slot slot-number ] [ | { begin | exclude | include }
regular-expression ]
Views
Any view
Default command level
1: Monitor level
Parameters
bundle-id: Number of an HDLC link bundle.
slot slot-number: Specifies the slot number of an HDLC link bundle interface.
|: Filters command output by specifying a regular expression. For more information about regular
expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Usage guidelines
The command output includes the following information:
•
Basic information about the HDLC link bundle, including the limit on the number of selected member
interfaces in the HDLC link bundle, the number of selected member interfaces required to bring up
the HDLC link bundle, the minimum amount of bandwidth required to bring up the HDLC link bundle,
the number of selected member interfaces, and the total bandwidth of all the selected member
interfaces
•
The slot number of the HDLC link bundle interface
•
Information about individual member interfaces, including the name, state, bandwidth, and
bundling priority of each member interface
106
If you specify neither bundle-id nor slot-number, this command displays information about all HDLC link
bundle interfaces on the active main control board.
If you specify bundle-id but not slot-number, this command displays information about the specified
HDLC link bundle interface on the active main control board.
If you specify slot-number but not bundle-id, this command displays information about all HDLC link
bundle interfaces on the standby main control board or the specified interface board.
If you specify both slot-number and bundle-id, this command displays information for the specified HDLC
link bundle interface on the standby main control board or the specified interface board.
The HDLC link bundling information displayed for the active main control board includes information
about the unselected member interfaces, limit on the number of selected member interfaces in the HDLC
link bundle, number of selected member interfaces required to bring up the HDLC link bundle, and
minimum amount of bandwidth required to bring up the HDLC link bundle; the information displayed for
the standby main control board or any other interface board does not include such information.
Examples
# Display information about HDLC link bundle interface 1 on the active main control board.
<Sysname> display bundle member hdlc-bundle 1
bundle is hdlc-bundle1, slot 0
max-active links:2, min-active links:2, min-active bandwidth:1000000 kbps
Selected members: 2, total bandwidth: 1244160 kbps
State: S -- Selected, R -- Ready, N -- Negotiated, I -- Initial
Member
State
Bandwidth(kbps)
Priority
Pos5/0/1
S
622080
1
Pos5/0/2
S
622080
2
Pos5/0/4
R
622080
32768
Pos5/0/3
R
622080
65535
Pos5/0/5
N
155520
32768
Pos5/0/6
N
155520
32768
# Display information about HDLC link bundle interface 1 on interface board 1.
<Sysname> display bundle member hdlc-bundle 1 slot 1
bundle is hdlc-bundle1, slot 1
Selected members: 2, total bandwidth: 1244160 kbps
Member
State
Bandwidth(kbps)
Priority
Pos5/0/1
S
622080
1
Pos5/0/2
S
622080
2
Table 17 Command output
Field
Description
bundle
Name of the HDLC link bundle.
slot
Slot number of the interface card for which HDLC link bundling information is
displayed.
max-active links
Limit on the number of selected member interfaces in the HDLC link bundle.
This field will not be displayed if you have not limited the number of selected
member interfaces in the HDLC link bundle.
min-active links
Number of selected member interfaces required to bring up the HDLC link
bundle. This field will not be displayed if you have not set the number of
selected member interfaces required to bring up the HDLC link bundle.
107
Field
Description
min-active bandwidth
Minimum amount of bandwidth required to bring up the HDLC link bundle.
This field will not be displayed if you have not set the minimum amount of
bandwidth required to bring up the HDLC link bundle.
Selected members
Current number of selected member interfaces.
total bandwidth
Total bandwidth of all the selected member interfaces in the HDLC link
bundle.
Member
Name of a member interface.
State of a member interface:
• S—Selected (On an interface board, only information about member
State: S -- Selected, R -- Ready,
N -- Negotiated, I -- Initial
interfaces in this state will be displayed).
• R—Ready.
• N—Negotiated.
• I—Initial.
Bandwidth(kbps)
Bandwidth (in kbps) of a member interface.
Priority
Bundling priority of a member interface.
display interface hdlc-bundle
Use display interface hdlc-bundle to display information about an HDLC link bundle interface.
Syntax
display interface [ hdlc-bundle ] [ brief [ down ] ] [ | { begin | exclude | include } regular-expression ]
Views
Any view
Default command level
1: Monitor level
Parameters
bundle-id: Number of an HDLC link bundle. The value range is the same as that specified in the interface
hdlc-bundle command.
brief: Displays brief interface information. If you do not specify this keyword, this command displays
detailed interface information.
down: Displays information about interfaces in the DOWN state and the link down causes. If you do not
specify this keyword, this command displays information about interfaces in all states.
|: Filters command output by specifying a regular expression. For more information about regular
expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
108
Usage guidelines
If you do not specify the hdlc-bundle keyword, this command displays information about all interfaces.
If you specify the hdlc-bundle keyword without any HDLC link bundle interface number, this command
displays information about all HDLC link bundle interfaces.
Examples
# Display detailed information about HDLC link bundle interface 1.
<Sysname> display interface hdlc-bundle 1
Hdlc-bundle1 current state: UP
Line protocol current state: UP
Description: Hdlc-bundle1 Interface
The Maximum Transmit Unit is 1500
Internet Address is 1.1.1.2/24 Primary
Link layer protocol is HDLC
Physical is HDLC-BUNDLE, baudrate: 155520 kbps
Output queue : (Urgent queuing : Size/Length/Discards)
0/100/0
Output queue : (Protocol queuing : Size/Length/Discards)
Output queue : (FIFO queuing : Size/Length/Discards)
Last clearing of counters:
0/500/0
0/75/0
Never
Last 300 seconds input rate: 0 bytes/sec, 0 bits/sec, 0 packets/sec
Last 300 seconds output rate: 0 bytes/sec, 0 bits/sec, 0 packets/sec
0 packets input, 0 bytes, 0 drops
0 packets output, 0 bytes, 0 drops
# Display brief information about HDLC link bundle interface 1.
<Sysname> display interface hdlc-bundle 1 brief
The brief information of interface(s) under route mode:
Link: ADM - administratively down; Stby - standby
Protocol: (s) - spoofing
Interface
Link Protocol Main IP
HBDL1
UP
UP
Description
--
# Display information about all HDLC link bundle interfaces in the DOWN state.
<Sysname> display interface hdlc-bundle brief down
The brief information of interface(s) under route mode:
Link: ADM - administratively down; Stby - standby
Interface
Link Cause
HBDL2
DOWN Not connected
Table 18 Command output
Field
Description
Physical state of the HDLC link bundle interface:
• DOWN (Administratively)—The interface is shut
down using the shutdown command.
HDLC-bundle1 current state
• DOWN—The interface is administratively up but
physically down.
• UP—The interface is up both administratively and
physically.
109
Field
Description
Link layer protocol state of the HDLC link bundle
interface:
• DOWN—The link layer protocol of the interface is
Line protocol current state
down, indicating that the HDLC link bundle
probably contains no selected member interface.
• UP—The link layer protocol of the interface is up.
Description
Description of the HDLC link bundle interface.
The Maximum Transmit Unit
MTU on the HDLC link bundle interface.
Internet Address
IP address of the HDLC link bundle interface.
Link layer protocol
Link layer protocol encapsulation on the HDLC link
bundle interface.
Physical is HDLC-BUNDLE
The physical type of the HDLC link bundle interface is
HDLC bundle.
baudrate
Baudrate of the HDLC link bundle interface.
Traffic statistics for each output queue on the interface,
including the number of packets in the queue (the
queue size), the maximum number of packets that the
queue can hold (queue length), and the number of
dropped packets.
Output queue : (Urgent queuing :
Size/Length/Discards) 0/100/0
Output queue : (Protocol queuing :
Size/Length/Discards) 0/500/0
Output queue : (FIFO queuing :
Size/Length/Discards) 0/75/0
In the sample output, the output queues on the interface
include an urgent queue, a protocol queue, and a
FIFO queue.
Last clearing of counters
Last time when the statistics for the interface were
cleared. Never indicates that the statistics for the
interface were never cleared.
Last 300 seconds input/output rate
Average incoming/outgoing traffic rate in
Bps/bps/pps on the interface in the last 300 seconds.
packets input/output, bytes, drops
Incoming and outgoing traffic size in packets/bytes
and the number of dropped incoming/outgoing
packets on the interface.
The brief information of interface(s) under route mode
Brief information about Layer 3 interfaces.
Link status:
• ADM—The interface has been administratively shut
Link: ADM - administratively down; Stby - standby
down. To recover its physical state, perform the
undo shutdown command.
• Stby—The interface is operating as a backup
interface. To see the primary interface, use the
display standby state command (High Availability
Command Reference).
Protocol: (s) - spoofing
If the network layer protocol state of an interface is
shown as UP, but its link is an on-demand link or not
present at all, the protocol attribute includes the
spoofing flag (an s in parentheses).
Interface
Abbreviated interface name.
110
Field
Description
Physical link state of the interface:
• UP—The link is up.
• ADM—The link has been administratively shut
Link
down. To recover its physical state, perform the
undo shutdown command.
Protocol
Protocol connection state of the interface.
Main IP
Main IP address of the interface.
Description
Description of the interface.
Cause
Cause of a DOWN physical link. If the port has been
shut down with the shutdown command, this field
displays Administratively. To restore the physical state
of the interface, use the undo shutdown command.
interface hdlc-bundle
Use interface hdlc-bundle to create an HDLC link bundle interface and enter its view. If the HDLC link
bundle interface already exists, you enter HDLC link bundle interface view directly.
Use undo interface hdlc-bundle to remove an HDLC link bundle interface.
Syntax
interface hdlc-bundle bundle-id
undo interface hdlc-bundle bundle-id
Views
System view
Default command level
2: System level
Parameters
bundle-id: Number of an HDLC link bundle interface.
The following matrix shows the value range for the bundle-id argument:
6602
HSR6602
6604/6608/6616
• For the router with the MCP MPU installed: 1 to 12
• For the router with the RPE-X1 or RSE-X1 MPU installed:
1 to 6
1 to 6
{
1 to 12 on 6604
{
1 to 24 on 6608
{
1 to 48 on 6616
Examples
# Create HDLC link bundle interface 1 and enter its view.
<Sysname> system-view
[Sysname] interface hdlc-bundle 1
[Sysname-Hdlc-bundle1]
111
mtu
Use mtu to set the MTU size for an HDLC link bundle interface.
Use undo mtu to restore the default.
Syntax
mtu size
undo mtu
Default
The MTU size of an HDLC link bundle interface is 1500 bytes.
Views
HDLC link bundle interface view
Default command level
2: System level
Parameters
size: Specifies the MTU in bytes on an HDLC link bundle interface.
The following matrix shows the value ranges for the size argument:
6602
HSR6602
6604/6608/6616
46 to 2000
46 to 9600
46 to 9600
Usage guidelines
To forward traffic correctly, make sure the largest MTU supported by the member interface is no less than
the MTU size configured for the HDLC link bundle interface.
Examples
# Set the MTU size of HDLC link bundle interface 1 to 1430 bytes.
<Sysname> system-view
[Sysname] interface hdlc-bundle 1
[Sysname-Hdlc-bundle1] mtu 1430
reset counters interface
Use reset counters interface to clear the statistics of an HDLC link bundle interface.
Syntax
reset counters interface [ hdlc-bundle [ bundle-id ] ]
Views
User view
Default command level
2: System level
112
Parameters
bundle-id: ID of an HDLC link bundle interface.
Usage guidelines
Before collecting traffic statistics within a specific period of time on an interface, you must clear the
existing statistics.
If you do not specify hdlc-bundle, this command clears the statistics of all interfaces.
If you specify hdlc-bundle but not bundle-id, this command clears the statistics of all HDLC link bundle
interfaces.
If you specify both hdlc-bundle and bundle-id, this command clears the statistics of the specified HDLC
link bundle interface.
Examples
# Clear the statistics of HDLC link bundle interface HDLC-bundle 1.
<Sysname> reset counters interface hdlc-bundle 1
service
Use service to specify a card to process or forward traffic for an HDLC link bundle interface.
Use undo service to restore the default.
Syntax
service slot slot-number
undo service slot
Default
The default varies by whether all member interfaces of the HDLC link bundle interface are on the same
card as follows:
•
If all member interfaces of the HDLC link bundle interface are on the same card, the card processes
or forwards traffic for the bundle interface.
•
If the member interfaces are on different cards, the card that has the first selected member interface
on the member list processes or forwards traffic for the bundle interface. For the member list of an
HDLC link bundle interface, perform the display bundle member hdlc-bundle command.
Views
HDLC link bundle interface view
Default command level
2: System level
Parameters
slot slot-number: Specifies a card by its slot number.
Usage guidelines
After a card is specified to handle traffic for an HDLC link bundle interface, all traffic that arrives at the
bundle interface will be processed or forwarded by the card regardless of whether the receiving
interface is located on the card or not. If the card specified by this command is removed, traffic
forwarding failure results for the HDLC link bundle interface. After the card is re-installed, traffic
forwarding is restored.
113
You can use this function to achieve the following purposes:
•
Alleviate the processing pressure on a card and make efficient use of processing capabilities of
service cards.
•
Avoid the change of processing card caused by the selected state changes of member interfaces
that are located on different cards.
The following matrix shows the command and router compatibility:
Command
6602
HSR6602
6604/6608/6616
service
No
Yes
Yes
Examples
# Specify the card in slot 2 to process or forward traffic for interface HDLC-bundle 1.
<Sysname> system-view
[Sysname] interface hdlc-bundle 1
[Sysname-Hdlc-bundle1] service slot 2
shutdown
Use shutdown to shut down an HDLC link bundle interface.
Use undo shutdown to bring up an HDLC link bundle interface.
Syntax
shutdown
undo shutdown
Default
An HDLC link bundle interface is up.
Views
HDLC link bundle interface view
Default command level
2: System level
Usage guidelines
Enabling/disabling an HDLC link bundle interface does not enable or disable any member interface in
the HDLC link bundle, but the operation can affect the selected state of the member interfaces. When an
HDLC link bundle interface is disabled, no member interface can be in the selected state to forward
traffic.
Examples
# Shut down HDLC link bundle interface 1.
<Sysname> system-view
[Sysname] interface hdlc-bundle 1
[Sysname-Hdlc-bundle1] shutdown
114
Frame relay configuration commands
Basic frame relay configuration commands
display fr dlci-switch
Use display fr dlci-switch to display the frame relay (FR) switching configuration.
Syntax
display fr dlci-switch [ interface interface-type interface-number ] [ | { begin | exclude | include }
regular-expression ]
Views
Any view
Default command level
1: Monitor level
Parameters
interface interface-type interface-number: Specifies an interface by its type and number.
|: Filters command output by specifying a regular expression. For more information about regular
expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Usage guidelines
The interface identified by interface-type interface-number can only be a main interface. If no interface
is specified, this command displays the FR switching configuration about all main interfaces.
Examples
# Display the information of the FR switching configuration.
<Sysname> display fr dlci-switch
Frame relay switch statistics
Status
Interface(Dlci)
<---------->
Inactive Serial2/0/1(100)
Interface(Dlci)
Serial2/0/0(300)
Table 19 Command output
Field
Description
Frame relay switch statistics
FR switching statistics.
Status
Connection status.
115
Field
Description
Interface(Dlci) <----------> Interface(Dlci)
Input interface and its DLCI, and output interface and
its DLCI.
display fr inarp-info
Use display fr inarp-info to display statistics about frame relay InARP packets, including requests and
replies, for the specified or all main interfaces.
Syntax
display fr inarp-info [ interface interface-type interface-number ] [ | { begin | exclude | include }
regular-expression ]
Views
Any view
Default command level
1: Monitor level
Parameters
interface interface-type interface-number: Specifies an interface by its type and number. It can only be a
main interface.
|: Filters command output by specifying a regular expression. For more information about regular
expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Usage guidelines
You can use this command to diagnose whether InARP is operating correctly.
Examples
# Display the statistics for frame relay InARP packets.
<Sysname> display fr inarp-info
Frame relay InverseARP statistics for interface Serial2/0/0 (DTE)
In ARP request
0
Out ARP reply
Out ARP request
0
In ARP reply
1
1
Table 20 Command output
Field
Description
Frame relay InverseARP statistics for interface
Serial2/0/0 (DTE)
Display the statistics on frame relay InARP packets for
the interface.
In ARP request
Received ARP requests.
Out ARP reply
Sent ARP replies.
Out ARP request
Sent ARP requests.
116
Field
Description
In ARP reply
Received ARP replies.
Related commands
fr inarp
display fr interface
Use display fr interface to display information about the specified or all frame relay interfaces.
Syntax
display fr interface [ interface-type { interface-number | interface-number.subnumber } ] [ | { begin |
exclude | include } regular-expression ]
Views
Any view
Default command level
1: Monitor level
Parameters
interface-type { interface-number | interface-number.subnumber }: Specifies an interface by its type and
number. The interface-number argument is a main interface number. The subnumber argument is a
subinterface number, in the range 0 to 1023.
|: Filters command output by specifying a regular expression. For more information about regular
expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Usage guidelines
You can specify a main interface or a subinterface by providing the interface-type { interface-number |
interface-number.subnumber } argument combination.
Examples
# Display information about all frame relay interfaces.
<Sysname> display fr interface
Serial2/0/0, multi-point, protocol up
Serial2/0/0.1, point-to-point, protocol down
Table 21 Command output
Field
Description
Serial2/0/0, multi-point, protocol up
Frame relay interface, and its type and link layer state.
Serial2/0/0.1, point-to-point, protocol down
Subinterface, and its type and link layer state.
117
display fr lmi-info
Use display fr lmi-info to display the LMI frame statistics of an interface. If no interface is specified, the
LMI frame statistics for all main interfaces are displayed.
Syntax
display fr lmi-info [ interface interface-type interface-number ] [ | { begin | exclude | include }
regular-expression ]
Views
Any view
Default command level
1: Monitor level
Parameters
interface interface-type interface-number: Specifies an interface by its type and number. The specified
interface must be a main interface.
|: Filters command output by specifying a regular expression. For more information about regular
expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Usage guidelines
The LMI protocol sends Status-Enquiry messages and Status messages for maintaining frame relay links.
The output from the command helps you diagnose faults.
Examples
# Display the statistics about LMI frames.
<Sysname> display fr lmi-info
Frame relay LMI statistics for interface Serial2/0/1 (DTE, Q933)
T391DTE = 10 (hold timer 10)
N391DTE = 6, N392DTE = 3, N393DTE = 4
out status enquiry = 96, in status = 85
status timeout = 3, discarded messages = 3
Frame relay LMI statistics for interface Serial2/0/0 (DCE, Q933)
T392DCE = 15, N392DCE = 3, N393DCE = 4
in status enquiry = 0, out status = 0
status enquiry timeout = 0, discarded messages = 0
Table 22 Command output
Field
Description
Frame relay LMI statistics for interface Serial2/0/1
(DTE, Q933)
Terminal type and LMI protocol type for the frame
relay interface.
T391DTE = 10 (hold timer 10)
DTE-side T.391 setting.
118
Field
Description
N391DTE = 6, N392DTE = 3, N393DTE = 4
DTE-side N.391, N.392, and N.393 settings.
out status enquiry = 96, in status = 85
Number of the Status-Enquiry packets sent out through
the interface and number of the Status messages
received through the interface.
status timeout = 3, discarded messages = 3
Number of the Status messages that are timed out and
number of the discarded messages.
Frame relay LMI statistics for interface Serial2/0/0
(DCE, Q933)
Serial2/0/0 (a frame relay interface) is a DCE
interface conformed with the standard described in
Q.933 appendix A.
T392DCE = 15, N392DCE = 3, N393DCE = 4
T392, N392, and N393 parameters of the DCE
interface.
in status enquiry = 0, out status = 0
Number of the Status-Enquiry messages received
through the interface and number of the Status
messages sent out of the interface.
status enquiry timeout = 0, discarded messages = 0
Number of the Status-Enquiry messages that are timed
out and number of the discarded messages.
display fr map-info
Use display fr map-info to display all frame relay address mappings or the one for the specified
interface.
Syntax
display fr map-info [ interface interface-type { interface-number | interface-number.subnumber } ] [ |
{ begin | exclude | include } regular-expression ]
Views
Any view
Default command level
1: Monitor level
Parameters
interface interface-type { interface-number | interface-number.subnumber }: Specifies an interface by its
type and number. It can be a main or subinterface. The interface-number argument is a main interface
number. The subnumber argument is a subinterface number, in the range 0 to 1023.
|: Filters command output by specifying a regular expression. For more information about regular
expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
119
Usage guidelines
This command displays whether the static address map entries are correct and whether dynamic address
mapping operates correctly.
Examples
# Display the frame relay address map table.
<Sysname> display fr map-info
Map Statistics for interface Serial2/0/0 (DTE)
DLCI = 100, IP INARP 100.100.1.1, Serial2/0/0
create time = 2002/0/10/21 14:48:44, status = ACTIVE
encapsulation = ietf, vlink = 14, broadcast
DLCI = 200, IP INARP 100.100.1.1, Serial2/0/0
create time = 2002/10/21 14:34:42, status = ACTIVE
encapsulation = ietf, vlink = 0, broadcast
DLCI = 300, IP 1.1.1.1, Serial2/0/0
create time = 2002/10/21 15:03:35, status = ACTIVE
encapsulation = ietf, vlink = 15
Table 23 Command output
Field
Description
Map Statistics for interface Serial2/0/0 (DTE)
Display the frame relay address map. The interface
operates in DTE mode.
DLCI = 100, IP InARP 100.100.1.1, Serial2/0/0
The PVC with DLCI 100 is mapped to remote IP
address 100.100.1.1 through InARP. The PVC is
configured on the interface Serial2/0/0. If the
keyword InARP is not provided, you must manually
configure established address mapping.
create time = 2002/0/10/21 14:48:44
Time and date when the map entry was created.
status = ACTIVE
State of the map entry.
encapsulation = ietf
IETF frame relay is adopted for Layer 2 encapsulation.
vlink
Value of the map entry in the route-to-frame relay
address mapping table. The value of 0 indicates that
the route is invalid. When the value is not 0, the
system uses the value to look up the corresponding
map entry, and then look up the corresponding DLCI.
broadcast
Broadcasts are permitted.
Related commands
•
fr map ip
•
fr inarp
display fr pvc-info
Use display fr pvc-info to display state information on FR PVCs and statistics about data sent and
received on them.
120
Syntax
display fr pvc-info interface interface-type { interface-number | interface-number.subnumber }
[ dlci-number ] [ | { begin | exclude | include } regular-expression ]
Views
Any view
Default command level
1: Monitor level
Parameters
interface interface-type { interface-number | interface-number.subnumber }: Specifies an interface by its
type and number. It can be a main or subinterface. The interface-number argument is a main interface
number. The subnumber argument is a subinterface number, in the range 0 to 1023.
dlci-number: virtual circuit number of frame relay interface. It is in the range of 16 to 1007.
|: Filters command output by specifying a regular expression. For more information about regular
expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Usage guidelines
If you use the command with no interface or DLCI specified, the displayed information covers all PVCs.
If you use the command with an interface (a main interface or subinterface) specified, the displayed
information covers only the PVCs on the interface.
If you use the command with a DLCI specified, the displayed information covers only the specified PVC.
Examples
# Display the frame relay PVC table.
<Sysname> display fr pvc-info
PVC statistics for interface Serial2/0/0 (DTE, physical UP)
DLCI = 100, USAGE = UNUSED (0000), Serial2/0/0
create time = 2000/04/01 23:55:39, status = ACTIVE
in BECN = 0, in FECN = 0
in packets = 0, in bytes = 0
out packets = 0, out bytes = 0
DLCI = 102, USAGE = LOCAL (0010), Serial2/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
121
Table 24 Command output
Field
Description
PVC statistics for interface Serial2/0/0 (DTE, physical
UP)
Display information about PVCs on the frame relay
interface Serial 2/0/0. The interface operates in DTE
mode, and is physically up.
DLCI = 100, USAGE = UNUSED (0000),
Serial2/0/0
DLCI 100 was assigned to the PVC through
negotiation of LMI with DCE end. Its state is unused,
and it belongs to interface Serial 2/0/0.
create time = 2000/04/01 23:55:39, status =
ACTIVE
Date and time creating the PVC and the state of the
PVC.
in BECN = 0, in FECN = 0
Received BECNs and FECNs.
in packets = 0, in bytes = 0
Received frames and bytes.
out packets = 0, out bytes = 0
Sent frames and bytes.
Related commands
fr dlci
display fr statistics
Use display fr statistics to display current frame relay statistics about received and sent packets for the
specified or all main interfaces.
Syntax
display fr statistics [ interface interface-type interface-number ] [ | { begin | exclude | include }
regular-expression ]
Views
Any view
Default command level
1: Monitor level
Parameters
interface interface-type interface-number: Specifies an interface by its type and number. The specified
interface must be a main interface.
|: Filters command output by specifying a regular expression. For more information about regular
expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Usage guidelines
If no interface is specified, the frame relay statistics for all interfaces are displayed.
You can use this command to check frame relay traffic statistics and diagnose problems.
122
Examples
# Display frame relay statistics about received and sent packets.
<Sysname> display fr statistics
Frame relay packet statistics for interface Serial2/0/0 (DTE)
in packets = 84, in bytes = 1333
out packets = 92, out bytes = 1217
discarded in packets = 13, discarded out packets = 0
Frame relay packet statistics for interface Serial2/0/0.1 (DCE)
in packets = 0, in bytes = 0
out packets = 0, out bytes = 0
discarded in packets = 0, discarded out packets = 0
Table 25 Command output
Field
Description
Frame relay packet statistics for interface Serial2/0/0
(DTE)
Display frame relay packet statistics for the interface
Serial 2/0/0, which operates as a DTE.
in packets = 84, in bytes = 1333
Received packets and bytes.
out packets = 92, out bytes = 1217
Sent packets and bytes.
discarded in packets = 13, discarded out packets = 0
Dropped incoming/outgoing packets.
fr dlci
Use fr dlci to configure a virtual circuit on a frame relay interface and enter the view of the virtual circuit.
Use undo fr dlci to remove a virtual circuit. If no virtual circuit is specified, all virtual circuits on the
interface are removed.
Syntax
fr dlci dlci-number
undo fr dlci [ dlci-number ]
Views
Interface view
Default command level
2: System level
Parameters
dlci-number: Assigns a virtual circuit to the frame relay interface, in the range 16 to 1007. The range 0
to 15 and 1008 to 1023 are reserved for special purposes.
Usage guidelines
A virtual circuit number is unique on a physical interface.
On a DCE or NNI frame relay main interface or subinterface, you must manually create the virtual
circuits.
123
On a DTE main interface, the device automatically creates virtual circuits according to the settings
received from the DCE side. If you do that manually, make sure the DLCIs of the virtual circuits are
identical to those used on the DCE.
On a DTE subinterface, you must manually create the virtual circuits.
Examples
# Assign a virtual circuit with DLCI 100 to frame relay interface Serial 2/0/0.
<Sysname> system-view
[Sysname] interface serial 2/0/0
[Sysname-Serial2/0/0] fr dlci 100
[Sysname-fr-dlci-Serial2/0/0-100]
fr inarp
Use fr inarp to enable InARP for frame relay on the interface.
Use undo fr inarp to disable InARP for frame relay on the interface.
Syntax
fr inarp [ ip [ dlci-number ] ]
undo fr inarp [ ip [ dlci-number ] ]
Default
InARP for frame relay is enabled.
Views
Interface view
Default command level
2: System level
Parameters
ip: Performs InARP for IP addresses.
dlci-number: Data link connection identifier number (virtual circuit number), indicating that the inverse
address resolution is performed for this DLCI number only, is in the range of 16 to 1007.
Usage guidelines
When frame relay sends data over the interface, the peer IP address must be mapped to the local DLCI
number. Such a mapping can be configured manually, or automatically through InARP.
To enable or disable InARP for all virtual circuits of interfaces, use the command without any parameter.
To enable or disable InARP for the specified virtual circuit, use the command with the dlci-number
argument.
Enabling InARP on an interface or subinterface also enables InARP on all virtual circuits of the interface
or subinterface. To disable InARP on a specific virtual circuit of the interface or subinterface, use undo fr
inarp ip dlci-number command.
Using the undo fr inarp command to disable InARP on an interface also disables InARP on all virtual
circuits on the interface. To enable InARP on a specific virtual circuit of the interface, use the fr inarp ip
dlci-number command.
The fr inarp command configured on an FR main interface also applies to its subinterfaces.
124
Examples
# Enable InARP at all PVCs of the frame relay interface Serial 2/0/0.
<Sysname> system-view
[Sysname] interface serial 2/0/0
[Sysname-Serial2/0/0] fr inarp
fr interface-type
Use fr interface-type to set the frame relay interface type.
Use undo fr interface-type to restore the default frame relay interface type.
Syntax
fr interface-type { dce | dte | nni }
undo fr interface-type
Default
The frame relay interface type is DTE.
Views
Interface view
Default command level
2: System level
Parameters
dce: Sets the frame relay interface type to DCE.
dte: Sets the frame relay interface type to DTE.
nni: Sets the frame relay interface type to NNI.
Examples
# Set the type of the frame relay interface Serial 2/0/0 to DCE.
<Sysname> system-view
[Sysname] interface serial2/0/0
[Sysname-Serial2/0/0] fr interface-type dce
fr lmi n391dte
Use fr lmi n391dte to configure the full link status polling interval at the DTE side.
Use undo fr lmi n391dte to restore the default.
Syntax
fr lmi n391dte n391-value
undo fr lmi n391dte
Default
The full link status polling interval is 6.
125
Views
Interface view
Default command level
2: System level
Parameters
n391-value: The value of counter N391, is in the range of 1 to 255.
Usage guidelines
The DTE sends a Status-Enquiry message at a regular interval set by T391 to the DCE. The Status-Enquiry
messages include the following types: link integrity verification messages and full link status enquiry
messages. N391 defines that the ratio of sent link integrity verification messages to sent link
Status-Enquiry messages is (N391–1):1.
Examples
# Set DTE as the operating mode of frame relay interface Serial 2/0/0, and the counter value of the PVC
status to 10.
<Sysname> system-view
[Sysname] interface serial2/0/0
[Sysname-Serial2/0/0] link-protocol fr
[Sysname-Serial2/0/0] fr interface-type dte
[Sysname-Serial2/0/0] fr lmi n391dte 10
fr lmi n392dce
Use fr lmi n392dce to set the N392 counter at the DCE side.
Use undo fr lmi n392dce to restore the default.
Syntax
fr lmi n392dce n392-value
undo fr lmi n392dce
Default
The DCE-side N392 counter is 3.
Views
Interface view
Default command level
2: System level
Parameters
n392-value: Sets the DCE-side error threshold, which is in the range of 1 to 10.
Usage guidelines
The DCE requires the DTE to send a Status-Enquiry message at a regular interval (set by T392). If the DCE
does not receive the Status-Enquiry message within a certain period, the error counter on the DCE
increments by one. If the number of errors exceeds the error threshold, the DCE considers the physical
link and all DLCIs unavailable.
126
The N392 counter sets an error threshold for the total number of monitored events set by the N393
counter. If the number of errors that occur among N393 events reaches the error threshold, the DCE
considers the physical link and all DLCIs unavailable.
N392 must be less than N393 on the DCE side.
Examples
# Set frame relay interface Serial 2/0/0 to operate in DCE mode, and set N392 to 5 and N393 to 6.
<Sysname> system-view
[Sysname] interface serial2/0/0
[Sysname-Serial2/0/0] link-protocol fr
[Sysname-Serial2/0/0] fr interface-type dce
[Sysname-Serial2/0/0] fr lmi n392dce 5
[Sysname-Serial2/0/0] fr lmi n393dce 6
fr lmi n392dte
Use fr lmi n392dte to set the DTE-side N392 counter.
Use undo fr lmi n392dte to restore the default.
Syntax
fr lmi n392dte n392-value
undo fr lmi n392dte
Default
The DTE-side N392 counter is 3.
Views
Interface view
Default command level
2: System level
Parameters
n392-value: Sets the DTE-side error threshold. It is in the range of 1 to 10.
Usage guidelines
The DTE sends a Status-Enquiry message at a regular interval to the DCE to inquire link status. On
receiving a Status-Enquiry message, the DCE immediately sends a Status-Response packet. If the DTE
does not receive the response packet in the specified time, its error counter increments by one. When the
number of errors exceeds the threshold, the DTE considers the physical link and all DLCIs unavailable.
The N392 counter sets an error threshold for the total number of monitored events set by the N393
counter. If the number of errors that occur among N393 events reaches the error threshold, the DTE
considers the physical link and all DLCIs unavailable.
N392 must be less than N393 on the DTE side.
Examples
# Configure the operation mode of frame relay interface Serial 2/0/0 as DTE and set N392 to 5 and
N393 to 6.
<Sysname> system-view
127
[Sysname] interface serial2/0/0
[Sysname-Serial2/0/0] link-protocol fr
[Sysname-Serial2/0/0] fr interface-type dce
[Sysname-Serial2/0/0] fr lmi n392dce 5
[Sysname-Serial2/0/0] fr lmi n393dce 6
fr lmi n393dce
Use fr lmi n393dce to set the DCE-side N393 counter.
Use undo fr lmi n393dce to restore the default.
Syntax
fr lmi n393dce n393-value
undo fr lmi n393dce
Default
The DCE-side N393 counter is 4.
Views
Interface view
Default command level
2: System level
Parameters
n393-value: Sets the DCE-side N393 counter. It is in the range of 1 to 10.
Usage guidelines
The DCE requires the DTE to send a Status-Enquiry message at a regular interval (set by T392). If the DCE
does not receive the Status-Enquiry message within a certain period, the error counter on the DCE
increments by one. If the number of errors exceeds the error threshold, the DCE considers the physical
link and all DLCIs unavailable.
The N392 counter sets an error threshold for the total number of monitored events set by the N393
counter. If the number of errors that occur among N393 events reaches the error threshold, the DCE
considers the physical link and all DLCIs unavailable.
N392 must be less than N393 on the DCE side.
Examples
# Set frame relay interface Serial 2/0/0 to operate in DCE mode, and set N392 to 5 and N393 to 6.
<Sysname> system-view
[Sysname] interface serial2/0/0
[Sysname-Serial2/0/0] link-protocol fr
[Sysname-Serial2/0/0] fr interface-type dce
[Sysname-Serial2/0/0] fr lmi n392dce 5
[Sysname-Serial2/0/0] fr lmi n393dce 6
fr lmi n393dte
Use fr lmi n393dte to set N393 parameter at the DTE side.
128
Use undo fr lmi n393dte to restore the default.
Syntax
fr lmi n393dte n393-value
undo fr lmi n393dte
Default
The DTE-side N393 counter is 4.
Views
Interface view
Default command level
2: System level
Parameters
n393-value: Sets the DTE-side N393 counter. It is in the range of 1 to 10.
Usage guidelines
The DTE sends Status-Enquiry messages at a regular interval to the DCE to inquire link status. On
receiving a Status-Enquiry message, the DCE immediately sends a Status message. If the DTE does not
receive the Status message in the specified time, its error counter increments by one. If the number of
errors exceeds the error threshold, the DTE considers the physical link and all DLCIs unavailable.
The N392 counter sets an error threshold for the total number of monitored events set by the N393
counter. If the number of errors that occur among N393 events reaches the error threshold, the DTE
considers the physical link and all DLCIs unavailable.
N392 must be less than N393 on the DTE side.
Examples
# Set frame relay interface Serial 2/0/0 to operate in DTE mode, and set N392 to 5 and N393 to 6.
<Sysname> system-view
[Sysname] interface serial 2/0/0
[Sysname-Serial2/0/0] link-protocol fr
[Sysname-Serial2/0/0] fr interface-type dte
[Sysname-Serial2/0/0] fr lmi n392dte 5
[Sysname-Serial2/0/0] fr lmi n393dte 6
fr lmi t392dce
Use fr lmi t392dce to set the DCE-side T392 timer.
Use undo fr lmi t392dce to restore the default.
Syntax
fr lmi t392dce t392-value
undo fr lmi t392dce
Default
The DCE-side T392 timer is 15 seconds.
129
Views
Interface view
Default command level
2: System level
Parameters
t392-value: Sets the DCE-side T392 timer, in seconds. The value range is 5 to 30.
Usage guidelines
The DCE-side T392 timer defines the maximum time that the DCE waits for a Status-Enquiry message.
The DCE-side T392 timer must be greater than the DTE-side T391 timer (set by the timer hold command).
Examples
# Set frame relay interface Serial 2/0/0 to operate in DCE mode, and set T392 to 10 seconds.
<Sysname> system-view
[Sysname] interface serial 2/0/0
[Sysname-Serial2/0/0] link-protocol fr
[Sysname-Serial2/0/0] fr interface-type dce
[Sysname-Serial2/0/0] fr lmi t392dce 10
fr lmi type
Use fr lmi type to configure the frame relay LMI protocol type.
Use undo fr lmi type to restore the default.
Syntax
fr lmi type { ansi | nonstandard | q933a }
undo fr lmi type
Default
The LMI protocol type is q933a.
Views
Interface view
Default command level
2: System level
Parameters
ansi: Standard LMI protocol of ANSI T1.617 Appendix D.
nonstandard: Nonstandard compatible LMI protocol.
q933a: Standard LMI protocol of Q.933 Appendix A.
Usage guidelines
LMI protocol maintains frame relay protocol PVC table, including notifying PVC increasing, detecting
PVC deleting, monitoring PVC status changing and authenticating link integrity. The system usually
supports three standard LMI protocols ITU-T Q.933 Appendix A, ANSI T1.617 Appendix D, and
nonstandard-compatible LMI protocol.
130
Examples
# Set the frame relay LMI type of Serial 2/0/0 to nonstandard compatible protocol.
<Sysname> system-view
[Sysname] interface serial 2/0/0
[Sysname-Serial2/0/0] fr lmi type nonstandard
fr map ip
Use fr map ip to add an IP address map entry for frame relay.
Use undo fr map ip to remove an IP address map entry for frame relay.
Syntax
fr map ip { ip-address [ mask ] | default } dlci-number [ broadcast | [ ietf | nonstandard ] ] *
undo fr map ip { ip-address [ mask ] | default } dlci-number
Default
No static address map entry exists and InARP is enabled.
Views
Interface view
Default command level
2: System level
Parameters
ip-address: Peer IP address.
mask: Peer IP mask in the format of X.X.X.X, where X is an integer is in the range of 0 to 255.
default: Creates a default map.
dlci-number: Local virtual circuit number, in the range 16 to 1007.
broadcast: Specifies that broadcast packets can be sent by using the map.
ietf: Indicates that the mapping adopts the IETF encapsulation format.
nonstandard: Indicates that the mapping adopts a non-standard compatible encapsulation format.
connections number: Number of connections with RTP header compression enabled. The value range is
3 to 1000.
Usage guidelines
You can manually create an address map or automatically by using InARP. InARP is suitable for a
complex network where the remote device also supports InARP. However, when the number of remote
hosts is small or when default routes exist, manual map creation is preferred.
Examples
# Create a static address map entry on interface Serial 2/0/0, mapping DLCI 50 to the peer IP address
202.38.163.252.
<Sysname> system-view
[Sysname] interface serial 2/0/0
[Sysname-Serial2/0/0] fr map ip 202.38.163.252 50
131
fr switch
Use fr switch name interface interface-type interface-number dlci dlci1 interface interface-type
interface-number dlci dlci2 to create a PVC used for FR switching.
Use fr switch name to enter the view of a PVC used for FR switching.
Use undo fr switch to delete a specified PVC.
Syntax
fr switch name [ interface interface-type interface-number dlci dlci1 interface interface-type
interface-number dlci dlci2 ]
undo fr switch name
Default
No PVC used for FR switching exists.
Views
System view
Default command level
2: System level
Parameters
name: Name of a PVC used for FR switching, which is a string of 1 to 30 characters.
interface interface-type interface-number dlci dlci1: DLCI number at one end of PVC as well as the type
and number of its interface.
interface interface-type interface-number dlci dlci2: DLCI number at the peer end of PVC as well as the
type and number of its interface.
Usage guidelines
The interface for forwarding packets can be either a frame relay interface or an MFR interface.
In the view of a PVC used for FR switching, you can use the shutdown/undo shutdown command to shut
down or bring up the FR switching PVC and affect the routing table.
Examples
# Create a PVC named pvc1 on the DCE serving as the switch, which is from the DLCI 100 of serial
interface 2/0/0 to the DLCI 200 of serial interface 2/0/1.
<Sysname> system-view
[Sysname] fr switching
[Sysname] fr switch pvc1 interface serial 2/0/0 dlci 100 interface serial 2/0/1 dlci 200
[Sysname-fr-switching-pvc1]
fr switching
Use fr switching to enable FR switching.
Use undo fr switching to disable FR switching.
Syntax
fr switching
132
undo fr switching
Default
FR switching is disabled.
Views
System view
Default command level
2: System level
Examples
# Enable FR switching.
<Sysname> system-view
[Sysname] fr switching
interface
Use interface to create subinterface and enter subinterface view.
Use undo interface to delete subinterface.
Syntax
interface interface-type interface-number.subnumber [ p2mp | p2p ]
undo interface interface-type interface-number.subnumber
Views
System view
Default command level
2: System level
Parameters
interface-type interface-number. subnumber: Specifies a logical subinterface. interface-type specifies the
main interface type, and can be serial or pos; interface-number specifies the main interface number;
subnumber specifies the subinterface number in the range of 0 to 1023.
p2p: Specifies a point-to-point subinterface.
p2mp: Specifies a point-to-multipoint subinterface.
Usage guidelines
The frame relay subinterface type defaults to p2mp.
Examples
# Configure a point-to-point subinterface Serial 2/0/0.2.
<Sysname> system-view
[Sysname] interface serial2/0/0.2 p2p
[Sysname-Serial2/0/0.2]
link-protocol fr
Use link-protocol fr to enable frame relay on the interface.
133
Syntax
link-protocol fr [ ietf | nonstandard ]
Default
PPP is enabled.
Views
Interface view
Default command level
2: System level
Parameters
ietf: Specifies the default encapsulation format according to the IETF standard.
nonstandard: Specifies the nonstandard compatible encapsulation format.
Usage guidelines
If neither ietf nor nonstandard is specified, the command enables IETF frame relay.
The frame relay encapsulation can be either ietf or nonstandard. IETF frame relay encapsulation
conforms to RFC 1490. IETF frame relay encapsulation supports the IETF standard and is compatible with
dedicated encapsulation format of mainstream routers.
If you enable frame relay encapsulation in a certain format on a frame relay interface, the interface
encapsulates packets in the frame relay format before forwarding them. If the interfaces at both sides of
a link can recognize packets in both of the formats, they can communicate with each other even if they
configured with different frame relay encapsulation formats. Otherwise, you must enable frame relay
encapsulation in the same format on the two interfaces for the two interfaces to communicate.
Examples
# Enable frame relay on interface Serial 2/0/0 and select the nonstandard encapsulation compatible
format.
<Sysname> system-view
[Sysname] interface serial 2/0/0
[Sysname-Serial2/0/0] link-protocol fr nonstandard
link-protocol fr mfr
Use link-protocol fr mfr to configure the current physical interface as an MFR bundle link and bind it to
an MFR interface.
Syntax
link-protocol fr mfr interface-number
Default
An interface is not bound to any MFR interface.
Views
Interface view
Default command level
2: System level
134
Parameters
interface-number: MFR interface number.
Usage guidelines
Before performing this command, make sure the specified MFR interface already exists. A maximum of
16 physical interfaces can be bundled onto an MFR interface.
To delete a physical interface from an MFR interface, use the link-protocol command on the interface to
configure a link layer protocol except MFR.
After MFR encapsulation is enabled on a physical interface, the interface belongs to an MFR interface
and cannot be configured with any FR-related commands except MFR. In addition, the queuing type on
the interface can be configured as first in first out (FIFO) only. If the interface uses another queuing type
before you configure the MFR encapsulation, the interface is forced to use FIFO after you configure the
MFR encapsulation.
Examples
# Configure Serial 2/0/0 as a bundle link and add it onto the Frame Relay bundle interface MFR4.
<Sysname> system-view
[Sysname] interface serial 2/0/0
[Sysname-Serial2/0/0] link-protocol fr mfr 4
reset fr inarp
Use reset fr inarp to clear the address mapping established by inverse ARP.
Syntax
reset fr inarp
Views
User view
Default command level
2: System level
Usage guidelines
In some special cases, for example, when the network topology changes, the dynamic address maps
originally established will become invalid. You must establish them again. You can use this command to
clear all dynamic address maps.
Examples
# Clear all frame relay dynamic address maps.
<Sysname> reset fr inarp
Related commands
fr inarp
reset fr pvc
Use reset fr pvc to clear the statistics on a PVC.
135
Syntax
reset fr pvc interface serial interface-number [ dlci dlci-number ]
Views
User view
Default command level
2: System level
Parameters
interface-number: Interface number.
dlci dlci-number: Specifies the DLCI to be assigned to an FR interface, in the range 16 to 1007. DLCI 0
through 15 and 1008 through 1023 are reserved for special use and are unavailable.
Examples
# Clear PVC statistics on Serial 2/0/0.
<Sysname> reset fr pvc interface serial 2/0/0
shutdown
Use shutdown to disable the current switching PVC.
Use undo shutdown to enable the current switching PVC.
Syntax
shutdown
undo shutdown
Default
The switching PVC is enabled.
Views
Frame relay switching view
Default command level
2: System level
Examples
# Create a PVC named pvc1 on the DCE serving as the switch, which is from the DLCI 100 of Serial
2/0/0 to the DLCI 200 of Serial 2/0/1 and then shut down the PVC.
<Sysname> system-view
[Sysname] fr switching
[Sysname] fr switch pvc1 interface serial 2/0/0 dlci 100 interface serial 2/0/1 dlci 200
[Sysname-fr-switching-pvc1] shutdown
timer hold
Use timer hold to configure T391 parameter at the DTE side.
Use undo timer hold to restore the default.
136
Syntax
timer hold seconds
undo timer hold
Default
The parameter is 10 seconds.
Views
Interface view
Default command level
2: System level
Parameters
seconds: Value of T391 parameter at DTE side, which is in the range of 0 to 32767 in seconds. 0
indicates that the LMI protocol is disabled.
Usage guidelines
The parameter is a time variable that defines the interval at which the DTE sends Status-Enquiry
messages.
Examples
# Configure that frame relay interface Serial 2/0/0 to operate in DTE mode, and set the value of T391
parameter to 15 seconds.
<Sysname> system-view
[Sysname] interface serial 2/0/0
[Sysname-Serial2/0/0] link-protocol fr
[Sysname-Serial2/0/0] fr interface-type dte
[Sysname-Serial2/0/0] timer hold 15
Related commands
fr lmi t392dce
MFR configuration commands
bandwidth
Use bandwidth to set the intended bandwidth for an MFR interface.
Use undo bandwidth to restore the default.
Syntax
bandwidth bandwidth-value
undo bandwidth
Views
MFR interface view
Default command level
2: System level
137
Parameters
bandwidth-value: Intended bandwidth, which is in the range of 1 to 4294967295 kbps.
Usage guidelines
You can obtain the intended bandwidth of an interface by using third-party software to query the value
of the MIB ifspeed.
The intended bandwidth of an interface is for the network management system to monitor the interface
bandwidth, and does not affect the actual bandwidth of the interface.
Examples
# Set the intended bandwidth to 1000 kbps for interface MFR 4.
<Sysname> system-view
[Sysname] interface mfr 4
[Sysname-MFR4] bandwidth 1000
display interface mfr
Use display interface mfr to display the information about an MFR interface or an MFR sub-interface,
including configuration, state, and packet statistics.
Syntax
display interface mfr {[ interface-number | interface-number.subnumber }] [ brief ] [ | { begin | exclude
| include } regular-expression ]
display interface [ mfr ] [ brief [ down ] ] [ | { begin | exclude | include } regular-expression ]
Views
Any view
Default command level
1: Monitor level
Parameters
interface-number: MFR interface number.
interface-number.subnumber: MFR subinterface number, of which, interface-number is the main interface
number, and subnumber is the subinterface number. The subnumber argument is in the range of 0 to
1023.
brief: Displays brief interface information. If you do not specify this keyword, the command displays
detailed interface information.
down: Displays information about interfaces in the DOWN state and the causes. If you do not specify
this keyword, this command displays information about interfaces in all states.
|: Filters command output by specifying a regular expression. For more information about regular
expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
138
Usage guidelines
If you do not specify the mfr keyword, this command displays information about all interfaces on the
current device.
If you specify the mfr keyword without any MFR interface number, this command displays information
about all MFR interfaces.
Examples
# Display information about interface MFR 4.
<Sysname> display interface mfr 4
MFR4 current state: UP
Line protocol current state: UP
Description: MFR4 Interface
The Maximum Transmit Unit is 1500, Hold timer is 10(sec)
Internet Address is 12.12.12.2/16 Primary
Link layer protocol is FR IETF
LMI DLCI is 0, LMI type is Q.933a, frame relay DTE
LMI status enquiry sent 435, LMI status received 435
LMI status timeout 0, LMI message discarded 0
Physical is MFR
Output queue: (Urgent queue: Size/Length/Discards) 0/50/0
Output queue: (Protocol queue: Size/Length/Discards) 0/500/0
Output queue: (FIFO queuing: Size/Length/Discards) 0/75/0
Last clearing of counters:
Never
Last 300 seconds input rate: 0 bytes/sec, 0 bits/sec, 0 packets/sec
Last 300 seconds output rate: 0 bytes/sec, 0 bits/sec, 0 packets/sec
1058 packets input, 832389 bytes, 0 drops
619 packets output, 828190 bytes, 0 drops
# Display brief information about interface MFR 4.
<Sysname> display interface mfr 4 brief
The brief information of interface(s) under route mode:
Link: ADM - administratively down; Stby - standby
Protocol: (s) - spoofing
Interface
Link Protocol Main IP
MFR4
UP
UP(s)
Description
--
# Display the brief information of all MFR interfaces in the DOWN state.
<Sysname> display interface mfr brief down
The brief information of interface(s) under route mode:
Link: ADM - administratively down; Stby - standby
Interface
Link Cause
MFR1
DOWN Not connected
139
Table 26 Command output
Field
Description
Physical layer state of the MFR interface:
• DOWN (Administratively)—Indicates that the
interface has been shut down with the shutdown
command.
current state
• DOWN—Indicates that the interface is physically
down but administratively up.
• UP—Indicates that the interface is both
administratively and physically up.
Link layer state of the MFR interface:
• DOWN—Indicates that the link layer of the interface
is down.
Line protocol current state
• UP—Indicates that the link layer of the interface is
up.
Description
Interface description.
The Maximum Transmit Unit is 1500
MTU.
Hold timer is 10(sec)
Value of the T391 parameter at the DTE side.
Internet Address is 12.12.12.2/16
IP address and mask.
link-protocol is FR IETF
Link layer protocol.
LMI DLCI is 0, LMI type is Q.933a, frame relay DTE
DLCI number used by LMI, LMI type, port type and
operating mode.
LMI status enquiry sent 435, LMI status received 435
Number of sent LMI Status-Enquiry messages and
number of the received LMI Status messages.
LMI status timeout 0, LMI message discarded 0
Number of LMI Status messages that timed out and the
number of dropped LMI messages.
Physical is MFR
Physical interface is MFR.
Output queue: (Urgent queue:
Size/Length/Discards)
Statistics on the packets of the following interface output
queues:
Output queue: (Protocol queue:
Size/Length/Discards)
• Urgent queue.
• Protocol queue.
• FIFO queue.
Output queue: (FIFO queuing:
Size/Length/Discards)
Last time when the interface statistics were cleared.
Last clearing of counters
Never indicates that the interface statistics have never
been cleared.
Last 300 seconds input rate
Input rate of the interface within the last 5 minutes. The
input rate is represented in Bps, bps, and pps.
Last 300 seconds output rate
Output rate of the interface within the last 5 minutes.
The output rate is represented in Bps, bps, and pps.
1058 packets input, 832389 bytes, 0 drops
Packets and bytes received on the interface and
packets dropped as the result of full receive buffer.
619 packets output, 828190 bytes, 0 drops
Packets and bytes sent on the interface and packets
dropped as the result of full transmit buffer.
140
Field
Description
The brief information of interface(s) under route
mode
Brief information about Layer 3 interfaces.
Link status:
• ADM—The interface has been administratively shut
Link: ADM - administratively down; Stby - standby
down. To recover its physical state, perform the
undo shutdown command.
• Stby—The interface is operating as a backup
interface. To see the primary interface, use the
display standby state command (High Availability
Command Reference).
Protocol: (s) - spoofing
If the network layer protocol state of an interface is
shown as UP, but its link is an on-demand link or not
present at all, its protocol attribute includes the
spoofing flag (an s in parentheses).
Interface
Abbreviated interface name.
Physical link state of the interface:
• UP—The link is up.
• ADM—The link has been administratively shut
Link
down. To recover its physical state, perform the
undo shutdown command.
Protocol
Protocol connection state of the interface.
Main IP
Main IP address of the interface.
Description
Description of the interface.
Cause
Cause of a DOWN physical link. If the port has been
shut down with the shutdown command, this field
displays Administratively. To restore the physical state
of the interface, use the undo shutdown command.
display mfr
Use display mfr to display configuration and statistics information of the specified multilink frame relay
bundle and bundle link.
Syntax
display mfr [ interface interface-type interface-number | verbose ] [ | { begin | exclude | include }
regular-expression ]
Views
Any view
Default command level
1: Monitor level
Parameters
interface interface-type interface-number: Specifies an interface by its type and number. The specified
interface must be a main interface.
141
verbose: Displays detailed statistics information, including the number of controlling packets sent and
received.
|: Filters command output by specifying a regular expression. For more information about regular
expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Usage guidelines
If neither interface nor verbose is specified, this command displays the brief information of all main
interfaces.
Examples
# Display configuration and state information about all frame relay bundles and frame relay bundle
links.
<Sysname> display mfr
Bundle interface:MFR1, Bundle state = up,
Bundle class = A,
fragment enabled, MFR bundle fragment size = 222
original packet be assembled/fragmentized (in/out): 0/0
droped fragment (in/out): 0/0
Bundle name = MFR1
Bundle links:
Serial2/0/0, PHY state = up, link state = up,
Link name : Serial2/0/0
Table 27 Command output
Field
Description
Bundle interface
Bundle interface.
Bundle state
Operating state of the bundle interface.
Bundle class
Class A indicates that the bundle is up if one or more
bundle link is up. The bundle is down only when all
bundle links are down.
fragment enabled
Indicates whether fragmentation is enabled.
MFR bundle fragment size
Maximum fragment size allowed by the FR link.
original packet be assembled/fragmentized (in/out)
Number of assembled packets received on the bundle
interface and number of unfragmented packets before
being sent by the bundle interface.
droped fragment (in/out)
Number of dropped incoming and outgoing packets
on the bundle interface.
Bundle name = MFR0
Name of multilink frame relay bundle.
Bundle links
Physical interfaces of the links in the bundle.
Serial2/0/0, PHY state = up, link state = up, Link
name = Serial2/0/0
Physical interface on the bundle link, the state of
interface at the physical layer and link layer, the name
of the bundle link (name of the physical interface by
default).
142
# Display detailed state information about all frame relay bundle links.
<Sysname> display mfr verbose
Bundle interface:MFR1, Bundle state = up,
Bundle class = A,
fragment enabled, MFR bundle fragment size = 222
original packet be assembled/fragmentized (in/out): 0/0
droped fragment (in/out): 0/0
Bundle name = 2
Bundle links:
Serial2/0/0
LID : Serial2/0/0
Peer LID: Serial2/0/0
Bound to MFR1(BID:2)
Physical state: up, link state: up,
Bundle Link statistics:
Hello(TX/RX):
10/10
Add_link(TX/RX):
4/2
Add_link_rej(TX/RX):
0/0
Remove_link(TX/RX):
0/0
Hello_ack(TX/RX):
Add_link_ack(TX/RX):
Remove_link_ack(TX/RX):
10/10
2/1
0/0
Pkts dropped(in/out): 0/0
Timer: ACK
4, Hello
10
Retry: Max
2, Current 0
Cause code: none
Bundle Link fragment statistics:
Mfr fragment(in/out): 0/0
Table 28 Command output
Field
Description
LID
Identifier of the bundle link (the name of the physical interface by
default).
Peer LID
Identifier of the peer bundle link (the name of the physical interface
by default).
Bound to MFR0 (BID:MFR0)
The bundle link is bound to MFR0 on the interface MFR.
Physical state
Operating state of the physical interface.
link state
Operating state of the link protocol on the bundle link.
Bundle Link statistics:
Statistics about the packets on the bundle link.
Hello(TX/RX)
Hello_ack(TX/RX)
Number of the sent and received Hello messages.
Hello messages are sent for maintaining link state.
Number of sent and received Hello acknowledgement messages.
Hello_ack messages notify receipt of the Hello messages.
Number of sent and received Add_link messages.
Add_link(TX/RX)
Add_link_ack(TX/RX)
Add_link_rej(TX/RX)
Add_link messages notify the peer that the local node is ready for
processing frames.
Number of sent and received Add_link acknowledgment messages.
Add_link_ack messages notify receipt of the Add_link messages.
Number of sent and received Add_link reject messages.
Add_link_rej messages notify reject of the Add_link messages.
143
Field
Remove_link(TX/RX)
Description
Number of sent and received Remove_link messages.
Remove_link messages notify removal of a link from the bundle.
Number of sent and received Remove_link_ack messages.
Remove_link_ack(TX/RX)
Remove_link_ack messages notify receipt of the Remove_link
messages.
Pkts dropped(in/out)
Number of dropped incoming and outgoing packets.
Timer: Ack 4
Time waiting for a Hello_ack message before a Hello message or an
Add_link message (for initial synchronization) is retransmitted on the
bundle link.
Hello 10
Intervals for sending Hello messages.
Retry: Max 2
Maximum number of Hello or Add_link sending retries made when
no Hello_ack or Add_link_ack is received on the bundle link.
Current 0
Number of retries.
Cause code
Cause resulting in the current state of the bundle link.
Bundle Link fragment statistics
Fragment statistics on the bundle link.
Mfr fragment(in/out)
Number of fragments sent/received by the bundle link.
interface mfr
Use interface mfr to create a multilink frame relay bundle interface or subinterface and enter its view.
Use undo interface mfr to delete a specified multilink frame relay bundle interface or subinterface.
Syntax
interface mfr { interface-number | interface-number.subnumber [ p2mp | p2p ] }
undo interface mfr { interface-number | interface-number.subnumber }
Default
A subinterface is point-to-multipoint.
Default
No multilink frame relay interface or subinterface exists.
Views
System view
Default command level
2: System level
Parameters
interface-number: MFR interface number.
interface-number.subnumber: MFR subinterface number, of which, interface-number is the main interface
number, and subnumber is the subinterface number, which is in the range of 1 to 1023.
p2mp: Point-to-multipoint subinterface.
p2p: Point-to-point subinterface.
144
Usage guidelines
To create an MFR subinterface successfully, make sure the MFR interface already exists.
To use the undo interface mfr command to delete an MFR interface, delete all physical interfaces from the
MFR interface.
An MFR interface with one or more bundle links in the up state is physically up. It is down when all bundle
links are physically down. The link layer protocol of an MFR interface is determined by LMI packet
negotiation.
Examples
# Create a multilink frame relay bundle interface MFR4 with a point-to-multipoint subinterface.
<Sysname> system-view
[Sysname] interface mfr 4
[Sysname-MFR4] quit
[Sysname] interface mfr 4.1
[Sysname-MFR4.1]
link-protocol fr mfr
Use link-protocol fr mfr to configure the current physical interface as an MFR bundle link and bind it to
an MFR interface.
Syntax
link-protocol fr mfr interface-number
Default
An interface is not bound to any MFR interface.
Views
Interface view
Default command level
2: System level
Parameters
interface-number: MFR interface number.
Usage guidelines
Before performing this command, make sure the specified MFR interface already exists. A maximum of
16 physical interfaces can be bundled onto an MFR interface.
To delete a physical interface from an MFR interface, use the link-protocol command on the interface to
configure a link layer protocol except MFR.
After MFR encapsulation is enabled on a physical interface, the interface belongs to an MFR interface
and cannot be configured with any FR-related commands except MFR. In addition, the queuing type on
the interface can be configured as first in first out (FIFO) only. If the interface uses another queuing type
before you configure the MFR encapsulation, the interface is forced to use FIFO after you configure the
MFR encapsulation.
Examples
# Configure Serial 2/0/0 as a bundle link and add it onto the Frame Relay bundle interface MFR4.
<Sysname> system-view
145
[Sysname] interface serial 2/0/0
[Sysname-Serial2/0/0] link-protocol fr mfr 4
mfr bundle-name
Use mfr bundle-name to set frame relay bundle identifier (BID).
Use undo mfr bundle-name to restore the default.
Syntax
mfr bundle-name [ name ]
undo mfr bundle-name
Default
The BID of an MFR bundle is represented by MFR plus frame relay bundle number, for example, MFR4.
Views
MFR interface view
Default command level
2: System level
Parameters
name: Bundle identification, which is a string of 1 to 49 characters.
Usage guidelines
You cannot configure a BID as a string in the form of MFR + number.
Each MFR bundle has a BID, and the peer device can identify an MFR bundle by BID. Different BIDs can
be used at both ends of a link.
The BIDs at both ends are used during the link bundle negotiation phase. After changing the BID of an
MFR interface, you must execute the shutdown and undo shutdown command on the interface to make
the new BID take effect.
Examples
# Set the frame relay link MFR4 BID to bundle1.
<Sysname> system-view
[Sysname] interface mfr 4
[Sysname-MFR4] mfr bundle-name bundle1
mfr fragment
Use mfr fragment to enable fragmentation on the MFR bundle.
Use undo mfr fragment to disable the function.
Syntax
mfr fragment
undo mfr fragment
Default
Fragmentation is disabled on the MFR bundle.
146
Views
MFR interface view
Default command level
2: System level
Examples
# Enable fragmentation on interface MFR 4.
<Sysname> system-view
[Sysname] interface mfr 4
[Sysname-MFR4] mfr fragment
mfr fragment-size
Use mfr fragment-size to configure the maximum fragment size allowed on a frame relay bundle link.
Use undo mfr fragment-size to restore the default.
Syntax
mfr fragment-size bytes
undo mfr fragment-size
Default
The maximum fragment size allowed on a frame relay bundle link is of 300 bytes.
Views
MFR interface view
Default command level
2: System level
Parameters
bytes: Fragment size in the range of 60 to 1,500 in bytes.
Examples
# Configure the maximum fragment size allowed on interface MFR 4 to be 70 bytes.
<Sysname> system-view
[Sysname] interface mfr 4
[Sysname-MFR4] mfr fragment-size 70
mfr link-name
Use mfr link-name to set the frame relay bundle link identification (LID).
Use undo mfr link-name to restore the default.
Syntax
mfr link-name [ name ]
undo mfr link-name
147
Default
LID is the name of the physical interface.
Views
Frame relay interface view
Default command level
2: System level
Parameters
name: Name of a bundle link identification, which is a string of 1 to 49 characters.
Usage guidelines
Use link-protocol fr mfr to configure the current physical interface as a multilink frame relay bundle link
before using the mfr link-name command to configure.
The peer equipment identifies a frame relay bundle link through LID or associates the bundle link with a
frame relay bundle by using LID. The LIDs at both ends of a link can be the different.
The LIDs at both ends are used during the link bundle negotiation phase. After changing the bundle LID
on an interface, you must execute the shutdown and then undo shutdown commands on the interface to
make the new bundle LID take effect.
Examples
# Set the bundle LID of the multilink frame relay bundle link Serial 2/0/0 to be bl1.
<Sysname> system-view
[Sysname] interface serial 2/0/0
[Sysname-Serial2/0/0] link-protocol fr mfr 4
[Sysname-Serial2/0/0] mfr link-name bl1
mfr retry
Use mfr retry to set the maximum retry times for which a frame relay bundle link can resend hello
message when waiting for a hello acknowledgement message.
Use undo mfr retry to restore the default.
Syntax
mfr retry number
undo mfr retry
Default
The maximum retry times for which a frame relay bundle link can resend hello message is twice.
Views
Frame relay interface view
Default command level
2: System level
Parameters
number: Maximum retry times for which a bundle link can resend hello messages, in the range 1 to 5.
148
Usage guidelines
The bundle link sustains link status by periodically sending hello message to the peer end. When the
maximum is reached, if the bundle link still receives no acknowledgement from the peer, the system
regards the link protocol on the bundle link as malfunctioning.
Before configuring this command, make sure you have used the link-protocol fr mfr command to
associate the frame relay bundle link interface with a frame relay bundle.
Examples
# Configure the bundle link Serial 2/0/0 to resend hello message for 3 times at most.
<Sysname> system-view
[Sysname] interface serial 2/0/0
[Sysname-Serial2/0/0] link-protocol fr mfr 4
[Sysname-Serial2/0/0] mfr retry 3
mfr timer ack
Use mfr timer ack to set the time of waiting for hello acknowledgment message before frame relay
bundle link resends hello message.
Use undo mfr timer ack to restore the default.
Syntax
mfr timer ack seconds
undo mfr timer ack
Default
Time of waiting for hello acknowledgment message before resending hello message is 4 seconds.
Views
Frame relay interface view
Default command level
2: System level
Parameters
seconds: Time (in seconds) of waiting for hello acknowledgment message before resending hello
message, in the range 1 to 10.
Usage guidelines
The bundle link sustains link status by periodically sending hello message to the peer end. 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.
Before configuring this command, make sure you have used the link-protocol fr mfr command to
associate the frame relay bundle link interface with a frame relay bundle.
Examples
# Configure the frame relay bundle link Serial 2/0/0 to wait for 6 seconds before resending a hello
message.
<Sysname> system-view
[Sysname] interface serial 2/0/0
[Sysname-Serial2/0/0] link-protocol fr mfr 4
149
[Sysname-Serial2/0/0] mfr timer ack 6
Related commands
•
mfr timer hello
•
mfr retry
mfr timer hello
Use mfr timer hello to set the interval at which a frame relay bundle link sends hello messages.
Use undo mfr timer hello to restore the default.
Syntax
mfr timer hello seconds
undo mfr timer hello
Default
A frame relay bundle link sends hello message at the interval of 10 seconds.
Views
Frame relay interface view
Default command level
2: System level
Parameters
seconds: Interval (in seconds) for a bundle link to send hello message, in the range 1 to 180.
Usage guidelines
Before configuring this command, make sure you have used the link-protocol fr mfr command to
associate the frame relay bundle link interface with a frame relay bundle.
Examples
# Set the bundle link Serial 2/0/0 to send hello message once every 15 seconds.
<Sysname> system-view
[Sysname] interface serial 2/0/0
[Sysname-Serial2/0/0] link-protocol fr mfr 4
[Sysname-Serial2/0/0] mfr timer hello 15
mfr window-size
Use mfr window-size to configure the number of fragments that can be held by the window used in
sliding window algorithm when multilink frame relay reassembles received fragments.
Use undo mfr window-size to restore the default.
Syntax
mfr window-size number
undo mfr window-size
Default
The size of a sliding window is equal to the number of physical interfaces of an MFR bundle.
150
Views
MFR interface view
Default command level
2: System level
Parameters
number: Number of fragments, in the range 1 to 16.
Examples
# Set the size of the sliding window to 8 for the MFR bundle interface MFR4.
<Sysname> system-view
[Sysname] interface mfr 4
[Sysname-MFR4] mfr window-size 8
reset counters interface
Use reset counters interface to clear statistics of the specified or all MFR interfaces.
Syntax
reset counters interface [ mfr [ interface-number | interface-number.subnumber ] ]
Views
User view
Default command level
2: System level
Parameters
interface-number: MFR interface number.
interface-number.subnumber: MFR subinterface number. The interface-number argument is the main
interface number, and the subnumber argument is the subinterface number in the range of 0 to 1023.
Usage guidelines
To collect statistics spanning a specific period for an interface, you must clear statistics of the interface
before starting statistics collection.
•
If you do not specify mfr, this command clears the statistics of all interfaces.
•
If you specify the mfr but not an interface number, this command clears the statistics of all MFR
interfaces.
•
If you specify both mfr and an interface number, this command clears the statistics of the specified
MFR interface.
Examples
# Clear statistics of interface MFR 4.
<Sysname> reset counters interface mfr 4
sub-interface rate-statistic
Use sub-interface rate-statistic to enable sub-interface rate statistics collection on the MFR interface.
151
Use undo sub-interface rate-statistic to disable sub-interface rate statistics collection on the MFR
interface.
Syntax
sub-interface rate-statistic
undo sub-interface rate-statistic
Default
Sub-interface rate statistics collecting is disabled on an MFR interface.
Views
MFR interface view
Default command level
2: System level
Usage guidelines
Use this feature cautiously, because it is system resource demanding.
Examples
# Enable sub-interface rate collection on MFR interface MFR 4.
<Sysname> system-view
[Sysname] interface mfr 4
[Sysname-MFR4] sub-interface rate-statistic
152
Modem management commands
modem
Use modem to enable modem call-in, modem call-out, or both on a user interface.
Use undo modem to disable modem call-in, modem call-out, or both.
Syntax
modem [ both | call-in | call-out ]
undo modem [ both | call-in | call-out ]
Default
Both modem call-in and call-out are disabled.
Views
User interface view
Default command level
2: System level
Parameters
both: Enables both modem call-in and modem call-out.
call-in: Enables only modem call-in.
call-out: Enables only modem call-out.
Examples
# Enable modem call-in on user-interface 1.
<Sysname> system-view
[Sysname] user-interface tty 1
[Sysname-ui-tty1] modem call-in
modem auto-answer
Use modem auto-answer to configure a modem to operate in auto-answer mode.
Use undo modem auto-answer to configure a modem to operate in non-auto-answer mode. With the
command configured, the modem answers a call only when it receives the AT command sent by the
device.
Syntax
modem auto-answer
undo modem auto-answer
Default
A modem operates in non-auto answer mode.
153
Views
User interface view
Default command level
2: System level
Usage guidelines
When the modem is in auto-answer mode (the AA LED of the modem lights up), use the modem
auto-answer command to prevent the device from issuing answer instructions. If the modem is in
non-auto answer mode, use the undo modem auto-answer command to enable the device to issue
answer instructions on the arrival of incoming calls.
Make sure you set the same answer mode as on the modem. If a different answer mode is set, the modem
might operate incorrectly. Do not perform the operation unless absolutely needed.
Examples
# Configure the modem connected to the asynchronous serial interface user-interface 1 to operate in
auto-answer mode.
<Sysname> system-view
[Sysname] user-interface tty 1
[Sysname-ui-tty1] modem auto-answer
modem timer answer
Use modem timer answer to set the maximum interval allowed between off-hook and dialing.
Use undo modem timer answer to restore the default.
Syntax
modem timer answer time
undo modem timer answer
Default
The interval is 60 seconds.
Views
User interface view
Default command level
2: System level
Parameters
time: Specifies the timeout time in the range of 0 to 65535 seconds.
Examples
# Set the maximum interval allowed between off-hook and dialing to 50 seconds.
<Sysname> system-view
[Sysname] user-interface aux 0
[Sysname-ui-aux0] modem timer answer 50
154
service modem-callback
Use service modem-callback to enable the callback function.
Use undo service modem-callback to disable the callback function.
Syntax
service modem-callback
undo service modem-callback
Default
The callback function is disabled.
Views
System view
Default command level
3: Manage level
Usage guidelines
The service modem-callback command enables the modem to initiate a callback upon activation of the
line when the modem detects the carrier or data is being received. Because the callback occurs before
the PPP process starts and accounting is performed, costs are saved.
Examples
# Enable the callback function.
<Sysname> system-view
[Sysname] service modem-callback
155
Support and other resources
Contacting HP
For worldwide technical support information, see the HP support website:
http://www.hp.com/support
Before contacting HP, collect the following information:
•
Product model names and numbers
•
Technical support registration number (if applicable)
•
Product serial numbers
•
Error messages
•
Operating system type and revision level
•
Detailed questions
Subscription service
HP recommends that you register your product at the Subscriber's Choice for Business website:
http://www.hp.com/go/wwalerts
After registering, you will receive email notification of product enhancements, new driver versions,
firmware updates, and other product resources.
Related information
Documents
To find related documents, browse to the Manuals page of the HP Business Support Center website:
http://www.hp.com/support/manuals
•
For related documentation, navigate to the Networking section, and select a networking category.
•
For a complete list of acronyms and their definitions, see HP FlexNetwork Technology Acronyms.
Websites
•
HP.com http://www.hp.com
•
HP Networking http://www.hp.com/go/networking
•
HP manuals http://www.hp.com/support/manuals
•
HP download drivers and software http://www.hp.com/support/downloads
•
HP software depot http://www.software.hp.com
•
HP Education http://www.hp.com/learn
156
Conventions
This section describes the conventions used in this documentation set.
Command conventions
Convention
Description
Boldface
Bold text represents commands and keywords that you enter literally as shown.
Italic
Italic text represents arguments that you replace with actual values.
[]
Square brackets enclose syntax choices (keywords or arguments) that are optional.
{ x | y | ... }
Braces enclose a set of required syntax choices separated by vertical bars, from which
you select one.
[ x | y | ... ]
Square brackets enclose a set of optional syntax choices separated by vertical bars, from
which you select one or none.
{ x | y | ... } *
Asterisk-marked braces enclose a set of required syntax choices separated by vertical
bars, from which you select at least one.
[ x | y | ... ] *
Asterisk-marked square brackets enclose optional syntax choices separated by vertical
bars, from which you select one choice, multiple choices, or none.
&<1-n>
The argument or keyword and argument combination before the ampersand (&) sign can
be entered 1 to n times.
#
A line that starts with a pound (#) sign is comments.
GUI conventions
Convention
Description
Boldface
Window names, button names, field names, and menu items are in bold text. For
example, the New User window appears; click OK.
>
Multi-level menus are separated by angle brackets. For example, File > Create > Folder.
Convention
Description
Symbols
WARNING
An alert that calls attention to important information that if not understood or followed can
result in personal injury.
CAUTION
An alert that calls attention to important information that if not understood or followed can
result in data loss, data corruption, or damage to hardware or software.
IMPORTANT
An alert that calls attention to essential information.
NOTE
TIP
An alert that contains additional or supplementary information.
An alert that provides helpful information.
157
Network topology icons
Represents a generic network device, such as a router, switch, or firewall.
Represents a routing-capable device, such as a router or Layer 3 switch.
Represents a generic switch, such as a Layer 2 or Layer 3 switch, or a router that supports
Layer 2 forwarding and other Layer 2 features.
Represents an access controller, a unified wired-WLAN module, or the switching engine
on a unified wired-WLAN switch.
Represents an access point.
Represents a security product, such as a firewall, a UTM, or a load-balancing or security
card that is installed in a device.
Represents a security card, such as a firewall card, a load-balancing card, or a
NetStream card.
Port numbering in examples
The port numbers in this document are for illustration only and might be unavailable on your device.
158
Index
ABCDEFILMOPRSTW
display fr map-info,119
A
display fr pvc-info,120
allow l2tp,80
display fr statistics,122
atm class,1
display interface hdlc-bundle,108
atm-class,1
display interface mfr,138
atm-link check,2
display interface mp-group,51
B
display interface virtual-ethernet,13
display interface virtual-template,54
bandwidth,48
bandwidth,137
display l2tp session,81
bandwidth,101
display l2tp tunnel,82
bandwidth,2
display mfr,141
broadcast-limit link,49
display ppp access-control interface,83
bundle id,101
display ppp mp,55
bundle max-active links,102
display pppoe-server session,73
bundle member-priority,103
display virtual-access,57
bundle min-active bandwidth,103
Documents,156
bundle min-active links,104
E
C
encapsulation,16
clock,3
F
D
fr dlci,123
default,99
fr inarp,124
default,50
fr interface-type,125
default,4
fr lmi n391dte,125
default,105
fr lmi n392dce,126
description,4
fr lmi n392dte,127
description,105
fr lmi n393dce,128
description,51
fr lmi n393dte,128
display atm class,5
fr lmi t392dce,129
display atm interface,6
fr lmi type,130
display atm map-info,7
fr map ip,131
display atm pvc-group,9
fr switch,132
display atm pvc-info,10
fr switching,132
display bundle member hdlc-bundle,106
I
display fr dlci-switch,115
interface,133
display fr inarp-info,116
interface atm,17
display fr interface,117
interface hdlc-bundle,111
display fr lmi-info,118
interface mfr,144
159
interface mp-group,59
ppp chap password,41
interface virtual-ethernet,18
ppp chap user,41
interface virtual-template,84
ppp ipcp dns,42
interface virtual-template,60
ppp ipcp dns admit-any,43
ip address ppp-negotiate,37
ppp ipcp dns request,44
ip pool,37
ppp ipcp remote-address forced,44
ip-precedence,18
ppp lcp imsi accept,88
L
ppp lcp imsi request,88
ppp lcp imsi string,89
l2tp enable,85
ppp lcp sn accept,89
l2tp-group,85
ppp lcp sn request,90
l2tpmoreexam enable,86
ppp lcp sn string,90
link-protocol fr,133
ppp mp,61
link-protocol fr mfr,134
ppp mp binding-mode,61
link-protocol fr mfr,145
ppp mp endpoint,62
link-protocol hdlc,99
ppp mp fragment enable,63
link-protocol ppp,38
ppp mp lfi,70
M
ppp mp lfi delay-per-frag,71
mandatory-chap,87
ppp mp lfi size-per-frag,71
mandatory-lcp,87
ppp mp max-bind,64
map bridge,19
ppp mp min-fragment,65
map ip,20
ppp mp mp-group,65
map ppp,21
ppp mp short-sequence,66
mfr bundle-name,146
ppp mp user,67
mfr fragment,146
ppp mp virtual-template,68
mfr fragment-size,147
ppp pap local-user,45
mfr link-name,147
ppp timer negotiate,46
mfr retry,148
ppp user accept-format imsi-sn split,91
mfr timer ack,149
ppp user attach-format imsi-sn split,92
mfr timer hello,150
ppp user replace,92
mfr window-size,150
pppoe-server abnormal-offline-count threshold,74
modem,153
pppoe-server abnormal-offline-percent threshold,74
modem auto-answer,153
pppoe-server bind,75
modem timer answer,154
pppoe-server log-information off,76
mtu,112
pppoe-server max-sessions local-mac,76
mtu,60
pppoe-server max-sessions remote-mac,77
mtu,22
pppoe-server max-sessions total,77
O
pppoe-server normal-offline-percent threshold,78
pvc,26
oam ais-rdi,23
pvc max-number,27
oam frequency,24
pvc-group,27
oamping interface,25
pvp limit,28
P
R
ppp account-statistics enable,39
remark atm-clp,29
ppp authentication-mode,39
160
shutdown,114
remote address,47
reset counters interface,151
shutdown,35
reset counters interface,112
start l2tp,93
reset counters interface mp-group,69
sub-interface rate-statistic,151
reset counters interface virtual-ethernet,30
Subscription service,156
reset counters interface virtual-template,69
T
reset fr inarp,135
timer hold,48
reset fr pvc,135
timer hold,136
reset l2tp tunnel,93
timer hold,100
reset pppoe-server,79
transmit-priority,35
S
tunnel authentication,94
service,113
tunnel avp-hidden,95
service cbr,30
tunnel flow-control,95
service modem-callback,155
tunnel name,96
service ubr,32
tunnel password,96
service vbr-nrt,33
tunnel timer hello,97
service vbr-rt,34
W
shutdown,136
Websites,156
shutdown,70
161