ensp浮动路由实验

1.拓扑结构

3ce7a353437649d09d8fd206cc047814.png

2.主机配置

pc1:

d18a405ea8574326a3dd3cd277db992e.png

 

pc2:

537dd75c4f324cbe8cf845a35429b72b.png

3.路由配置

R1:

#
interface Ethernet0/0/0
 ip address 192.168.1.253 255.255.255.252
#
interface Ethernet0/0/1
 ip address 192.168.1.30 255.255.255.224
#
interface GigabitEthernet0/0/0
 ip address 192.168.1.245 255.255.255.252
#
ip route-static 192.168.1.64 255.255.255.192 192.168.1.254
ip route-static 192.168.1.64 255.255.255.192 192.168.1.246
ip route-static 192.168.1.240 255.255.255.252 192.168.1.246
ip route-static 192.168.1.248 255.255.255.252 192.168.1.254
#

R2:

#
interface Ethernet0/0/0
 ip address 192.168.1.254 255.255.255.252
#
interface Serial0/0/0
 link-protocol ppp
 ip address 192.168.1.249 255.255.255.252
#
#
ip route-static 192.168.1.0 255.255.255.224 192.168.1.253
ip route-static 192.168.1.64 255.255.255.192 192.168.1.250
#

R3:

#
interface Ethernet0/0/0
 ip address 192.168.1.126 255.255.255.192
#
interface Ethernet0/0/1
 ip address 192.168.1.242 255.255.255.252
#
interface Serial0/0/0
 link-protocol ppp
 ip address 192.168.1.250 255.255.255.252
#
ip route-static 192.168.1.0 255.255.255.224 192.168.1.249
ip route-static 192.168.1.0 255.255.255.224 192.168.1.241 preference 70
ip route-static 192.168.1.244 255.255.255.252 192.168.1.241
ip route-static 192.168.1.252 255.255.255.252 192.168.1.249
#

R4:

#
interface Ethernet0/0/0
 ip address 192.168.1.246 255.255.255.252
#
interface Ethernet0/0/1
 ip address 192.168.1.241 255.255.255.252
#
ip route-static 192.168.1.0 255.255.255.224 192.168.1.245
ip route-static 192.168.1.64 255.255.255.192 192.168.1.242
#

4.测试

(1)PC2 ping PC1:

51108df862d74abc9ced39fa68a3d618.png

2616d15d3277416a9c1549e8a84fe871.png  

(2)关闭路由器R2进行测试:

R1-R3 上面一条路径 优先级:60 下面一条优先级:70

8b3f6c47ec4b4ef086b6d3094614d39a.png

ff515c03631b4d0bbe5ddcaeae8a8029.png 

b5f2a5b60fd24c26964060e66272f9bd.png 

 

  • 19
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值