静态路由实验

此博客内容涉及路由器R1、R2、R3、R4和R5的接口IP地址配置,以及静态路由设置。R1、R2、R3的LoopBack接口分配了特定IP地址,用于标识路由器身份。路由规划中,各路由器通过不同子网进行互联,并通过静态路由实现网络间的通信。此外,为了避免路由环路,部分路由器配置了NULL0接口的静态路由。
摘要由CSDN通过智能技术生成

ip划分

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.168.1.16/30

192.168.1.20/30

R1

192.168.1.32/28   192.168.1.48/28

R2

192.168.1.64/28   192.168.1.80/28

R3

192.168.1.96/28   192.168.1.112/28

1、

R1

[r1-GigabitEthernet0/0/0]ip address 192.168.1.1 30

[r1-GigabitEthernet0/0/1]ip address 192.168.1.14 30

R2

[r2-GigabitEthernet0/0/0]ip address 192.168.1.2 30

[r2-GigabitEthernet0/0/1]ip address 192.168.1.5 30

R3

[r3-GigabitEthernet0/0/0]ip address 192.168.1.13 30

[r3-GigabitEthernet0/0/1]ip address 192.168.1.9 30

R4

[r4-GigabitEthernet4/0/0]ip address 192.168.1.17 30

[r4-GigabitEthernet0/0/1]ip address 192.168.1.6 30

[r4-GigabitEthernet0/0/0]ip address 192.168.1.10 30

[r4-GigabitEthernet0/0/2]ip address 192.168.1.21 30

R5

[r5-GigabitEthernet0/0/0]ip address 192.168.1.18 30

[r5-GigabitEthernet0/0/0]ip address 192.168.1.22 30

2、

R1

[r1-LoopBack0]ip address 192.168.1.33 28

[r1-LoopBack1]ip address 192.168.1.49 28

R2

[r2-LoopBack0]ip address 192.168.1.65 28

[r2-LoopBack1]ip address 192.168.1.81 28

R3

[r3-LoopBack0]ip address 192.168.1.97 28

[r3-LoopBack1]ip address 192.168.1.113 28

R4

[r4-LoopBack0]ip address 192.168.1.129 28

[r4-LoopBack1]ip address 192.168.1.145 28

R5

[r5-LoopBack0]ip address 5.5.5.5 24

3、

R1

ip route-static 192.168.1.4 255.255.255.252 192.168.1.2

ip route-static 192.168.1.8 255.255.255.252 192.168.1.13

ip route-static 192.168.1.16 255.255.255.252 192.168.1.2

ip route-static 192.168.1.16 255.255.255.252 192.168.1.13

ip route-static 192.168.1.20 255.255.255.252 192.168.1.13

ip route-static 192.168.1.20 255.255.255.252 192.168.1.2

ip route-static 192.168.1.64 255.255.255.224 192.168.1.2

ip route-static 192.168.1.96 255.255.255.224 192.168.1.2

ip route-static 192.168.1.96 255.255.255.224 192.168.1.13

ip route-static 192.168.1.128 255.255.255.224 192.168.1.13

ip route-static 192.168.1.128 255.255.255.224 192.168.1.2

R2

[r2]ip route-static 192.168.1.128 27 192.168.1.6

[r2]

[r2]ip route-static 192.168.1.16 30 192.168.1.6

[r2]

[r2]ip route-static 192.168.1.21 30 192.168.1.6

Info: The destination address and mask of the configured static route mismatched

, and the static route 192.168.1.20/30 was generated.

[r2]

[r2]ip route-static 192.168.1.8 30 192.168.1.6

[r2]

[r2]ip route-static 192.168.1.96 27 192.168.1.6

[r2]

[r2]ip route-static 192.168.1.96 27 192.168.1.1

[r2]

[r2]ip route-static 192.168.1.32 27 192.168.1.1

[r2]

[r2]ip route-static 192.168.1.12 30 192.168.1.1

R3

[r3]ip route-static 192.168.1.32 27 192.168.1.14

[r3]

[r3]ip route-static 192.168.1.0 30 192.168.1.14

[r3]

[r3]ip route-static 192.168.1.64 27 192.168.1.14

[r3]

[r3]ip route-static 192.168.1.64 27 192.168.1.10

[r3]

[r3]ip route-static 192.168.1.128 27 192.168.1.10

[r3]

[r3]ip route-static 192.168.1.4 30 192.168.1.10

[r3]

[r3]ip route-static 192.168.1.16 30 192.168.1.10

[r3]

[r3]ip route-static 192.168.1.20 30 192.168.1.10

R4

[r4]ip route-static 192.168.1.64 27 192.168.1.5

[r4]

[r4]ip route-static 192.168.1.0 30 192.168.1.5

[r4]

[r4]ip route-static 192.168.1.32 27 192.168.1.5

[r4]

[r4]ip route-static 192.168.1.32 27 192.168.1.9

[r4]

[r4]ip route-static 192.168.1.96 27 192.168.1.9

[r4]

[r4]ip route-static 192.168.1.12 30 192.168.1.9

R5

[r5]ip route-static 192.168.1.128 27 192.168.1.17

[r5]

[r5]ip route-static 192.168.1.4 30 192.168.1.17

[r5]

[r5]ip route-static 192.168.1.64 27 192.168.1.17

[r5]

[r5]ip route-static 192.168.1.0 30 192.168.1.17

[r5]

[r5]ip route-static 192.168.1.32 27 192.168.1.17

[r5]

[r5]ip route-static 192.168.1.12 30 192.168.1.17

[r5]

[r5]ip route-static 192.168.1.96 27 192.168.1.17

[r5]

[r5]ip route-static 192.168.1.8 30 192.168.1.17

4、

R1

ip route-static 0.0.0.0 0.0.0.0 192.168.1.2

ip route-static 0.0.0.0 0.0.0.0 192.168.1.13

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.10

避免环路

ip route-static 192.168.1.32 255.255.255.224 NULL0

[r2]ip route-static 192.168.1.64 27 NULL 0

[r3]ip route-static 192.168.1.96 27 NULL 0

[r4]ip route-static 192.168.1.128 27 NULL 0

5、

[r4]ip route-static 0.0.0.0 0 192.168.1.18

[r4]ip route-static 0.0.0.0 0 192.168.1.22 preference 90

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值