静态路由综合实验

 1.全网可达

2.拓扑中所需的地址全部基于192.168.0.0/24划分所得

3.静态路由(不许使用其他动态)

4.R8需要汇总

第一步:子网划分

4个网段----子网划分(借2位)

192.168.0.00 000000   26

192.168.0.0 26 

骨干链路使用:192.168.0.00 0000 00  30

                         192.168.0.0 30

                         192.168.0.4 30

                         192.168.0.8 30

                         192.168.0.12 30

                         192.168.0.16 30

                         192.168.0.20 30

                         192.168.0.24 30

192.168.0.64   26

R1上的环回:  192.168.0.64 28

                      192.168.0.80 28

                      192.168.0.96 28

R4上的用户网段:192.168.0.128 26

                              192.168.0.192 26
第二步:划分广播域

1.创建vlan

[SW1]vlan 2

[SW1]vlan 3

将0/0/3接口划分在vlan2 ,  将0/0/4接口划分在vlan3

[SW1]int g 0/0/3

[SW1-GigabitEthernet0/0/3]port link-type access 

[SW1-GigabitEthernet0/0/3]port default vlan 2

[SW1-GigabitEthernet0/0/3]int g 0/0/4

[SW1-GigabitEthernet0/0/4]port link-type access 

[SW1-GigabitEthernet0/0/4]port default vlan 3

[SW1-GigabitEthernet0/0/1]port link-type trunk 

[SW1-GigabitEthernet0/0/1]port trunk allow-pass vlan 2 3(既通过vlan2 也通过vlan3)

查看划分情况 [SW1]display vlan

SW2过程与SW1一致。
 

 第三步:配置接口和环回

R1:

[R1]interface LoopBack 0

[R1-LoopBack0]ip address 192.168.0.65 28

[R1-LoopBack0]int l 1

[R1-LoopBack1]ip address 192.168.0.81 28

[R1-LoopBack1]int l2

[R1-LoopBack2]ip address 192.168.0.97 28

[R1-LoopBack2]int g 0/0/0

[R1-GigabitEthernet0/0/0]ip address 192.168.0.1 30

[R1-GigabitEthernet0/0/0]int g0/0/1

[R1-GigabitEthernet0/0/1]ip address 192.168.0.9 30

R2:

[R2]int g0/0/0

[R2-GigabitEthernet0/0/0]ip address 192.168.0.2 30

[R2-GigabitEthernet0/0/0]int g0/0/1

[R2-GigabitEthernet0/0/1]ip address 192.168.0.5 30

R3:

[R3]int g0/0/0

[R3-GigabitEthernet0/0/0]ip address 192.168.0.6 30

[R3-GigabitEthernet0/0/0]int g0/0/1

[R3-GigabitEthernet0/0/1]ip address 192.168.0.14 30

[R3]interface GigabitEthernet 0/0/2

[R3-GigabitEthernet0/0/2]ip address 192.168.0.21 30

[R3-GigabitEthernet0/0/2]int g 4/0/0

[R3-GigabitEthernet4/0/0]ip address 192.168.0.17 30

R4:

[R4]int GigabitEthernet 0/0/0

[R4-GigabitEthernet0/0/0]ip address 192.168.0.13 30

[R4-GigabitEthernet0/0/0]int g0/0/1

[R4-GigabitEthernet0/0/1]ip address 192.168.0.10 30

[R4-GigabitEthernet0/0/1]int g 0/0/2.1

[R4-GigabitEthernet0/0/2.1]ip address 192.168.0.129 26

[R4-GigabitEthernet0/0/2.1]dot1q termination vid 2

[R4-GigabitEthernet0/0/2.1]arp broadcast enable 

[R4]int g0/0/2.2

[R4-GigabitEthernet0/0/2.2]ip address 192.168.0.193 26

[R4-GigabitEthernet0/0/2.2]dot1q termination vid 3

[R4-GigabitEthernet0/0/2.2]arp broadcast enable 

R5:

[r5]int g0/0/1

[r5-GigabitEthernet0/0/1]ip address 192.168.0.18 30

[r5-GigabitEthernet0/0/1]int g 0/0/0

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

[r5-GigabitEthernet0/0/0]int g 0/0/2

[r5-GigabitEthernet0/0/2]ip address 100.1.1.2 24

 

 

 

 

 第四步:配置路由

R1:

[R1]ip route-static 192.168.0.4 30 192.168.0.2 

R1]ip route-static 192.168.0.12 30 192.168.0.10
[R1]ip route-static 192.168.0.16 30 192.168.0.2
[R1]ip route-static 192.168.0.20 30 192.168.0.10
[R1]ip route-static 100.1.1.0 24 192.168.0.2
[R1]ip route-static 100.1.1.0 24 192.168.0.10

R2:

[R2]IP route-static 192.168.0.64 26 192.168.0.1
[R2]IP route-static 192.168.0.8 30 192.168.0.1
[R2]IP route-static 192.168.0.12 30 192.168.0.6

[R2]ip route-static 192.168.0.16 30 192.168.0.6
[R2]ip route-static 192.168.0.20 30 192.168.0.6
[R2]ip route-static 100.1.1.0 24 192.168.0.6

R3:

[R3]ip route-static 192.168.0.0 30 192.168.0.5
[R3]ip route-static 192.168.0.64 26 192.168.0.5
[R3]ip route-static 192.168.0.64 26 192.168.0.13
[R3]ip route-static 192.168.0.8 30 192.168.0.13

[R3]ip route-static 100.1.1.0 24 192.168.0.16
[R3]ip route-static 100.1.1.0 24 192.168.0.20

R4:

[R4]ip route-static 192.168.0.64 26 192.168.0.9
[R4]ip route-static 192.168.0.0 30 192.168.0.9
[R4]ip route-static 192.168.0.4 30 192.168.0.14
[R4]ip route-static 192.168.0.16 30 192.168.0.14
[R4]ip route-static 192.168.0.20 30 192.168.0.14
[R4]ip route-static 100.1.1.0 24 192.168.0.14

R5:

[r5]ip route-static 192.168.0.64 26 192.168.0.17
[r5]ip route-static 192.168.0.64 26 192.168.0.21
[r5]ip route-static 192.168.0.0 30 192.168.0.17
[r5]ip route-static 192.168.0.0 30 192.168.0.21
[r5]ip route-static 192.168.0.8 30 192.168.0.17
[r5]ip route-static 192.168.0.8 30 192.168.0.21
[r5]ip route-static 192.168.0.4 30 192.168.0.21
[r5]ip route-static 192.168.0.4 30 192.168.0.17
[r5]ip route-static 192.168.0.12 30 192.168.0.17
[r5]ip route-static 192.168.0.12 30 192.168.0.21

 

 

 

 

 第五步:配置省缺路由

[R1]ip route-static 0.0.0.0 0 192.168.0.10
[R1]ip route-static 0.0.0.0 0 192.168.0.2

[R2]ip route-static 0.0.0.0 0 192.168.0.6

[R3]ip route-static 0.0.0.0 0 192.168.0.18
[R3]ip route-static 0.0.0.0 0 192.168.0.22

[R4]ip route-static 0.0.0.0 0 192.168.0.14

第六步:防止环路

[R1]ip route-static 192.168.0.64 26 NULL 0

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值