Network requirements

As shown in Figure 36, Router A and Router B are connected by POS interfaces.

Run HDLC on the link between them.

Figure 36: Network diagram

Configuration procedure

Configuring Router A

# Configure the clock mode of POS 2/1/0 as master.

<RouterA> system-view
[RouterA] interface pos 2/1/0
[RouterA-Pos2/1/0] clock master

# Enable HDLC encapsulation on POS 2/1/0.

[RouterA-Pos2/1/0] link-protocol hdlc

# Assign an IP address to POS 2/1/0.

[RouterA-Pos2/1/0] ip address 12.1.1.1 24
[RouterA-Pos2/1/0] quit

Configuring Router B

# Enable HDLC encapsulation on POS 2/1/0.

<RouterB> system-view
[RouterB] interface pos 2/1/0
[RouterB-Pos2/1/0] link-protocol hdlc

# Assign an IP address to POS 2/1/0.

[RouterB-Pos2/1/0] ip address 12.1.1.2 24