要求:
1.除了R5的环回地址固定5.5.5.0/24,其他网段基于192.168.1.0/24进行合理划分;
2.R1-R4每个路由器存在两个环回接口,模拟PC,地址也在192.168.1.0/24网络内;
3.R1-R4不能直接编写到达5.5.5.0/24的静态路由,但依然可以访问;
4.全网可达,尽量减少每台路由器路由条目数量,避免环路;
5.R4与R5间,正常1000M链路通信,故障时自动改为100M;
R1
sysname R1
interface GigabitEthernet 0/0/0
ip address 192.168.1.1 30
undo shutdown
interface GigabitEthernet 0/0/1
ip address 192.168.1.5 30
undo shutdown
interface LoopBack 0
ip address 192.168.1.33 28
interface LoopBack 1
ip address 192.168.1.49 28
ospf 1 router-id 1.1.1.1
area 0
network 192.168.1.0 0.0.0.3
network 192.168.1.4 0.0.0.3
network 192.168.1.32 0.0.0.15
network 192.168.1.48 0.0.0.15
R2
interface GigabitEthernet 0/0/0
ip address 192.168.1.2 30
undo shutdown
interface GigabitEthernet 0/0/1
ip address 192.168.1.9 30
undo shutdown
interface LoopBack 0
ip address 192.168.1.65 28
interface LoopBack 1
ip address 192.168.1.81 28
ospf 1 router-id 2.2.2.2
area 0
network 192.168.1.0 0.0.0.3
network 192.168.1.8 0.0.0.3
network 192.168.1.64 0.0.0.15
network 192.168.1.80 0.0.0.15
R3
system-view
sysname R3
interface GigabitEthernet 0/0/0
ip address 192.168.1.6 30
undo shutdown
interface GigabitEthernet 0/0/1
ip address 192.168.1.13 30
undo shutdown
interface LoopBack 0
ip address 192.168.1.97 28
interface LoopBack 1
ip address 192.168.1.113 28
ospf 1 router-id 3.3.3.3
area 0
network 192.168.1.4 0.0.0.3
network 192.168.1.12 0.0.0.3
network 192.168.1.96 0.0.0.15
network 192.168.1.112 0.0.0.15
R4
system-view
sysname R4
interface GigabitEthernet 0/0/0
ip address 192.168.1.10 30
undo shutdown
interface GigabitEthernet 0/0/1
ip address 192.168.1.14 30
undo shutdown
interface GigabitEthernet 0/0/2
ip address 192.168.1.17 30
undo shutdown
ospf cost 10
interface GigabitEthernet 4/0/0
ip address 192.168.1.21 30
undo shutdown
ospf cost 100
interface LoopBack 0
ip address 192.168.1.129 28
interface LoopBack 1
ip address 192.168.1.145 28
ospf 1 router-id 4.4.4.4
area 0
network 192.168.1.8 0.0.0.3
network 192.168.1.12 0.0.0.3
network 192.168.1.16 0.0.0.3
network 192.168.1.20 0.0.0.3
network 192.168.1.128 0.0.0.15
network 192.168.1.144 0.0.0.15
ip route-static 5.5.5.0 24 192.168.1.18
ip route-static 5.5.5.0 24 192.168.1.22 preference 100
ospf 1
import-route static
R5
system-view
sysname R5
interface GigabitEthernet 0/0/0
ip address 192.168.1.18 30
undo shutdown
interface GigabitEthernet 0/0/1
ip address 192.168.1.22 30
undo shutdown
interface LoopBack 0
ip address 5.5.5.1 24
ospf 1 router-id 5.5.5.5
area 0
network 5.5.5.0 0.0.0.255
network 192.168.1.16 0.0.0.3
network 192.168.1.20 0.0.0.3
1082

被折叠的 条评论
为什么被折叠?



