R0106-HP MSR Router Series Layer 2 - WAN Configuration Guide(V7)

82
Ste
p
Command
Remarks
1. Enter system view.
system-view N/A
2. Enter interface view.
interface interface-type
interface-number
N/A
3. Configure the link status
polling interval.
timer hold seconds
Optional.
The default setting is 10 seconds.
Displaying and maintaining HDLC
Execute display commands in any view and reset commands in user view.
Task Command
Display the HDLC configuration
on an interface.
display interface serial interface-number
display interface pos interface-number
Clear the statistics and restart
statistics collection on
interfaces.
reset counters interface [ serial [ interface-number ] ]
reset counters interface [ pos [ interface-number ] ]
HDLC configuration example
Network requirements
As shown in Figure 29, Router A and Router B are connected by POS interfaces.
Run HDLC on the link between them.
Figure 29 Network diagram
Configuration procedure
Configuring Router A
# Configure the clock mode of POS 2/2/0 as master.
<RouterA> system-view
[RouterA] interface pos 2/2/0
[RouterA-Pos2/2/0] clock master
# Enable HDLC encapsulation on POS 2/2/0.
[RouterA-Pos2/2/0] link-protocol hdlc
# Assign an IP address to POS 2/2/0.
[RouterA-Pos2/2/0] ip address 12.1.1.1 24