开始配置骨干链路:路由器和路由之间,根据题目只需配1R~5R,因此有6个骨干链路
环回需要5个,在R上
192.168.1.0/24
分6个借3位
192.168.1.0/27 骨干
划分6个借3位
192.168.1.00000000 0
192.168.1.00000100 4
192.168.1.00001000 8
192.168.1.00001100 12
192.168.1.00010000 16
192.168.1.00010100 20
192.168.1.32/27 R1环回 2个
划分2个借1位
192.168.1.00100000 192.168.1.32/28
192.168.1.00110000 192.168.1.48/28
192.168.1.64/27 R2环回 2个
192.168.1.01000000 192.168.1.64/28
192.168.1.01010000 192.168.1.80/28
192.168.1.96/27 R3环回
192.168.1.01100000 192.168.1.96/27
192.168.1.128/27 R4环回 2个
192.168.1.10000000 192.168.1.128/28
192.168.1.10010000 192.168.1.144/28
192.168.1.160/27 R5环回
192.168.1.10100000 192.168.1.160/27
配置R1的路由信息
[R1]int g0/0/0
[R1-GigabitEthernet0/0/0]ip ad
[R1-GigabitEthernet0/0/0]ip address 192.168.1.1 30
Oct 13 2023 20:07:18-08:00 R1 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP
on the interface GigabitEthernet0/0/0 has entered the UP state.
[R1-GigabitEthernet0/0/0]int g0/0/1
[R1-GigabitEthernet0/0/1]ip add
[R1-GigabitEthernet0/0/1]ip address 192.168.1.5 30
Oct 13 2023 20:07:42-08:00 R1 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP
on the interface GigabitEthernet0/0/1 has entered the UP state.
[R1-GigabitEthernet0/0/1]quit
[R1]interface LoopBack 0
[R1-LoopBack0]ip add
[R1-LoopBack0]ip address 192.168.1.33 28
[R1-LoopBack0]int l1
[R1-LoopBack1]ip address 192.168.1.49 28开始配置静态路由 全部的接口 路由网段都要配,配不了的用缺省
[R1]ip route-static 192.168.1.8 30 192.168.1.2
[R1]ip route-static 192.168.1.12 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]ip route-static 192.168.1.64 27 192.168.1.2
[R1]ip route-static 192.168.1.96 27 192.168.1.6