Switch Lab (1)
VLAN creation and Configuration
Code
Step 1:Enter the privileged user mode of vswitch
SwitchA> en
SwitchA #
SwitchA # set default
Are you sure? [Y/N] Y
SwitchA # write
SwitchA # reload // restart the switch
Step 2:Set IP addresses for vswitch A to manage IP addresses
SwitchA # config
SwitchA (config) # interface vlan 1
SwitchA (config-if-vlan1) # ip address 192.168.1.11 255.255.255.0
SwitchA (config-if-vlan1) # no shutdown
SwitchA (config-if-vlan1) # exit
SwitchA (config) # exit
Step 3:Create VLAN100 and VLAN200
SwitchA (config )#
SwitchA (config) # VLAN 100
SwitchA (config-vlan100) # exit
SwitchA (config) # VLAN 200
SwitchA (config-VLAN200) # exit
SwitchA (config )#
Verify Configuration:
SwitchA # show vlan
Step 4:Add ports to VLAN100 and VLAN200
, Use the following command to add a port to VLAN100
SwitchA (config) # VLAN 100
SwitchA (config-VLAN100) # switchport interface Ethernet 0/0/1-8
SwitchA (config-VLAN100) # exit
Run the following command to add a port to VLAN200:
SwitchA (config) # VLAN 200
SwitchA (config-VLAN200) # switchport interface Ethernet 0/0/9-16
SwitchA (config-VLAN220) # exit
Verify Configuration:
Step 5:Test and record results in Table 4-1
Table 4-1
Step 6:Analyze test results