拓扑图
要求
- 注意路由区域
- R1、R2配置RIP
- R4、R5、R6、R7配置OSPF
- R1、R2、R4只能配置一条静态路由
- R5、R6、R7不能配置静态路由
- R3只能配置静态路由
- 全网互通
错误
RIP配置
问题
配置结束,R1 ping 不通R2
查看路由表 没有RIP协议的路由
问题所在
路由接口地址配错
zheng
解决办法
路由接口地址应该是10段的
1
2
3
4
5
6
7
8
9
10
11
12<R2>sys
Enter system view, return user view with Ctrl+Z.
[R2]int g0/0/0
[R2-GigabitEthernet0/0/0]undo ip add
[R2-GigabitEthernet0/0/0]
Apr 16 2021 10:28:57-08:00 R2 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP
on the interface GigabitEthernet0/0/0 has entered the DOWN state.
[R2-GigabitEthernet0/0/0]ip add 10.1.1.2 30
[R2-GigabitEthernet0/0/0]
Apr 16 2021 10:29:05-08:00 R2 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP
on the interface GigabitEthernet0/0/0 has entered the UP state.
[R2-GigabitEthernet0/0/0]
解决之后
R1中有RIP协议的路由
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19<R1>dis ip rout
<R1>dis ip routing-table pro rip
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Public routing table : RIP
Destinations : 1 Routes : 1
RIP routing table status : <Active>
Destinations : 1 Routes : 1
Destination/Mask Proto Pre Cost Flags NextHop Interface
2.2.2.2/32 RIP 100 1 D 10.1.1.2 GigabitEthernet
0/0/0
RIP routing table status : <Inactive>
Destinations : 0 Routes : 0
<R1>
R1与R2能互通