2010年7月23日

GNS3模擬Switch的方法

GNS3內建的Switch沒有Command Line 的功能

但可以使用Router搭配NM-16ESW模組來模擬Switch Vlan的功能
接著再設定Vlan即可
Router#vlan database
Router(vlan)#vlan 50
VLAN 50 added:
Name: VLAN0050
Router(vlan)#exit

Router#configure t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#interface vlan 50
Router(config-if)#ip address 192.168.0.100 255.255.255.0
Router(config-if)#no shutdown
Router(config-if)#^Z
Router#show interfaces vlan 50
Vlan50 is up, line protocol is down
Hardware is EtherSVI, address is cc00.0974.0000 (bia cc00.0974.0000)
Internet address is 192.168.0.100/24
MTU 1500 bytes, BW 100000 Kbit, DLY 100 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation ARPA, loopback not set
ARP type: ARPA, ARP Timeout 04:00:00
Last input never, output never, output hang never
Last clearing of "show interface" counters never
Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: fifo
Output queue: 0/40 (size/max)
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
0 packets input, 0 bytes, 0 no buffer
Received 0 broadcasts, 0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
2 packets output, 120 bytes, 0 underruns
0 output errors, 1 interface resets
0 output buffer failures, 0 output buffers swapped out


2 回應:

hns 提到...

您好. 我再下interface vlan 50的時候他告訴我沒有辦法辨識 v"l"an 這是因為我gns3 的哪個模組沒有安裝嘛?我有照著您的設定來做. 可惜出現這個msg .

Router(config)#interface vlan 50
^

happylucky 提到...

基本上安裝了NM-16ESW模組,就可以啟用Switch的模組,你會出現無法辨識 vlan的問題,我猜應該是IOS版本的問題,3600的IOS要先使用vlan database來先建立vlan 50,才可再下interfaces vlan 50的指令,而3700的IOS,則是直接下interfaces vlan 50,就會直接建立vlan 50這個Vlan了...

Copyright © 2009 New Life in Taipei All rights reserved. Theme by Laptop Geek. | Bloggerized by FalconHive.