ENSP的相关配置练习

1.除R5的环回地址固定以外,整个其他所有网段基于192.168.1.0/24进行合理的ip地址划分

2.R1-R4每个路由器存在两个环回接口,用于模拟连接PC网段;地址也在192.168.1.0/24这个网络范围内,R3下面PC通过DHCP获取一个合法的地址

3.R1-R4上不能直接编写到达5.5.5.0/24的静态路由,但依然可以访问

4.全网可达,尽量减少每台路由器,路由表条目数量,避免环路出现

5.R4与R5间,正常1000M链路通讯,故障时自动改为100M

(1)由图可以看出该图中有13个网段,于是将他们分为4+1个网段,其中4是指除AR5之外其余几个路由器的环回接口(AR3由于有PC1,所以没有环回接口),1是指路由器与路由器之间连接的网段。对192.168.1.0/24进行五个网段的划分得到192.168.1.0/27、192.168.1.32/27、192.168.1.64/27、192.168.1.96/27、192.168.1.128/27.之后将192.168.1.0/27作为4+1中的1.

因为1正好对应六个网段,所以将192.168.1.0/27划分为六个网段,分别为192.168.1.0/30、192.168.1.4/30、192.168.1.8/30、192.168.1.12/30、192.068.1.16/30、192.168.1.20/30

如图可知

(2)由(1)对网络进行细致划分得到

2.1在R3中开启DHCP

使PC通过DHCP获取一个合法的地址,接着在PC1的命令行输入ipconfig进行验证

(3)由于5.5.5.0/24不能直接写,所以通过缺省路由进行连接 

对R1-R4进行缺省路由的编写

R1:   [R1]ip route-static 0.0.0.0 0 192.168.1.2
         [R1]ip route-static 0.0.0.0 0 192.168.1.22

R2:   [r2]ip route-static 0.0.0.0 0 192.168.1.6

R3:   [r3]ip route-static 0.0.0.0 0 192.168.1.18

R4:   [r4]ip route-static 0.0.0.0 0 192.168.1.10
        [r4]ip route-static 0.0.0.0 0 192.168.1.14

(4)全网可达:

R1:

[r1]ip route-static 192.168.1.64 27 192.168.1.2
[r1]ip route-static 192.168.1.4 30 192.168.1.2
[r1]ip route-static 192.168.1.128 27 192.168.1.2
[r1]ip route-static 192.168.1.128 27 192.168.1.22
[r1]ip route-static 192.168.1.96 27 192.168.1.22
[r1]ip route-static 192.168.1.16 30 192.168.1.22
[r1]ip route-static 192.168.1.8 30 192.168.1.2
[r1]ip route-static 192.168.1.8 30 192.168.1.22
[r1]ip route-static 192.168.1.12 30 192.168.1.2
[r1]ip route-static 192.168.1.12 30 192.168.1.22

R2:

[r2]ip route-static 192.168.1.32 27 192.168.1.1
[r2]ip route-static 192.168.1.96 27 192.168.1.1
[r2]ip route-static 192.168.1.96 27 192.168.1.6
[r2]ip route-static 192.168.1.128 27 192.168.1.6
[r2]ip route-static 192.168.1.20 30 192.168.1.1
[r2]ip route-static 192.168.1.16 30 192.168.1.6
[r2]ip route-static 192.168.1.8 30 192.168.1.6
[r2]ip route-static 192.168.1.12 30 192.168.1.6
 

R3:

[r3]ip route-static 192.168.1.32 27 192.168.1.21
[r3]ip route-static 192.168.1.64 27 192.168.1.21
[r3]ip route-static 192.168.1.64 27 192.168.1.18
[r3]ip route-static 192.168.1.128 27 192.168.1.18
[r3]ip route-static 192.168.1.0 30 192.168.1.21
[r3]ip route-static 192.168.1.4 30 192.168.1.18
[r3]ip route-static 192.168.1.8 30 192.168.1.18
[r3]ip route-static 192.168.1.12 30 192.168.1.18
 

R4:

[r4]ip route-static 192.168.1.32 27 192.168.1.5
[r4]ip route-static 192.168.1.32 27 192.168.1.17
[r4]ip route-static 192.168.1.64 27 192.168.1.5
[r4]ip route-static 192.168.1.96 27 192.168.1.17
[r4]ip route-static 192.168.1.0 30 192.168.1.5
[r4]ip route-static 192.168.1.20 30 192.168.1.17

R5:

[r5]ip route-static 192.168.1.128 27 192.168.1.9
[r5]ip route-static 192.168.1.128 27 192.168.1.13
[r5]ip route-static 192.168.1.4 30 192.168.1.9
[r5]ip route-static 192.168.1.4 30 192.168.1.13
[r5]ip route-static 192.168.1.0 30 192.168.1.9
[r5]ip route-static 192.168.1.0 30 192.168.1.13
[r5]ip route-static 192.168.1.64 27 192.168.1.9
[r5]ip route-static 192.168.1.64 27 192.168.1.13
[r5]ip route-static 192.168.1.32 27 192.168.1.9
[r5]ip route-static 192.168.1.32 27 192.168.1.13
[r5]ip route-static 192.168.1.20 30 192.168.1.9
[r5]ip route-static 192.168.1.20 30 192.168.1.13
[r5]ip route-static 192.168.1.96 27 192.168.1.9
[r5]ip route-static 192.168.1.96 27 192.168.1.13
[r5]ip route-static 192.168.1.16 30 192.168.1.9
[r5]ip route-static 192.168.1.16 30 192.168.1.13
 

(5)运用浮动静态路由,也就是优先级(pre)

R1:

[r1]ip route-static 192.168.1.12 30 192.168.1.2 preference  61
[r1]ip route-static 192.168.1.12 30 192.168.1.22 preference  61

R2:

[r2]ip route-static 192.168.1.12 30 192.168.1.6 preference  61

R3:

[r3]ip route-static 192.168.1.12 30 192.168.1.18 preference  61

R4:

[r4]ip route-static 0.0.0.0 0 192.168.1.14 preference  61

R5:
[r5]ip route-static 192.168.1.128 27 192.168.1.13 preference  61
[r5]ip route-static 192.168.1.4 30 192.168.1.13 preference  61
[r5]ip route-static 192.168.1.0 30 192.168.1.13 preference  61
[r5]ip route-static 192.168.1.64 27 192.168.1.13 preference  61
[r5]ip route-static 192.168.1.32 27 192.168.1.13 preference  61
[r5]ip route-static 192.168.1.20 30 192.168.1.13 preference  61
[r5]ip route-static 192.168.1.96 27 192.168.1.13 preference  61
[r5]ip route-static 192.168.1.16 30 192.168.1.13 preference  61

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值