计算机网络实验课作业2023/11/29

实验过程:

一、将下图中的网络拓扑图连接完整添加网络设备和PC为路由器添加接口连线

二、请同学们依据上面的网络拓扑图,完成下列实验内容:
1.将上图中的路由器0的名字更改为R1,配置命令写在此处:
Router>enable
Router#config t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname R1
R1(config)#
2.完成路由器1各端口的配置,配置命令写在此处:
Router>enable
Router#config t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname R2
R2(config)#interface fa0/0
R2(config-if)#ip address 172.16.1.254 255.255.255.0
R2(config-if)#no shutdown

R2(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up

R2(config-if)#exit
R2(config)#interface fa0/1
R2(config-if)#ip address 172.16.2.254 255.255.255.0
R2(config-if)#no shutdown

R2(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up

R2(config-if)#exit
R2(config)#interface se0/3/0
R2(config-if)#ip address 172.16.4.1 255.255.255.0
R2(config-if)#clock rate 64000
R2(config-if)#no shutdown

%LINK-5-CHANGED: Interface Serial0/3/0, changed state to down
R2(config-if)#exit
3.完成路由器0各端口的配置,配置命令写在此处:
R1(config)#interface se0/3/0
R1(config-if)#ip address 172.16.4.2 255.255.255.0

R1(config-if)#no shutdown

%LINK-5-CHANGED: Interface Serial0/3/0, changed state to down
R1(config-if)#exit
R1(config)#interface se0/3/1
R1(config-if)#ip address 172.16.5.1 255.255.255.0
R1(config-if)#clock rate 64000
R1(config-if)#no shutdown

%LINK-5-CHANGED: Interface Serial0/3/1, changed state to down
R1(config-if)#exit

4.为路由器0配置静态路由,将配置命令写在此处:
R1(config)#ip route 172.16.1.0 255.255.255.0 172.16.4.1
R1(config)#ip route 172.16.2.0 255.255.255.0 172.16.4.1
R1(config)#ip route 172.16.3.0 255.255.255.0 172.16.5.2
三、测试结果

  1. 三台主机之间能够互相ping通,以pc0为例,点击PC0,去 ping pc2,结果截图附上:

点击PC0,使用tracert命令测试到PC2经过几条路由路径,截图附上:


评论

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注