Configuration of high-level link control HDLC
Operation steps:
Enter the global configuration state config term
Enter port configuration status interface serial slot/position
Set the frame type of HDLC encapsulation hdlc
Set the IP address and its subnet mask
ip address ip-address netmask
If this port is connected to a DCE cable, set the clock rate clock-rate
Configuration example: Router A's IP address is 132.4.2.2, and B's IP address is 132.4.2.1, both of which are connected using the s2/0 port.
The configuration of router A is as follows:
*router# config term
*router(config)# interface serial2/0
*router(config-if)# encapsulation hdlc
*router(config-if)# ip address 132.4.2.2 255.255.0.0
*router(config-if)# clockrate 64000
The configuration of router B is as follows:
*router# config term
*router(config-if)# encapsulation hdlc
*router(config-if)# ip address 132.4.2.1 255.255.0.0
*router(config-if)# clockrate 64000
Average link access LAPB
Operation steps:
Enter the global configuration state config term
Enter port configuration status interface serial slot/position
Set the lapb frame type. If this node is used as lapb dce, then add the dce option encapsulation lapb[dce]
Set the IP address and its mask ip address ip-address netmask
If this port is physical DCE()