Professional Documents
Culture Documents
Switch>
Notes:Enter enable mode
Switch>enable
Notes:Enter configuration mode
Switch#config t
Enter configuration commands, one per line. End with CNTL/Z.
Notes:Change the switch name
Switch(config)#hostname 2950
Notes:Change the enable password
2950(config)#enable secret <password>
Notes:Configure a management interface and assign it an IP.
2950(config)#int vlan 1
2950(config-if)#ip address <IP Address> <Subnet Mask>
2950(config-if)#no shutdown
2950(config-if)#exit
Notes:Create two VLANs and give them names
2950(config)#vlan 2
2950(config-vlan)#name Data
2950(config-vlan)#exit
2950(config)#vlan 3
2950(config-vlan)#name LabWork
2950(config-vlan)#exit
Notes:Select the first range of ports and add them to the Data VLAN
2950(config)#int range faste0/3 12
2950(config-if-range)#switchport mode access
2950(config-if-range)#switchport access vlan 2
2950(config-if-range)#no shutdown
2950(config-if-range)#exit
Notes:Select the second range of ports and add them to the ISCSI VLAN
2950(config)#int range faste0/13 24
2950(config-if-range)#switchport mode access
2950(config-if-range)#switchport access vlan 3
2950(config-if-range)#no shutdown
2950(config-if-range)#exit
2950(config)#exit
Notes:Select the two ports 1 and 2 and configure them as trunks. While its not necessary
limit the trunk to only pass VLAN 2 and 3 traffic over the trunk link
2950(config)#int range faste0/1 2
2950(config-if-range)#switchport mode trunk
2950(config-if-range)#switchport trunk allowed VLAN 2,3
2950(config-if-range)#no shutdown
2950(config-if-range)#exit
2950(config)#exit
Notes:Save the configuration
2950#write
Notes: Use the show vlan command to display the VLANs that are locally defined. The
output also displays which ports are assigned to which VLANs. Note that the two trunk
ports aren t assigned to either VLAN.
2950#show vlan
Now connect and configure hosts for VLAN 2 (access ports 3-12) and hosts for VLAN 3
(access ports 13-24);
Use the following diagram (Fig 1 ) as a requirements guide to create the VLANs shown. Use
the IP addresses as indicated.