一、实验目的
掌握多点重发布配置与路由配置
二、实验题目
注意:
1.想要一定产生环路先对R7进行重发布
2.R3的环回想要能正常发送到R2配置为32位掩码【在ospf协议中,环回默认工作方式基于32位的主机路由进行传递。若掩码不一致,将导致选路问题】
三、拓扑结构
四、实验配置
一、IP地址与环回配置
R1
[r1]int lo0
[r1-LoopBack0]ip address 1.1.1.1 24
[r1-LoopBack0]int g0/0/0
[r1-GigabitEthernet0/0/0]ip address 10.1.1.1 24
Jan 19 2022 17:03:06-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 address 14.1.1.1 24
Jan 19 2022 17:03:21-08:00 r1 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP
on the interface GigabitEthernet0/0/1 has entered the UP state.
R2
[r2]int lo0
[r2-LoopBack0]ip address 2.2.2.2 24
[r2-LoopBack0]int g0/0/0
[r2-GigabitEthernet0/0/0]ip address 10.1.1.2 24
Jan 19 2022 17:04:50-08:00 r2 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP
on the interface GigabitEthernet0/0/0 has entered the UP state.
[r2-GigabitEthernet0/0/0]int g0/0/1
[r2-GigabitEthernet0/0/1]ip address 12.1.1.1 24
Jan 19 2022 17:05:09-08:00 r2 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP
on the interface GigabitEthernet0/0/1 has entered the UP state.
R3
[r3]int lo0
[r3-LoopBack0]ip address 3.3.3.3 24
[r3-LoopBack0]int g0/0/0
[r3-GigabitEthernet0/0/0]ip address 14.1.1.2 24
Jan 19 2022 17:06:24-08:00 r3 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP
on the interface GigabitEthernet0/0/0 has entered the UP state.
[r3-GigabitEthernet0/0/0]int g0/0/1
[r3-GigabitEthernet0/0/1]ip address 16.1.1.1 24
Jan 19 2022 17:06:43-08:00 r3 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP
on the interface GigabitEthernet0/0/1 has entered the UP state.
R4
[r4]int lo0
[r4-LoopBack0]ip address 4.4.4.4 24
[r4-LoopBack0]int g0/0/0
[r4-GigabitEthernet0/0/0]ip address 12.1.1.2 24
Jan 19 2022 17:07:57-08:00 r4 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP
on the interface GigabitEthernet0/0/0 has entered the UP state.
[r4-GigabitEthernet0/0/0]int g0/0/1
[r4-GigabitEthernet0/0/1]ip address 16.1.1.2 24
Jan 19 2022 17:08:18-08:00 r4 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP
on the interface GigabitEthernet0/0/1 has entered the UP state.
[r4-GigabitEthernet0/0/1]int g0/0/2
[r4-GigabitEthernet0/0/2]ip address 18.1.1.1 24
Jan 19 2022 17:08:33-08:00 r4 %%01IFNET/4/LINK_STATE(l)[2]:The line protocol IP
on the interface GigabitEthernet0/0/2 has entered the UP state.
R5
[r5]int lo0
[r5-LoopBack0]ip address 5.5.5.5 24
[r5-LoopBack0]int g0/0/0
[r5-GigabitEthernet0/0/0]ip address 18.1.1.2 24
Jan 19 2022 17:09:55-08:00 r5 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP
on the interface GigabitEthernet0/0/0 has entered the UP state.
[r5-GigabitEthernet0/0/0]int g0/0/1
[r5-GigabitEthernet0/0/1]ip address 20.1.1.1 24
Jan 19 2022 17:10:19-08:00 r5 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP
on the interface GigabitEthernet0/0/1 has entered the UP state.
R6
[r6]int lo0
[r6-LoopBack0]ip address 6.6.6.6 24
[r6-LoopBack0]int g0/0/0
[r6-GigabitEthernet0/0/0]ip address 20.1.1.2 24
Jan 19 2022 17:11:39-08:00 r6 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP
on the interface GigabitEthernet0/0/0 has entered the UP state.
[r6-GigabitEthernet0/0/0]int g0/0/1
[r6-GigabitEthernet0/0/1]ip address 22.1.1.1 24
Jan 19 2022 17:11:54-08:00 r6 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP
on the interface GigabitEthernet0/0/1 has entered the UP state.
R7
[r7]int lo0
[r7-LoopBack0]ip address 7.7.7.7 24
[r7-LoopBack0]int g0/0/0
[r7-GigabitEthernet0/0/0]ip address 22.1.1.2 24
Jan 19 2022 17:13:04-08:00 r7 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP
on the interface GigabitEthernet0/0/0 has entered the UP state.
二、重发布配置
R2
[r2]rip 1
[r2-rip-1]ver 2
[r2-rip-1]import-route ospf
[r2-rip-1]q
[r2]ospf 1
[r2-ospf-1]import-route rip
R3
[r3]rip 1
[r3-rip-1]ver 2
[r3-rip-1]import-route ospf
[r3-rip-1]q
[r3]ospf 1
[r3-ospf-1]import-route rip
R7
[r7]ospf 1
[r7-ospf-1]import-route direct
三、路由策略
问题一:R2上有两条到R3的路由---路由回馈
修改R3的环回OSPF的接口工作方式为broadcast
[r3]int lo0
[r3-LoopBack0]ospf network-type broadcast
测试:
问题2: 选路不佳:R1路由表上到OSPF的所有路由为负载均衡,R4到RIP的所有路由也是负载均衡,度量都为1----原因:重发布进入的路由洗掉原有度量。
增加cost值:
问题3:环路