题目要求:
一、首先 给各个路由器接口配置相关的网关 并且实现ip划分
此网络共有14个广播域,其中R1,R2,R3,R4都有两个环回接口
主机位全0和全1的排出不能用!!!
192.168.1.00000000/24
192.168.1.000 00000/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 5,6,,7
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.000 111 00/30 备用
192.168.1.001 00000/27——R1——192.168.1.32/27
192.168.1.001 0 0000/28——192.168.1.32/28
192.168.1.001 1 0000/28——192.168.1.48/28
192.168.1.010 00000/27——R2——192.168.1.64/27
192.168.1.010 0 0000/28——192.168.1.64/28
192.168.1.010 1 0000/28——192.168.1.80/28
192.168.1.011 00000/27——R3——192.168.1.96/27
192.168.1.011 0 0000/28——192.168.1.96/28
192.168.1.011 1 0000/28——192.168.1.112/28
192.168.1.100 00000/27——R4——192.168.1.128/27
192.168.1.100 0 000/28——192.168.1.128/28
192.168.1.100 1 000/28——192.168.1.144/28
192.168.1.101 00000/27
192.168.1.110 00000/27
192.168.1.111 00000/27 备用
分配IP后
二、配置IP
1.配置接口IP
<Huawei>system-view
[Huawei]sysname R1
[R1]interface GigabitEthernet 0/0/0
[R1-GigabitEthernet0/0/0]ip address 192.168.1.1 30
2.配置环回接口IP
[R1]interface LoopBack 1
[R1-LoopBack1]ip address 192.168.1.33 28
3.配置静态路由
[R1]ip route-static 192.168.1.64 27 192.168.1.2
[R1]ip route-static 192.168.1.128 27 192.168.1.2
[R1]ip route-static 192.168.1.128 27 192.168.1.6
[R1]ip route-static 192.168.1.96 27 192.168.1.6
[R1]ip route-static 192.168.1.16 30 192.168.1.2
[R1]ip route-static 192.168.1.20 30 192.168.1.2
[R1]ip route-static 192.168.1.16 30 192.168.1.6
[R1]ip route-static 192.168.1.20 30 192.168.1.6
三、配置缺省路由
[R1]ip route-static 0.0.0.0 0 192.168.1.2
[R1]ip route-static 0.0.0.0 0 192.168.1.6
四、防环
此时没有环路,把R1任意环回关掉,这个端口关掉后,R 2345不知道,让他们去访问,就会出环 让5去访问,本来1没有就会丢掉,现在有缺省R2R3查路由表又给R1,因为R2R3路由表里有路由,R123形成环。同理234关闭环路也会出现这个情况,解决方案,每一个被汇总的设备,写一个空接口防环。
[R1]ip route-static 192.168.1.32 27 null 0
五、利用优先级使正常以1000M链路通信,故障时自动改成100M链路