- Table of Contents
-
- 01-Access Volume
- 01-CPOS Interface Commands
- 02-POS Interface Commands
- 03-Ethernet Interface Commands
- 04-WAN Interface Commands
- 05-Frame Relay Commands
- 06-HDLC Commands
- 07-PPP Commands
- 08-Logical Interface Commands
- 09-Modem Management Commands
- 10-ATM Interface Commands
- 11-ATM Commands
- 12-E-CPOS Interface Commands
- 13-VLAN Termination Commands
- 14-Port Mirroring Commands
- Related Documents
-
Title | Size | Download |
---|---|---|
02-POS Interface Commands | 72.01 KB |
POS Interface Configuration Commands
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 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 1/0 to master.
<Sysname> system-view
[Sysname] interface pos 1/0
[Sysname-Pos1/0] 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 1/0 to 16 bits.
<Sysname> system-view
[Sysname] interface pos 1/0
[Sysname-Pos1/0] crc 16
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 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 1/0.
<Sysname> display interface pos 1/0
Pos1/0 current state: UP
Line protocol current state: UP
Description: Pos1/0 Interface
The Maximum Transmit Unit is 1500, Hold timer is 10(sec)
Internet Address is 13.13.13.14/8 Primary
Link layer protocol is PPP
LCP opened, IPCP opened, IP6CP opened
Physical is Pos1/0, baudrate: 155520000
Output queue : (Urgent queuing : Size/Length/Discards) 0/50/0
Output queue : (Protocol queuing : Length) 0/500/0
Output queue : (FIFO queuing : Size/Length/Discards) 0/75/0
SDH alarm:
section layer: none
line layer: none
path layer: none
C2(Rx): 0x16 C2(Tx): 0x16
Rx: J0: ""
Tx: J0: ""
Rx: J1: ""
Tx: J1: ""
SDH error:
section layer: B1 0
line layer: B2 0 M1 0
path layer: B3 0 G1 0
Last clearing of counters: 11:12:47 Tue 08/21/2007
Last 300 seconds input rate 0 bytes/sec, 0 bits/sec, 0 packets/sec
Last 300 seconds output rate 0 bytes/sec, 0 bits/sec, 0 packets/sec
Input: 31 packets, 484 bytes, 0 no buffers
0 errors, 0 runts, 0 giants, 0 CRC,
0 overruns, 0 aborts
Output:29 packets, 460 bytes
0 errors, 0 underruns, 0 aborts
Table 1-1 display interface pos command output description
Field |
Description |
Pos1/0 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 |
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, IPCP opened, IP6CP opened |
LCP state, IPCP state, and IPv6CP state |
Physical is Pos1/0, Baudrate is 155520000 bps |
Physical interface and baudrate |
Output queue : (Urgent queue : Size/Length/Discards) Output queue : (Protocol queue : Size/Length/Discards) Output queue : (FIFO queuing : Size/Length/Discards) |
Output queues: l Urgent queue in size/length/discards l Protocol queue in size/length/discards l FIFO queue in size/length/discards |
Last clearing of counters |
Time when the last clearing of counters was performed |
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 display the IP-related information about a POS interface.
Examples
# Display the IP-related information of the interface POS1/0.
<Sysname> display ip interface pos 1/0
Pos1/0 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
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 display the IPv6-related information about a POS interface.
Examples
# Display IPv6-related information about the interface POS1/0.
<Sysname> display ipv6 interface pos 1/0
Pos1/0 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
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.
SDH framing format or SONET framing format here indicates that the sdh keyword or sonet keyword is specified in the flag { j0 | j1 } { sdh | sonet } command but not that the frame-format sdh command or the frame-format sonet command has been 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.
l c2: 0x16
l j0 (SDH): Null
l j1 (SDH): Null
Note that:
l Inconsistency between the c2 and j1 settings of the sending POS interface and the receiving POS interface causes alarms.
l The J0 byte can be any character in the network of the same carrier. If networks of two carriers are involved, however, the sending and receiving devices at network borders must use the same J0 byte. With the J0 byte, operators can detect and troubleshoot faults in advance or use less time to recover networks.
Related commands: display interface pos.
Examples
# Set the SDH overhead byte J0 of POS1/0 interface.
<Sysname> system-view
[Sysname] interface pos 1/0
[Sysname-Pos1/0] 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 1/0 to SDH.
<Sysname> system-view
[Sysname] interface pos 1/0
[Sysname-Pos1/0] frame-format sdh
link-protocol
Syntax
link-protocol { fr [ nonstandard | 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.
mfr interface-number: MFR interface or subinterface number. The specified interface must be one that already exists.
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 1/0.
<Sysname> system-view
[Sysname] interface pos 1/0
[Sysname-Pos1/0] 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.
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/0.
<Sysname> system-view
[Sysname] interface pos 1/0
[Sysname-Pos1/0] loopback local
mtu
Syntax
mtu size
undo mtu
View
POS interface view
Default Level
2: System level
Parameters
size: Size (in bytes) of the maximum transmission unit (MTU), in the range 128 to 1580. The default MTU size is 1500.
Description
Use the mtu command to set the MTU size of the POS interface.
Use the undo mtu command to restore the default.
The MTU setting of the POS interface can affect the assembly and fragmentation of IP packets on it.
In QoS, the length of queues is limited. If MTU on the interface is too small, there is a likelihood for a large packet to be fragmented into so many fragments that the queue cannot hold them and as such discard them. To avoid this situation, you can extend the queue length by using the qos fifo queue-length command in interface view. The default queuing mechanism on the interface is FIFO. For more information on how to configure queuing, refer to QoS Configuration in QoS Volume.
Related commands: display interface pos.
Examples
# Set MTU of POS interface 0/0/0 to 1492.
<Sysname> system-view
[Sysname] interface pos 1/0
[Sysname-Pos1/0] mtu 1492
reset counters interface
Syntax
reset counters interface [ pos [ interface-number ] ]
View
User view
Default Level
2: System level
Parameters
interface-number: POS interface 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 need to clear the existing statistics of the interface.
Examples
# Clear the statistics of interface POS 1/0.
<Sysname> reset counters interface pos 1/0
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.
Only when POS interfaces on both ends are enabled with payload scrambling can they be connected successfully.
Examples
# Enable payload scrambling on interface POS 1/0.
<Sysname> system-view
[Sysname] interface pos 1/0
[Sysname-Pos1/0]scramble
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.
Support for this command depends on the device model.
Examples
# Set the SD threshold on POS interface 1/0 to 10e-4.
<Sysname> system-view
[Sysname] interface pos 1/0
[Sysname-Pos1/0] threshold sd 4
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 need 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 1/0.
<Sysname> system-view
[Sysname] interface pos 1/0
[Sysname-Pos1/0] shutdown
sub-interface rate-statistic
Syntax
sub-interface rate-statistic
undo sub-interface rate-statistic
View
POS interface view
Default Level
2: System level
Parameters
None
Description
Use the sub-interface rate-statistic command to enable the collecting of rate statistics on the subinterfaces of a POS interface.
Use the undo sub-interface rate-statistic command to restore the default.
By default, the collecting of rate statistics on the subinterfaces of a POS interface is disabled.
l Because enabling this feature may take a large amount of the system resource, use this command with caution.
l All interfaces that support subinterfaces support this feature.
Examples
# Enable the collecting of rate statistics on the subinterfaces of POS 1/0.
<Sysname> system-view
[Sysname] interface pos 1/0
[Sysname-Pos1/0] sub-interface rate-statistic
Warning: This configuration may make a negative effect on the performance. Are you sure to continue? [Y/N]: Y
[Sysname-Pos1/0]