- Table of Contents
- Related Documents
-
Title | Size | Download |
---|---|---|
03-POS Interface Commands | 123.23 KB |
clock
Syntax
clock { master | slave }
undo clock
View
POS interface view
Default level
2: System level
Parameters
master: Sets the clock mode of the POS interface to master.
slave: Sets the clock mode of the POS interface to slave.
Description
Use the clock command to set the clock mode of the POS interface.
Use the undo clock command to restore the default, that is, slave.
POS interfaces support two clock modes:
· Master—Uses internal clock signal.
· Slave—Uses line clock signal.
Similar to the DTE/DCE model of synchronous serial interfaces, POS interfaces need to choose a clock mode. When a POS interface on the router is directly connected to another router, the only requirement is that the two sides use different clock modes. In connection to a switch, however, the switch is DCE and uses internal clock, so the POS interface is DTE and must adopt the slave clock mode.
Examples
# Set the clock mode of interface POS 2/1/1 to master.
<Sysname> system-view
[Sysname] interface Pos 2/1/1
[Sysname-Pos2/1/1] clock master
crc
Syntax
crc { 16 | 32 }
undo crc
View
POS interface view
Default level
2: System level
Parameters
16: Sets CRC length to 16 bits.
32: Sets CRC length to 32 bits.
Description
Use the crc command to set the CRC length on the POS interface.
Use the undo crc command to restore the default, that is, 32 bits.
The CRC length must be the same on both ends.
Examples
# Set the CRC length on interface POS 2/1/1 to 16 bits.
<Sysname> system-view
[Sysname] interface Pos 2/1/1
[Sysname-Pos2/1/1] crc 16
default
Syntax
default
View
POS interface view
Default level
2: System level
Parameters
None
Description
Use the default command to restore the default settings for the POS interface.
This command might fail to restore the default settings for some commands for reasons such as command dependencies and system restrictions. You can use the display this command in interface view to check for these commands, and perform their undo forms or follow the command reference to individually restore their default settings. If your restoration attempt still fails, follow the error message to resolve the problem.
|
CAUTION: The default command might interrupt ongoing network services. Make sure you are fully aware of the impacts of this command when you perform it on a live network. |
Examples
# Restore the default settings for POS interface POS 2/1/1.
<Sysname> system-view
[Sysname] interface Pos 2/1/1
[Sysname-Pos2/1/1] default
description
Syntax
description text
undo description
View
POS interface view
Default level
2: System level
Parameters
text: Interface description, a case-sensitive character string of 1 to 80 characters. The description can contain letters, digits, special characters such as tilde (~), exclamation mark (!), at sign (@), number sign (#), dollar sign ($), percent (%), caret (^), ampersand (&), asterisk(*), brackets ({ }, ( ),[ ], < >), hyphen (-), underscore (_), plus (+), equal sign (=), vertical bar (|), backslash (\), colon (:), semicolon (;), quotation marks (", '), comma (,), period (.), and slash (/), spaces, and Unicode characters and symbols.
Description
Use the description command to set the description for the POS interface.
Use the undo description command to restore the default.
By default, the description of a POS interface is interface name Interface, for example, Pos2/1/1 Interface.
Examples
# Set the description for POS interface POS 2/1/1 to pos-interface.
<Sysname> system-view
[Sysname] interface Pos 2/1/1
[Sysname-Pos2/1/1] description pos-interface
display interface pos
Syntax
display interface pos [ interface-number ] [ | { begin | exclude | include } regular-expression ]
View
Any view
Default level
1: Monitor level
Parameters
interface-number: Interface 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.
Description
Use the display interface pos command to display the information about a POS interface. If you do not specify the interface-number argument, this command displays the information about all the POS interfaces.
# Display the status and configuration information of the interface POS 4/1/2.
<Sysname> display interface Pos 4/1/2
Pos4/1/2 current state: UP
Line protocol current state: UP
Description: Pos4/1/2 Interface
The Maximum Transmit Unit is 1500, Hold timer is 10(sec)
Link delay is 1000(msec)
Internet protocol processing : disabled
Link layer protocol is PPP
LCP opened
Port connector type is OC3/STM_1_SR_SFP
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): ""
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
J0(RX): ""
01 01 01 01 01 01 01 01 01 01 01 01 01 0d 0a 00
Alarm: TIM
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): 0x16
J1(TX): ""
00 00 00 00 00 00 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
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: 16 packets, 330 bytes(good), 330 bytes(all)
0 FCS errors, 0 Aborts, 0 FIFO overflow
0 Runts, 0 Giants
Output: 6 packets, 228 bytes(good), 229 bytes(all)
0 FIFO underflow, 0 Aborts, 0 Runts
Input packet peak value: 0 bytes/sec, at 19:12:48 01-07-2008
Output packet peak value: 0 bytes/sec, at 19:10:55 01-07-2008
Table 1 Output description
Field |
Description |
Pos4/1/2 current state |
Current state of the POS interface. |
Line protocol current state |
Link layer state of the POS interface. |
Description |
Description on the POS interface. |
The Maximum Transmit Unit is 1500, Hold timer is 10(sec) |
MTU of the POS interface and the interval at which the link layer protocol sends keepalives. |
Link delay is1000(msec) |
Link state change suppression interval is 1000 milliseconds. |
Internet protocol processing |
IP protocol processing capability, enabled or disabled. |
Link layer protocol is PPP |
Link layer protocol of the POS interface and loopback detection state. |
LCP opened |
LCP state. |
Port connector type is OC3/STM_1_SR_SFP |
The rate and type of the optical module in the POS interface. |
Physical layer |
Framing format of the interface. |
Port speed type |
Rate of the interface. |
Loopback |
Loopback mode of the interface. |
FCS: 32-bit CRC |
FCS type. |
Clock source |
Clocking mode of the interface. |
Clock grade |
Clock grade of the interface. |
SPE scrambling |
Indicates whether scrambling is enabled for SPE. |
BER thresholds |
Signal degrade (SD) and signal fail (SF) thresholds of the interface. |
C2(Rx) |
The received C2 byte. |
C2(Tx) |
The transmitted C2 byte. |
J0(Rx) |
The received J0 byte. |
J0(Tx) |
The transmitted J0 byte. |
J1(Rx) |
The received J1 byte. |
J1(Tx) |
The transmitted J1 byte. |
Regenerator section layer |
Statistics about alarms and errors for the regenerator section. |
Multiplex section layer |
Statistics about alarms and errors for the multiplex section. |
Higher order path layer |
Statistics about alarms and errors for the higher order path. |
Input speed in last 300 seconds: 0 packets/s, 0 bytes/s |
Input rate in pps and bps in the last 300 seconds. |
Output speed in last 300 seconds: 0 packets/s, 0 bytes/s |
Output rate in pps and bps in the last 300 seconds. |
Input packet peak value |
Peak input rate on the interface and time when the peak occurred. |
Output packet peak value |
Peak output rate on the interface and time when the peak occurred. |
# Display the status and configuration information of virtual POS interface POS 3/1/5/1:0 of an E-CPOS interface.
<Sysname> display interface Pos 3/1/5/1:0
Pos3/1/5/1:0 current state: UP
Line protocol current state: DOWN
Description: Pos3/1/5/1:0 Interface
The Maximum Transmit Unit is 1500, Hold timer is 10(sec)
Link delay is 1000(msec)
Internet Address is 123.1.1.1/24 Primary
Link layer protocol is HDLC
Physical layer is OC-3c:
C2(TX): 0x16 C2(RX): 0xff
J1(TX): ""
J1(RX): ""
Alarm: PLM-P RDI-P TIU-P AIS-P
Error: 3 BIP(B3), 0 REI(G1), 0 PJE, 0 NJE
CRC type is 32-bit
SPE Scrambling enable
Last 5 seconds input: 0 Packets/sec, 0 Bytes/sec
Last 5 seconds output: 0 Packets/sec, 0 Bytes/sec
Input: 636 Packets, 13992 Bytes
0 Aborts, 0 FCS errors, 0 FIFO overflow
1 Giants, 0 Runts
Output: 10667 Packets, 234674 Bytes
0 Aborts, 0 FIFO overflow
Input packet peak value: 0 bytes/sec, at 15:04:06 17-07-2008
Output packet peak value: 4 bytes/sec, at 15:04:02 17-07-2008
Table 2 Output description
Field |
Description |
current state |
Current state of the POS interface. |
Line protocol current state |
Link layer state of the POS interface. |
Description |
Description on the POS interface. |
The Maximum Transmit Unit is 1500, Hold timer is 10(sec) |
MTU of the POS interface and the interval at which the link layer protocol sends keepalives. |
Link delay is 1000(msec) |
Link state change suppression interval is 1000 milliseconds. |
Internet Address is |
IP address of the POS interface. |
Link layer protocol is |
Link layer protocol of the POS interface. |
Physical layer is OC-3c |
Physical layer information. |
C2(Tx) |
The transmitted C2 byte. |
C2(Rx) |
The received C2 byte. |
J1(Tx) |
The transmitted J1 byte. |
J1(Rx) |
The received J1 byte. |
Alarm |
Alarm statistics. |
Error |
Error statistics. |
SPE scrambling |
Indicates whether scrambling is enabled for SPE. |
Last 5 seconds input |
Input rate in pps and bps in the last 5 seconds. |
Last 5 seconds output |
Output rate in pps and bps in the last 5 seconds. |
Input |
Input traffic statistics. |
Output |
Output traffic statistics. |
Input packet peak value |
Peak input rate on the interface and time when the peak occurred. |
Output packet peak value |
Peak output rate on the interface and time when the peak occurred. |
flag
Syntax
flag c2 flag-value
undo flag c2
flag { j0 | j1 } { sdh | sonet } flag-value
undo flag { j0 | j1 } { sdh | sonet }
View
POS interface view
Default level
2: System level
Parameters
c2 flag-value: Path signal flag byte, a higher-order path overhead byte used to indicate 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 used to test 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 used to test 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 SDH.
sonet: Sets framing format to SONET.
|
CAUTION: The SDH frame format or the SONET frame format here indicates that the sdh keyword or sonet keyword is specified in the flag command but does not indicate the frame-format sdh command or the frame-format sonet command is configured. |
Description
Use the flag command to set the SONET/SDH overhead bytes.
Use the undo flag { j0 | j1 } sdh command to restore the default SONET/SDH overhead bytes.
By default, the default SDH overhead bytes are used.
The default overhead bytes are as follows.
· c2: 0x16
· j0 (SDH): null
· j1 (SDH): null
|
NOTE: · Inconsistency between the c2 and j1 settings of the sending POS interface and the receiving POS interface causes alarms. · The J0 byte can be any character in the network of the same carrier. If two carriers are involved, make sure that the sending and receiving devices at their network borders use the same J0 byte. |
Related commands: display interface pos.
Examples
# Set the SDH overhead byte J0 of POS 2/1/1 interface.
<Sysname> system-view
[Sysname] interface Pos 2/1/1
[Sysname-Pos2/1/1] flag j0 sdh ff
frame-format
Syntax
frame-format { sdh | sonet }
undo frame-format
View
POS interface view
Default level
2: System level
Parameters
sdh: Sets framing format to synchronous digital hierarchy (SDH).
sonet: Sets framing format to synchronous optical network (SONET).
Description
Use the frame-format command to configure framing on the POS interface.
Use the undo frame-format command to restore the default, that is, SDH.
Examples
# Set the framing format on interface POS 2/1/1 to SDH.
<Sysname> system-view
[Sysname] interface Pos 2/1/1
[Sysname-Pos2/1/1] frame-format sdh
link-delay
Syntax
link-delay msec milliseconds
undo link-delay
View
POS interface view
Default level
2: System level
Parameters
msec milliseconds: Specifies the link state change suppression interval (in milliseconds) that a POS interface must experience for its link state to change from up to down or down to up when a link down or up event occurs. The value range for the milliseconds argument is 0 to 10000. H3C recommends that you set the delay to a multiple of 100, for example, 0, 100, and 1000.
Description
Use the link-delay command to configure the link state change suppression interval for a POS Interface.
Use the undo link-delay command to restore the default.
The default link state change suppression interval on a POS interface is 1000 milliseconds.
Examples
# Set the link state change suppression interval of interface POS 2/1/1 to 100 milliseconds.
<Sysname> system-view
[Sysname] interface Pos 2/1/1
[Sysname-Pos2/1/1] link-delay msec 100
link-protocol
Syntax
link-protocol { hdlc | ppp | fr [ ietf | nonstandard ] }
View
POS interface view
Default level
2: System level
Parameters
hdlc: Specifies HDLC as the link layer protocol of the interface.
ppp: Specifies PPP as the link layer protocol of the interface.
fr: Specifies Frame Relay as the link layer protocol of the interface.
ietf: Adopts the IETF encapsulation format. This is the default.
nonstandard: Adopts non-standard compatible encapsulation format.
Description
Use the link-protocol command to set the link layer protocol of the interface.
By default, PPP is used.
Examples
# Specify HDLC as the link protocol of interface POS 2/1/1.
<Sysname> system-view
[Sysname] interface Pos 2/1/1
[Sysname-Pos2/1/1] link-protocol hdlc
loopback
Syntax
loopback { local | remote }
undo loopback
View
POS interface view
Default level
2: System level
Parameters
local: Internal loopback.
remote: External loopback.
Description
Use the loopback command to enable loopback for a POS interface.
Use the undo loopback command to disable loopback.
By default, loopback is disabled.
Loopback is intended for test use. Disable it otherwise.
Examples
# Enable internal loopback on interface POS 2/1/1.
<Sysname> system-view
[Sysname] interface Pos 2/1/1
[Sysname-Pos2/1/1] loopback local
mtu
Syntax
mtu size
undo mtu
View
POS interface view
Default level
2: System level
Parameters
size: MTU in bytes, in the range of 46 to 10240.
Description
Use the mtu command to set the MTU size of the POS interface.
Use the undo mtu command to restore the default.
By default, the MTU of POS interfaces is 1500 bytes.
The MTU setting of the POS interface can affect the assembly and fragmentation of IP packets on it.
Related commands: display interface pos.
Examples
# Set MTU of POS 2/1/1 to 1492.
<Sysname> system-view
[Sysname] interface Pos 2/1/1
[Sysname-Pos2/1/1] mtu 1492
port-type switch
Syntax
port-type switch interface-type
View
POS interface view, Layer 3 GE interface view
Default level
2: System level
Parameters
interface-type: Target interface type. The router only supports switching POS interfaces into Ethernet interfaces and vice versa.
Description
Use the port-type switch command to switch the type of an interface.
After the interface type is switched, the original interface is removed. The target and orignal interfaces have the same interface number. To switch the interface type, enter the view of the original interface.
After this command is executed, the router returns to system view automatically.
|
NOTE: · This command is available only on interfaces of sub-card PIC-TCP8l. · If the interface type is FR, you cannot switch the interface to an Ethernet interface. You can switch it to a PPP interface and then use the port-type switch command to switch it to an Ethernet interface. |
Examples
# Switch POS 2/1/1 into a GigabitEthernet interface.
<Sysname> system-view
[Sysname] interface Pos 2/1/1
[Sysname-Pos2/1/1] port-type switch GigabitEthernet
reset counters interface
Syntax
reset counters interface [ pos [ interface-number ] ]
View
User view
Default level
2: System level
Parameters
pos interface-number: Specifies a POS interface by its number.
Description
Use the reset counters interface command to clear the statistics of the specified or all POS interfaces.
Before collecting statistics for an interface within a specific period, you must clear the existing statistics of the interface.
· If you do not specify pos, this command clears the statistics of all interfaces.
· If you specify pos but not interface-number, this command clears the statistics of all POS interfaces.
· If you specify both pos and interface-number, this command clears the statistics of the specified POS interface.
Examples
# Clear the statistics of interface POS 2/1/1.
<Sysname> reset counters interface Pos 2/1/2
scramble
Syntax
scramble
undo scramble
View
POS interface view
Default level
2: System level
Parameters
None
Description
Use the scramble command to enable payload scrambling on the POS interface.
Use the undo scramble command to disable payload scrambling.
By default, payload scrambling is enabled.
You may configure payload scrambling to prevent the presence of excessive consecutive 1s or 0s to facilitate line clock signal extraction at the receiving end.
|
NOTE: Only when POS interfaces on both ends are configured with the same payload scrambling setting can they be connected successfully. |
Examples
# Enable payload scrambling on interface POS 2/1/1.
<Sysname> system-view
[Sysname] interface Pos 2/1/1
[Sysname-Pos2/1/1]scramble
shutdown
Syntax
shutdown
undo shutdown
View
POS interface view
Default level
2: System level
Parameters
None
Description
Use the shutdown command to shut down the POS interface.
Use the undo shutdown command to bring up the POS interface.
By default, a POS interface is up.
When you modify parameters on a POS interface, execute the shutdown command, and then the undo shutdown command to make your modifications take effect.
Examples
# Shut down the POS interface POS 2/1/1.
<Sysname> system-view
[Sysname] interface Pos 2/1/1
[Sysname-Pos2/1/1] shutdown
speed
Syntax
speed speed-value
undo speed
View
POS interface view
Default level
2: System level
Parameters
speed-value: Rate to be set in Mbps.
Description
Use the speed command to set the rate of the POS interface.
Use the undo speed command to restore the default.
The default rate of a POS interface is 155 Mbps.
|
NOTE: The speed command is available only on interfaces of sub-card PIC-TCP8L. |
Examples
# Set the rate of POS 2/1/1 to 622 Mbps.
<Sysname> system-view
[Sysname] interface Pos 2/1/1
[Sysname-Pos2/1/1] speed 622
threshold
Syntax
threshold { sd | sf } value
undo threshold { sd | sf }
View
POS interface view
Default level
2: System level
Parameters
sd: Sets the signal degrade (SD) alarm threshold.
sf: Sets the signal fail (SF) alarm threshold.
value: SD or SF threshold value, an integer in the range of 5 to 8 (for SD) or 4 to 6 (for SF). It is interpreted as a negative exponent of 10e, 10e-5 for example. As the SD threshold must be lower than the SF threshold, assign the value argument a greater integer for the SD threshold than that for the SF threshold with the difference between the two values not exceeding 2.
Description
Use the threshold command to set the SD or SF alarm threshold for a POS 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-4.
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. The bit error rate threshold of SF is higher than that of SD. 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 the line performance has been degrading seriously.
Examples
# Set the SD threshold on POS interface 2/1/1 to 10e-5.
<Sysname> system-view
[Sysname] interface Pos 2/1/1
[Sysname-Pos2/1/1] threshold sd 5