赞
踩
1划分IP地址
2各设备IP地址配置
3ping 直连路由看看是否有IP地址配错,或者是接口写错等情况
4写静态路由
5对写的静态路由进行测试
6对于汇总了的IP网段的路由器进行防环处理
7写缺省路由实现全网可达
8实现静态浮动路由
9 测试静态浮动路由
1划分IP地址
采用层级划分,先总的划分出八个网段,第一个网段用于各个接口的配置。再将这个网段继续划分,划分成只有两个可用IP地址的网段。给各个路由器的接口的IP地址进行配置。接着再拿出四个网段接着进行划分用于四个路由器的环回接口模拟路由器下面的pc。 剩下的三个网段,可以留着备用
(1)192.168.1.0/24
划分后
(接口网段):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
R4: 192.168.1.128/28
192.168.1.144/28
2、各设备IP地址配置
R1环回 ip add 192.168.1.33 28
Ip add 192.168.1.49 28
GE0/0/0 ip add 192.168.1.1 30
GE0/0/1 ip add 192.168.1.5 30
R2环回 ip add 192.168.1.65 28
ip add 192.168.1.81 28
GE0/0/0 ip add 192.168.1.2 30
GE0/0/1 ip add 192.168.1.9 30
R3环回 ip add 192.168.1.97 28
Ip add 192.168.1.113 28
GE0/0/0 ip add 192.168.1.6 30
GE0/0/1 ip add 192.168.1.13 30
R4环回 ip add 192.168.1.129 28
Ip add 192.168.1.145 28
GE0/0/0 ip add 192.168.1.14 30
GE0/0/1 ip add 192.168.1.10 30
GE0/0/2 ip add 192.168.1.17 30
GE4/0/0 ip add 192.168.1.21 30
R5环回 ip add 5.5.5.5 24
GE0/0/0 ip add 192.168.1.18 30
GE0/0/1 ip add 192.168.1.22 30
3 ping 直连路由看看是否有IP地址配错,或者是接口写错等情况
4写静态路由
R1:
Ip route-static 192.168.1.64 27 192.168.1.2
Ip route-static 192.168.1.8 30 192.168.1.2
Ip route-static 192.168.1.128 27 192.168.1.2
Ip route-static 192.168.1.128 27 192.168.1.6
Ip route-static 192.168.1.16 30 192.168.1.2
Ip route-static 192.168.1.16 30 192.168.1.6
Ip route-static 192.168.1.20 30 192.168.1.2
Ip route-static 192.168.1.20 30 192.168.1.6
Ip route-static 192.168.1.12 30 192.168.1.6
Ip route-static 192.168.1.96 27 192.168.1.6
R2:
Ip route-static 192.168.1.32 27 192.168.1.1
Ip route-static 192.168.1.4 30 192.168.1.1
Ip route-static 192.168.1.96 27 192.168.1.1
Ip route-static 192.168.1.96 27 192.168.1.10
Ip route-static 192.168.1.12 30 192.168.1.10
Ip route-static 192.168.1.128 27 192.168.1.10
Ip route-static 192.168.1.16 30 192.168.1.10
Ip route-static 192.168.1.20 30 192.168.1.10
R3:
Ip route-static 192.168.1.32 27 192.168.1.5
Ip route-static 192.168.1.10 30 192.168.1.5
Ip route-static 192.168.1.64 27 192.168.1.5
Ip route-static 192.168.1.64 27 192.168.1.14
Ip route-static 192.168.1.8 30 192.168.1.14
Ip route-static 192.168.1.128 27 192.168.1.14
Ip route-static 192.168.1.16 30 192.168.1.14
Ip route-static 192.168.1.20 30 192.168.1.14
R4:
Ip route-static 192.168.1.96 27 192.168.1.13
Ip route-static 192.168.1.4 30 192.168.1.13
Ip route-static 192.168.1.32 27 192.168.1.13
Ip route-static 192.168.1.32 27 192.168.1.9
Ip route-static 192.168.1.0 30 192.168.1.9
Ip route-static 192.168.1.64 27 192.168.1.9
R5:
IP route-static 192.168.1.128 27 192.168.1.21
IP route-static 192.168.1.128 27 192.168.1.17
Ip route-static 192.168.1.12 30 192.168.1.17
Ip route-static 192.168.1.12 30 192.168.1.21
Ip route-static 192.168.1.96 27 192.168.1.17
Ip route-static 192.168.1.96 27 192.168.1.21
Ip route-static 192.168.1.4 30 192.168.1.17
Ip route-static 192.168.1.4 30 192.168.1.21
Ip route-static 192.168.1.32 27 192.168.1.17
Ip route-static 192.168.1.32 27 192.168.1.21
Ip route-static 192.168.1.0 30 192.168.1.17
Ip route-static 192.168.1.0 30 192.168.1.21
Ip route-static 192.168.1.64 27 192.168.1.17
Ip route-static 192.168.1.64 27 192.168.1.21
Ip route-static 192.167.1.8 30 192.168.1.17
Ip route-static 192.167.1.8 30 192.168.1.21
5全网可达测试
6对汇总的路由器进行防环配置
R1:Ip route-static 192.168.1.32 27 NULL 0
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 NULL0
7写缺省路由
R1:ip route-static 0.0.0.0 0 192.168.1.2
Ip route-static 0.0.0.0 0 192.168.1.6
R2:ip route-static 0.0.0.0 0 192.168.1.10
R3:ip route-static 0.0.0.0 0 192.168.1.14
R4: ip route-static 0.0.0.0 0 192.168.1.18
Ip route-static 0.0.0.0 0 192.168.1.22
8实现静态路由浮动设置
将所有路由是百兆的IP地址的优先级修改为61
R5:
IP route-static 192.168.1.128 27 192.168.1.21 perference 61
Ip route-static 192.168.1.12 30 192.168.1.21 perference 61
Ip route-static 192.168.1.96 27 192.168.1.21 perference 61
Ip route-static 192.168.1.4 30 192.168.1.21 perference 61
Ip route-static 192.168.1.32 27 192.168.1.21 perference 61
Ip route-static 192.168.1.0 30 192.168.1.21 perference 61
Ip route-static 192.168.1.64 27 192.168.1.21 perference 61
Ip route-static 192.167.1.8 30 192.168.1.21 perference 61
R4:
Ip route-static 0.0.0.0 0 192.168.1.21 perference 61
9测试静态浮动路由
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。