我的学号后三位是235,姓名拼音是wyw,按照这个实验文档给出我的实验拓扑图和具体的实验步骤
Creato il: 22 aprile 2026
Risposto usando GPT-5.4 Thinking da Chat01
Creato il: 22 aprile 2026
Risposto usando GPT-5.4 Thinking da Chat01
我的学号后三位是235,姓名拼音是wyw,按照这个实验文档给出我的实验拓扑图和具体的实验步骤
下面按你的信息,把实验手册里的“通用模板”改成你的个人版本:
实验手册要求:接口地址第二字节改为自己学号后两位;OSPF 进程号改为自己学号后三位;重发布相关 metric 也按要求替换;route-map 名称改为自己姓名拼音。依据手册可得到你这次实验应使用的关键参数分别是:第二字节 35、OSPF 进程号 235、RIP→OSPF 的 metric 235、ACL 编号 35/36/37/38/39、route-map 名 wyw。(实验七 路由重发布实验手册.docx)
手册正文里提到了这些链路网段和设备关系:12.1.1.0、13.1.1.0、24.1.1.0、35.1.1.0、45.1.1.0,以及 R2、R3 同时运行 RIP 和 OSPF 并做双向重发布,因此这次实验拓扑可以整理成下面这张文字版拓扑图。(实验七 路由重发布实验手册.docx)
text172.16.1.0/24 | [R1] lo0/lo1 12.35.1.0/24 13.35.1.0/24 | | [R2]--------------[R3] lo0 172.16.3.0/24 lo0 172.16.4.0/24 | | 24.35.1.0/24 35.35.1.0/24 | | [R4]--------------[R5] 45.35.1.0/24 R4 lo0: 4.4.4.0/24 R5 lo0: 5.5.5.0/24 R1 侧还有 172.16.2.0/24
你可以在实验报告里画成下面这种更规范的形式:
text172.16.1.0/24 172.16.2.0/24 \ / \ / R1 /-----------\ 12.35.1.0/24 13.35.1.0/24 / \ R2 R3 172.16.3.0/24 172.16.4.0/24 | | 24.35.1.0/24 35.35.1.0/24 | | R4------45.35.1.0/24------R5 lo0 4.4.4.4/24 lo0 5.5.5.5/24
手册要求“IP 地址第二字节修改为自己学号后 2 位”,所以你所有原本类似 12.1.1.0 的网段,都要改成 12.35.1.0 这种形式。(实验七 路由重发布实验手册.docx)
下面这套地址你可以直接用:
R1—R2:12.35.1.0/24
12.35.1.1/2412.35.1.2/24R1—R3:13.35.1.0/24
13.35.1.1/2413.35.1.3/24R2—R4:24.35.1.0/24
24.35.1.2/2424.35.1.4/24R3—R5:35.35.1.0/24
35.35.1.3/2435.35.1.5/24R4—R5:45.35.1.0/24
45.35.1.4/2445.35.1.5/24172.16.1.1/24172.16.2.1/24172.16.3.1/24172.16.4.1/244.4.4.4/245.5.5.5/24这组规划与手册里后续过滤和 route-map 中出现的网段是对应得上的,因此最适合你直接拿去做实验。(实验七 路由重发布实验手册.docx)
bashconf t hostname R1 interface f0/0 ip address 12.35.1.1 255.255.255.0 no shutdown interface f0/1 ip address 13.35.1.1 255.255.255.0 no shutdown interface lo0 ip address 172.16.1.1 255.255.255.0 interface lo1 ip address 172.16.2.1 255.255.255.0 end
bashconf t hostname R2 interface f0/0 ip address 12.35.1.2 255.255.255.0 no shutdown interface f0/1 ip address 24.35.1.2 255.255.255.0 no shutdown interface lo0 ip address 172.16.3.1 255.255.255.0 end
bashconf t hostname R3 interface f0/0 ip address 13.35.1.3 255.255.255.0 no shutdown interface f0/1 ip address 35.35.1.3 255.255.255.0 no shutdown interface lo0 ip address 172.16.4.1 255.255.255.0 end
bashconf t hostname R4 interface f0/0 ip address 24.35.1.4 255.255.255.0 no shutdown interface f0/1 ip address 45.35.1.4 255.255.255.0 no shutdown interface lo0 ip address 4.4.4.4 255.255.255.0 end
bashconf t hostname R5 interface f0/0 ip address 35.35.1.5 255.255.255.0 no shutdown interface f0/1 ip address 45.35.1.5 255.255.255.0 no shutdown interface lo0 ip address 5.5.5.5 255.255.255.0 end
手册明确要求 R1、R2、R3 运行 RIPv2,并关闭自动汇总;同时 R2、R3 的 lo0 还要进 OSPF。(实验七 路由重发布实验手册.docx)
bashconf t router rip version 2 no auto-summary network 12.0.0.0 network 13.0.0.0 network 172.16.0.0 end
bashconf t router rip version 2 no auto-summary network 12.0.0.0 network 172.16.0.0 end
bashconf t router rip version 2 no auto-summary network 13.0.0.0 network 172.16.0.0 end
手册要求:OSPF 进程号为自己学号后三位,区域号 0,所以你的进程号是 235。(实验七 路由重发布实验手册.docx)
bashconf t router ospf 235 network 24.35.1.0 0.0.0.255 area 0 network 172.16.3.0 0.0.0.255 area 0 end
bashconf t router ospf 235 network 35.35.1.0 0.0.0.255 area 0 network 172.16.4.0 0.0.0.255 area 0 end
bashconf t router ospf 235 network 24.35.1.0 0.0.0.255 area 0 network 45.35.1.0 0.0.0.255 area 0 network 4.4.4.0 0.0.0.255 area 0 end
bashconf t router ospf 235 network 35.35.1.0 0.0.0.255 area 0 network 45.35.1.0 0.0.0.255 area 0 network 5.5.5.0 0.0.0.255 area 0 end
手册给出的模板中,redistribute ospf 1 metric 5 里的进程号要改成你的 235;redistribute rip metric 20 metric-type 1 subnets 中的 metric 要改成自己学号后三位,所以你这里应该用 235。(实验七 路由重发布实验手册.docx)
bashconf t router rip redistribute ospf 235 metric 5 router ospf 235 redistribute rip metric 235 metric-type 1 subnets end
bashconf t router rip redistribute ospf 235 metric 5 router ospf 235 redistribute rip metric 235 metric-type 1 subnets end
bashshow ip route show ip protocols show ip ospf database
手册要求观察 172.16.2.0 的下一跳,并判断是否最佳。通常这里会出现“通过重发布学到的路由优先于更合理的直观路径”的现象,所以你需要截图 show ip route 中到 172.16.2.0/24 的表项。(实验七 路由重发布实验手册.docx)
你可以这样查看:
bashR2#show ip route 172.16.2.0 R3#show ip route 172.16.2.0
实验报告可这样写:
172.16.2.0/24 的下一跳172.16.2.0/24 的下一跳手册中这里明确要求:
bashconf t access-list 35 permit 172.16.0.0 0.0.255.255 access-list 35 permit 13.35.1.0 0.0.0.255 access-list 35 permit 12.35.1.0 0.0.0.255 router rip distance 55 12.35.1.1 0.0.0.0 35 end
bashconf t access-list 35 permit 172.16.0.0 0.0.255.255 access-list 35 permit 13.35.1.0 0.0.0.255 access-list 35 permit 12.35.1.0 0.0.0.255 router rip distance 55 13.35.1.1 0.0.0.255 35 end
bashshow ip route show ip protocols
实验报告里“问题2”可以这样答:
172.16.2.0/24 等网络的选路结果会发生变化,更符合实际拓扑的最优转发方向。(实验七 路由重发布实验手册.docx)手册要求“只发布 172.16.3.0 和 172.16.4.0 的路由”,所以需要把 172.16.1.0 和 172.16.2.0 过滤掉。这里 ACL 号是“学号后两位 +1”,即 36。(实验七 路由重发布实验手册.docx)
bashconf t access-list 36 deny 172.16.1.0 0.0.0.255 access-list 36 deny 172.16.2.0 0.0.0.255 access-list 36 permit any router ospf 235 distribute-list 36 out rip end
bashconf t access-list 36 deny 172.16.1.0 0.0.0.255 access-list 36 deny 172.16.2.0 0.0.0.255 access-list 36 permit any router ospf 235 distribute-list 36 out rip end
在 R4 上查看:
bashshow ip route
报告中“问题3”可以写:
172.16.1.0/24 和 172.16.2.0/24 通过 RIP 重发布进入 OSPF 后形成的对应学习项。172.16.3.0/24、172.16.4.0/24。(实验七 路由重发布实验手册.docx)报告中“问题4”可以写:
手册给出的 route-map 实验中:
bashconf t access-list 37 permit 24.35.1.0 0.0.0.255 access-list 38 permit 4.4.4.0 0.0.0.255 access-list 38 permit 45.35.1.0 0.0.0.255 access-list 39 permit 5.5.5.0 0.0.0.255 access-list 39 permit 35.35.1.0 0.0.0.255 route-map wyw permit 10 match ip address 37 set metric 3 route-map wyw permit 20 match ip address 38 set metric 4 route-map wyw permit 30 match ip address 39 set metric 5 route-map wyw permit 40 set metric 6 router rip redistribute ospf 235 route-map wyw end
bashconf t access-list 37 permit 35.35.1.0 0.0.0.255 access-list 38 permit 5.5.5.0 0.0.0.255 access-list 38 permit 45.35.1.0 0.0.0.255 access-list 39 permit 4.4.4.0 0.0.0.255 access-list 39 permit 24.35.1.0 0.0.0.255 route-map wyw permit 10 match ip address 37 set metric 3 route-map wyw permit 20 match ip address 38 set metric 4 route-map wyw permit 30 match ip address 39 set metric 5 route-map wyw permit 40 set metric 6 router rip redistribute ospf 235 route-map wyw end
bashshow route-map show access-lists show ip route
报告中“问题5”可以这样写:
text学号后三位:235 学号后两位:35 姓名拼音:wyw OSPF进程号:235 RIP重发布到OSPF的metric:235 ACL号: 35 管理距离调整 36 distribute-list过滤 37 route-map第一组 38 route-map第二组 39 route-map第三组 route-map名称:wyw 管理距离:55
按这个顺序做最稳:
ping 直连接口,确认二层三层都通show ip route 截图,完成问题1show ip routeshow ip protocolsshow access-listsshow route-map如果你要,我下一条可以直接帮你整理成一份 实验报告可抄写版,包括“实验目的、拓扑图说明、配置过程、问题答案、实验总结”。