实验报告

ea81e3e0db67493295d490ed0382943e.png

 划分网段

因为AR1~AR4每个路由器存在两个环回接口,一个环回接口就是一个广播域,就得划分一个网段,所以由上可知,一共有14个网段。

又因为2的四次方更接近14,所以可以划分为16个网段。

93c228b90a504675885f87aadda838ee.jpg

为了减少黑洞路由的可能性,具体IP地址如下:

d1a2570f9942416587c806d0638bc6e4.jpg

 因为AR4借口不够,所以在其中加了一个IGEC接口。

8b7dd0fe1445450db051e15443b1b577.png

 设置IP

根据上面的IP图设置路由器(AR1~AR4)的接口IP地址和环回接口:(以AR1为例,后面大致相似)8b8ae919efa24035b65934224e95fea2.jpg

 配置路由

AR1

[r1]ip route-static 192.168.1.64 27   192.168.1.50
[r1]ip route-static 192.168.1.96 28 192.168.1.50
[r1]ip route-static 192.168.1.112 28 192.168.1.50
[r1]ip route-static 192.168.1.128 28 192.168.1.50
[r1]ip route-static 192.168.1.144 28 192.168.1.2
[r1]ip route-static 192.168.1.160 27 192.168.1.2

AR2
[r2]ip route-static 192.168.1.0 26 192.168.1.49
[r2]ip route-static 192.168.1.0 28 192.168.1.49
[r2]ip route-static 192.168.1.160 27 192.168.1.49
[r2]ip route-static 192.168.1.144 28 192.168.1.98
[r2]ip route-static 192.168.1.128 28 192.168.1.98
[r2]ip route-static 192.168.1.112 28 192.168.1.98

AR3

[r3]ip route-static 192.168.1.64 27 192.168.1.97
[r3]ip route-static 192.168.1.0 28 192.168.1.146
[r3]ip route-static 192.168.1.160 27 192.168.1.146
[r3]ip route-static 192.168.1.48 28 192.168.1.97
[r3]ip route-static 192.168.1.0 26 192.168.1.97

AR4

[r4]ip route-static 192.168.1.0 26 192.168.1.1
[r4]ip route-static 192.168.1.48 28 192.168.1.1
[r4]ip route-static 192.168.1.64 27 192.168.1.145
[r4]ip route-static 192.168.1.128 28 192.168.1.145
[r4]ip route-static 192.168.1.112 28 192.168.1.145

AR5
r5]ip route-static 192.168.1.0 28 192.168.1.209
[r5]ip route-static 192.168.1.0 26 192.168.1.209
[r5]ip route-static 192.168.1.48 28 192.168.1.209
[r5]ip route-static 192.168.1.64 27 192.168.1.209
[r5]ip route-static 192.168.1.96 28 192.168.1.209
[r5]ip route-static 192.168.1.112 28 192.168.1.209
[r5]ip route-static 192.168.1.128 28 192.168.1.209
[r5]ip route-static 192.168.2.144 28 192.168.1.209
[r5]ip route-static 192.168.1.160 27 192.168.1.209

测试:

6a99b00d3a5043ee839877ee5c72426b.png

fecc7812968b464aaf65adbcf33775ba.png

f004ea309be64d7794384f4f142fc909.png

f77e07057ae34337a9e5c4b50e31253a.png

 创建AR5的环回接口

6fa9c1e1c55146db9161c98aaff208f6.png

配置缺省路由

AR1

775ea60fd9724221b30cc45bc2631a22.png

b9ca0cbaf6ee436197c2b61da98e4830.png

 AR2

fa4e1e141b25462c9e22c398066a903d.png

98f7186aebf646a5b909d1c1f1c46633.png

 AR3

35d0bd288e5d4d578f8991885bfdf8e7.png

613586042e8f4a18b8dea91555a1b111.png

AR4

ae87c67ad985471da69b2304819cad81.png

44d1fe6330aa455bb1fcc2fc988ba57d.png

 防坏,黑洞路由配置

[AR1]ip route-static 192.168.1.0 26 NULL 0

[AR2]ip route-static 192.168.1.64 27 null 0

[AR4]ip route-static 192.168.1.160 27 NULL  0

做备份

[AR5]ip route-static 192.168.1.160 27 192.168.1.193 preference 61

[AR5]ip route-static 192.168.1.0 28 192.168.1.193 preference 61

[AR5]ip route-static 192.168.1.144 28 192.168.1.193 preference 61

[AR5]ip route-static 192.168.1.112 28 192.168.1.193 preference 61

[AR5]ip route-static 192.168.1.128 28 192.168.1.193 preference 61

[AR5]ip route-static 192.168.1.0 26 192.168.1.193 preference 61

[AR5]ip route-static 192.168.1.48 28 192.168.1.193 preference 61

[AR5]ip route-static 192.168.1.96 28 192.168.1.193 preference 61

[AR5]ip route-static 192.168.1.64 27 192.168.1.193 preference 61

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值