- Table of Contents
- Related Documents
-
Title | Size | Download |
---|---|---|
04-POS interface commands | 242.97 KB |
POS interface commands
Unless otherwise specified, POS interfaces in this chapter refer to standard POS interfaces.
alarm-detect
se alarm-detect to configure the action to take when an RDI, SD, or SF alarm occurs on an interface.
Use undo alarm-detect to restore the default.
Syntax
alarm-detect rdi action link-down
undo alarm-detect rdi
Default
The device does not take any actions on the interface when an RDI, SD, or SF alarm occurs.
Views
Standard POS interface view
Predefined user roles
network-admin
Parameters
rdi: Specifies remote defect indication (RDI) alarms.
action: Specifies the action to take when the specified alarm is detected on the interface.
link-down: Places the interface in down state.
Usage guidelines
An RDI alarm occurs if the device receives multiplexer section remote defect indication (MS-RDI) signals from the remote end.
Examples
# Configure Pos 3/1/1 to go down when an RDI alarm occurs.
<Sysname> system-view
[Sysname] interface pos 3/1/1
[Sysname-Pos3/1/1] alarm-detect rdi action link-down
bandwidth
Use bandwidth to configure the expected bandwidth of an interface.
Use undo bandwidth to restore the default.
Syntax
bandwidth bandwidth-value
undo bandwidth
Default
The expected bandwidth (in kbps) is the interface baud rate divided by 1000.
Views
Standard POS interface view
Predefined user roles
network-admin
Parameters
bandwidth-value: Specifies the expected bandwidth in the range of 1 to 400000000 kbps.
Usage guidelines
The expected bandwidth is an informational parameter used only by higher-layer protocols for calculation. You cannot adjust the actual bandwidth of an interface by using this command.
Examples
# Set the expected bandwidth to 50 kbps for Pos 3/1/1.
<Sysname> system-view
[Sysname] interface pos 3/1/1
[Sysname-Pos3/1/1] bandwidth 50
clock
Use clock to set the clock mode of a standard POS interface.
Use undo clock to restore the default.
Syntax
clock { master | slave }
undo clock
Default
The clock mode of a POS interface is slave.
Views
Standard POS interface view
Predefined user roles
network-admin
Parameters
master: Sets the clock mode to master.
slave: Sets the clock mode to slave.
Usage guidelines
Standard POS interfaces support the following clock modes:
· Master—Uses internal clock signal.
· Slave—Uses line clock signal.
If the standard POS interface is connected to another router, set its clock mode to be different from the mode used by the remote end. If the standard POS interface is connected to a SONET/SDH device, which provides higher clock precision, always set its clock mode to slave.
For interfaces on MIC-CLP4L and MIC-SP4L interface subcards, the clock mode must be the same for interfaces 1 and 2, or 3 and 4.
For interfaces on a MIC-TCP8L interface subcard, the clock mode must be the same for interfaces 1 and 2, 3 and 4, 5 and 6, or 7 and 8.
Examples
# Set the clock mode to master for Pos 3/1/1.
<Sysname> system-view
[Sysname] interface pos 3/1/1
[Sysname-Pos3/1/1] clock master
crc
Use crc to set the CRC length on an interface.
Use undo crc to restore the default.
Syntax
crc { 16 | 32 }
undo crc
Default
The CRC length on an interface is 32 bits.
Views
Standard POS interface view
Predefined user roles
network-admin
Parameters
16: Sets the CRC length to 16 bits.
32: Sets the CRC length to 32 bits.
Usage guidelines
The CRC length must be the same at both ends.
Examples
# Set the CRC length to 16 bits on Pos 3/1/1.
<Sysname> system-view
[Sysname] interface pos 3/1/1
[Sysname-Pos3/1/1] crc 16
dampening
Use dampening to enable the device to dampen an interface when it is flapping.
Use undo dampening to disable interface dampening.
Syntax
dampening [ half-life reuse suppress max-suppress-time ]
undo dampening
Default
Interface dampening is disabled on POS interfaces.
Views
Standard POS interface view
Predefined user roles
network-admin
Parameters
half-life: Specifies the amount of time (in seconds) for a penalty to decrease by half of its value. The value range is 1 to 120 seconds, and the default is 54 seconds.
reuse: Specifies the reuse threshold. The value range is 200 to 20000, and the default is 750. The reuse threshold must be lower than the suppression threshold.
suppress: Specifies the suppression threshold. The value range is 200 to 20000, and the default is 2000.
max-suppress-time: Specifies the maximum amount of time an interface can be dampened. The value range is 1 to 255 seconds, and the default is 162 seconds (three times the default half-life timer).
Usage guidelines
This command and the link-delay command cannot be both configured on an interface.
This command does not take effect on the administratively down events. When you execute the shutdown command, the penalty restores to 0, and the interface reports the down event to the higher layer protocols.
For more information about the interface dampening feature, see Interface Configuration Guide.
Examples
# Configure interface dampening on Pos 3/1/1.
<Sysname> system-view
[Sysname] interface pos 3/1/1
[Sysname-Pos3/1/1] dampening 2 800 3000 5
Related commands
display interface pos
link-delay
default
Use default to restore the default settings for an interface.
Syntax
default
Views
Standard POS interface view
Predefined user roles
network-admin
Usage guidelines
CAUTION: The default command might interrupt ongoing network services. Make sure you are fully aware of the impact of this command when you use 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. You can use the display this command in interface view to check for these commands, and use their undo forms or follow the command reference to restore their default settings. If your restoration attempt still fails, follow the error message to resolve the problem.
Examples
# Restore the default settings of Pos 3/1/1.
<Sysname> system-view
[Sysname] interface pos 3/1/1
[Sysname-Pos3/1/1] default
description
Use description to configure the description of an interface.
Use undo description to restore the default.
Syntax
description text
undo description
Default
The interface description uses the interface-name Interface format, for example, Pos3/1/1 Interface.
Views
Standard POS interface view
Predefined user roles
network-admin
Parameters
text: Specifies the description, a case-sensitive string of 1 to 255 characters.
Examples
# Configure the description of Pos 3/1/1 as pos-interface.
<Sysname> system-view
[Sysname] interface pos 3/1/1
[Sysname-Pos3/1/1] description pos-interface
display interface phy-option
Use display interface phy-option to display the physical attributes of an interface.
Syntax
display interface [ interface-type [ interface-number ] ] phy-option
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
interface-type: Specifies an interface type.
interface-number: Specifies an interface number.
Usage guidelines
If you do not specify an interface type, this command displays information about all interfaces.
If you specify an interface type but do not specify an interface number, this command displays information about all interfaces of that specified type.
Examples
# Display the physical attributes of POS interface Pos 3/0/1.
<Sysname> display interface pos 3/0/1 phy-option
Pos3/0/1
Interface index: 577
Current state: DOWN
Port connector type is No connector
Physical layer is packet over SDH
Port speed type: STM-1
Loopback is not set
FCS: 32-bit CRC
Clock source: Slave
Clock grade: Quality unknown(existing synchronization network)
SPE scrambling: Enable
BER thresholds:
SD: 10e-6 SF: 10e-4
Regenerator section layer:
J0(TX): "SR8800"
53 52 38 38 30 30 00 00 00 00 00 00 00 00 00 00
J0(RX): ""
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Higher order path layer:
C2(TX): 0x16 C2(RX): 0xff
J1(TX): "SR8800"
53 52 38 38 30 30 00 00 00 00 00 00 00 00 00 00
J1(RX): ""
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Table 1 Command output
Field |
Description |
Current state |
Physical link state of the interface: · Administratively DOWN—The interface has been shut down by using the shutdown command. · DOWN—The interface is administratively up, but its physical state is down (possibly because no physical link exists or the link has failed). · UP—The interface is both administratively and physically up. |
Port connector type |
Type of the transciever module on the interface. |
Physical layer is packet over SDH |
The framing format of the interface is SDH. |
Physical layer is packet over SONET |
The framing format of the interface is SONET. |
Port speed type |
Interface transmission speed. |
Loopback |
Whether loopback is enabled. |
FCS |
FCS type. |
Clock source |
Clock mode of the interface. |
Clock grade |
Clock grade of the interface: · PRC (G.811)—Primary reference clock (G.811 clock signal). · TNC (G.812 SSU-A)—Transit node clock (G.812 transit node clock signal). · LNC (G.812 SSU-B)—Local node clock (G.812 local node clock signal). · SETS (Synchronous Equipment Timing Source)—Device clock (SDH device clock source signal). · DNU (Do not use for synchronization)—The signal cannot be used for synchronization. · Quality unknown (existing synchronization network)—The synchronization quality is unknown. |
SPE scrambling |
Whether SPE scrambling is enabled. |
BER thresholds |
SD threshold value and SF threshold value of the interface. |
Regenerator section layer |
Alarm and error statistics of the regenerator section layer section. |
J0(TX) |
Transmitted J0 trace message value. |
J0(RX) |
Received J0 trace message value. |
Higher order path layer |
Alarm and error statistics of the high order path. |
C2(TX) |
Transmitted C2 bytes. |
C2(RX) |
Received C2 bytes. |
J1(TX) |
Transmitted J1 trace message value. |
J1(RX) |
Received J1 trace message value. |
display interface pos
Use display interface pos to display information about POS interfaces.
Syntax
display interface [ pos [ interface-number ] ] [ brief [ description | down ] ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
pos [ interface-number ]: Specifies a standard POS interface by its number. If you do not specify the pos keyword, this command displays information about all interfaces. If you specify the pos keyword without specifying an interface, this command displays information about all POS interfaces.
brief: Displays brief interface information. If you do not specify this keyword, the command displays detailed interface information.
description: Displays complete interface descriptions. If you do not specify this keyword, the command displays only the first 27 characters of interface descriptions.
down: Displays physically down interfaces and their down causes. If you do not specify this keyword, the command displays information about interfaces in any state.
Examples
# Display detailed information about Pos 3/1/1.
<Sysname> display interface pos 3/1/1
Pos3/1/1
Interface index: 577
Current state: DOWN
Line protocol state: DOWN
Description: pos-interface
Bandwidth: 155520 kbps
Maximum transmission unit: 1500
Hold timer: 10 seconds, retry times: 5
Dampening enabled:
Penalty: 0 (not suppressed)
Ceiling: 6000
Reuse: 750
Suppress: 2000
Half-life: 54 seconds
Max-suppress-time: 162 seconds
Flap count: 0
Internet protocol processing: Disabled
Link layer protocol: PPP
LCP: initial
Port priority: 0
Last link flapping: Never
Last clearing of counters: Never
Current system time:2017-12-15 17:18:19
Last time when physical state changed to up:-
Last time when physical state changed to down:2017-12-11 09:57:36
Port connector type is No connector
Physical layer is packet over SDH
Port speed type: STM-1
Loopback is not set
FCS: 32-bit CRC
Clock source: Slave
Clock grade: Quality unknown(existing synchronization network)
SPE scrambling: Enable
BER thresholds:
SD: 10e-6 SF: 10e-4
Regenerator section layer:
J0(TX): "SR8800"
53 52 38 38 30 30 00 00 00 00 00 00 00 00 00 00
J0(RX): ""
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Alarm: LOS
Error: 0 BIP(B1)
Multiplex section layer:
Alarm: None
Error: 0 BIP(B2), 0 REI(M1)
Higher order path layer:
C2(TX): 0x16 C2(RX): 0xef
J1(TX): "SR8800"
53 52 38 38 30 30 00 00 00 00 00 00 00 00 00 00
J1(RX): ""
00 00 00 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
Port statistic:start time: 2017-12-11 09:57:46
UP time: 0 H 0 M 0 S
Section: ES 0 SES 0 SEFS 0
Line : ES 0 SES 0 UAS 0 FE-ES 0
Input speed in last 300 seconds: 0 packets/s, 0 bytes/s
Output speed in last 300 seconds: 0 packets/s, 0 bytes/s
Input: 0 packets, 0 bytes(good), 0 bytes(all)
0 FCS errors, 0 Aborts, 0 FIFO overflow
0 Runts, 0 Giants
Output: 0 packets, 0 bytes(good), 0 bytes(all)
0 FIFO underflow, 0 Aborts, 0 Runts
Peak value of input: 0 bytes/sec, at 2017-12-15 00:01:34
Peak value of output: 0 bytes/sec, at 2017-12-15 00:01:34
# Display brief information about Pos 3/1/1.
<Sysname> display interface pos 3/1/1 brief
Brief information on interfaces in route mode:
Link: ADM - administratively down; Stby - standby
Protocol: (s) - spoofing
Interface Link Protocol Primary IP Description
Pos3/1/1 DOWN DOWN --
# Display brief information about all standard POS interfaces in a down state and the causes.
<Sysname> display interface pos brief down
Brief information on interfaces in route mode:
Link: ADM - administratively down; Stby - standby
Interface Link Cause
Pos3/1/1 ADM Administratively
Table 2 Command output
Field |
Description |
Current state |
Physical link state of the interface: · Administratively DOWN—The interface has been shut down by using the shutdown command. · DOWN—The interface is administratively up, but its physical state is down (possibly because no physical link exists or the link has failed). · UP—The interface is both administratively and physically up. |
Line protocol state |
Data link layer state of the interface. The state is determined through automatic parameter negotiation at the data link layer. · UP—The data link layer protocol is up. · DOWN—The data link layer protocol is down. |
Description |
Description of the interface. |
Bandwidth |
Expected bandwidth of the interface. |
Maximum transmission unit |
MTU of the interface. |
Hold timer |
Interval at which the data link layer protocol sends keepalives. |
Dampening enabled: Penalty: 0 (not suppressed) Ceiling: 6000 Reuse: 750 Suppress: 2000 Half-life: 54 seconds Max-suppress-time: 162 seconds Flap count: 0 |
Interface dampening information: · Dampening enabled—The dampening feature is enabled. · Penalty—Penalty value. The interface suppression state is displayed in parentheses. ¡ Not suppressed—The interface is not dampened. Interface state changes are reported to higher layer protocols. ¡ Suppressed—The interface is dampened. Interface state changes are not reported to higher layer protocols. · Ceiling—Maximum penalty value. · Reuse—Reuse threshold. · Suppress—Suppression threshold. · Half-life—Half-life timer. · Max-suppress-time—Maximum suppression time. · Flap count—Number of times that the interface has flapped. These fields are not displayed if dampening is disabled on the interface. |
retry times |
Keepalive retry limit. The interface determines that the remote end is down if it does not receive a keepalive response after the keepalive retry limit has been made. |
Internet address: ip-address/mask-length (Type) |
IP address of the interface and type of the address in parentheses. Possible IP address types include: · Primary—Manually configured primary IP address. · Sub—Manually configured secondary IP address. If the interface has both primary and secondary IP addresses, the primary IP address is displayed. If the interface has only secondary IP addresses, the lowest secondary IP address is displayed. · DHCP-allocated—DHCP allocated IP address. For more information, see DHCP client configuration in Layer 3—IP Services Configuration Guide. · BOOTP-allocated—BOOTP allocated IP address. For more information, see BOOTP client configuration in Layer 3—IP Services Configuration Guide. · PPP-negotiated—IP address assigned by a PPP server during PPP negotiation. For more information, see PPP configuration in BRAS Services Access Configuration Guide. · Unnumbered—IP address borrowed from another interface. · MAD—IP address assigned to an IRF member device for MAD on the interface. For more information, see IRF configuration in Virtual Technologies Configuration Guide. · MTunnel—IP address of the multicast tunnel interface (MTI), which is the same as the IP address of the MVPN source interface. For more information, see multicast VPN configuration in IP Multicast Configuration Guide. |
Internet protocol processing: |
The interface is not assigned an IP address and cannot process IP packets. |
LCP |
LCP negotiation. |
IPCP |
IPCP negotiation. |
Last link flapping |
The amount of time that has elapsed since the most recent physical state change of the interface. This field displays Never if the interface has been physically down since device startup. |
Last clearing of counters |
The most recent time that the reset counters interface pos command was executed. This field displays Never if the command has not been executed on the interface since device startup. |
Current system time |
Current system time in the YYYY-MM-DD HH:MM:SS format. If the time zone is configured, this field is in the YYYY-MM-DD HH:MM:SS UTC±HH:MM:SS format. |
Traffic statistic |
Whether the calculation of the interface average rate includes inter-frame gaps and preambles. · Include Inter-frame Gaps and Preambles. · Not include Inter-frame Gaps and Preambles. |
Last time when physical state changed to up |
Last time when physical state of the interface changed to up. A hyphen (-) indicates that the physical state of the interface has not changed to up. |
Last time when physical state changed to down |
Last time when physical state of the interface changed to down. A hyphen (-) indicates that the physical state of the interface has not changed to down. |
Port connector type |
Type of the transceiver module on the interface. |
Physical layer is packet over SDH |
The framing format on the interface is SDN. |
Physical layer is packet over SONET |
The framing format on the interface is SONET. |
Loopback |
Loopback state. |
FCS |
FCS type. |
Clock source |
Clock mode. |
Clock grade |
Clock grade of the interface: · PRC (G.811)—Primary reference clock (G.811 clock signal). · TNC (G.812 SSU-A)—Transit node clock (G.812 transit node clock signal). · LNC (G.812 SSU-B)—Local node clock (G.812 local node clock signal). · SETS (Synchronous Equipment Timing Source)—Device clock (SDH device clock source signal). · DNU (Do not use for synchronization)—The signal cannot be used for synchronization. · Quality unknown (existing synchronization network)—The synchronization quality is unknown. |
SPE scrambling |
Scrambling state of the interface. |
BER thresholds |
SD threshold and SF threshold of the CPOS interface. |
J0(TX) |
Transmitted J0 trace message value. |
J0(RX) |
Received J0 trace message value. |
Alarm |
Alarm statistics. |
Error |
Error statistics. |
Multiplex section layer |
Alarm and error statistics for the multiplex section. |
Higher order path layer |
Alarm and error statistics for the higher order path. |
C2(TX) |
Transmitted C2 bytes. |
C2(RX) |
Received C2 bytes. |
J1(TX) |
Transmitted J1 trace message value. |
J1(RX) |
Received J1 trace message value. |
Port statistic:start time |
Starting time for interface statistics. |
UP time |
Time when the interface was brought up. |
Section |
Alarm seconds for the regenerator section: · Error Seconds (ES)—Minor error alarm seconds. · Serious Error Seconds (SES)—Sever error alarm seconds. · Serious Error Frame Seconds (SEFS)—Sever frame error alarm seconds. |
Line |
Alarm seconds for the multiplex section: · Unavailable Seconds (UAS)—Unavailable alarm seconds. This field value starts to count after 10 seconds of continuous SES. · FE-ES—Alarm seconds for remote errors. This field value starts to count when the peer end sends an REI RDI alarm. |
Path1 |
Alarm seconds for the higher order path (displayed only when the alarm statistics are not 0). |
Input speed in last 300 seconds |
Input packet rates and input byte rates for the last 300 seconds. |
Output speed in last 300 seconds |
Output packet rates and output byte rates for the last 300 seconds. |
Input: 0 packets, 0 bytes(good), 0 bytes(all) 0 FCS errors, 0 Aborts, 0 FIFO overflow 0 Runts, 0 aborts, 0 Giants |
Inbound traffic statistics for the POS interface: · packets—Number of inbound packets. · bytes(good)—Number of inbound good bytes. · bytes(all)—Total number of inbound bytes. · FCS errors—Number of FCS errors. · aborts—Number of invalid inbound frames. · FIFO overflow—Number of packets that overflow. · Runts—Number of inbound packets shorter than the minimum frame length. · Giants—Number of inbound packets larger than the maximum frame length. |
Output: 0 packets, 0 bytes(good), 0 bytes(all) 0 FIFO underflow, 0 Aborts, 0 Runts |
Outbound traffic statistics for the POS interface: · packets—Number of outbound packets. · bytes(good)—Number of outbound good bytes. · bytes(all)—Total number of outbound bytes. · FIFO overflow—Number of packets that overflow. · Runts—Number of outbound packets shorter than the minimum frame length. · Giants—Number of outbound packets larger than the maximum frame length. |
Peak value of input |
Peak value of input packets and time when the peak rate occurred. |
Peak value of output |
Peak value of output packets and time when the peak rate occurred. |
Brief information on interfaces in route mode: |
Brief information about Layer 3 interfaces. |
Link |
Physical link state of the interface: · UP—The interface is physically up. · DOWN—The interface is physically down. · ADM—The interface has been shut down by using the shutdown command. To restore the physical state of the interface, use the undo shutdown command. · Stby—The interface is a backup interface in standby state. |
Protocol |
Data link layer protocol state of the interface: · UP—The data link layer protocol of the interface is up. · DOWN—The data link layer protocol of the interface is down. · UP(s)—The data link layer protocol of the interface is up, but the link is an on-demand link or does not exist. The (s)attribute represents the spoofing flag. |
Primary IP |
Primary IP address of the interface. This field displays two hyphens (--) if the interface does not have an IP address. |
Description |
Description of the interface. |
Cause |
Cause for the physical link state of an interface to be DOWN: · Administratively—The interface has been manually shut down by using the shutdown command. To restore the physical state of the interface, use the undo shutdown command. · Not connected—No physical connection exists (possibly because the network cable is disconnected or faulty). |
Related commands
reset counters interface pos
display this interface
Use display this interface to display the operating status and information of an interface.
Syntax
display this interface
Views
Ethernet interface view
Predefined user roles
network-admin
Usage guidelines
In interface view, to quickly view the operating status or packet statistics of the interface, execute this command.
For an interface, the output from the display this interface command in interface view is the same as the output from the display interface interface-type interface-number command in any view.
Related commands
display interface pos
flag c2
Use flag c2 to set the C2 path signal label byte.
Use undo flag c2 to restore the default.
Syntax
flag c2 flag-value
undo flag c2
Default
The C2 value is 16 in hexadecimal notation.
Views
Standard POS interface view
Predefined user roles
network-admin
Parameters
flag-value: Specifies a C2 byte value, a hexadecimal number in the range of 0 to ff.
Usage guidelines
The C2 byte is a higher-order path overhead byte. It indicates the multiplex structure of virtual container (VC) frames and the property of payload.
When the C2 byte of one end is set to 1, the C2 byte of the other end can be set to any character in hexadecimal notation. If the C2 byte of either ends of a link is not set to 1, the C2 byte must be the same at both ends.
Examples
# Set the C2 byte to 01 in hexadecimal notation on Pos 3/1/1.
<Sysname> system-view
[Sysname] interface pos 3/1/1
[Sysname-Pos3/1/1] flag c2 01
Related commands
display interface pos
flag j0
Use flag j0 to set the J0 regenerator section trace byte for SONET or SDH frames.
Use undo flag j0 to restore the default.
Syntax
flag j0 { sdh | sonet } flag-value
undo flag j0 {sdh | sonet }
Default
The device uses the SDH framing format, and the J0 byte value is SR8800 in SDH frames.
Views
Standard POS interface view
Predefined user roles
network-admin
Parameters
flag-value: Specifies the J0 byte. It must be a string of 1 to 15 characters for SDH, and a hexadecimal number in the range of 0 to ff for SONET.
sdh: Specifies the SDH framing format.
sonet: Specifies the SONET framing format.
Usage guidelines
J0 byte is a section overhead byte. SDH and SONET use this byte to test continuity of the connection between two interfaces at the section level.
The J0 byte can be different on devices of the same service provider. On the interfaces between two service providers, the J0 byte must be the same.
Examples
# Set the J0 byte to ff in hexadecimal notation for SDH on Pos 3/1/1.
<Sysname> system-view
[Sysname] interface pos 3/1/1
[Sysname-Pos3/1/1] flag j0 sdh ff
Related commands
display interface pos
frame-format
flag j1
Use flag j1 to set the J1 path trace byte for SONET or SDH frames.
Use undo flag j1 to restore the default.
Syntax
flag j1 { sdh | sonet } flag-value
undo flag j1 { sdh | sonet }
Default
The device uses the SDH framing format, and the J1 byte value is SR8800 in SDH frames.
Views
Standard POS interface view
Predefined user roles
network-admin
Parameters
flag-value: Specifies a J1 byte value. It must be a string of 1 to 15 characters for SDH and a string of 1 to 62 characters for SONET.
sdh: Specifies the SDH framing format.
sonet: Specifies the SONET framing format.
Usage guidelines
J1 byte is a higher-order path overhead byte. SDH and SONET use this byte to test continuity of the connection between two interfaces at the path level.
The J1 byte must be the same at both ends of a link.
Examples
# Set the J1 byte to aabbcc for SDH on Pos 3/1/1.
<Sysname> system-view
[Sysname] interface pos 3/1/1
[Sysname-Pos3/1/1] flag j1 sdh aabbcc
Related commands
display interface pos
frame-format
flow-interval
Use flow-interval to set the statistics polling interval for an interface.
Use undo flow-interval to restore the default.
Syntax
flow-interval interval
undo flow-interval
Default
The statistics polling interval is 300 seconds.
Views
System view
Standard POS interface view
Predefined user roles
network-admin
Parameters
interval: Specifies the statistics polling interval in seconds. In system view, the statistics polling interval is in the range of 5 to 300 and in steps of 5. In interface view, the statistics polling interval is in the range of 1 to 300 and in steps of 5.
Usage guidelines
You can use this command in system view or interface view.
· In system view, the command takes effect on all interfaces.
· In interface view, the command takes effect only on the specified interface.
When the statistics polling interval uses the default setting in interface view, the setting in system view takes effect. When the command is configured in both system view and interface view, the setting in interface view takes priority.
Examples
# Set the statistics polling interval to 180 seconds for Pos 3/1/1.
<Sysname> system-view
[Sysname] interface pos 3/1/1
[Sysname-Pos3/1/1] flow-interval 180
frame-format
Use frame-format to set the framing format on a standard POS interface.
Use undo frame-format to restore the default.
Syntax
frame-format { sdh | sonet }
undo frame-format
Default
The framing format is SDH on a standard POS interface.
Views
Standard POS interface view
Predefined user roles
network-admin
Parameters
sdh: Specifies the SDH framing format.
sonet: Specifies the SONET framing format.
Examples
# Set the framing format to SONET on Pos 3/1/1.
<Sysname> system-view
[Sysname] interface pos 3/1/1
[Sysname-Pos3/1/1] frame-format sonet
Related commands
flag j0
flag j1
interface pos
Use interface pos to enter POS interface view.
Syntax
interface pos interface-number
Views
System view
Predefined user roles
network-admin
Parameters
interface-number: Specifies a standard POS interface by its number.
Examples
# Enter the view of Pos3/1/1.
<Sysname> system-view
[Sysname] interface pos 3/1/1
[Sysname-Pos3/1/1]
Related commands
link-protocol
link-delay
Use link-delay to set the physical state change suppression interval on an interface.
Use undo link-delay to restore the default.
Syntax
link-delay msec milliseconds
undo link-delay
Default
The physical state change suppression interval is one second.
Views
Standard POS interface view
Predefined user roles
network-admin
Parameters
msec milliseconds: Sets the physical state change suppression interval on an interface, in milliseconds. The value range for this argument is 0 to 10000 ms.
Usage guidelines
When the physical state changes, a POS interface reports the event to the upper-layer modules, and generates log and SNMP notification messages. To reduce system overhead caused by frequent physical state changes, use this command to suppress physical state changes within an interval. The interface will ignore any changes that occur during each suppression interval. When the suppression interval expires, the interface will not report the change event or generate messages if the change is removed.
For example, the suppression interval starts when the interface changes from up to down. The interface reports the change event and generates messages if it is still down when the interval expires. The interface does not report the change event or generate messages if it is up when the interval expires.
This command and the dampening command cannot both be configured on an interface.
Examples
# Set the physical state change suppression interval to 100 milliseconds for Pos 3/1/1.
<Sysname> system-view
[Sysname] interface pos 3/1/1
[Sysname-Pos3/1/1] link-delay msec 100
Related commands
dampening
link-protocol
Use link-protocol to set the data link layer protocol of an interface.
Syntax
Default
PPP is used.
Views
Standard POS interface view
Predefined user roles
network-admin
Parameters
hdlc: Specifies HDLC as the data link layer protocol of the interface.
ppp: Specifies PPP as the data link layer protocol of the interface.
Examples
# Specify HDLC as the data link protocol of Pos 3/1/1.
<Sysname> system-view
[Sysname] interface pos 3/1/1
[Sysname-Pos3/1/1] link-protocol hdlc
loopback
Use loopback to enable loopback for standard POS interface.
Use undo loopback to disable loopback for a standard POS interface.
Syntax
loopback { local | remote }
undo loopback
Default
Loopback is disabled on a standard POS interface.
Views
Standard POS interface view
Predefined user roles
network-admin
Parameters
local: Enables internal loopback.
remote: Enables external loopback.
Usage guidelines
Loopback is intended for testing only. Disable the feature when the interface is operating correctly.
Before you use this command on a standard POS interface, make sure its clock mode is master.
When you enable internal loopback on a standard POS interface before you connect it to the peer end, the state of the data link layer protocol is reported as up.
# Enable internal loopback on Pos 3/1/1.
<Sysname> system-view
[Sysname] interface pos 3/1/1
[Sysname-Pos3/1/1] loopback local
Related commands
clock
mtu
Use mtu to set the MTU size for an interface.
Use undo mtu to restore the default.
Syntax
mtu size
undo mtu
Default
The MTU of an interface is 1500 bytes.
Views
Standard POS interface view
Predefined user roles
network-admin
Parameters
size: Sets the maximum transmission unit (MTU) in bytes. The value range for this argument varies by card model.
· For MIC subcard interfaces on the SPEX-1204 or CSPEX-1104-E card, the value range for this argument is 46 to 4980.
· For PIC-PSP4L subcard interfaces on the SPEX-1204 card, the value range for this argument is 46 to 7600.
· For PIC-PS2G4L and PIC-TCP8L subcard interfaces on the SPEX-1204 card, the value range for this argument is 46 to 2000.
Usage guidelines
The MTU setting affects the assembly and fragmentation of IP packets.
After configuring the MTU for an interface, you must use the shutdown command and then the undo shutdown command on the interface for the modification to take effect.
The outgoing interface uses the MTU of 1280 bytes if its MTU is smaller than 1280 bytes and the incoming interface is on the specified cards. As a best practice, set the MTU of the outgoing interface to a value greater than 1280 bytes when the device is installed with the cards mentioned above.
Examples
# Set the MTU to 1430 bytes for Pos 3/1/1.
<Sysname> system-view
[Sysname] interface pos 3/1/1
[Sysname-Pos3/1/1] mtu 1430
port-type switch
Use port-type switch to change the type of an interface.
Syntax
In standard POS interface view:
port-type switch gigabitethernet
In Layer 3 GigabitEthernet interface view:
port-type switch pos
Views
Standard POS interface view
Layer 3 GigabitEthernet interface view
Predefined user roles
network-admin
Parameters
gigabitethernet: Change a standard POS interface to a Layer 3 GigabitEthernet interface.
pos: Change a Layer 3 GigabitEthernet interface to a standard POS interface.
Usage guidelines
CAUTION: After the type of an interface is changed, all the other commands are restored to the default on the new interface. |
Only interfaces on MIC-TCP8L and PIC-TCP8L subcards support this command.
When you execute this command, the device performs the following operations:
1. Removes the original interface.
2. Creates a new-type interface with the same number as the original interface.
3. Enters the interface view of the new-type interface.
Examples
# Change Pos 3/1/1 to GigabitEthernet3/1/1.
<Sysname> system-view
[Sysname] interface pos 3/1/1
[Sysname-Pos3/1/1] port-type switch gigabitethernet
Changing port type can result in loss of port configuration. Are you sure to continue? [Y/N]:y
[Sysname-GigabitEthernet3/1/1]
reset counters interface pos
Use reset counters interface pos to clear interface statistics.
Syntax
reset counters interface [ pos [ interface-number ] ]
Views
User view
Predefined user roles
network-admin
Parameters
pos [ interface-number ]: Clears statistics for a standard POS interface. If you do not specify the pos keyword, this command clears statistics for all interfaces. If you specify the pos keyword without specifying an interface, this command clears statistics for all POS interfaces.
Usage guidelines
Use this command to clear history statistics before you collect statistics for a time period.
Examples
# Clear statistics for Pos 3/1/1.
<Sysname> reset counters interface pos 3/1/1
display interface pos
scramble
Use scramble to enable payload scrambling on an interface.
Use undo scramble to disable payload scrambling on an interface.
Syntax
scramble
undo scramble
Default
Payload scrambling is enabled on standard POS interfaces and POS channel interfaces.
Views
Standard POS interface view
Predefined user roles
network-admin
Usage guidelines
Payload scrambling enables an interface to scramble outgoing data and descramble incoming data. By preventing the presence of long strings of all 1s or all 0s, payload scrambling enables the receiving end to extract the line clock signal correctly.
If payload scrambling is disabled, the interface does not scramble outgoing data or descramble incoming data.
The payload scrambling setting must be the same at both ends of a link to ensure correct communication.
For H3C devices, changing the payload scrambling setting does not affect cell headers. After you change the payload scrambling settings on both ends of a link, verify that the C2 byte value on them match each other. If the two values do not match, use the flag c2 command to modify the C2 byte value on the H3C device.
Examples
# Enable payload scrambling on Pos 3/1/1.
<Sysname> system-view
[Sysname] interface pos 3/1/1
[Sysname-Pos3/1/1] scramble
shutdown
Use shutdown to shut down an interface.
Use undo shutdown to bring up an interface.
Syntax
shutdown
undo shutdown
Default
An interface is up.
Views
Standard POS interface view
Predefined user roles
network-admin
Examples
# Shut down Pos 3/1/1.
<Sysname> system-view
[Sysname] interface pos 3/1/1
[Sysname-Pos3/1/1] shutdown
snmp-agent trap enable { b1-tca | b2-tca | b3-tca }
Use snmp-agent trap enable{ b1-tca | b2-tca | b3-tca } to enable SNMP notifications about signal transmission performance for a standard POS interface.
Use undo snmp-agent trap enable{ b1-tca | b2-tca | b3-tca } to disable SNMP notifications about signal transmission performance for a standard POS interface.
Syntax
snmp-agent trap enable{ b1-tca | b2-tca | b3-tca }
undo snmp-agent trap enable{ b1-tca | b2-tca | b3-tca }
Default
Signal transmission performance notifications are enabled for the standard POS interface.
Views
Standard POS interface view
Predefined user roles
network-admin
Usage guidelines
To generate SNMP notifications when a B1, B2, or B3 alarm occurs on a standard POS interface, use this command.
B1, B2, and B3 bytes indicate the signal transmission performance of a line at different levels.
· B1 alarm occurs if the bit error rate of a complete STM-N frame exceeds the B1 alarm threshold.
· B2 alarm occurs if the bit error rate of an STM-1 frame exceeds the B2 alarm threshold.
· B3 alarm occurs if the bit error rate of a multiplexed signal (VC3 or VC4 frame) in the STM-1 frame exceeds the B3 alarm threshold.
For B1, B2, or B3 alarm SNMP notifications to be sent correctly, you must also configure SNMP on the device. For more information about SNMP configuration, see the network management and monitoring configuration guide for the device.
Examples
# Disable B1 alarm notifications on Pos 3/1/1.
<Sysname> system-view
[Sysname] interface pos 3/1/1
[Sysname-Pos3/1/1] undo snmp-agent trap enable b1-tca
speed
|
NOTE: Support for this command depends on the device model. |
Use speed to set the rate of a standard POS interface.
Use undo speed to restore the default.
Syntax
speed speed-value
undo speed
Default
The rate of a standard POS interface is 155 Mbps.
Views
Standard POS interface view
Predefined user roles
network-admin
Parameters
speed-value: Specifies the rate in Mbps.
Usage guidelines
Only interfaces on MIC-TCP8L and PIC-TCP8L subcards support this command.
Examples
# Set the rate to 155 Mbps for Pos 3/1/1.
<Sysname> system-view
[Sysname] interface pos 3/1/1
[Sysname-Pos3/1/1] speed 155
timer-hold
Use timer-hold to set the keepalive interval.
Use undo timer-hold to restore the default.
Syntax
timer-hold seconds
undo timer-hold
Default
The keepalive interval is 10 seconds.
Views
Standard POS interface view
Predefined user roles
network-admin
Parameters
seconds: Specifies the interval at which the interface sends keepalive packets. The value range for this argument is 0 to 32767 seconds.
Usage guidelines
On an interface encapsulated with PPP or HDLC, the data link layer sends keepalive packets at keepalive intervals to detect the availability of the remote end. The data link layer determines that the peer end is down if it does not receive a response after the keepalive retry limit has been made. The data link layer then reports the link down event to the upper-layer protocols.
To set the keepalive retry limit, use the timer-hold retry command.
On a slow link, increase the keepalive interval to prevent false shutdown of the interface. This situation might occur when keepalive packets are delayed because a large packet is being transmitted on the link.
Examples
# Set the keepalive interval to 15 seconds for Pos 3/1/1.
<Sysname> system-view
[Sysname] interface pos 3/1/1
[Sysname-Pos3/1/1] timer-hold 15
Related commands
timer-hold retry
timer-hold retry
Use timer-hold retry to set the keepalive retry limit.
Use undo timer-hold retry to restore the default.
Syntax
timer-hold retry retries
undo timer-hold retry
Default
The keepalive retry limit is 5.
Views
Standard POS interface view
Predefined user roles
network-admin
Parameters
retries: Specifies the keepalive retry limit, in the range of 1 to 255.
Usage guidelines
The interface determines that the remote end is down if it does not receive a keepalive response after the keepalive retry limit has been made.
This command applies to interfaces encapsulated with PPP or HDLC. To set the keepalive interval, use the timer-hold command.
On a slow link, increase the keepalive retry limit to prevent false shutdown of the interface. This situation might occur when keepalive packets are delayed because a large packet is being transmitted on the link.
Examples
# Set the keepalive retry limit to 10 for Pos 3/1/1.
<Sysname> system-view
[Sysname] interface pos 3/1/1
[Sysname-Pos3/1/1] timer-hold retry 10
Related commands
timer-hold