!
interface Serial0/0/0.31 point-to-point ip address 192.168.1.2 255.255.255.0 frame-relay interface-dlci 301 !
interface Serial0/0/0.32 point-to-point ip address 192.168.4.2 255.255.255.0 frame-relay interface-dlci 302 !
interface Vlan1 no ip address shutdown !
router eigrp 100
network 192.168.30.0 network 192.168.4.0 network 192.168.1.0 auto-summary !
ip classless ! !
ip dhcp excluded-address 192.168.30.200 192.168.30.254 !
ip dhcp pool 51cto.com
network 192.168.30.0 255.255.255.0 default-router 192.168.30.254 dns-server 192.168.20.251 !
line con 0 line vty 0 4 login ! ! end
路由器的配置就算是完成了。
在前面几篇文章中我介绍了PacketTracert中服务器的设置,再此不再赘述,在该实验中DNS服务器IP为:192.168.20.251;WEB服务器的IP地址为:192.168.20.253([url]www.51cto.com[/url])。 下面看看路由表吧: R1:
R1#SH IP ROUTE
Codes: C - connected, S - static, I - IGRP, 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, E - EGP i - IS-IS, 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 Gateway of last resort is not set
C 192.168.1.0/24 is directly connected, Serial0/0/0.13 C 192.168.3.0/24 is directly connected, Serial0/0/0.12 D 192.168.4.0/24 [90/2681856] via 192.168.3.2, 01:01:01, Serial0/0/0.12
[90/2681856] via 192.168.1.2, 01:00:36, Serial0/0/0.13
C 192.168.20.0/24 is directly connected, FastEthernet0/0 D 192.168.30.0/24 [90/2172416] via 192.168.1.2, 01:00:36, Serial0/0/0.13
D 192.168.40.0/24 [90/2172416] via 192.168.3.2, 01:00:58, Serial0/0/0.12 R2:
R2#SH IP ROUTE
Codes: C - connected, S - static, I - IGRP, 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, E - EGP
i - IS-IS, 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 Gateway of last resort is not set
D 192.168.1.0/24 [90/2681856] via 192.168.3.1, 01:01:37, Serial0/0/0.21 [90/2681856] via 192.168.4.2, 01:01:15, Serial0/0/0.23 C 192.168.3.0/24 is directly connected, Serial0/0/0.21 C 192.168.4.0/24 is directly connected, Serial0/0/0.23
D 192.168.20.0/24 [90/2172416] via 192.168.3.1, 01:01:37, Serial0/0/0.21 D 192.168.30.0/24 [90/2172416] via 192.168.4.2, 01:01:17, Serial0/0/0.23 C 192.168.40.0/24 is directly connected, FastEthernet0/0
R3: R3#
R3#SH IP ROUTE
Codes: C - connected, S - static, I - IGRP, 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, E - EGP i - IS-IS, 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 Gateway of last resort is not set
C 192.168.1.0/24 is directly connected, Serial0/0/0.31 D 192.168.3.0/24 [90/2681856] via 192.168.4.1, 01:02:15, Serial0/0/0.32
[90/2681856] via 192.168.1.1, 01:02:08, Serial0/0/0.31
C 192.168.4.0/24 is directly connected, Serial0/0/0.32 D 192.168.20.0/24 [90/2172416] via 192.168.1.1, 01:02:08, Serial0/0/0.31
C 192.168.30.0/24 is directly connected, FastEthernet0/0 D 192.168.40.0/24 [90/2172416] via 192.168.4.1, 01:02:15, Serial0/0/0.32
通过对路由表的观察我们知道网络已经联通了~
最后我们就在这个模拟器中小小应用一把吧:用PC0访问[url]www.51cto.com[/url](192.168.1.253)。
实验:OSPF高级配置(三)绝对末节区域
2009-06-26 02:08:38
本篇只介绍绝对末节区域的配置,及实验结果显示。如需查看之前配置,可参看本专题前两篇文章(一)、(二)。 拓扑图:
将区域1配置为绝对末节区域,要R2、R3、R4均设置为末节路由器,并且R2不能转发汇总信息到区域1内(只通告给R3、R4默认路由)。 路由器配置: R2: R2(config)#router ospf 1
R2(config-router)#area 1 stub no-summary R3: R3(config)#router ospf 1 R3(config-router)#area 1 stub R4: R4(config)#router ospf 1 R4(config-router)#area 1 stub 查看末节区域内的路由表: R3#sh ip route Codes: 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 Gateway of last resort is 192.168.17.1 to network 0.0.0.0 C 192.168.30.0/24 is directly connected, FastEthernet1/0
C 192.168.17.0/24 is directly connected, FastEthernet0/0 O*IA 0.0.0.0/0 [110/2] via 192.168.17.1, 00:06:56,
FastEthernet0/0 R4#sh ip route
Codes: 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 Gateway of last resort is 192.168.30.1 to network 0.0.0.0 C 192.168.30.0/24 is directly connected, FastEthernet0/0
O 192.168.17.0/24 [110/2] via 192.168.30.1, 00:07:13, FastEthernet0/0
O*IA 0.0.0.0/0 [110/3] via 192.168.30.1, 00:07:13, FastEthernet0/0 [/img]..
类别:路由|阅读(232)|回复(1)|赞(0)阅读全文>> 原创
实验:OSPF高级配置(二)路由汇总
2009-06-26 01:53:00