本次实验的设备是:神州数码DCR-2855
本次实验拓扑图
- 配置要求
路由器 | 接口 | IP地址 |
RT-1 | S1/0 | 192.168.1.1/24 |
RT-2 | S1/1 | 192.168.1.2/24 |
- 配置步骤
RT-1的配置
RT-1_config#interface serial 1/0
RT-1_config_s1/0#ip add 192.168.1.1 255.255.255.0 配置IP地址
RT-1_config_s1/0#encapsulation ppp 封装PPP协议
RT-1_config_s1/0#physical-layer speed 64000 设置时钟速率
RT-1_config_s1/0#no shutdown 重启端口
RT-1_config_s1/0#show interface se1/0 查看端口
Serial1/0 is up, line protocol is down 对端没有配置所以协议是down
Mode=Sync DCE Speed=64000
DTR=UP,DSR=UP,RTS=UP,CTS=UP,DCD=UP
MTU 1500 bytes, BW 64 kbit, DLY 2000 usec
Interface address is 192.168.1.1/24
Encapsulation PPP, loopback not set
RT-2的配置
RT-2_config#interface serial 1/1
RT-2_config_s1/1#ip add 192.168.1.2 255.255.255.0
RT-2_config_s1/1#encapsulation ppp
RT-2_config_s1/1#no shutdown
RT-2_config#show interface serial 1/1
Serial1/1 is up, line protocol is up
Mode=Sync DTE
DTR=UP,DSR=UP,RTS=UP,CTS=UP,DCD=UP
MTU 1500 bytes, BW 64 kbit, DLY 2000 usec
Interface address is 192.168.1.2/24
Encapsulation PPP, loopback not set
最后可以在特权模式ping一下看是否通信
RT-2#ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1): 56 data bytes
!!!!! 五个感叹号代表通 五个点代表不同
--- 192.168.1.1 ping statistics ---
5 packets transmitted, 5 packets received, 0% packet loss
round-trip min/avg/max = 23/23/23 ms
关于PPP的两种验证方式请看下一章