DynagenでCCIEを目指す
20100329 ルータをスイッチとして代用
最終更新:
it_certification
-
view
目的
- EtherSwitchモジュールを使用し、ルータをスイッチの代わりとして使用します。
構成
- 設定概要
- R2をスイッチの代用とします
- 構成図

- netファイル
model = 3660
[localhost]
[[3660]]
image = C:\Program Files\Dynamips\images\c3660-ik9o3s-mz.124-6.T.bin
ram = 160
[[ROUTER R1]]
f0/0 = R2 f1/0
f0/1 = R2 f1/1
[[ROUTER R2]]
slot1 = NM-16ESW
f1/2 = R3 f0/0
[[ROUTER R3]]
- R1
! version 12.4 service timestamps debug datetime msec service timestamps log datetime msec no service password-encryption ! hostname R1 ! boot-start-marker boot-end-marker ! ! no aaa new-model ! resource policy ! memory-size iomem 5 ! ! ip cef ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! interface FastEthernet0/0 ip address 192.168.1.1 255.255.255.0 duplex auto speed auto ! interface FastEthernet0/1 ip address 192.168.2.1 255.255.255.0 duplex auto speed auto ! ip http server no ip http secure-server ! ! ! ! ! ! control-plane ! ! ! ! ! ! ! ! ! line con 0 line aux 0 line vty 0 4 ! ! end
- R2
後述
- R3
! version 12.4 service timestamps debug datetime msec service timestamps log datetime msec no service password-encryption ! hostname R3 ! boot-start-marker boot-end-marker ! ! no aaa new-model ! resource policy ! memory-size iomem 5 ! ! ip cef ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! interface FastEthernet0/0 ip address 192.168.1.2 255.255.255.0 duplex auto speed auto ! interface FastEthernet0/0.2 encapsulation dot1Q 2 ip address 192.168.2.2 255.255.255.0 no snmp trap link-status ! interface FastEthernet0/1 no ip address shutdown duplex auto speed auto ! ip http server no ip http secure-server ! ! ! ! ! ! control-plane ! ! ! ! ! ! ! ! ! line con 0 line aux 0 line vty 0 4 ! ! end
検証1 設定および疎通確認
- VLAN 設定
enableモードでvlan databaseと入力する事で、VLANの編集ができます。
R2#vlan database
R2(vlan)#vlan 2
VLAN 2 added:
Name: VLAN0002
R2(vlan)#
showコマンドで作成済みのVLANを確認できます。
R2(vlan)#show
VLAN ISL Id: 1
Name: default
Media Type: Ethernet
VLAN 802.10 Id: 100001
State: Operational
MTU: 1500
Translational Bridged VLAN: 1002
Translational Bridged VLAN: 1003
VLAN ISL Id: 2
Name: VLAN0002
Media Type: Ethernet
VLAN 802.10 Id: 100002
State: Operational
MTU: 1500
VLAN ISL Id: 1002
Name: fddi-default
Media Type: FDDI
VLAN 802.10 Id: 101002
State: Operational
MTU: 1500
Bridge Type: SRB
Translational Bridged VLAN: 1
Translational Bridged VLAN: 1003
VLAN ISL Id: 1003
Name: token-ring-default
Media Type: Token Ring
VLAN 802.10 Id: 101003
State: Operational
MTU: 1500
Bridge Type: SRB
Ring Number: 0
Bridge Number: 1
Parent VLAN: 1005
Maximum ARE Hop Count: 7
Maximum STE Hop Count: 7
Backup CRF Mode: Disabled
Translational Bridged VLAN: 1
Translational Bridged VLAN: 1002
VLAN ISL Id: 1004
Name: fddinet-default
Media Type: FDDI Net
VLAN 802.10 Id: 101004
State: Operational
MTU: 1500
Bridge Type: SRB
Bridge Number: 1
STP Type: IBM
VLAN ISL Id: 1005
Name: trnet-default
Media Type: Token Ring Net
VLAN 802.10 Id: 101005
State: Operational
MTU: 1500
Bridge Type: SRB
Bridge Number: 1
STP Type: IBM
- ポート設定
各ポートに対して設定を投入します。Catalystの場合とほぼ同様です。
R2(config)#interface FastEthernet 1/0 R2(config-if)#switchport mode access R2(config-if)#switchport access vlan 1 R2(config-if)#no shutdown R2(config-if)#exit R2(config)#interface FastEthernet 1/1 R2(config-if)#switchport mode access R2(config-if)#switchport access vlan 2 R2(config-if)#no shutdown R2(config-if)#exit R2(config)#int FastEthernet 1/2 R2(config-if)#switchport mode trunk R2(config-if)#switchport trunk encapsulation dot1q R2(config-if)#switchport trunk native vlan 1 R2(config-if)#no shutdown
- 疎通確認
疎通確認を行います。
R3#ping 192.168.1.1 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 192.168.1.1, timeout is 2 seconds: .!!!! Success rate is 80 percent (4/5), round-trip min/avg/max = 8/99/160 ms R3#ping 192.168.2.1 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 192.168.2.1, timeout is 2 seconds: .!!!! Success rate is 80 percent (4/5), round-trip min/avg/max = 40/108/200 ms
補足
Dynagen上のc3660でIOS12.1の場合は、動作しませんでした。
添付ファイル