- Table of Contents
- Related Documents
-
Title | Size | Download |
---|---|---|
01-ATM Commands | 174.18 KB |
Contents
atm-link check
Syntax
atm-link check
undo atm-link check
View
ATM P2P subinterface view
Default level
2: System level
Parameters
None
Description
Use the atm-link check command to make the protocol state of the current ATM P2P subinterface adaptive to the protocol state of the PVC configured on the subinterface in addition to the state of the physical interface. Thus, the protocol state of the subinterface is up only when both the physical interface and the PVC configured on the subinterface are up. Otherwise, the protocol state of the subinterface is down.
Use the undo atm-link check command to restore the default.
By default, the protocol of the ATM P2P subinterface goes up or comes down depending on the state of the physical interface.
This command applies only to ATM P2P subinterfaces.
Examples
# Enable the protocol state of ATM P2P subinterface ATM 3/1/1.1 to change depending on the protocol state of the physical interface and the protocol state of the PVCs configured on the subinterface.
<Sysname> system-view
[Sysname] interface Atm 3/1/1.1 p2p
[Sysname-Atm3/1/1.1] atm-link check
clock
Syntax
clock { master | slave }
undo clock
View
ATM interface view
Default level
2: System level
Parameters
master: Specifies the internal transmission clock (the master clock mode).
slave: Specifies the line clock (the slave clock mode).
Description
Use the clock command to specify the clock signal to be adopted by the current ATM interface.
Use the undo clock command to restore the default.
By default, an ATM interface uses line clock signal (slave).
When two routers are connected back-to-back through ATM interfaces, you must configure the clock mode to master on one side and to slave on the other side.
|
NOTE: · To have an ATM interface work in master clock mode, make sure that the clock modes of all the ATM interfaces sharing the same slot are set to master. · The effect of this command applies to both ATM main interface and subinterface. However, the command is available only in ATM main interface view. |
Related commands: display atm interface.
Examples
# Specify interface ATM 3/1/1 to operate in master clock mode.
<Sysname> system-view
[Sysname] interface Atm 3/1/1
[Sysname-Atm3/1/1] clock master
display atm interface
Syntax
display atm interface [ atm { interface-number | interface-number.subnumber } ] [ | { begin | exclude | include } regular-expression ]
View
Default level
1: Monitor level
Parameters
interface-number: Number of an ATM main interface.
interface-number.subnumber: Number of an ATM subinterface, in the range of 0 to 1023. interface-number is the number of the ATM 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.
Description
Use the display atm interface command to display the detailed information of the specified ATM main interface or subinterface or all ATM interfaces if no ATM interface is specified.
Examples
# Display the information of interface ATM 3/1/1.
<Sysname> display atm interface Atm 3/1/1
ATM interface Atm3/1/1, State UP
Port Information:
Maximum VCs: 1024
PVCs: 5, MAPs: 1
input pkts: 0, input bytes: 0, input pkt errors: 0
output pkts: 0, output bytes: 0, output pkt errors: 0
Main interface Information:
PVCs: 4, MAPs: 1
input pkts: 0, input bytes: 0, input pkt errors: 0
output pkts: 0, output bytes: 0, output pkt errors: 0
ATM interface Atm3/1/1.1, point-to-point, State UP
Subinterface Information:
PVCs: 1, MAPs: 0
input pkts: 0, input bytes: 0, input pkt errors: 0
output pkts: 0, output bytes: 0, output pkt errors: 0
Table 1 Output description
Field |
Description |
ATM interface Atm3/1/1, State UP |
Name and state of the ATM interface |
Port Information |
Information of the ATM interface |
Maximum VCs |
Maximum number of VCs that can be created on the ATM interface |
PVCs |
Total number of PVCs configured on the ATM interface, its main interface, or each subinterface |
MAPs |
Number of mappings on the interface, its main interface, or each subinterface |
input pkts: 0, input bytes: 0, input pkt errors: 0 |
Received packets, bytes, and errors |
output pkts: 0, output bytes: 0, output pkt errors: 0 |
Transmitted packets, bytes, and errors |
Main interface Information |
Information of the main interface of the ATM interface |
ATM interface Atm3/1/1.1, point-to-point, State UP |
Name, type and state of a subinterface on the main interface |
Sub-interface Information |
Information of the subinterface |
display atm map-info
Syntax
display atm map-info [ interface atm { interface-number | interface-number.subnumber } [ pvc { pvc-name [ vpi/vci ] | vpi/vci } ] ] [ | { begin | exclude | include } regular-expression ]
View
Any view
Default level
1: Monitor level
Parameters
interface-number: Number of an ATM main interface.
interface-number.subnumber: Number of an ATM subinterface, in the range of 0 to 1023. interface-number is the number of the ATM main interface.
pvc-name: PVC name, a unique case-insensitive string of 1 to 16 characters on the specified ATM interface. 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; its value ranges from 0 to 255. VCI is short for virtual channel identifier; its value ranges from 0 to 1023. Because VCIs from 0 to 31 are reserved for special purposes, do not use them in normal cases.
|: 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.
Description
Use the display atm map-info command to display the PVC mappings on the specified ATM main interface, subinterface, PVC, or all ATM interfaces if no interface is specified.
Examples
# Display the PVC mappings on all ATM interfaces.
<Sysname> display atm map-info
Atm3/1/1, PVC 10/47, ETH, Virtual-Ethernet3/0/1, UP
Atm3/1/1, PVC 10/48, ETH, Virtual-Ethernet3/0/1, UP
Atm3/1/2, PVC 10/100, IP, State UP
100.11.1.1, vlink 327752
Table 2 Output description
Field |
Description |
ATM3/1/1 |
Interface number |
PVC 10/47 |
PVC identifier |
IP/ETH |
Protocol type |
State |
PVC state |
100.11.1.1 |
Protocol address |
vlink 327752 |
Virtual link number |
display atm pvc-info
Syntax
display atm pvc-info [ interface atm { interface-number | interface-number.subnumber } [ pvc { pvc-name [ vpi/vci ] | vpi/vci } ] ] [ | { begin | exclude | include } regular-expression ]
View
Any view
Default level
1: Monitor level
Parameters
interface-number: Specifies the number of an ATM main interface.
interface-number.subnumber: Number of an ATM subinterface, in the range of 0 to 1023. interface-number is the number of the ATM main interface.
pvc-name: PVC name, a unique case-insensitive string of 1 to 16 characters on the specified ATM interface. The name cannot be the same as any valid VPI/VCI pair. For example, the name 1/32 is not allowed.
vpi/vci: VPI/VCI pair. VPI is short for virtual path identifier; its value ranges from 0 to 255. VCI is short for virtual channel identifier; its value ranges from 0 to 1023. As VCIs from 0 to 31 are reserved for special purposes, do not use them in normal cases.
|: 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.
Description
Use the display atm pvc-info command to display information about PVCs for the specified ATM main interface, subinterface, PVC, or all ATM interfaces if no ATM interface is specified.
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 |toBeijing |0 |SNAP |IP |Atm3/1/1 (UP)
1/33 |UP |toShanghai |1 |SNAP |None |Atm3/1/1 (UP)
1/55 |UP |toDatacomm |2 |SNAP |ETH |Atm3/1/1.1 (UP)
2/66 |UP | |3 |SNAP |IP |Atm3/1/1.4 (UP)
2/101 |UP | |4 |SNAP |ETH |Atm3/1/1.2 (UP)
Table 3 Output description
Field |
Description |
VPI/VCI |
VPI/VCI 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 the PVC belongs to |
# Display information about a specified ATM PVC.
<Sysname> display atm pvc-info interface Atm 3/1/1 pvc 1/100
Atm3/1/1, VPI: 1, VCI: 100, INDEX: 0
AAL5 Encaps: SNAP, Protocol: IP
Service-type: CBR, output-pcr: 200 kbps, CDVT: 500 us
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
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
Table 4 Output description
Field |
Description |
VPI |
The virtual path identifier of the specified ATM PVC. |
VCI |
The 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. |
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 router to receive before reporting that the PVC is down; number of seconds for the router 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. |
OAM State |
OAM status. |
PVC State |
PVC status. |
OAM cells received |
Count of received OAM cells. |
F5 InEndloop |
Count of received F5 loopback cells. |
F5 InAIS |
Count of received AIS cells. If the AIS alarm state is not supported, this command displays only the count of AIS cells, not the AIS alarm state, that is, the OAM AIS State field. |
F5 InRDI |
Count of received RDI cells. If the RDI alarm state is not supported, this command displays only the count of RDI cells, not the RDI alarm state, that is, the OAM RDI State field. |
OAM cells sent |
Count of transmitted OAM cells. |
F5 OutEndloop |
Count of transmitted F5 loopback cells. |
OAM AIS State |
AID alarm state. If the AIS alarm state is supported, this command displays only the AIS alarm state, not the count of received AIS cells, that is, the F5 InAIS field. |
OAM RDI State |
If the RDI alarm state is supported, this command displays only the RDI alarm state, not the count of received RDI cells, that is, the F5 InRDI field. |
OAM cell drops |
Count of dropped OAM cells. |
OAM CC State |
OAM CC alarm 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 (currently not supported). |
display interface atm
Syntax
display interface atm [ interface-number | interface-number.subnumber ] [ | { begin | exclude | include } regular-expression ]
View
Any view
Default level
1: Monitor level
Parameters
interface-number: Specifies the number of an ATM main interface.
subnumber: Specifies the number of an ATM subinterface, in the range of 0 to 1023. It is separated from the main interface by a dot (.).
|: 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.
Description
Use the display interface atm command to display the configuration and state information of the specified ATM interface or all ATM interfaces if no interface is specified.
Examples
# Display the configuration and state information of interface ATM 4/1/2.
<Sysname> display interface Atm 4/1/2
Atm4/1/2 current state: UP
Line protocol current state: UP
Description: Atm4/1/2 Interface
The Maximum Transmit Unit is 1200
Internet protocol processing : disabled
AAL enabled: AAL5, Maximum VCs: 1024
Current VCs: 100 (0 on main interface)
Current VPs: 0 (0 on main interface)
Port connector type is OC3/STM_1_SR_SFP
Physical layer is packet over SDH
Port speed type: STM-1
Loopback is not set
Clock source: Slave
Clock grade: Quality unknown(existing synchronization network)
SPE scrambling: Enable
BER thresholds:
SD: 10e-6 SF: 10e-3
Regenerator section layer:
J0(TX): "h3c"
68 33 63 00 00 00 00 00 00 00 00 00 00 00 00 00
J0(RX): "h3c"
68 33 63 00 00 00 00 00 00 00 00 00 00 00 00 00
Alarm: NONE
Error: 0 BIP(B1)
Multiplex section layer:
Alarm: NONE
Error: 0 BIP(B2), 0 REI(M1)
Higher order path layer:
C2(TX): 0x13 C2(RX): 0x13
J1(TX): "h3c"
68 33 63 00 00 00 00 00 00 00 00 00 00 00 00 00
J1(RX): "h3c"
68 33 63 00 00 00 00 00 00 00 00 00 00 00 00 00
Alarm: NONE
Error: 0 BIP(B3), 0 REI(G1)
0 PJE, 0 NJE
Last 300 seconds input: 57615 packets/s, 6387965 bytes/s
Last 300 seconds output: 46113 packets/s, 8852949 bytes/s
Input : 184384723 packets, 18819825504 bytes, 0 buffers
0 errors, 0 crcs, 0 lens, 0 giants,
0 pads, 0 aborts, 0 timeouts,
0 overflows, 0 overruns, 0 no buffer
Output: 60804502 packets, 11674011408 bytes, 0 buffers
0 errors, 0 overflows, 0 underruns
Peak value of input: 0 bytes/sec, at 2010-12-27 06:15:45
Peak value of output: 0 bytes/sec, at 2010-12-27 06:15:45
Table 5 Output description
Field |
Description |
Atm4/1/2 current state |
Physical state of the interface |
Line protocol current state |
Link layer state of the interface |
AAL enabled: AAL5, Maximum VCs: 1024 |
AAL type and the maximum number of VCs allowed on the interface |
Current VCs |
VCs configured on the interface |
Current VPs |
VPs configured on the interface |
Port connector type |
Optical module type of the interface |
Physical layer |
Framing format of the interface |
Port speed type |
Transmission rate of the interface |
Loopback |
Loopback mode of the interface |
Clock Source |
Clock mode of the interface |
Clock grade |
Clock grade of the interface |
SPE scrambling |
Scrambling mode of the interface |
BER thresholds |
Signal degrade (SD) alarm threshold and signal fail (SF) alarm threshold of the interface |
J0(Rx) |
J0 overhead byte expected to receive on the interface |
J0(Tx) |
J0 overhead byte transmitted by the interface |
J1(Rx) |
J1 overhead byte expected to receive on the interface |
J1(Tx) |
J1 overhead byte transmitted by the interface |
C2(RX) |
C2 overhead byte expected to receive on the interface |
C2(TX) |
C2 overhead byte transmitted by the interface |
Regenerator section layer: |
Alarm and error statistics of the regenerator section |
Multiplex section layer: |
Alarm and error statistics of the multiplex section |
Higher order path layer: |
Alarm and error statistics of the high order path |
Alarm |
Alarm statistics |
Error |
Error statistics |
Peak value of input |
Peak value of packets received on the interface |
Peak value of output |
Peak value of packets transmitted on the interface |
eoapad enable
Syntax
eoapad enable
undo eoapad enable
View
ATM main interface view
Default level
2: System level
Parameters
None
Description
Use the eoapad enable command to enable Ethernet packet padding on an ATM interface.
Use the undo eoapad enable command to disable the function.
By default, Ethernet packet padding is disabled.
When you enable this function on an ATM interface, the interface fills in a sent EoA packet to 60 bytes if the packet (including the frame header) is smaller than 60 bytes.
Examples
# Enable Ethernet packet padding on interface ATM 3/1/1.
<Sysname> system-view
[Sysname] interface Atm 3/1/1
[Sysname-Atm3/1/1] eoapad enable
|
NOTE: This command is also enabled on the ATM subinterfaces when it is enabled on the ATM main interface. |
flag
Syntax
flag c2 flag-value
undo flag c2
flag { j0 | j1 } { sdh | sonet } flag-value
undo flag { j0 | j1 } { sdh | sonet }
View
ATM main interface view
Default level
2: System level
Parameters
c2 flag-value: Path signal flag byte, a higher-order path overhead byte that indicates the multiplex structure of virtual container (VC) frames and property of payload. It is a hexadecimal number in the range of 0 to FF.
j0 flag-value: Regeneration section trace message, a section overhead byte that tests continuity of the connection between two interfaces at the section level. If the sdh keyword is configured, the flag-value argument is a string of 1 to 15 hexadecimal digits. If the sonet keyword is configured, the argument is a hexadecimal number in the range of 0 to FF.
j1 flag-value: Path trace message, a higher-order path overhead byte that tests continuity of the connection between two interfaces at the path level. If the sdh keyword is configured, the flag-value argument is a string of 1 to 15 hexadecimal digits. If the sonet keyword is configured, the argument is a string of 1 to 62 characters.
sdh: Sets framing format to Synchronous Digital Hierarchy (SDH).
sonet: Sets framing format to Synchronous Optical Network (SONET).
Description
Use the flag command to set the SONET/SDH overhead bytes.
Use the undo flag command to restore the default.
By default, the default SDH overhead bytes are used.
The default overhead bytes are as follows.
· c2: 0x13
· j0 (SDH): Null
· j1 (SDH): Null
Inconsistency between the c2 and j1 settings of the sending end and those of the receiving end causes alarms.
The j0 byte can be any character in the network of the same carrier. If networks of two carriers are involved, the sending and receiving routers at network borders must use the same j0 byte. With the j0 byte, operators can detect and troubleshoot faults in advance or use less time to recover the networks.
The inconsistent j0 byte settings at the sending and receiving ends cause alarms in SDH frames but do not in SONET frames.
Examples
# Set the SDH overhead byte J0 of ATM interface ATM 3/1/1.
<Sysname> system-view
[Sysname] interface Atm 3/1/1
[Sysname-Atm3/1/1] flag j0 sdh ff
frame-format
Syntax
frame-format { sdh | sonet }
undo frame-format
View
ATM main interface view
Default level
2: System level
Parameters
sdh: Sets the framing format to SDH STM-1/STM-4.
sonet: Sets the framing format to SONET OC-3/OC-12.
Description
Use the frame-format command to set the framing format for an ATM interface.
Use the undo frame-format command to restore the default.
By default, the framing format of an ATM interface is SDH STM-1/STM-4.
Examples
# Set the framing format of ATM 3/1/1 to SONET OC-3/OC-12.
<Sysname> system-view
[Sysname] interface Atm 3/1/1
[Sysname-Atm3/1/1] frame-format sonet
interface atm
Syntax
interface atm { interface-number | interface-number.subnumber [ p2mp | p2p ] }
undo interface atm interface-number.subnumber
View
System view
Default level
2: System level
Parameters
interface-number: ATM main interface number.
subnumber: ATM subinterface number, in the range of 0 to 1023.
p2mp: Sets the connection type of the subinterface to point-to-multipoint (P2MP).
p2p: Sets the connection type of the subinterface to point-to-point (P2P).
Description
Use the interface atm command to create an ATM subinterface or enter an ATM subinterface view.
Use the undo interface atm command to delete an ATM subinterface.
Be default, the connection type of an ATM subinterface is P2MP.
|
NOTE: On a P2MP ATM subinterface, you can create multiple PVCs. On a P2P ATM subinterface, you can create only one PVC. |
Examples
# Enter the view of interface ATM 3/1/1.
<Sysname> system-view
[Sysname] interface Atm 3/1/1
[Sysname-Atm3/1/1]
# Create and enter the view of subinterface ATM 3/1/1.1, and set its connection type to P2P.
<Sysname> system-view
[Sysname] interface Atm 3/1/1.1 p2p
[Sysname-Atm3/1/1.1]
loopback
Syntax
loopback { cell | local | remote }
undo loopback
View
ATM main interface view
Default level
2: System level
Parameters
cell: Enables internal cell loopback testing.
local: Enables internal loopback testing.
remote: Enables external loopback testing.
Description
Use the loopback command to enable a specific type of loopback testing on an ATM interface.
Use the undo loopback command to disable the loopback testing that is being performed.
By default, loopback testing is disabled.
Internal loopback or external loopback is designed only for test purposes. Do not enable loopback testing on an interface operating normally.
Examples
# Enable internal loopback testing on ATM 3/1/1.
<Sysname> system-view
[Sysname] interface Atm 3/1/1
[Sysname-Atm3/1/1] loopback local
map bridge
Syntax
map bridge { virtual-ethernet | ve-bridge } interface-number
undo map bridge
View
PVC view
Default level
2: System level
Parameters
interface-number: Virtual Ethernet (VE) or VE-bridge interface number.
Description
Use the map bridge command to map the current PVC to the specified VE or VE-bridge interface for IPoEoA or EoA.
Use the undo map bridge command to remove the mapping.
By default, no PVC mapping is configured.
When using this command, make sure that the VE or VE-bridge interface has been created.
Examples
The following examples demonstrate a complete process of IPoEoA configuration.
# Create a VE interface Virtual-Ethernet 3/0/1.
<Sysname> system-view
[Sysname] interface Virtual-Ethernet 3/0/1
# Assign IP address 10.1.1.1/16 to the VE interface.
[Sysname-Virtual-Ethernet3/0/1] ip address 10.1.1.1 255.255.0.0
[Sysname-Virtual-Ethernet3/0/1] quit
# Create PVC 1/102 on the ATM interface ATM 3/1/1.
[Sysname] interface Atm 3/1/1
# Map the PVC to the VE interface.
[Sysname-atm-pvc-Atm3/1/1-1/102] map bridge Virtual-Ethernet 3/0/1
map ip
Syntax
map ip { ip-address | default | inarp [ minutes ] } [ broadcast ]
undo map ip { ip-address | default | inarp }
View
PVC view
Default level
2: System level
Parameters
ip-address: Remote IP address mapped to the current PVC.
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 inverse address resolution protocol (InARP) on the current PVC.
minutes: Sets the interval in minutes for sending InARP packets. The value ranges from 1 to 600 and defaults to 15.
broadcast: Enables pseudo-broadcast. If the mapping of a PVC is configured with pseudo-broadcast, the router sends on the PVC a copy of each broadcast or multicast packet that it sends out the interface to which the PVC belongs.
You must configure the broadcast keyword on an ATM PVC where broadcast or multicast packets must be sent, for example, to allow PIM multicast to create neighbor relationship with the router connected using the ATM interface.
Description
Use the map ip command to create an IPoA mapping for the PVC.
Use the undo map ip command to delete the mapping.
By default, no IPoA mapping is configured. If a mapping is configured, pseudo-broadcast is not supported by default.
Examples
# Create a static IPoA mapping for PVC 1/32, specifying the opposite IP address to 61.123.30.169 and supporting pseudo-broadcast.
<Sysname> system-view
[Sysname] interface Atm 3/1/1
[Sysname-Atm3/1/1] pvc 1/32
[Sysname-atm-pvc-Atm3/1/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 3/1/1
[Sysname-Atm3/1/1] pvc 1/33
[Sysname-atm-pvc-Atm3/1/1-1/33] map ip inarp 10
mtu
Syntax
mtu mtu-number
undo mtu
View
ATM interface view
Default level
2: System level
Parameters
mtu-number: MTU size in bytes on the current ATM interface, in the range of 128 to 2000.
Description
Use the mtu command to set the size of maximum transmission unit (MTU) on the current ATM interface.
Use the undo mtu command to restore the default.
By default, the MTU of an ATM interface is 1500 bytes.
|
NOTE: You can configure this command in either ATM main interface view or ATM subinterface view. The command takes effect only on the configured interface or subinterface. |
Examples
# Set the MTU to 1492 bytes for interface ATM 3/1/1.
[Sysname] interface Atm 3/1/1
[Sysname-Atm3/1/1] mtu 1492
oam cc end-to-end
Syntax
oam cc end-to-end { both | sink | source }
undo oam cc end-to-end { both | sink | source }
View
PVC view
Default level
2: System level
Parameters
both: Enables the PVC as both the continuity check (CC) cell source and the CC cell sink, that is, the receiver.
sink: Enables the PVC as the CC cell sink to receive and process CC cells.
source: Enables the PVC as the CC cell source to generate CC cells.
Description
Use the oam cc end-to-end command to enable the OAM continuity check (CC) function on the current PVC.
Use the undo oam cc end-to-end command to disable the OAM CC function on the current PVC.
By default, OAM CC is disabled.
When you configure OAM CC on a PVC, configure one end of the PVC as the CC cell source and the other end as the CC cell sink.
On an OAM CC-enabled PVC, if the detecting end fails to receive CC cells within 3 seconds, the state of the PVC changes to down and will change to up only after CC cells or packets are received again.
When disabling OAM CC on a PVC, make sure that the role of the PVC in continuity check is the same as the one that has been enabled. For example, if you have enabled the PVC as both the CC cell source and the sink, you should perform the undo oam cc end-to-end both command rather than the undo oam cc end-to-end sink command to disable the function.
This command cannot be configured on the member PVCs in a PVC group.
Examples
# Enable OAM CC.
<Sysname> system-view
[Sysname] interface Atm 3/1/1
[Sysname-Atm3/1/1] pvc 1/32
[Sysname-atm-pvc-Atm3/1/1-1/32] oam cc end-to-end sink
oam frequency
Syntax
oam frequency frequency [ up up-count down down-count retry-frequency retry-frequency ]
undo oam frequency
View
PVC view
Default level
2: System level
Parameters
frequency: Interval in seconds for sending OAM F5 Loopback cells, in the range of 0 to 600. When the interval is set to 0, no OAM F5 loopback cells are sent.
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.
Description
Use the oam frequency command to enable the transmission and retransmission detection of OAM F5 Loopback cells, as well as to modify the related parameters.
Use the undo oam frequency command to disable the transmission and retransmission detection of OAM F5 Loopback cells.
By default, OAM F5 Loopback cell transmission is disabled, but if an OAM F5 Loopback cell is received, it should be responded.
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 3/1/1
[Sysname-Atm3/1/1] pvc 1/32
[Sysname-atm-pvc-Atm3/1/1-1/32] oam frequency 12 up 4 down 4 retry-frequency 1
oamping interface
Syntax
oamping interface atm { interface-number | interface-number.subnumber } pvc { pvc-name | vpi/vci } [ number timeout ]
View
ATM interface view
Default level
2: Monitor level
Parameters
interface-number: Number of an ATM main interface.
interface-number.subnumber: Number of an ATM subinterface, in the range of 0 to 1023. interface-number is the number of the ATM main interface of the subinterface.
pvc-name: PVC name, a unique case-insensitive string of 1 to 16 characters on ATM interface. 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; its value ranges from 0 to 255. VCI is short for virtual channel identifier; its value ranges from 0 to 1023. As VCIs from 0 to 31 are reserved for special purposes, do not use them in normal cases.
number: Number of OAM cells to be transmitted consecutively, in the range of 1 to 1000. The default is 5.
timeout: OAM response timeout period in seconds, in the range of 1 to 30. The default is 2.
Description
Use the oamping interface command to send OAM cells over the specified PVC on the current ATM interface so as to check the link state. If no response is received within the specified time, this means that the link is disconnected or so busy that packets are lost.
Examples
# Check the link state of PVC 1/32 on interface ATM 3/1/1 by sending three cells. Set the response timeout period to one second.
<Sysname> system-view
[Sysname] interface Atm 3/1/1
[Sysname-Atm3/1/1] oamping interface Atm 3/1/1 pvc 1/32 3 1
Ping interface Atm3/1/1,pvc 1/32, 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
Oam Ping statistics:
Cells: Sent = 3, Received = 3, Lost = 0 (0% loss)
pvc
Syntax
pvc { pvc-name [ vpi/vci ] | vpi/vci }
undo pvc { pvc-name [ vpi/vci ] | vpi/vci }
View
ATM interface view
Default level
2: System level
Parameters
pvc-name: PVC name, a unique case-insensitive string of 1 to 16 characters on the ATM interface. The name cannot be the same as a 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; its value ranges from 0 to 255. VCI is short for virtual channel identifier; its value ranges from 0 to 1023. As VCIs from 0 to 31 are reserved for special purposes, do not use them in normal cases.
|
NOTE: You can set vpi or vci to 0, but not both. |
Description
Use the pvc command to create a PVC and enter the PVC view on the current ATM interface.
Use the undo pvc command to delete the specified PVC.
By default, no PVC is created.
If a PVC was assigned a name upon its creation, you can use the pvc pvc-name [ vpi/vci ] command to enter its view or delete the PVC with either the undo pvc pvc-name [ vpi/vci ] command or the undo pvc vpi/vci command.
Make sure that the VPI/VCI pairs are unique on an ATM interface (including the main interface and the subinterfaces).
The number of PVCs that can be created depends on the pvc max-number command.
Related commands: display atm pvc-info and pvc max-number.
Examples
# Create a PVC named aa with the VPI/VCI value of 1/101.
<Sysname> system-view
[Sysname] interface Atm 3/1/1
[Sysname-Atm3/1/1] pvc aa 1/101
pvc max-number
Syntax
pvc max-number max-number
undo pvc max-number
View
ATM main interface view
Default level
2: System level
Parameters
max-number: Maximum number of PVCs allowed on an ATM interface, in the range of 1 to 1024.
Description
Use the pvc max-number command to set the maximum number of PVCs allowed on the current ATM interface.
Use the undo pvc max-number command to restore the default.
By default, the maximum number of PVCs allowed is 1024.
The maximum number specified in this command is the total number of the PVCs that can be created on an ATM main interface and its subinterfaces.
|
NOTE: The command is available only in ATM main interface view. |
Examples
# Specify that interface ATM 3/1/1 support up to 128 PVCs.
<Sysname> system-view
[Sysname] interface Atm 3/1/1
[Sysname-Atm3/1/1] pvc max-number 128
reset atm interface
Syntax
reset atm interface [ atm { interface-number | interface-number.subnumber } ]
View
User view
Default level
2: System level
Parameters
interface-number: Specifies the number of an ATM main interface.
subnumber: Specifies the number of an ATM subinterface, in the range of 0 to 1023. It is separated from the main interface by a dot (.).
Description
Use the reset atm interface command to clear statistics about PVCs on ATM interfaces.
This command does not clear the statistics about ATM interfaces. To clear the statistics about an ATM interface, use the reset counters interface command. For more information about the reset counters interface command, see Interface Command Reference.
If you execute this command with an ATM main interface specified, this command clears the statistics on the PVCs created on the ATM interface and its ATM subinterfaces. If you execute this command with an ATM subinterface specified, this command clears the statistics about the PVCs created on the ATM subinterface.
If you execute this command with no ATM interface specified, the statistics about the PVCs created on all the ATM interfaces are cleared.
Examples
# Clear the statistics about all the PVCs created on ATM subinterface ATM 3/1/1.1.
<Sysname> reset atm interface Atm 3/1/1.1
scramble
Syntax
scramble
undo scramble
View
ATM main interface view
Default level
2: System level
Parameters
None
Description
Use the scramble command to enable payload scrambling on the ATM interface. This, however, does not affect cell headers.
Use the undo scramble command to disable payload scrambling.
By default, payload scrambling is enabled on an ATM interface.
You can enable payload scrambling to prevent successive 0s or 1s in the payload.
With payload scrambling enabled, the interface scrambles data before sending it and descrambles received data. With payload scrambling disabled, the interface neither scrambles sent data nor descrambles received data.
|
NOTE: For normal communication, make sure that the same payload scrambling setting is configured on the communicating ATM interfaces. |
Examples
# Enable payload scrambling on ATM interface 3/1/1.
<Sysname> system-view
[Sysname] interface Atm 3/1/1
[Sysname-Atm3/1/1] undo scramble
service cbr
Syntax
service cbr output-pcr [ cdvt cdvt-value ]
undo service
View
PVC view
Default level
2: System level
Parameters
output-pcr: Peak cell rate (PCR) in kbps of outputting ATM cells. The value range of this argument varies with interface types, as shown in the following table:
Table 6 Value ranges of the output-pcr argument
Interface type |
Value range of output-pcr |
ATM OC3/STM-1 |
64 to 155000 |
ATM OC12/STM-4 |
64 to 622000 |
cdvt-value: Cell delay variation tolerance in μs, in the range of 0 to 10,000. The default is 500 μs.
Description
Use the service cbr command to specify the service type on the current PVC as constant bit rate (CBR).
Use the undo service command to restore the default.
The default service type of a PVC is UBR.
You can use this command to set the service type and rate parameters for a PVC. The new configuration will overwrite the old configuration.
Setting of the argument cdvt-value does not take effect on the router.
Related commands: service vbr-nrt, service vbr-rt, and service ubr.
Examples
# Create a PVC named aa, with the VPI/VCI of 1/101.
<Sysname> system-view
[Sysname] interface Atm 3/1/1
[Sysname-Atm3/1/1] pvc aa 1/101
# Specify the service type of the PVC as CBR, and set the PCR to 50000 kbps.
[Sysname-atm-pvc-Atm3/1/1-1/101-aa] service cbr 50000
service ubr
Syntax
service ubr output-pcr
undo service
View
PVC view
Default level
2: System level
Parameters
output-pcr: Peak cell rate (PCR) in kbps of outputting ATM cells. For the value ranges of this parameter, see Table 6.
Description
Use the service ubr command to specify the service type on the current PVC as unspecified bit rate (UBR) and specify the related rate parameters.
Use the undo service command to restore the default.
The default service type of a PVC is UBR.
You can configure the service type and related rate parameters for a PVC with this command, the service vbr-nrt command, the service vbr-rt command, or the service cbr command. The new configuration will replace the old configuration.
Related commands: service vbr-nrt, service vbr-rt, and service cbr.
Examples
# Create a PVC named aa with the VPI/VCI of 1/101.
<Sysname> system-view
[Sysname] interface Atm 3/1/1
[Sysname-Atm3/1/1] pvc aa 1/101
# Specify the service type of the PVC as UBR and the PCR as 100000 kbps.
[Sysname-atm-pvc-Atm3/1/1-1/101-aa] service ubr 100000
service vbr-nrt
Syntax
service vbr-nrt output-pcr output-scr output-mbs
undo service
View
PVC view
Default level
2: System level
Parameters
output-pcr: Peak cell rate (PCR) in kbps of outputting ATM cells. For the value ranges of this argument, see Table 6.
output-scr: Sustainable cell rate in kbps of outputting ATM cells. Its value ranges are the same as those of the output-pcr argument.
output-mbs: Maximum burst size for ATM cell output, that is, the maximum number of ATM cells that the output interface can cache. The value ranges from 1 to 512.
Description
Use the service vbr-nrt command to specify the service type of the current PVC as non-real-time variable bit rate (nrt_VBR) and specify the related rate parameters.
Use the undo service command to restore the default.
The default service type of a PVC is UBR.
You can configure the service type and related rate parameters for a PVC with this command, the service ubr command, the service vbr-rt command, or the service cbr command. The new configuration will overwrites the old configuration.
Setting of the arguments output-scr and output-mbs does not take effect on the router.
Related commands: service ubr, service vbr-rt, and service cbr.
Examples
# Create a PVC named aa, with the VPI/VCI of 1/101.
<Sysname> system-view
[Sysname] interface Atm 3/1/1
[Sysname-Atm3/1/1] pvc aa 1/101
[Sysname-atm-pvc-Atm3/1/1-1/101-aa] service vbr-nrt 100000 50000 320
service vbr-rt
Syntax
service vbr-rt output-pcr output-scr output-mbs
undo service
View
PVC view
Default level
2: System level
Parameters
output-pcr: Peak cell rate (PCR) in kbps of outputting ATM cells. For the value ranges of this argument, see Table 6.
output-scr: Sustainable cell rate (SCR) in kbps of outputting ATM cells. Its value ranges are the same as those of the output-pcr argument.
output-mbs: Maximum burst size of ATM cell output, that is, the maximum cache size of ATM cell output at the interface in cell number. The value ranges from 1 to 512.
Description
Use the service vbr-rt command to set the service type of the current PVC to real-time variable bit rate (rt_VBR) and specify the related rate parameters.
Use the undo service command to restore the default.
The default service type of a PVC is UBR.
You can configure the service type and related rate parameters for a PVC with this command, the service ubr command, the service vbr-nrt command, or the service cbr command. The new configuration will replace the old configuration.
Setting of the arguments output-scr and output-mbs does not take effect on the router.
Related commands: service vbr-nrt, service ubr, and service cbr.
Examples
# Create a PVC named aa with the VPI/VCI of 1/101.
<Sysname> system-view
[Sysname] interface Atm 3/1/1
[Sysname-Atm3/1/1] pvc aa 1/101
# Specify the service type of the PVC as rt_VBR, setting the PCR to 100000 kbps, the SCR to 50000 kbps, and the maximum burst size to 320 cells.
[Sysname-atm-pvc-Atm3/1/1-1/101-aa] service vbr-rt 100000 50000 320
shutdown
Syntax
shutdown
undo shutdown
View
ATM interface view, PVC view
Default level
2: System level
Parameters
None
Description
Use the shutdown command to shut down an ATM main interface, ATM subinterface, or PVC.
Use the undo shutdown command to bring up an ATM main interface, ATM subinterface, or PVC.
By default, ATM main interfaces, subinterfaces, and PVCs are up.
Examples
# Shut down interface ATM 3/1/1.
<Sysname> system-view
[Sysname] interface Atm 3/1/1
[Sysname-Atm3/1/1] shutdown
# Bring up interface ATM 3/1/1.
<Sysname> system-view
[Sysname] interface Atm 3/1/1
[Sysname-Atm3/1/1] undo shutdown
# Shut down PVC 1/101.
<Sysname> system-view
[Sysname] interface Atm 3/1/1
[Sysname-Atm3/1/1] pvc aa 1/101
[Sysname-atm-pvc-Atm3/1/1-1/101-aa] shutdown
# Bring up PVC 1/101.
<Sysname> system-view
[Sysname] interface Atm 3/1/1
[Sysname-Atm3/1/1] pvc aa 1/101
[Sysname-atm-pvc-Atm3/1/1-1/101-aa] undo shutdown
threshold
Syntax
threshold { sd | sf } value
undo threshold { sd | sf }
View
ATM main interface view
Default level
2: System level
Parameters
sd: Sets the signal degrade (SD) alarm threshold.
sf: Sets the signal failure (SF) alarm threshold.
value: SD or SF alarm threshold, an integer in the range of 3 to 9.
Description
Use the threshold command to set the SD alarm threshold or SF alarm threshold for the current ATM interface.
Use the undo threshold command to restore the default.
By default, the SD alarm threshold is 10e-6 and the SF alarm threshold is 10e-3.
SD and SF alarms are used to indicate current line performance. They are generated when the receiving end detects a certain amount of B2 errors. When a small amount of errors occur, SD alarms are generated; when the error rate increases to a certain level, SF alarms are generated, indicating line performance has been degrading seriously, so you must set the SF alarm threshold higher than the SD alarm threshold.
When setting the thresholds, set the SD threshold lower than the SF threshold.
Examples
# Set the SD alarm threshold to 10e-4 for interface ATM 3/1/1.
<Sysname> system-view
[Sysname] interface Atm 3/1/1
[Sysname-Atm3/1/1] threshold sd 4