正在加载图片...
《计算机网络原理》实验指导书/实验四:动态路由协议 并支持OSPF,具体配置命令如下所示。 RT-2#configure ter #进入配置模式 RT-2(config)#interface e0/0 RT-2(config-if) #no shutdown RT-2(config-if) #ip address 10.0.0.2 255.255.255. 252 #配置e00的IP地址 RT-2(config- if)#exit RT-2(config)#interface e0/ RT-2(config-if) #no shutdown RT2( config-if)# ip address192168.1.254255255255.0 #配置e010的|P地址 RT-2(config- if)#exit RT-2(config)#router ospf 200 RT-2(config-router)#network 192. 168.1.0 255.255.255.0 area 1 RT-2(config-router)#network 10.0.0.0 255.255.255.252 area 0 配置RT-3的e00端囗IP地址为10.0.1.2/30,e0/1端口IP地址为172.16.1254/24, 并支持OSPF,具体配置命令如下所示 RT-3#configure terminal #进入配置模式 RT-3(config)#interface e0/0 RT-3(config-if) #no shutdown RT-3(config-if)#ip address 10.0.1.2 255.255.255. 252 #配置e00的|P地址 RT-3(config-if)#exit RT-3config)#interface e0/ RT-3(config-if)#no shutdown RT-3( config-i)# ip address17216.12542552552550 #配置e00的|P地址 RT-3(config-if)#exit RT-3(config)#router ospf 300 #配置ospf RT-3(config-router)#network 172.16.1.0 255. 255 255.0 area 2 RT-3(config-router)#network 10.0.1.0 255.255.255 252 area 0 查看RI-1路由表信息如下所示。 RT-1#show 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 El-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 IS-IS in 0-ODR, P-periodic downloaded static route Gateway of last resort is not set 172.16.0.0/24 is subnetted. 1 subnets o17216.1.010/20va10.01.2.00:01:30 Etherne0/1 息管理与信息系统教研室/阮晓龙/13938213680/第7页《计算机网络原理》实验指导书 / 实验四:动态路由协议 信息管理与信息系统教研室 / 阮晓龙 / 13938213680 / 第 7 页 并支持 OSPF,具体配置命令如下所示。 RT-2#configure terminal #进入配置模式 RT-2(config)#interface e0/0 RT-2(config-if)#no shutdown RT-2(config-if)#ip address 10.0.0.2 255.255.255.252 #配置 e0/0 的 IP 地址 RT-2(config-if)#exit RT-2(config)#interface e0/1 RT-2(config-if)#no shutdown RT-2(config-if)#ip address 192.168.1.254 255.255.255.0 #配置 e010 的 IP 地址 RT-2(config-if)#exit RT-2(config)#router ospf 200 RT-2(config-router)#network 192.168.1.0 255.255.255.0 area 1 RT-2(config-router)#network 10.0.0.0 255.255.255.252 area 0 配置 RT-3 的 e0/0 端口 IP 地址为 10.0.1.2/30,e0/1 端口 IP 地址为 172.16.1.254/24, 并支持 OSPF,具体配置命令如下所示。 RT-3#configure terminal #进入配置模式 RT-3(config)#interface e0/0 RT-3(config-if)#no shutdown RT-3(config-if)#ip address 10.0.1.2 255.255.255.252 #配置 e0/0 的 IP 地址 RT-3(config-if)#exit RT-3config)#interface e0/1 RT-3(config-if)#no shutdown RT-3(config-if)#ip address 172.16.1.254 255.255.255.0 #配置 e0/0 的 IP 地址 RT-3(config-if)#exit RT-3(config)#router ospf 300 #配置 ospf RT-3(config-router)#network 172.16.1.0 255.255.255.0 area 2 RT-3(config-router)#network 10.0.1.0 255.255.255.252 area 0 查看 RT-1 路由表信息如下所示。 RT-1#show 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 not set 172.16.0.0/24 is subnetted, 1 subnets O IA 172.16.1.0 [110/20] via 10.0.1.2, 00:01:30, Ethernet0/1
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有