Create vlans in GNS3 Switch


If you are going to try the NM16-SW switch module in GNS3, the vlan commands are different from the normal switches. For this module you need to use the old vlan database command to configure vlans. Examples for how to configure vlans.   First create a VLAN by following command:

Router#vlan database

Router(vlan)#vlan 10

VLAN 10 added:     Name: VLAN0010

Router(vlan)#exit

APPLY completed. Exiting….

Now we can try the command to check your VLANS:

show vlan   Will give you the output:  % Ambiguous command:  “show vlan”

let’s try other command :

show vlans   Which will give you:  No Virtual LANs configured.

Now try the following command:  show vlan-switch   Which will give you:

Router#show vlan-switch

VLAN Name                             Status    Ports

—- ——————————– ——— ——————————-

1    default                          active    Fa1/0, Fa1/1, Fa1/2, Fa1/3

Fa1/4, Fa1/5, Fa1/6, Fa1/7

Fa1/8, Fa1/9, Fa1/10, Fa1/11

Fa1/12, Fa1/13, Fa1/14, Fa1/15

10   VLAN0010                         active

2 thoughts on “Create vlans in GNS3 Switch

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.