如需注册 @ccie.engineer、@ccde.engineer、@ccar.engineer、@hcie.engineer、@rhce.engineer 和 @cissp.engineer 邮箱,请点击这里。 |
传送门:CCIE RS V5 考试 LAB1 实验详解:Section 1.4 WAN Switching
Section 2.1 OSPF in AS12345

根据以下需求配置 ACME HQ(AS 12345 区域)中的 OSPFv2 area 0:
- 配置 OSPF 的进程 ID 为 12345,在所有 7 台路由器上设置 router id 为 lo0;
- 每个路由器的 interface lo0 接口都会以 OSPF 内部路由的形式被其他路由看到;(就是通告每台路由器的 interface lo0,同时是 O 路由)
- 确保 OSPF 没有运行在任何能连接到其他 AS 区域的接口上,使用任何方法完成这个需求;
- SW1 和 SW2 不能开启任何路由协议;(我很确定这里是 SW1 而不是 SW)
- 在 AS 12345 的任何接口上不要修改 OSPF 默认的 cost 值;
- R1 必须能在它的路由表里看到以下的 OSPF 路由。

实验过程:
注意!Lo0 应该是有预配的,而这个实验环境没有,所以需要自己配置一下:

R01(config)#int l 0 R01(config-if)#ip add 123.1.1.1 255.255.255.255 R01(config-if)#router ospf 12345 R01(config-router)#router-id 123.1.1.1 R01(config-router)#int r e 0/1-2 , l 0 R01(config-if-range)#ip ospf 12345 a 0 R01(config-if-range)#no shutdown
R02(config)#int l 0 R02(config-if)#ip add 123.2.2.2 255.255.255.255 R02(config-if)#router ospf 12345 R02(config-router)#router-id 123.2.2.2 R02(config-router)#int r e 0/1-2 , l 0 R02(config-if-range)#ip ospf 12345 a 0 R02(config-if-range)#no shutdown
R03(config)#int l 0 R03(config-if)#ip add 123.3.3.3 255.255.255.255 R03(config-if)#router ospf 12345 R03(config-router)#router-id 123.3.3.3 R03(config-router)#int r e 0/1-2 , l 0 R03(config-if-range)#ip ospf 12345 a 0 R03(config-if-range)#no shutdown
R04(config)#int l 0 R04(config-if)#ip add 123.4.4.4 255.255.255.255 R04(config-if)#router ospf 12345 R04(config-router)#router-id 123.4.4.4 R04(config-router)#int r e 0/0-2 , l 0 R04(config-if-range)#ip ospf 12345 a 0 R04(config-if-range)#no shutdown
R05(config)#int l 0 R05(config-if)#ip add 123.5.5.5 255.255.255.255 R05(config-if)#router ospf 12345 R05(config-router)#router-id 123.5.5.5 R05(config-router)#int r e 0/0-2 , l 0 R05(config-if-range)#ip ospf 12345 a 0 R05(config-if-range)#no shutdown
R06(config)#int l 0 R06(config-if)#ip add 123.6.6.6 255.255.255.255 R06(config-if)#router ospf 12345 R06(config-router)#router-id 123.6.6.6 R06(config-router)#int r e 0/1-2 , l 0 R06(config-if-range)#ip ospf 12345 a 0 R06(config-if-range)#no shutdown
R07(config)#int l 0 R07(config-if)#ip add 123.7.7.7 255.255.255.255 R07(config-if)#router ospf 12345 R07(config-router)#router-id 123.7.7.7 R07(config-router)#int r e 0/1-2 , l 0 R07(config-if-range)#ip ospf 12345 a 0 R07(config-if-range)#no shutdown
测试:
R01#sh ip ospf neighbor —— 可以查询 OSPF 的邻居关系,这里也可以看到 router-id 是否配置正确 Neighbor ID Pri State Dead Time Address Interface 123.5.5.5 1 FULL/BDR 00:00:37 123.10.1.6 Ethernet0/1 123.4.4.4 1 FULL/BDR 00:00:31 123.10.1.1 Ethernet0/2 R01#sh ip ro os —— 完全符合实验要求 Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2 i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2 ia - IS-IS inter area, * - candidate default, U - per-user static route o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP + - replicated route, % - next hop override Gateway of last resort is not set 123.0.0.0/8 is variably subnetted, 17 subnets, 2 masks O 123.2.2.2/32 [110/21] via 123.10.1.1, 00:03:12, Ethernet0/2 O 123.3.3.3/32 [110/21] via 123.10.1.6, 00:02:26, Ethernet0/1 O 123.4.4.4/32 [110/11] via 123.10.1.1, 00:03:22, Ethernet0/2 O 123.5.5.5/32 [110/11] via 123.10.1.6, 00:02:26, Ethernet0/1 O 123.6.6.6/32 [110/21] via 123.10.1.1, 00:01:34, Ethernet0/2 O 123.7.7.7/32 [110/21] via 123.10.1.6, 00:00:34, Ethernet0/1 O 123.10.1.8/30 [110/30] via 123.10.1.6, 00:02:26, Ethernet0/1 [110/30] via 123.10.1.1, 00:03:12, Ethernet0/2 O 123.10.1.12/30 [110/20] via 123.10.1.6, 00:02:26, Ethernet0/1 O 123.10.1.16/30 [110/20] via 123.10.1.1, 00:03:12, Ethernet0/2 O 123.10.1.20/30 [110/20] via 123.10.1.1, 00:03:22, Ethernet0/2 O 123.10.1.24/30 [110/30] via 123.10.1.6, 00:00:34, Ethernet0/1 [110/30] via 123.10.1.1, 00:01:34, Ethernet0/2 O 123.10.1.28/30 [110/20] via 123.10.1.6, 00:02:26, Ethernet0/1
发表评论?