PPP实验
实验拓扑
实验需求
-
按照图示搭配拓扑,并配置IP地址
-
RTA和RTB使用PPP链路直连
-
在PCA或PCB上通过ping命令检查PCB或PCA的互通性
实验解析
1、按照图示搭配拓扑,并配置IP地址
步骤1:配置PCA的IP地址以及网关
步骤2:配置RTA的IP地址
[RTA]interface g0/0 [RTA-GigabitEthernet0/0]ip address 192.168.1.1 30 [RTA]interface Serial 1/0 [RTA-Serial1/0]ip address 10.1.1.2 30
步骤3:配置RTB的IP地址
[RTB]interface g0/0 [RTB-GigabitEthernet0/0]ip address 192.168.2.1 30 [RTB]interface Serial 1/0 [RTB-Serial1/0]link-protocol ppp [RTB-Serial1/0]ip address 10.1.1.1 255.255.255.252
步骤4:配置PCB的IP地址以及网关
2、RTA和RTB使用PPP链路直连
步骤1:将RTA串行接口封装PPP协议,并修改带宽为2048000
[RTA]interface Serial 1/0 [RTA-Serial1/0]link-protocol ppp [RTA-Serial1/0]bandwidth 2048000
步骤2:将RTB串行接口封装PPP协议,并修改带宽为2048000
[RTB]interface Serial 1/0 [RTB-Serial1/0]link-protocol ppp [RTB-Serial1/0]bandwidth 2048000
3、在RTA上配置到达192.168.2.0/30网段的路由
[RTA]ip route-static 192.168.2.0 255.255.255.252 10.1.1.1
4、在RTB上配置到达192.168.1.0/30网段的路由
[RTB]ip route-static 192.168.1.0 255.255.255.252 10.1.1.2
5、在PCA或PCB上通过ping命令检查PCB或PCA的互通性
步骤1:在PCA上ping PCB的IP地址
<H3C>ping 192.168.2.1 Ping 192.168.2.1 (192.168.2.1): 56 data bytes, press CTRL_C to break 56 bytes from 192.168.2.1: icmp_seq=0 ttl=254 time=1.310 ms 56 bytes from 192.168.2.1: icmp_seq=1 ttl=254 time=1.030 ms 56 bytes from 192.168.2.1: icmp_seq=2 ttl=254 time=0.934 ms 56 bytes from 192.168.2.1: icmp_seq=3 ttl=254 time=1.036 ms 56 bytes from 192.168.2.1: icmp_seq=4 ttl=254 time=1.079 ms
步骤2:在PCB上ping PCA的IP地址
<H3C>ping 192.168.1.1 Ping 192.168.1.1 (192.168.1.1): 56 data bytes, press CTRL_C to break 56 bytes from 192.168.1.1: icmp_seq=0 ttl=254 time=1.183 ms 56 bytes from 192.168.1.1: icmp_seq=1 ttl=254 time=1.085 ms 56 bytes from 192.168.1.1: icmp_seq=2 ttl=254 time=1.088 ms 56 bytes from 192.168.1.1: icmp_seq=3 ttl=254 time=1.185 ms 56 bytes from 192.168.1.1: icmp_seq=4 ttl=254 time=1.173 ms