- Table of Contents
- Related Documents
-
Title | Size | Download |
---|---|---|
03-POS Interface Commands | 127.78 KB |
alarm-detect
Syntax
alarm-detect { rdi | sd | sf } action link-down
undo alarm-detect { rdi | sd | sf }
View
POS interface view
Default level
2: System level
Parameters
rdi: Sets the remote defect indication (RDI) alarm threshold.
sd: Sets the signal degrade (SD) alarm threshold.
sf: Sets the signal fail (SF) alarm threshold.
action: Sets the actions that the interface performs for an alarm.
link-down: Shuts down the link of the POS interface.
Description
Use the alarm-detect command to set the actions that a POS interface performs for an alarm.
Use the undo alarm-detect command to restore the default.
By default, a POS interface does not perform any action for an alarm.
Related commands: threshold.
Examples
# Configure interface POS 2/1/1 to shut down the link when the detected the signals reach the SD alarm threshold.
<Sysname> system-view
[Sysname] interface pos 2/1/1
[Sysname-Pos2/1/1] alarm-detect sd action link-down
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, slave.
POS interfaces support the following 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 switch is directly connected to another switch, 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, 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 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
This command will restore the default settings. Continue? [Y/N]:y
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 (;), prime ("), apostrophe ('),comma (,), period (.), slash (/), spaces, and the signs compliant with Unicode standards.
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 ] [ brief [ down ] ] [ | { begin | exclude | include } regular-expression ]
display interface pos interface-number [ brief ] [ | { begin | exclude | include } regular-expression ]
View
Any view
Default level
1: Monitor level
Parameters
interface-number: Displays the information of the specified POS interface.
brief: Displays brief interface information. If you do not specify this keyword, this command displays detailed interface information.
down: Displays information about interfaces in DOWN state and the causes. If you do not specify this keyword, this command displays information about interfaces in all states.
|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Description
Use the display interface pos command to display POS interface information.
If you do not specify the pos keyword, this command displays information about all interfaces on the device.
If you specify the pos keyword without the interface-number argument, this command displays information about all created POS interfaces.
# Display detailed information about 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: - BIP(B1)
Multiplex section layer:
Alarm: NONE
Error: - BIP(B2), - 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: - BIP(B3), - REI(G1)
0 PJE, 0 NJE
Port statistic:start time: 2011-06-17 07:02:30
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: 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
# Display brief information about interface POS 4/1/2.
<Sysname> display interface Pos 4/1/2 brief
The brief information of interface(s) under route mode:
Link: ADM - administratively down; Stby - standby
Protocol: (s) - spoofing
Interface Link Protocol Main IP Description
Pos4/1/2 UP UP(s) --
# Display brief information about all POS interfaces in DOWN state.
<Sysname> display interface pos brief down
The brief information of interface(s) under route mode:
Link: ADM - administratively down; Stby - standby
Interface Link Cause
Pos4/1/2 ADM Administratively
Table 1 Output description
Field |
Description |
Pos4/1/2 current state |
Current state of the POS interface: · DOWN (Administratively)—Indicates that the POS interface has been shut down with the shutdown command and is administratively down. · DOWN—Indicates that the POS interface is physically down because no physical connection is present or the link has failed. · UP—Indicates that the POS interface is both administratively and physically up. |
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) |
Physical state change suppression interval of the POS interface. |
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 POS interface. |
Port speed type |
Rate of the POS interface. |
Loopback |
Loopback mode of the POS interface. |
FCS: 32-bit CRC |
FCS type. |
Clock source |
Clocking mode of the POS interface. |
Clock grade |
Clock grade of the POS interface. |
SPE scrambling |
Indicates whether scrambling is enabled for SPE. |
BER thresholds |
SD and SF thresholds of the POS 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. |
Port statistic:start time |
The start time of the interface statistics. |
UP time |
The duration of the up state of the interface. |
Section |
The error seconds of the regenerator section: · ES—Error seconds. · SES—Serious error seconds. · SEFS—Serious error frame seconds. |
Line |
The error seconds of the multiplex section. UAS means the unavailable seconds and is counted after ten seconds of continuous SES; FE-ES represents the far end error seconds, and is calculated when REI RDI is sent to an end. |
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: 16 packets, 330 bytes(good), 330 bytes(all) 0 FCS errors, 0 Aborts, 0 FIFO overflow 0 Runts, 0 Giants |
Number of received packets, good bytes, all bytes, FCS errors, discarded packets, overflow packets, runts, and giants. |
Output: 6 packets, 228 bytes(good), 229 bytes(all) 0 FIFO underflow, 0 Aborts, 0 Runts |
Number of sent packets, good bytes, all bytes, overflow packets, discarded packets, and runts. |
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. |
The brief information of interface(s) under route mode |
Brief information about Layer 3 interfaces. |
Link: ADM - administratively down; Stby - standby |
Link status: · ADM—The interface has been administratively shut down. To recover its physical state, perform the undo shutdown command. · Stby—The interface is operating as a backup interface. |
Protocol: (s) – spoofing |
If the network layer protocol state of an interface is shown as UP, but its link is an on-demand link or not present at all, its protocol attribute includes the spoofing flag (an s in parentheses). |
Interface |
Abbreviated interface name. |
Link |
Physical link state of the interface: · UP—The link is up. · ADM—The link has been administratively shut down. To recover its physical state, perform the undo shutdown command. |
Protocol |
Protocol connection state of the interface, which can be UP, DOWN, or UP(s). |
Main IP |
The main IP address of the interface. |
Description |
Description of the interface. |
Cause |
The cause of a DOWN physical link. If the port has been shut down with the shutdown command, this field displays Administratively. To restore the physical state of the interface, use the undo shutdown command. |
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 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 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 or sonet keyword is specified in the flag command but does not indicate that the frame-format sdh or frame-format sonet command is configured. |
Description
Use the flag command to set the SONET/SDH overhead bytes.
Use the undo flag 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 switches 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 the framing format on the POS interface.
Use the undo frame-format command to restore the default.
The default framing format on a POS interface 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
flow-interval
Syntax
flow-interval interval
undo flow-interval
View
POS interface view
Default level
2: System level
Parameters
interval: Sets a statistics polling interval, in seconds. It ranges from 5 to 300 and must be a multiple of 5.
Description
Use the flow-interval command to set the interface statistics polling interval.
Use the undo flow-interval command to restore the default interval.
The default statistics polling interval on POS interfaces is 300 seconds.
Examples
# Set the statistics polling interval to 100 seconds on interface POS 2/1/1.
<Sysname> system-view
[Sysname] interface Pos 2/1/1
[Sysname-Pos2/1/1] flow-interval 100
link-delay
Syntax
link-delay msec milliseconds
undo link-delay
View
POS interface view
Default level
2: System level
Parameters
msec milliseconds: Specifies the physical 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. It is recommended that you set this value to a multiple of 100, for example, 0, 100, and 1000.
Description
Use the link-delay command to configure the physical state change suppression interval for a POS interface. When the POS interface goes up or down, the state change is reported until the physical state change suppression interval expires.
Use the undo link-delay command to restore the default.
The default physical state change suppression interval on a POS interface is 1000 milliseconds.
Examples
# Set the physical state change suppression interval of interface POS 2/1/1 to 100 milliseconds, so that when the POS interface goes up or down, the state change is reported after 100 milliseconds.
<Sysname> system-view
[Sysname] interface Pos 2/1/1
[Sysname-Pos2/1/1] link-delay msec 100
link-protocol
Syntax
link-protocol { fr [ ietf | mfr interface-number | nonstandard ] | hdlc | ppp }
View
POS interface view
Default level
2: System level
Parameters
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.
hdlc: Specifies HDLC as the link layer protocol of the interface.
ppp: Specifies PPP as the link layer protocol of the interface.
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: Enables internal loopback on the POS interface.
remote: Enables external loopback on the POS interface.
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 64 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.
The maximum MTU you can configure on a POS interface is 10240 bytes, but the one that actually takes effect is 9216 bytes.
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
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: To connect two POS interfaces successfully, make sure they are configured with the same payload scrambling configuration (enabled or disabled). |
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.
Only LSR1DTCP8L1 subcards support this command.
The default rate of a POS interface on a LSR1DTCP8L1 subcard is 155 Mbps.
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 SD alarm threshold.
sf: Sets the SF alarm threshold.
value: SD or SF alarm threshold value, in the format of 10e-X. The value X for SD must be greater than that for SF and the difference must be within 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. 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, so you must set the SF alarm threshold higher than the SD alarm threshold.
Examples
# Set the SD threshold on interface POS 2/1/1 to 10e-5.
<Sysname> system-view
[Sysname] interface Pos 2/1/1
[Sysname-Pos2/1/1] threshold sd 5