路由协议-第三次实验

0x01 配置静态路由

实验目的

(1)熟悉路由器各种接口的配置方法。

(2)熟悉路由器静态路由的配置方法。

实验拓扑

实验配置

两个路由器均要选择带有Serial口的,如果没有则按如下方式添加即可

最后开启路由器电源。路由器之间选择串行DTE。

PC0 配置IP:

PC1 配置IP:

R1 路由器配置IP:

Router> enable 
Router# conf terminal 
Router(config)# hostname R1
R1(config)# interface f0/0
R1(config-if)# ip add 192.168.1.1 255.255.255.0
R1(config-if)# no shutdown 
R1(config-if)# exit
R1(config)# interface s0/0
R1(config-if)# ip add 172.16.2.1 255.255.255.0
R1(config-if)# no shutdown
R1(config-if)# exit

R2 路由器配置IP:

Router> enable 
Router# conf terminal 
Router(config)# hostname R2
R2(config)# interface f0/0
R2(config-if)# ip add 202.99.8.1 255.255.255.0
R2(config-if) #no shutdown 
R2(config-if)# exit
R2(config)# interface s0/0
R2(config-if)# ip add 172.16.2.2 255.255.255.0
R2(config-if)# no shutdown 
R2(config-if)# exit

R1 路由器配置路由表:

R1(config)#ip route 202.99.8.0 255.255.255.0 172.16.2.2

R2 路由器配置路由表:

R2(config)#ip route 192.168.1.0 255.255.255.0 172.16.2.1

验证

查看R1路由表:

show ip route

查看R2路由表:

PC0可以ping通PC1

posted @ 2022-09-29 16:41  Morning|Star  阅读(31)  评论(0)    收藏  举报