赞
踩
实验步骤
1.首先进行子网划分
192.168.1.0000 0000
192.168.1.000 0 0000 /27 ----骨干链路
192.168.1.000 000 00 /30 192.168.1.0/30
192.168.1.000 001 00/30 192.168.1.4/30
192.168.1.000 010 00/30 192.168.1.8/30
192.168.1.000 011 00/30 192.168.1.12/30
192.168.1.000 100 00/30 192.168.1.16/30
192.168.1.000 101 00/30 192.168.1.20/30
192.168.1.000 110 00/30 192.168.1.24/30
192.168.1.001 0 0000/27-----R7 环回
192.168.1.001 0 0001/28 192.168.1.33/28
192.168.1.001 1 0001/28 192.168.1.49/28
192.168.1.010 0 0000/27----R10环回
192.168.1.010 0 0001/28 192.168.1.65/28
192.168.1.010 1 0001/28 192.168.1.81/28
192.168.1.011 0 0000/27-----R11环回
192.168.1.011 0 0001/28 192.168.1.97/28
192.168.1.011 1 0001/28 192.168.1.113/28
192.168.1.100 0 0000/27-----R12环回
192.168.1.100 0 0001/28 192.168.1.129/28
192.168.1.100 1 0001/28 192.168.1.145/28
配置路由器端口ip 和环路接口
R7
[R7-GigabitEthernet0/0/0]ip add 192.168.1.1 30
[R7-GigabitEthernet0/0/1]ip add 192.168.1.9 30
[R7-LoopBack0]ip add 192.168.1.32
[R7-LoopBack1]ip add 192.168.1.49 28
R10
[R10-GigabitEthernet0/0/0]ip add 192.168.1.2 30
R10-GigabitEthernet0/0/1]ip add 192.168.1.5 30
R10-GigabitEthernet0/0/1]ip add 192.168.1.5 30
[R10-LoopBack0]ip add 192.168.1.65 28
[R10-LoopBack1]ip add 192.168.1.81 24
R11
[R11-GigabitEthernet0/0/1]ip add 192.168.1.5 30
[R11-GigabitEthernet0/0/0]ip add 192.168.1.9 30
[R11-LoopBack0]ip add 192.168.1.97 28
[R11-LoopBack1]ip add 192.168.1.113 28
R12
[R12-GigabitEthernet0/0/0]ip add 192.168.1.6 30
[R12-GigabitEthernet0/0/1]ip add 192.168.1.14 30
[R12-LoopBack0]ip add 192.168.1.65 28
[R12-LoopBack1]ip add 192.168.1.145 28
静态路由的配置
R7
[R7]ip route-static 192.168.1.64 28 192.168.1.1
[R7]ip route-static 192.168.1.64 28 192.168.1.2
[R7]ip route-static 192.168.1.96 28 192.168.1.10
[R7]ip route-static 192.168.1.168 28 192.168.1.10
[R7]ip route-static 192.168.1.20 30 192.168.1.10
R10
[R10]ip route-static 192.168.1.32 28 192.168.1.1
[R10]ip route-static 192.168.1.96 28 192.168.1.1
[R10]ip route-static 192.168.1.8 30 192.168.1.1
R10]ip route-static 192.168.1.128 27 192.168.1.6
[R10]ip route-static 192.168.1.12 30 192.168.1.6
[R10]ip route-static 192.168.1.96 28 192.168.1.6
R11
[R11-LoopBack0]ip add 192.168.1.97 28
[R11-LoopBack1]ip add 192.168.1.113 28
[R11]ip route-static 192.168.1.0 30 192.168.1.10
[R11]ip route-static 192.168.1.32 28 192.168.1.10
[R11]ip route-static 192.168.1.64 28 192.168.1.10
[R11]ip route-static 192.168.1.128 30 192.168.1.14
[R11]ip route-static 192.168.1.4 30 192.168.1.14
R12
[R12]ip route-static 192.168.1.0 30 192.168.1.5
[R12]ip route-static 192.168.1.8 30 192.168.1.13
[R12]ip route-static 192.168.1.64 28 192.168.1.5
[R12]ip route-static 192.168.1.96 28 192.168.1.13
[R12]ip route-static 192.168.1.32 28 192.168.1.13
配置缺省路由
[R7]ip route-static 0.0.0.0 0 192.168.1.2
[R12]ip route-static 0.0.0.0 0 192.168.1.5
[R10]ip route-static 0.0.0.0 0 192.168.1.1
[R11]ip route-static 0.0.0.0 0 192.168.1.10
配置空接口方回环
[R7]ip route-static 192.168.1.32 27 NULL 0
[R12]ip route-static 192.168.1.128 27 NULL 0
[R10]ip route-static 192.168.1.64 27 NULL 0
[R11]ip route-static 192.168.1.96 27 NULL 0
测试
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。