配置动态路由RIP协议

一、网络结构

(1) 交换机与PC机、交换机与路由器的连接由以太网接口用直连线连接即可(每个设备会自动生成无数个以太网接口f0/0、f0/1……)

(2) 路由器之间是广域网之间连接,必须用串口serial相连,并且连接线用串口DTE连接

【如何为思科模拟器添加串口(serial口):https://www.mainblog.cn/126.html

二、实验过程

1、终端配置

PC0:

PC1:

PC2:

2、路由器配置

(1)Router0

配置路由器Router0 FastEthernet0/0接口IP地址

A、en

B、config t

C、interface fastEthernet 0/0

D、ip address 172.16.0.1 255.255.255.0

E、no shutdown

F、show interface fastEthernet 0/0

配置路由器Router0 Serial 2/0口ip地址

A、en

B、config t

C、interface serial 2/0

D、ip address 172.16.3.1 255.255.255.0

E、no shutdown

(2)Router1

配置路由器Router1 FastEthernet0/0接口IP地址

A、interface fastEthernet 0/0

B、ip address 172.16.1.1 255.255.255.0

C、no shutdown

配置路由器Router1 Serial 2/0口ip地址

A、interface serial 2/0

B、ip address 172.16.4.1 255.255.255.0

C、no shutdown

(3)Router2

配置路由器Router2 Serial 3/0口IP地址

A、interface serial 3/0

B、ip address 172.16.3.2  255.255.255.0

C、no shutdown

配置路由器Router2 Serial 4/0口IP地址

A、interface serial 4/0

B、ip address 172.16.4.2 255.255.255.0

C、no shutdown

配置路由器Router2 Serial 2/0口ip地址

A、interface serial 2/0

B、ip address 172.16.5.1 255.255.255.0

C、no shutdown

(4)Router3

配置路由器Router3 Serial 3/0口IP地址

A、interface serial 3/0

B、ip address 172.16.5.2  255.255.255.0

C、no shutdown

配置路由器Router3 FastEthernet0/0接口IP地址

A、interface fastEthernet 0/0

B、ip address 172.16.2.1 255.255.255.0

C、no shutdown

3、最终网络结构如下图所示

4、配置动态路由

(1)Router0配置动态路由rip

A、en

B、config t

C、router rip

D、network 172.16.0.0

【注意:这里没有指定子网掩码,因为172.16.0.0是一个B类地址,子网掩码是255.255.255.0,直接写成172.16.0.0就包含了网段1:172.16.0.0/24和网段3:172.16.3.0/24。简而言之,是因为172.16.0.0和172.16.3.0属于同一个B类地址】

(2)Router1、Router2、Router3同上

(3)查看Router3的路由表,一共有六个网段就对了


 

发布了114 篇原创文章 · 获赞 21 · 访问量 3万+

猜你喜欢

转载自blog.csdn.net/qq_38151401/article/details/105023367