図実験GNS3トポロジ:
実験:
R2及びR3はAREA1、R3及びR4は、AREA0ルーティングプロトコルOSPF属している属し、RIPはR4とR5との間のルーティングプロトコルは、R6は、通信事業者に属するネットワーク全体の相互運用性を達成することです
実験手順:
図1に示すように、構成環境実験ポートアドレスのポートトポロジーおよびルーティングプロトコルに従って
、R1
全体的なパターンにR1#confのトン F0 / 0インターフェイス0を入力し#INT F0 / R1(設定) のR1(設定-IF)が追加#ipの配置さ192.168.10.1 255.255.255.0 IPアドレス R1(設定-場合)#NOシャット対応インターフェイス R1(CONFIG-場合)#INT F0 / 1 インターフェイス0/1に入る のR1(CONFIG-IF)は192.168.20.1 255.255.255.0 IPアドレス追加#ipの配置 オープンシャット#NO R1を(CONFIG-場合) R1(設定-IF)#EX出口インタフェースモード R1(設定)#ipのルート0.0.0.0 0.0.0.0 192.168.20.2はデフォルトルートR1として構成します
B、R 2
Rt#conft 进入全局模式 R2(config)#intf0/1 设置接口f0/1 R2(config- if)#ip add 192 168.20.2 255.255 255.0 R2(config- if)#no shut 开启 R2(config- if)#int f0/0 设置接口f0/0 R2(config- if)#ip add 192 168.30.1 255.255 255.0 R2(config- if)#no shut 开启 R2(config-if)#ex 退出接口模式 R2(config)#ip route 192.168.10.0 255 255.255.0192.168.20.1 设置R2为静态路由 R2(config)#router ospf 1 启动ospf进程 1 R2(config-router)#router-id 2.2.2.2 设置路由id R2(config-router)#network 192 16830.0 0.0.0.255 area 1 宣告30网段在area1中 R2(config-router) #redistribute connected subnets 将直连的20网段宣告 R2(config-router) #redistribute static subnets 宣告默认路由10段 R2(config- router)#ex
c、R3
R3#conft 进入全局模式 R3(config)#int f0/0 设置接口f0/0 R3(config-if)#ip add 192.168.30.2 255 255 255.0 配置IP地址 R3(config-if)#no shut 开启 R3(config-if)#int f0/1 设置接口f0/1 R3(config-if)ip add 192.168 40.1255.255 255.0 配置IP地址 R3(config-if)#no shut 开启 R3(config-if)#int1/0 设置接口f1/0 R3(config-if)ip add 12.0.0.1 255 255.255.0 配置IP地址 R3(config-if)#no shut 开启 R3(config-if)#intf2/0 设置接口f2/0 R3(config-if)# ip add 192.168.70.1 255255 255.0 配置IP地址 R3(config-if)#no shut 开启 R3(config-if)#ex R3(config)#ip route 0.0.0.0 0.0.0.0 12.0.0.2 将R3配置为默认路由 R3(config)#router ospf 1 开启ospf进程1 R3(config-router) #router-id 3.3.33 设置路由id R3(config-router) #network 192.168.30.0 0.0.0.255 area 1 宣告30网段在area1中 R3(config-router) #network 192.168 40.0 0.0.0.255 area 0 宣告40,70网段在area0中 R3(config-router) #network 192.168.70.0 0.0.0.255 area 0 R3(config-router) #default-information originate 注入外部默认路由 R3(config- router)#ex R3(config)#do show ip route查看路由表
d、R4
Rt4#conf t 进入全局模式 R4(config)#int f0/0 配置接口f0/0 R4(config- if)#ip add 192 168 40.2 255 255.255.0 R4(config- if)#no shut 开启 R4(config- if)#int f0/1 配置接口f0/1 R4(config- if)#ip add 192 168. 50.1255 255.255.0 R4(config- if)#no shut 开启 R4(config)#router rip 进入rip协议 R4(config router)#ver2 版本2 R4(config - router )#no auto-summary 关闭路由汇总 R4(config router #network 192.168.50.0 宣告50网段 R4(config - router #redistribute ospf 1 metric 5 在rip中注入ospf R4(config router)#router ospf 1 开启ospf进程1 R4(config router)#router-id 4.4.4.4 设置路由id R4(config router #network 192.168 40.0 0.0.0.255 area 0 告40网段在area0中 R4(config - router #redistribute rip subnets 在ospf中注入rip R4(config - router)#ex R4(config)#do show ip route查看路由信息
e、R5
Rrs#conft 进入全局模式 R5(config)#int f0/0 配置接口f0/0 R5(config- if)ip add 192.168 50.2255.255.255.0 R5(config - if)#no shut R5(config- if)#int f0/1 配置接口f0/1 R5(config- if)ip add 192.168.60.1 255 255 255.0 R5(config - if #no shut R5(config - if)#ex R5(config)#router rip 进入rip协议 R5(config router)#ver 2 版本2 R5(config-router )#no auto summary 关闭路由汇总 R5(config router )#network 192.168.50.0 宣告50, 60网段 R5(設定ルータ)#network 192.168.60.0
F、R6
R6#confのトンは、グローバルモードに入り R6(設定)#INT F0 / 0インターフェイスの設定F0 / 0 R6レーション(config-IF)#ipの255の追加12.0.0.2 255,255.0 R6レーション(config-IF)はシャット#NO R6を(設定-IF) F0 / 1構成インターフェイスF0 / 1 #INT 255.255 255.0 13.0.0.1追加#ipのR6(configif) シャット#NO R6(configif)の R6(設定)#ipのルート192.168.0.0静的セット255 255.0.0を12.0.0.1ルーティング
2、IPアドレスとゲートウェイPCを設定
、PC1
IP 192.168.10.2 192.168.10.1アドレス設定pc1IP
B、PC2
IP 192.168.70.2 192.168.70.1アドレス設定pc2IP
C、PC3
IP 13.0.0.13 13.0.0.1アドレス設定pc3IP
D、PC4
IPアドレス192.168.160.2 192.168.60.1設定pc4IP
3、ネットワーク全体の相互運用性テスト
RIP成功した実験と包括協定を構築するためのOSPF合意。