1.删除之前导入的ios;
2.选择GNS3——Edit——Preferences——IOS routers——New——导入ios—— 勾选This is an EtherSwitch router——next……——默认选择添加了nm-16esw(如无则加上)——计算idle值——Finish;
3.在gns3左侧找到browse all devices,选择刚刚命名的EtherSwitch router即可;
4.验证成功创建vlan。ESW1(config)#no ip routing
ESW1(config)#exit
ESW1#vlan database
% Warning: It is recommended to configure VLAN from config mode,
as VLAN database mode is being deprecated. Please consult user
documentation for configuring VTP/VLAN in config mode.
ESW1(vlan)#vlan 200
VLAN 200 modified:
ESW1(vlan)#exit
APPLY completed.
Exiting....
ESW1#show vlan-sw
ESW1#show vlan-switch
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Fa1/0, Fa1/2, Fa1/3, Fa1/4
Fa1/5, Fa1/6, Fa1/7, Fa1/