路由器的广域网协议配置

高层链路控制HDLC的配置

操作步骤:

进入全局配置状态 config term

进入端口配置状态 interface serial slot/position

设置HDLC的帧类型 encapsulation hdlc

设置IP地址及其子网掩码 

ip address ip-address netmask

如果本端口联接的是DCE线缆,则要设时钟 clockrate clock-rate

配置举例:路由器A的IP地址为132.4.2.2,B的IP地址是132.4.2.1,都使用s2/0口进行联通。

路由器A的配置如下:
*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






路由器B的配置如下:
*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
平均链路访问LAPB

操作步骤:

进入全局配置状态 config term

进入端口配置状态 interface serial slot/position

设置lapb帧类型,如果本节点作lapb dce,则要加上dce选项 encapsulation lapb[dce]

设置IP地址及其掩码 ip address ip-address netmask

如果本端口作物理DCE()
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章