1.全网所有网段均基于192.168.1.0/24划分所得
2.R1-R4每一台设备均有2个环回且需要汇总
3.R5的环回为ISP,地址为1.1.1.1/24
4.R4-R5之间的链路做浮动静态路由,上面为100M,下面为1000M
5.尽量减少路由条目,避免环路且全网可达
第一步将192.168.1.0/24划分为14个网段:
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
192.168.1.32/27–R1环回
192.168.1.32/28
192.168.1.48/28
192.168.1.64/27–R2环回
192.168.1.64/28
192.168.1.80/28
192.168.1.96/27–R3环回
192.168.1.96/28
192.168.1.112/28
192.168.1.128/27–R4环回
192.168.1.128/28
192.168.1.144/28
第二步:配接口地址
R1
Interface IP Address/Mask Physical Protocol
Ethernet0/0/0 192.168.1.1/30 up up
Ethernet0/0/1 192.168.1.21/30 up up
GigabitEthernet0/0/0 unassigned down down
GigabitEthernet0/0/1 unassigned down down
GigabitEthernet0/0/2 unassigned down down
GigabitEthernet0/0/3 unassigned down down
LoopBack0 192.168.1.33/28 up up(s)
LoopBack1 192.168.1.49/28 up up(s)
NULL0 unassigned up up(s)
Serial0/0/0 unassigned down down
Serial0/0/1 unassigned down down
Serial0/0/2 unassigned down down
Serial0/0/3 unassigned down down
R2
nterface IP Address/Mask Physical Protocol
Ethernet0/0/0 192.168.1.2/30 up up
Ethernet0/0/1 192.168.1.5/30 up up
GigabitEthernet0/0/0 unassigned down down
GigabitEthernet0/0/1 unassigned down down
GigabitEthernet0/0/2 unassigned down down
GigabitEthernet0/0/3 unassigned down down
LoopBack0 192.168.1.65/27 up up(s)
LoopBack1 192.168.1.81/28 up up(s)
NULL0 unassigned up up(s)
Serial0/0/0 unassigned down down
Serial0/0/1 unassigned down down
Serial0/0/2 unassigned down down
Serial0/0/3 unassigned down down
R3
nterface IP Address/Mask Physical Protocol
Ethernet0/0/0 192.168.1.6/30 up up
Ethernet0/0/1 192.168.1.17/30 up up
GigabitEthernet0/0/0 192.168.1.13/30 up up
GigabitEthernet0/0/1 192.168.1.9/30 up up
GigabitEthernet0/0/2 unassigned down down
GigabitEthernet0/0/3 unassigned down down
LoopBack0 192.168.1.97/28 up up(s)
LoopBack1 192.168.1.113/28 up up(s)
NULL0 unassigned up up(s)
Serial0/0/0 unassigned down down
Serial0/0/1 unassigned down down
Serial0/0/2 unassigned down down
Serial0/0/3 unassigned down down
R4
nterface IP Address/Mask Physical Protocol
Ethernet0/0/0 192.168.1.22/30 up up
Ethernet0/0/1 192.168.1.18/30 up up
GigabitEthernet0/0/0 unassigned down down
GigabitEthernet0/0/1 unassigned down down
GigabitEthernet0/0/2 unassigned down down
GigabitEthernet0/0/3 unassigned down down
LoopBack0 192.168.1.129/28 up up(s)
LoopBack1 192.168.1.145/28 up up(s)
NULL0 unassigned up up(s)
Serial0/0/0 unassigned down down
Serial0/0/1 unassigned down down
Serial0/0/2 unassigned down down
Serial0/0/3 unassigned down down
写路由条目:R1
192.168.1.0/27 Static 60 0 RD 192.168.1.22 Ethernet0/0/
192.168.1.4/30 Static 60 0 RD 192.168.1.2 Ethernet0/0/0
192.168.1.8/30 Static 60 0 RD 192.168.1.22 Ethernet0/0/1
192.168.1.12/30 Static 60 0 RD 192.168.1.22 Ethernet0/0/1
192.168.1.16/30 Static 60 0 RD 192.168.1.22 Ethernet0/0/1
92.168.1.64/27 Static 60 0 RD 192.168.1.2 Ethernet0/0/0
192.168.1.96/27 Static 60 0 RD 192.168.1.22 Ethernet0/0/1
192.168.1.128/27 Static 60 0 RD 192.168.1.22 Ethernet0/0/1
其他差不多就不写了
[Huawei]ping 192.168.1.9
PING 192.168.1.9: 56 data bytes, press CTRL_C to break
Reply from 192.168.1.9: bytes=56 Sequence=1 ttl=254 time=90 ms
Reply from 192.168.1.9: bytes=56 Sequence=2 ttl=254 time=50 ms
Reply from 192.168.1.9: bytes=56 Sequence=3 ttl=254 time=60 ms
Reply from 192.168.1.9: bytes=56 Sequence=4 ttl=254 time=60 ms
Reply from 192.168.1.9: bytes=56 Sequence=5 ttl=254 time=50 ms
这是最后ping通的结果。还是用了很多时间,但是收获大。
还要写缺省路由 ,这里就不放出来了。
最后一步就是把R4-R5做浮动静态路由。
]ip route-static 5.5.5.5 24 192.168.1.14 preference 70