- Table of Contents
-
- H3C S9500 Command Manual-Release2132[V2.03]-01 IP Access Volume
- 00-1Cover
- 01-Ethernet Interface Commands
- 02-POS Interface Commands
- 03-GVRP Commands
- 04-Link Aggregation Commands
- 05-Port Mirroring Commands
- 06-RPR Commands
- 07-Ethernet OAM Commands
- 08-MSTP Commands
- 09-VLAN Commands
- 10-QinQ Commands
- 11-BPDU Tunneling Commands
- 12-Port Isolation Commands
- Related Documents
-
Title | Size | Download |
---|---|---|
02-POS Interface Commands | 81 KB |
Table of Contents
Chapter 1 POS Interface Configuration Commands
1.1 POS Interface Configuration Commands
1.1.5 display ip interface pos
1.1.6 display ipv6 interface pos
1.1.10 ip address ppp-negotiate
1.1.13 mtu (for POS Interfaces)
1.1.14 ppp ipcp remote-address forced
Chapter 1 POS Interface Configuration Commands
1.1 POS Interface Configuration Commands
1.1.1 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:
l Master, which uses internal clock signal.
l Slave, which 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 a device is directly connected to another device, 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 1/1/1 to master.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] interface pos 1/1/1
[Sysname-Pos1/1/1] clock master
1.1.2 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.
Examples
# Set the CRC length on interface POS 1/1/1 to 16 bits.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] interface pos 1/1/1
[Sysname-Pos1/1/1] crc 16
1.1.3 debugging ppp
Syntax
debugging ppp { { all | core event | ip packet | ipv6 packet | mpls-multicast packet | mpls-unicast packet | osi-npdu packet } | { ipcp | ipv6cp | lcp | mplscp | osicp } { all | error | event | packet | state } } [ interface interface-type interface-number ]
undo debugging ppp { { all | core event | ip packet | ipv6 packet | mpls-multicast packet | mpls-unicast packet | osi-npdu packet } | { ipcp | ipv6cp | lcp | mplscp | osicp } { all | error | event | packet | state } } [ interface interface-type interface-number ]
View
User view
Default Level
1: Monitor level
Parameters
all: Enables all types of debugging.
core event: Enables debugging for the PPP core module.
interface-type interface-number: Port type and port number.
ip packet: Enables debugging for IP packets.
ipv6 packet: Enables debugging for IPv6 packets.
ipcp: Enables debugging for IP control protocol.
ipv6cp: Enables debugging for IPv6 control protocol.
lcp: Enables debugging for PPP link control protocol.
mpls-multicast packet: Enables debugging for MPLS multicast packets.
mpls-unicast packet: Enables debugging for MPLS unicast packets.
mplscp: Enables debugging for MPLS control protocol.
osicp: Enables debugging for OSI control protocol.
osi-npdu: Enables debugging for OSI network packets.
all: Enables all types of debugging concerning PPP.
error: Enables debugging for PPP errors.
event: Enables debugging for PPP events.
packet: Enables debugging for PPP packets.
state: Enables debugging for PPP status.
Description
Use the debugging ppp command to enable specific types of debugging concerning PPP. Use the undo debugging ppp command to disable specific types of debugging concerning PPP.
By default, all types of debugging concerning PPP are disabled.
Examples
# Enable all types of debugging concerning PPP on POS interface 4/1/2.
<Sysname> debugging ppp all interface pos 4/1/2
1.1.4 display interface pos
Syntax
display interface pos [ interface-number ]
View
Any view
Default Level
1: Monitor level
Parameters
interface-number: Interface number.
Description
Use the display interface pos command to display the status and configuration information of a POS interface or all POS interfaces.
# Display the status and configuration information of the interface POS 10/1/1.
<Sysname> display interface pos 10/1/1
Pos10/1/1 current state: DOWN
Line protocol current state: DOWN
Description: Pos10/1/1 Interface
The Maximum Transmit Unit is 1500, Hold timer is 10(sec)
Internet protocol processing : disabled
Link layer protocol is PPP
LCP initial
Port hardware type is POS_NO_CONNECTOR
Physical layer is Packet over SDH
LoopBack is not set
FCS: 32-bit CRC
Clock Source: Slave
Clock Grade: 42
SPE Scrambling: Enable
Section Layer: OOF LOF LOS
Line Layer:
Path Layer:
C2(Rx): 0x30
C2(Tx): 0x16
J0(Rx): ""
J0(Tx): ""
J1(Rx): ""
J1(Tx): ""
BER Thresholds: SD: 10e-6 SF: 10e-3
Section Layer: B1 0
Line Layer: B2 0 M1 0
Path Layer: B3 0 G1 0
Last 300 seconds input: 0 packet/sec 0 byte/sec
Last 300 seconds output: 0 packet/sec 0 byte/sec
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
Table 1-1 Description on the fields of the display interface pos command
Field |
Description |
Pos10/1/1 current state: DOWN |
Current state of the POS interface |
Line protocol current state: DOWN |
Link layer state of the POS interface |
Description: Pos10/1/1 Interface |
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 |
Internet protocol processing: disabled |
IP protocol processing capability, enabled or disabled |
Link layer protocol is PPP |
Link layer protocol of the POS interface |
LCP initial |
LCP state |
Port hardware type is POS_NO_CONNECTOR |
Hardware type of the port |
Physical layer is Packet Over SDH, |
Status of physical layer |
LoopBack is not set |
Loopback status |
FCS: 32-bit CRC |
CRC code |
Clock Source: Slave |
Transmission clock source |
Clock Grade: 42 |
Grade of clock |
SPE Scrambling: Enable |
Status of the interface scrambling |
section layer: OOF LOF LOS |
Section layer alarm (including OOF, LOF, LOS) |
line layer: |
Line layer alarm (including AIS, RDI) |
path layer: |
Path layer alarm (including LOP, AIS, RDI) |
C2(Rx): 0x30 |
The C2 byte (the signal flag byte) of the received packet |
C2(Tx): 0x16 |
The C2 byte of the packet sent |
J0(Rx): "" |
The J0 overhead byte (the section layer tracking byte) of the received packet |
J0(Tx): "" |
The J0 overhead byte of the packet sent |
J1(Rx): "" |
The J1 overhead byte (the channel layer tracking byte) of the received packet |
J1(Tx): "" |
The J1 overhead byte of the packet sent |
BER Thresholds: SD: 10e-6 SF: 10e-3 |
Bit error code thresholds: Signal degrade (10e-6), signal fail (10e-3). |
Last 300 seconds input: 0 packet/sec 0 byte/sec |
Inbound packet rate in the latest 300 seconds (in packets per second and Bps) |
Last 300 seconds output: 0 packet/sec 0 byte/sec |
Outbound packet rate in the latest 300 seconds (in packets per second and Bps) |
Input: 0 packets, 0 bytes 0 errors, 0 crc, 0 giants 0 pads, 0 aborts, 0 overflows |
Statistics on the inbound packets, including the number of the inbound packets, the size of the inbound packets (in bytes), and the number of the errors, CRC errors, giant packets, pads, aborts, and overflows. |
Output: 0 packets, 0 bytes 0 errors, 0 underflows |
Statistics on the outbound packets, including the number of the outbound packets, the size of the outbound packets (in bytes), the number of errors and underflows. |
1.1.5 display ip interface pos
Syntax
display ip interface pos interface-number
View
Any view
Default Level
1: Monitor level
Parameters
interface-number: Interface number.
Description
Use the display ip interface pos command to view the IP-related information about a POS interface.
Examples
# Display the IP-related information about interface POS 2/1/1.
<Sysname> display ip interface pos 2/1/1
Pos2/1/1 current state :UP
Line protocol current state :UP
Internet Address is 13.13.13.13/8 Primary
Broadcast address : 13.255.255.255
The Maximum Transmit Unit : 4470 bytes
ip fast-forwarding incoming packets state is Enabled
ip fast-forwarding outgoing packets state is Enabled
input packets : 5, bytes : 420, multicasts : 0
output packets : 5, bytes : 420, multicasts : 0
TTL invalid packet number: 0
ICMP packet input number: 5
Echo reply: 5
Unreachable: 0
Source quench: 0
Routing redirect: 0
Echo request: 0
Router advert: 0
Router solicit: 0
Time exceed: 0
IP header bad: 0
Timestamp request: 0
Timestamp reply: 0
Information request: 0
Information reply: 0
Netmask request: 0
Netmask reply: 0
Unknown type: 0
1.1.6 display ipv6 interface pos
Syntax
display ipv6 interface pos interface-number
View
Any view
Default Level
1: Monitor level
Parameters
interface-number: Interface number..
Description
Use the display ipv6 interface pos command to view the IPv6-related information about a POS interface.
Examples
# Display the IPv6-related information about interface POS 2/1/1.
<Sysname> display ipv6 interface pos 2/1/1
Pos2/1/1 current state :UP
Line protocol current state :UP
IPv6 is enabled, link-local address is FE80::813D:0:C252:1
Global unicast address(es):
22:22::22:22, subnet is 22::/22 [TENTATIVE]
Joined group address(es):
FF02::1:FF22:22
FF02::1:FF52:1
FF02::2
FF02::1
MTU is 4478 bytes
ND DAD is enabled, number of DAD attempts: 1
ND reachable time is 30000 milliseconds
ND retransmit interval is 1000 milliseconds
Hosts use stateless autoconfig for addresses
1.1.7 flag
Syntax
flag { c2 | { j0 | j1 } { sdh | sonet } } flag-value
undo flag { c2 | { 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 0xFF (0x01 by default).
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 (Synchronous Digital Hierarchy).
sonet: Sets framing format to SONET (Synchronous Optical Network).
Caution:
When the length of the string configured for J0 or J1 is less than 15 or 62 characters, the system automatically pad it with hexadecimal 0x0.
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.
l c2: 0x16
l j0 (SDH): 15 hexadecimal numbers, each of which has the value of 0x0
l j1 (SDH): 15 hexadecimal numbers, each of which has the value of 0x0
l j0 (SONET): 0x01
l j1 (SONET): 62 hexadecimal numbers, each of which has the value of 0x0
Inconsistency between the c2 and j0 settings of a sending POS interface and the receiving POS interface causes alarms.
Related commands: display interface pos.
Examples
# Set the SDH overhead byte J0 for interface POS 1/1/1.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] interface pos 1/1/1
[Sysname-Pos1/1/1] flag j0 sdh ff
1.1.8 frame-format
Syntax
frame-format { sdh | sonet }
undo frame-format
View
POS interface view
Default Level
2: System level
Parameters
sdh: Sets the framing format to SDH.
sonet: Sets the framing format to SONET.
Description
Use the frame-format command to configure the framing format on a POS interface. Use the undo frame-format command to restore the default, that is, SDH.
Examples
# Set the framing format to SDH on interface POS 1/1/1.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] interface pos 1/1/1
[Sysname-Pos1/1/1] frame-format sdh
1.1.9 interface pos
Syntax
interface pos interface-number
View
System view
Default Level
2: System level
Parameters
interface-number: POS interface number expressed in the form of interface board slot number/sub-board slot number/interface number.
Description
Use the interface pos command to enter POS interface view.
To configure a POS interface, enter its view first.
Example
# Enter the interface view of POS 2/1/1.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] interface pos 2/1/1
[Sysname-Pos2/1/1]
1.1.10 ip address ppp-negotiate
Syntax
ip address ppp-negotiate
undo ip address ppp-negotiate
View
POS interface view
Default Level
2: System level
Parameters
None
Description
Use the ip address ppp-negotiate command to enable IP negotiating on a POS interface, through which the POS interface can be assigned an IP address through PPP negotiation. Use the undo ip address ppp-negotiate command to disable IP address negotiating.
By default, IP address negotiating is disabled on a POS interface.
Related commands: remote address, ppp ipcp remote-address forced.
Examples
# Enable IP address negotiating on interface POS 4/1/1.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] interface pos pos 4/1/1
[Sysname-Pos4/1/1] ip address ppp-negotiate
1.1.11 link-protocol
Syntax
link-protocol ppp
View
POS interface view
Default Level
2: System level
Parameters
ppp: Specifies PPP as the data link layer protocol.
Description
Use the link-protocol command to specify the data link layer protocol for a POS interface.
By default, the data link protocol of a POS interface is PPP.
Examples
# Set the data link layer protocol as PPP for interface POS 1/1/1.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] interface pos 1/1/1
[Sysname-Pos1/1/1] link-protocol ppp
& Note:
Currently, the POS interfaces of an S9500 series routing switch support only PPP on data link layer.
1.1.12 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.
& Note:
l If you enable loopback on a POS interface encapsulated with PPP, it is normal that the state of the link layer protocol is reported up.
l Loopback and clock slave cannot be set at the same time; otherwise, POS interfaces cannot be connected successfully.
Examples
# Enable internal loopback on interface POS 1/1/1.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] interface pos 1/1/1
[Sysname-Pos1/1/1] loopback local
1.1.13 mtu (for POS Interfaces)
Syntax
mtu size
undo mtu
View
POS interface view
Default Level
2: System level
Parameters
size: Maximum transmission unit (MTU) to be set. For 155 Mbps POS cards, this argument ranges from 64 to 1,995 (in bytes); for 2.5 Gbps POS cards and the 10 Gbps POS cards, this argument ranges from 64 to 9,192 (in bytes).
Description
Use the mtu command to set the MTU for a POS interface.
Use the undo mtu command to restore the default.
By default, the MTU of a POS interface is 1,500 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 the MTU of interface POS 1/1/1 to 1,492.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] interface pos 1/1/1
[Sysname-Pos1/1/1] mtu 1492
1.1.14 ppp ipcp remote-address forced
Syntax
ppp ipcp remote-address forced
undo ppp ipcp remote-address forced
View
POS interface view
Default Level
2: System level
Parameters
None.
Description
Use the ppp ipcp remote-address forced command to enable a device to allocate IP addresses to its peers by force. In this case, the IP address configured locally on the peers are invalid. Use the undo ppp ipcp remote-address forced command to disable a device from allocating IP addresses to its peers by force. In this case, the IP addresses configure locally on the peers are valid.
In the course of establishing a PPP link, a device does not allocate IP addresses to its peers by force by default. That is, the IP addresses configured locally are valid. In this case, a device allocates an IP address to a peer only when the latter applies an IP address explicitly. If the peer already has an IP address configured, the device does not allocate IP addresses to it by force. To enable a device to allocate IP addresses to its peers by force, you need to execute the ppp ipcp remote-address forced command in POS interface view.
Related commands: remote address.
Examples
# Allocate IP address 10.0.0.1 to the peer connecting to interface POS 4/1/1. (In this case, the IP address is optional to the peer.)
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] interface Pos 4/1/1
[Sysname-Pos4/1/1] remote address 10.0.0.1
# Allocate IP address 10.0.0.1 to the peer connecting to interface POS 4/1/1 by force. In this case, the peer uses 10.0.0.1 as its IP address, and the IP address configured locally (if any) gets invalid.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] interface Pos 4/1/1
[Sysname-Pos4/1/1] remote address 10.0.0.1
[Sysname-Pos4/1/1] ppp ipcp remote-address forced
1.1.15 ppp timer negotiate
Syntax
ppp timer negotiate seconds
undo ppp timer negotiate
View
POS interface view
Default Level
2: System level
Parameters
seconds: Interval to send PPP negotiation packets (in seconds). In the process of PPP negotiation, an entity sends another packet to its peer if it does not receive the response from the peer within this interval.
Description
Use the ppp timer negotiate command to set the interval to send PPP negotiation packets. Use the undo ppp timer negotiate command to restore the default.
By default, the interval to send PPP negotiation packets is 3 seconds.
Examples
# Set the interval to send PPP negotiation packets to 5 seconds on interface POS 2/1/2.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] interface pos 2/1/2
[Sysname-Pos2/1/2] ppp timer negotiate 5
1.1.16 remote address
Syntax
remote address { ip-address | pool [ pool-number ] }
undo remote address
View
POS interface view
Default Level
2: System level
Parameters
ip-address: IP address to be allocated for the peer end.
pool-number: Number of the address pool, an IP address of which is to be allocated for the peer end. This argument ranges from 0 to 99 and defaults to 0.
Description
Use the remote address command to allocate an IP address for the peer end. Use the undo remote address command to remove the IP address allocated for the peer end.
By default, a POS interface does not allocate IP addresses for the peer end.
When the remote address pool is configured but pool-number is not specified, No.0 global address pool is used by default.
When the interface of the peer end is not configured with the IP address but the local device has an IP address, you can configure the local device to allocate IP addresses for the interface of the peer end. to achieve this, you need to configure the ip address ppp-negotiate command on the peer-end device and configure the remote address command on the local device, through which the peer end interface can optional accept the IP address allocated through PPP negotiation.
& Note:
The IP address allocated by the remote address command is optional to the peer end. That is, the peer end can use another IP address configure locally regardless of the one configured by the remote address command. To allocate an IP address for the peer end and invalidate the locally configured one, the remote address command need to be coupled with the ppp ipcp remote-address forced command.
Related commands: ppp ipcp remote-address forced.
Examples
# Allocate IP address 10.0.0.1 for the peer end through interface POS 4/1/1.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] interface pos 4/1/1
[Sysname-Pos4/1/1] remote address 10.0.0.1
1.1.17 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 enabled with payload scrambling can they be connected successfully.
Examples
# Disable payload scrambling on interface POS 1/1/1.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] interface pos 1/1/1
[Sysname-Pos1/1/1] undo scramble
1.1.18 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.
In some cases, for example, after changing the operating parameters of an interface, you may be required to re-enable the interface with the shutdown and undo shutdown commands for the settings to take effect.
Examples
# Shut down the POS interface POS 4/1/1.
<Sysname> system-view
[Sysname] interface pos 4/1/1
[Sysname-Pos4/1/1] shutdown
1.1.19 timer hold
Syntax
timer hold seconds
undo timer hold
View
POS interface view
Default Level
2: System level
Parameters
seconds: Interval to send keepalive packets (in seconds). The system default is 10 seconds. A value of 0 disables keepalive packet sending.
Description
Use the timer hold command to set the interval to send keepalive packets. Use the undo timer hold command to restore the default.
On low-rate links, set the interval to send keepalive packets to a relatively large number. Because large packets may take a very long time to be transmitted on a low-rate link, the transmission and receiving of the keepalive packets may be delayed. If the interface receives no keepalive packet from the peer end after specific number of keepalive cycles, the link is considered faulty. in this case, the link will be torn down.
For PPP link, the interval to send keepalive packets of the both sides must be the same.
Examples
# Set the interval to send keepalive packets to 20 seconds on interface POS 2/1/2.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] interface pos 2/1/2
[Sysname-Pos2/1/2] timer hold 20
1.1.20 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 3 to 9. It is interpreted as a negative exponent of 10e. For example, the threshold can be 10e-3.
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-3.
SD and SF alarms are used to indicate current line performance. They are generated when the receiving end detects a certain amount of B2 errors. 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.
When setting the thresholds, set the SD threshold lower than the SF threshold.
Examples
# Set the SD threshold to 10e-4 on interface POS 2/1/1.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] interface pos 2/1/1
[Sysname-Pos2/1/1] threshold sd 4