- Table of Contents
-
- H3C S9500 Command Manual-Release1648[v1.24]-01 IP Access Volume
- 00-1Cover
- 01-Ethernet Port Commands
- 02-POS Port Configuration Commands
- 03-Link Aggregation Configuration Commands
- 04-Port Isolation Configuration Commands
- 05-VLAN Commands
- 06-MAC Address Table Management Commands
- 07-GVRP Commands
- 08-QinQ Commands
- 09-Port Loopback Detection Commands
- 10-DLDP Commands
- 11-Ethernet OAM Commands
- 12-Smart Link and Monitor Link Commands
- 13-MSTP Commands
- 14-BPDU Tunnel Commands
- 15-HVRP Commands
- 16-RRPP Commands
- 17-RPR Commands
- Related Documents
-
Title | Size | Download |
---|---|---|
02-POS Port Configuration Commands | 72.78 KB |
Table of Contents
Chapter 1 POS Port Configuration Commands
1.1 POS Port Configuration Commands
1.1.14 reset counters interface pos
Chapter 1 POS Port Configuration Commands
1.1 POS Port Configuration Commands
1.1.1 clock
Syntax
clock { master | slave }
undo clock
View
POS port view
Parameters
master: Specifies the POS port to operate in master clock mode.
slave: Specifies the POS port to operate in slave clock mode.
Description
Use the clock command to set clock mode on the POS port.
Use the undo clock command to restore the default clock mode on the POS port.
By default, a POS port works in the slave clock mode.
Examples
# Set the clock mode of POS 2/1/1 to the master clock mode.
<H3C> system-view
System view: return to User view with Ctrl+Z.
[H3C] interface pos2/1/1
[H3C-Pos2/1/1] clock master
1.1.2 crc
Syntax
crc { 16 | 32 }
undo crc
View
POS port view
Parameters
16: CRC check bit is 16 bits.
32: CRC check bit is 32 bits.
Description
Use the crc command to define CRC check bit length on the POS port.
Use the undo crc command to restore the default CRC check bit length on the POS port.
By default, the CRC check bit is 32 bits.
Caution:
10G POS ports do not support 16-bit CRC check.
Examples
# Set CRC check bit length to 16 on POS 2/1/1.
System view return to User view with Ctrl+Z.
[H3C] interface pos2/1/1
[H3C-Pos2/1/1] crc 16
1.1.3 description
Syntax
description text
undo description
View
POS port view
Parameters
text: Port description string, 64 characters at most.
Description
Use the description command to set port description string.
Use the undo description command to delete the port description string.
By default, the description string for a POS port is null.
Examples
# Set the description string of POS 2/1/1 to POS-Interface.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] interface pos2/1/1
[H3C-Pos2/1/1] description POS-Interface
1.1.4 debugging ppp
Syntax
debugging ppp { { ipcp | lcp } { all | error | event | packet | state } | all | core event | ip packet | mpls-multicast packet | mpls-unicast packet | osi-npdu } [ interface { aux | pos } interface-number ]
undo debugging ppp { { ipcp | lcp } { all | error | event | packet | state } | all | core event | ip packet | mpls-multicast packet | mpls-unicast packet | osi-npdu } [ interface { aux | pos } interface-number ]
View
User view
Parameters
ipcp: IPCP debugging switch.
lcp: LCP debugging switch.
core event: PPP core event debugging switch.
ip packet: IP packet debugging switch.
mpls-multicast packet: MPLS multicast packet debugging switch.
mpls-unicast packet: MPLS unicast packet debugging switch.
all: All debugging switches.
error: Error debugging switch.
event: Event debugging switch.
packet: Packet debugging switch.
state: State machine debugging switch.
interface-number: POS port number, in the format of board slot ID/daughter card slot ID/port ID. Board slot ID is the slot ID of the LPU, in the range of 2 to 6 (for the S9505), or 0 to 3 and 6 to 9 (for the S9508), or 0 to 5 and 8 to 13 (for the S9512). Daughter card slot ID is the slot ID of the daughter card on the LPU, which must be 1. Port ID is the number of the port on the daughter card, in the range of 1 to 4.
Description
Use the debugging ppp command to enable debugging for POS globally or for the specified POS port.
Use the undo debugging ppp command to disable debugging for POS.
By default, no debugging is enabled for POS.
Examples
# Enable all types of debugging for the POS ports.
<H3C> debugging ppp all
1.1.5 display interface pos
Syntax
display interface pos [ interface-number ]
View
Any view
Parameters
interface-number: POS port number, in the format of board slot ID/daughter card slot ID/ port ID, where board slot ID refers to the ID of the slot for LPU, in the range of 2 to 6 (for S9505), or 0 to 3 and 6 to 9 (for S9508), or 0 to 5 and 8 to 13 (for S9512); daughter card slot ID refers to the ID of the slot for daughter, with the value of 1; port ID refers to the sequence number on the LPU for the port, in the range of 1 to 4.
Description
Use the display interface pos command to view the configuration and status information of a designated POS port. If no interface number is specified, the command displays the configuration and status information of all POS ports.
Examples
# Display the configuration and status information of POS 2/1/1.
<H3C> display interface pos2/1/1
Pos2/1/1 current state : UP
Link layer protocol current state : UP
Physical layer is Packet over SDH,loopback not set
Ip address of POS Access VLAN's interface is: 200.4.0.2
Ip Mask of POS Access VLAN's interface is: 255.255.255.0
Description: No description!
The Maximum Transmit Unit is 1500
Port hardware type is POS OC48/STM-16-SR-SM
Access VLAN of POS port is 2004
Link layer protocol is PPP
LCP opened, IPCP opened, OSICP opened, MPLSCP opened
Hold timer is: 10 sec
FCS: 16-bit CRC
Clock Source: Master
SPE Scrambling: Disable
SDH alarm:
section layer:
line layer:
path layer:
C2(Rx) :0xcf C2(Tx): 0x16
J0(Rx): "H3C "
71 75 69 64 77 61 79 00 00 00 00 00 00 00 00 00 *H3C.........*
J0(Tx): "H3C"
71 75 69 64 77 61 79 00 00 00 00 00 00 00 00 00 *H3C.........*
J1(Rx): "H3C "
71 75 69 64 77 61 79 00 00 00 00 00 00 00 00 00 *H3C.........
J1(Tx): "H3C"
71 75 69 64 77 61 79 00 00 00 00 00 00 00 00 00 *H3C.........*
BER thresholds: SD = 10e-6 SF = 10e-3
SDH error:
section layer: B1 0
line layer: B2 0 M1 0
path layer: B3 0 G1 0
Last 5 minutes output: 0 packets/sec 1664 bits/sec 0%
Last 5 minutes input: 0 packets/sec 1584 bits/sec 0%
input: 1731 packets, 16913416468 bytes
0 errors, 0 CRC, 0 giants
0 pads, 0 aborts, 0 overflows
Output: 3953 packets, 1314756 bytes
0 errors, 0 underflows
Table 1-1 Description on the fields of the display interface pos command
Field |
Description |
Pos2/1/1 current state |
Current state of the POS port |
Link layer protocol current state |
Current state of the link layer protocol |
Physical layer is Packet over SDH, loopback not set |
The physical layer uses SDH frame mode, and loopback is not set on the port. |
Description |
Port description |
The Maximum Transmit Unit |
MTU |
Port hardware type |
Port hardware type |
Link layer protocol |
Link layer protocol |
LCP opened, IPCP opened, OSICP opened, MPLSCP opened |
Enabled protocols |
Hold timer |
Link state check interval |
FCS |
Check mode |
Tx Clock Source |
Clock mode |
Clock Grade: Quality unknown(existing synchronization network) |
Clock stratum |
SPE Scrambling |
Current state of scrambling function |
SDH alarm: section layer: OOF LOF LOS line layer: AIS path layer: AIS C2(Rx) :0xff C2(Tx): 0x16 J0(Rx): J0(Tx): J1(Rx): J1(Tx): BER thresholds: SD = 10e-6 SF = 10e-3 |
SDH alarm information |
SDH error: section layer: B1 287853060 line layer: B2 0 M1 0 path layer: B3 0 G1 0 |
SDH error information |
Last 5 minutes output: 0 packets/sec 0 bits/sec Last 5 minutes input: 0 packets/sec 0 bits/sec |
Input and output rates in the last five minutes on the port |
input: 0 packets, 0 bytes 0 errors, 0 CRC, 0 giants 0 pads, 0 aborts, 0 overflows Output: 0 packets, 0 bytes 0 errors, 0 underflows |
Input/output packet and error statistics on the port |
1.1.6 flag
Syntax
flag c2 flag-value
undo flag c2
flag { j0 | j1 } { sdh | sonet } flag-value
undo flag { j0 | j1 } { sdh | sonet }
View
POS port view
Parameters
c2: Signal label byte C2 belongs to high-order path overhead byte, and is used to indicate the multiplexing structure and message payload of the VC (virtual container) frame. By default, it is 0x16 (hexadecimal).
j1: Path trace byte J1 also belongs to high-order overhead byte, and is used to check port connectivity at path level. The default value is “default”.
sdh: Frame format is SDH.
sonet: Frame format is SONET.
flag-value: The value range of c2 is 0 to ff (hexadecimal).
In the SDH format, the value ranges of j0 and j1 are both 1 to 15 characters (string).
In the SONET format, j0 is a string of only one character, and j1 is a string of 1 to 62 characters.
Description
Use the flag command to set overhead byte type at the port.
Use the undo flag command to restore the default overhead byte type at the port.
Note that:
Ensure that the C2, J0 and J1 configurations are consistent for the sender and recipient. Failure to do so will incur alarms. In addition, adopt the same frame format for J0 or J1 on the communicating POS ports so that they can read the J0 or J1 message correctly.
# Configure overhead byte J0 of POS 2/1/1.
<H3C> system-view
System view: return to User view with Ctrl+Z.
[H3C] interface pos2/1/1
[H3C-Pos2/1/1] flag j0 sdh ff
1.1.7 flow-interval
Syntax
flow-interval interval
undo flow-interval
View
POS port view
Parameters
interval: Interval of collecting statistics on ports in seconds. This argument is 300 by default.
Description
Use the flow-interval command to set the interval of collecting statistics on ports. The switch collects statistics on ports to get the average rate in the interval.
Use the undo flow-interval command to restore the interval to the default value.
Related commands: display interface pos.
Examples
# Set the interval of collecting statistics to 100 seconds on POS 3/1/1.
<H3C> system-view
System view: return to User view with Ctrl+Z.
[H3C] interface pos 3/1/1
[H3C-Pos3/1/1] flow-interval 100
# Restore the default interval of collecting statistics on POS 3/1/1.
[H3C-Pos3/1/1] undo flow-interval
1.1.8 frame-format
Syntax
frame-format { sdh | sonet }
undo frame-format
View
POS port view
Parameters
sdh: Specifies the frame format to be SDH.
sonet: Specifies the frame format to be SONET.
Description
Use the frame-format command to set frame format for a POS port.
Use the undo frame-format command to restore the default frame format.
By default, the frame format on a POS port is SDH.
Examples
# Set the frame format of POS 2/1/1 to SDH.
System view: return to User view with Ctrl+Z.
[H3C] interface pos2/1/1
[H3C-Pos2/1/1] frame-format sdh
1.1.9 interface pos
Syntax
interface pos interface-number
View
System view
Parameters
interface-number: POS port number, in the format of board slot ID/daughter card slot ID/ port ID, where board slot ID refers to the ID of the slot for LPU, in the range of 2 to 6 (for S9505), or 0 to 3 and 6 to 9 (for S9508), or 0 to 5 and 8 to 13 (for S9512); daughter card slot ID refers to the ID of the slot for daughter, with the value of 1; port ID refers to the sequence number on the LPU for the port, in the range of 1 to 4.
Description
Use the interface pos command to enter POS port view. To initiate POS port configuration, you need first enter POS port view.
Examples
# Enter POS 2/1/1 port view.
<H3C> system-view
System view: return to User view with Ctrl+Z.
[H3C] interface pos 2/1/1
[H3C-Pos2/1/1]
1.1.10 loopback
Syntax
loopback { internal | external }
undo loopback
View
POS port view
Parameters
internal: Enables internal loopback on the POS port.
external: Enables external loopback on the POS port.
Description
Use the loopback command to set the loopback type on the POS port.
Use the undo loopback command to disable loopback on the POS port.
By default, loopback is disabled on POS ports.
# Set internal loopback on POS 2/1/1.
System view: return to User view with Ctrl+Z.
[H3C] interface pos2/1/1
[H3C-Pos2/1/1] loopback local
1.1.11 mtu
Syntax
mtu mtu-value
View
POS port view
Parameters
mtu: Specifies MTU of the POS port.
mtu-value: MTU value, in the range of 64 to 9192 (in bytes). By default, it is 1500 bytes.
Note that the MTU range of 155M POS port and 10G POS port is different. The MTU of 155M POS port ranges from 64 to 1995 bytes.
Description
Use the mtu command to set the MTU of the POS port.
In case the local MTU setting is different from the remote MTU setting, re-enable the POS port with the shutdown command and then the undo shutdown command to have it re-negotiate link settings with the remote POS port. As the result of the negotiation, the smaller value will be used as the MTU.
Examples
# Set the MTU on the POS port to 5000 bytes.
<H3C> system-view
System view: return to User view with Ctrl+Z.
[H3C] interface pos2/1/1
[H3C-Pos2/1/1] mtu 5000
1.1.12 pos access vlan
Syntax
pos access vlan vlan-id
undo pos access vlan
View
POS port view
Parameters
vlan-id: VLAN ID defined in IEEE802.1Q, in the range of 2 to 4,094.
Description
Use the pos access vlan command to assign the POS port to a VLAN.
Use the undo pos access vlan command to remove the POS port from the specified VLAN.
Note that:
l The VLAN to which the POS port is assigned must already exist and is configured with the corresponding VLAN interface and IP address. In addition, it cannot be VLAN 1.
l Before assigning the POS port to the VLAN, ensure that the VLAN contains no ports. After assigning the POS port to the VLAN, you will be unable to assign other ports to the VLAN.
Examples
# Assign POS 2/1/1 to VLAN 3.
<H3C> system-view
System view: return to User view with Ctrl+Z.
[H3C] interface pos2/1/1
[H3C-Pos2/1/1] pos access vlan 3
1.1.13 ppp timer negotiate
Syntax
ppp timer negotiate seconds
undo ppp timer negotiate
View
POS port view
Parameters
seconds: Timeout time in seconds for PPP negotiation, in the range of 1 to 10 (seconds). By default, it is 3 seconds.
Description
Use the ppp timer negotiate command to set timeout time for PPP negotiation.
Use the undo ppp timer negotiate command to restore the default timeout time for PPP negotiation.
Examples
# Set the timeout time to 5 seconds.
<H3C> system-view
System view: return to User view with Ctrl+Z.
[H3C] interface pos2/1/1
[H3C-Pos2/1/1] ppp timer negotiate 5
1.1.14 reset counters interface pos
Syntax
reset counters interface pos [ interface-number ]
View
User view
Parameters
interface-number: POS port number, in the format of board slot ID/daughter card slot ID/ port ID, where board slot ID refers to the ID of the slot for LPU, in the range of 2 to 6 (for S9505), or 0 to 3 and 6 to 9 (for S9508), or 0 to 5 and 8 to 13 (for S9512); daughter card slot ID refers to the ID of the slot for daughter, with the value of 1; port ID refers to the sequence number on the LPU for the port, in the range of 1 to 4.
Description
Use the reset counters interface pos command to clear statistics about the POS port, to recollect statistics about the port. If no port number is specified, the command clears statistics about all POS ports.
Examples
# Clear statistics about POS 2/1/1.
<H3C> reset counters interface pos 2/1/1
1.1.15 scramble
Syntax
scramble
undo scramble
View
POS port view
Parameters
None
Description
Use the scramble command to enable scrambling function on the POS port.
Use the undo scramble command to disable scrambling function on the POS port.
By default, scrambling function is enabled at a POS port.
Examples
# Enable scrambling function on POS 2/1/1.
System view: return to User view with Ctrl+Z.
[H3C] interface pos2/1/1
[H3C-Pos2/1/1] scramble
1.1.16 shutdown
Syntax
shutdown
undo shutdown
View
POS port view
Parameters
None
Description
Use the shutdown command to shut down the POS port.
Use the undo shutdown command to bring the POS port up.
By default, a POS port is in UP status.
Examples
# Bring up POS 2/1/1.
<H3C> system-view
System view: return to User view with Ctrl+Z.
[H3C] interface pos2/1/1
[H3C-Pos2/1/1] undo shutdown
1.1.17 threshold
Syntax
threshold { sd | sf } value
undo threshold { sd | sf }
View
POS port view
Parameters
value: Threshold, in the format of 10e – X. X is an integer ranging from 3 to 9. By default, the threshold of SD = 10e - 6, and the threshold of SF = 10e – 3.
Description
Use the threshold command to set the signal degrade (SD) and signal fail (SF) thresholds.
Use the undo threshold command to restore the defaults.
Note that SD threshold must smaller than SF threshold
Examples
# Set the SD threshold to 4.
<H3C> system-view
System view: return to User view with Ctrl+Z.
[H3C] interface pos2/1/1
[H3C-Pos2/1/1] threshold sd 4
1.1.18 timer hold
Syntax
timer hold seconds
undo timer hold
View
POS port view
Parameters
seconds: Link state check interval in seconds, in the range of 0 to 32767. By default, it is 10 seconds. If the interval is set to 0, the system will not check the link.
Description
Use the timer hold command to set polling interval for the status timer on the POS port.
Use the undo timer hold command to restore the default polling interval.
Ensure that the same polling interval is used at the two ends.
Examples
# Set the polling interval to 20 seconds on POS 2/1/1.
<H3C> system-view
System view: return to User view with Ctrl+Z.
[H3C] interface pos2/1/1