动态路由配置

1. 需要的环境PacketTracer6(思科)

2. 对路由器配置动态路由实现不同网段之间的通信,网络拓扑结构如下:

3. 按要求搭建上面的网络拓扑结构

使用鼠标拖动将所需要的结构放入到空白处

4. 配置好各台pc机的ip地址以及网关地址(ip地址以及各网关地址注明在上面)

ip地址:

网关:

其他PC机的配置一样

5. 对路由器连接的各个端口进行配置,命令如下:

左边路由器:
enable 15
configure terminal
interface fastethernet 0/0(查看端口号使用鼠标移入有连接的颜色的节点)
ip address 222.1.3.2 255.255.255.0
no shutdown 
exit

interface serial 3/0
ip address 222.1.5.2 255.255.255.0
no shutdown 
exit

interface serial 2/0
ip address 222.1.4.2 255.255.255.0
no shutdown 
exit

右边路由器:
enable 15
configure terminal
interface fastethernet 0/0
ip address 222.1.2.5 255.255.255.0
no shutdown 
exit

interface serial 3/0
ip address 222.1.6.2 255.255.255.0
no shutdown 
exit

interface serial 2/0
ip address 222.1.4.1 255.255.255.0
no shutdown 
exit

上边的路由器:
enable 15
configure terminal
interface fastethernet 0/0
ip address 222.1.1.4 255.255.255.0
no shutdown 
exit

interface serial 3/0
ip address 222.1.6.1 255.255.255.0
no shutdown 
exit

interface serial 2/0
ip address 222.1.5.1 255.255.255.0
no shutdown 
exit

6. 对各个路由器配置动态路由,命令如下:

左边路由器:
enable 15
configure terminal
router rip 
version 2
network 222.1.3.0
network 222.1.4.0
network 222.1.5.0

右边路由器:
enable 15
configure terminal
router rip 
version 2
network 222.1.2.0
network 222.1.6.0
network 222.1.4.0

上边路由器:
enable 15
configure terminal
router rip 
version 2
network 222.1.1.0
network 222.1.5.0
network 222.1.6.0

7. 查看各个路由器的路由表

为了方便查看,插入上面的网络拓扑结构图:

使用show ip route查看

对于左边的路由器,如果配置正确会显示:

对于右边的路由器,如果配置正确会显示:

对于上边的路由器,如果配置正确会显示:

8.进入PC机的Command Prompt 终端ping各个主机查看联通情况:

进入ip地址为222.1.1.1由近及远ping自己与各个主机

(1)ping 软件回环地址:

(2)ping自己的网卡:

(3)ping其他PC机

9. 分析第一次ping的时候为什么会丢包或者延时

ping第一个是ARP广播包,建立MAC地址和IP地址对应表

因为一开始不知道对方的MAC地址,所以包可能丢。

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值