ルータ は、レイヤ3ルーティング機能をサポートする2つの ISCOM スイッチで RIP 設定を実行します
1.実験の目的
- CiscoSimulatorの使用をマスターする
- 3層スイッチのRIPダイナミックルーティングの構成方法をマスターする
2.実験的意義
CiscoシミュレータでRIP動的ルーティングを使用することにより、異なるネットワークセグメント上のコンピュータが相互に通信できます。
3つの実験装置
- Cisco Simulator
4つの実験的トポロジー
5つの実験ステップと詳細な構成
-
トポロジ図に従って、Ciscoシミュレータを使用して2つのL3スイッチと4つのPCを追加します。スイッチはF0 / 24ポートを介して接続されます。PC1とPC2はそれぞれSAVLAN6ポートとVLAN7ポートに接続され、PC3とPC4はそれぞれ接続されます。 SB VLAN8およびVLAN9ポートに接続し、トポロジ図に従ってすべてのコンピュータのIPアドレス、サブネットマスク、およびゲートウェイを設定します
-
構成コマンドは次のとおりです。
-
スイッチのVLANを分割します。
-
SAコード:
-
Switch>enable Switch#config Configuring from terminal, memory, or network [terminal]? Enter configuration commands, one per line. End with CNTL/Z. Switch(config)#hostname SA SA(config)#ip routing SA(config)#int ra fa 0/1-8 SA(config-if-range)#swit mode access SA(config-if-range)#Swit access vlan 6 % Access VLAN does not exist. Creating vlan 6 SA(config-if-range)#exit SA(config)#int ra fa 0/9-16 SA(config-if-range)#swit mode access SA(config-if-range)#Swit access vlan 7 % Access VLAN does not exist. Creating vlan 7 SA(config-if-range)#exit SA(config)#int ra fa 0/24 SA(config-if-range)#swit mode access SA(config-if-range)#Swit access vlan 100 % Access VLAN does not exist. Creating vlan 100
-
SBコード:
-
Switch>enable Switch#config Configuring from terminal, memory, or network [terminal]? Enter configuration commands, one per line. End with CNTL/Z. Switch(config)#hostname SB SB(config)#ip routing SB(config)#int ra fa 0/1-8 SB(config-if-range)#swit mode access SB(config-if-range)#Swit access vlan 8 % Access VLAN does not exist. Creating vlan 8 SB(config-if-range)#exit SB(config)#int ra fa 0/9-16 SB(config-if-range)#swit mode access SB(config-if-range)#Swit access vlan 9 % Access VLAN does not exist. Creating vlan 9 SB(config-if-range)#exit SB(config)#int ra fa 0/24 SB(config-if-range)#swit mode access SB(config-if-range)#Swit access vlan 100 % Access VLAN does not exist. Creating vlan 100
-
スイッチの各VLAN仮想ポートのIPアドレスを構成します。
-
SAコード:
-
SA>enable SA#config Configuring from terminal, memory, or network [terminal]? Enter configuration commands, one per line. End with CNTL/Z. SA(config)#int vlan 6 %LINK-5-CHANGED: Interface Vlan6, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan6, changed state to up SA(config-if)#ip address 172.16.6.1 255.255.255.0 SA(config-if)#no shut SA(config-if)#exit SA(config)#int vlan 7 %LINK-5-CHANGED: Interface Vlan7, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan7, changed state to up SA(config-if)#ip address 172.16.7.1 255.255.255.0 SA(config-if)#no shut SA(config-if)#exit SA(config)#int vlan 100 %LINK-5-CHANGED: Interface Vlan100, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan100, changed state to up SA(config-if)#ip address 172.16.100.1 255.255.255.0 SA(config-if)#no shut
-
SBコード:
-
SB>enable SB#config Configuring from terminal, memory, or network [terminal]? Enter configuration commands, one per line. End with CNTL/Z. SB(config)#int vlan 8 %LINK-5-CHANGED: Interface Vlan8, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan8, changed state to up SB(config-if)#ip address 172.16.8.1 255.255.255.0 SB(config-if)#no shut SB(config-if)#exit SB(config)#int vlan 9 %LINK-5-CHANGED: Interface Vlan9, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan9, changed state to up SB(config-if)#ip address 172.16.9.1 255.255.255.0 SB(config-if)#no shut SB(config-if)#exit SB(config)#int vlan 100 %LINK-5-CHANGED: Interface Vlan100, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan100, changed state to up SB(config-if)#ip address 172.16.100.2 255.255.255.0 SB(config-if)#no shut SB(config-if)#exit
-
RIPプロトコルを開始して、2つのスイッチ間の通信を実現します。
-
SAコード:
-
SA>enable SA#config Configuring from terminal, memory, or network [terminal]? Enter configuration commands, one per line. End with CNTL/Z. SA(config)#router rip SA(config-router)#version 2 SA(config-router)#network 172.16.6.0 SA(config-router)#network 172.16.7.0 SA(config-router)#network 172.16.100.0
-
SBコード:
-
SB>enable SB#config Configuring from terminal, memory, or network [terminal]? Enter configuration commands, one per line. End with CNTL/Z. SB(config)#router rip SB(config-router)#version 2 SB(config-router)#network 172.16.8.0 SB(config-router)#network 172.16.9.0 SB(config-router)#network 172.16.100.0
-
上記の構成が完了したら、PC間の接続をテストします
-
6.実験結果とスクリーンショット
トポロジ構成:
スイッチのVLANを分割します。
に:
SB:
スイッチの各VLAN仮想ポートのIPアドレスを構成します。
に:
SB:
RIPプロトコルを開始して、2つのスイッチ間の通信を実現します。
に:
SB:
RIPプロトコル開始後のPC間の通信
PC1とSBは通信できます。
PC1とPC3は通信できます。
PC1とPC4は通信できます。