1.2 HDLC配置
本节中学习HDLC配置步骤方法及相关内容。
-
使用HDLC配置三个分公司的路由器
-
使用有效载荷压缩提高传输效率
-
只涉及WAN的配置,LAN不讨论
-
如图1-1配置网络
图1-1
RouterA(1.1.1.1)---------(1.1.1.2)routerB(2.2.2.2)-------- (2.2.2.1)routerC
A为上海分公司 B为北京总公司 C为沈阳分公司
-
3台路由器
-
4条串行线缆,两条DTE公口线缆,两条DCE母口线缆
北京总公司的router配置为DCE端,提供时钟
北京部公司的router配置主要步骤如下:
第1步 (可选)设置主机名为beijing
第2步 用encapsulation hdlc命令配置串口的HDLC封装
第3步 设置串口上的波特率 (DTE端不需要配置)
第4步 配置压缩
第5步 给串口配置IP地址
例1-6,三台设置的配置示例
北京总公司路由器B的配置
version 12.2
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname Beijing
interface FastEthernet0/0
no ip address
shutdown
duplex auto
speed auto
!
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
interface Serial1/0
ip address 1.1.1.2 255.255.255.252
serial restart_delay 0
compress stac
clockrate 115200
!
interface Serial1/1
ip address 2.2.2.2 255.255.255.252
serial restart_delay 0
compress stac
clockrate 115200
更多内容请看PCdog.com--CCIE OSPF路由协议 路由协议专题
