Switch>en
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#h
Switch(config)#hostname ASW2
ASW2(config)#V
ASW2(config)#v
ASW2(config)#vlan 30
ASW2(config-vlan)#name GRT
ASW2(config-vlan)#exit
ASW2(config)#int f0/5
ASW2(config-if)#sw
ASW2(config-if)#switchport mo
ASW2(config-if)#switchport mode a
ASW2(config-if)#switchport mode access
ASW2(config-if)#s
ASW2(config-if)#sw
ASW2(config-if)#switchport a
ASW2(config-if)#switchport access vlan 30
ASW2(config-if)#exit
ASW2(config)#vlan 40
ASW2(config-vlan)#sw
ASW2(config-vlan)#nam
ASW2(config-vlan)#name SSI
ASW2(config-vlan)#exit
ASW2(config)#int f0/6
ASW2(config-if)#sw
ASW2(config-if)#switchport mo
ASW2(config-if)#switchport mode acc
ASW2(config-if)#switchport mode access
ASW2(config-if)#sw
ASW2(config-if)#switchport a
ASW2(config-if)#switchport access vlan 40
ASW2(config-if)#exit
ASW2(config)#exit
ASW2#
%SYS-5-CONFIG_I: Configured from console by console
ASW2#sh v
ASW2#sh vlan
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Fa0/1, Fa0/2, Fa0/3, Fa0/4
Fa0/7, Fa0/8, Fa0/9, Fa0/10
Fa0/11, Fa0/12, Fa0/13, Fa0/14
Fa0/15, Fa0/16, Fa0/17, Fa0/18
Fa0/19, Fa0/20, Fa0/21, Fa0/22
Fa0/23, Fa0/24, Gig0/1, Gig0/2
30 GRT active Fa0/5
40 SSI active Fa0/6
1002 fddi-default active
1003 token-ring-default active
1004 fddinet-default active
1005 trnet-default active
VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
1 enet 100001 1500 - - - - - 0 0
30 enet 100030 1500 - - - - - 0 0
40 enet 100040 1500 - - - - - 0 0
1002 fddi 101002 1500 - - - - - 0 0
1003 tr 101003 1500 - - - - - 0 0
1004 fdnet 101004 1500 - - - ieee - 0 0
1005 trnet 101005 1500 - - - ibm - 0 0
VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
Remote SPAN VLANs
------------------------------------------------------------------------------
Primary Secondary Type Ports
------- --------- ----------------- ------------------------------------------
ASW2#
ASW2#
ASW2#sh vlan brief
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Fa0/1, Fa0/2, Fa0/3, Fa0/4
Fa0/7, Fa0/8, Fa0/9, Fa0/10
Fa0/11, Fa0/12, Fa0/13, Fa0/14
Fa0/15, Fa0/16, Fa0/17, Fa0/18
Fa0/19, Fa0/20, Fa0/21, Fa0/22
Fa0/23, Fa0/24, Gig0/1, Gig0/2
30 GRT active Fa0/5
40 SSI active Fa0/6
1002 fddi-default active
1003 token-ring-default active
1004 fddinet-default active
1005 trnet-default active
ASW2#