89
VLAN description
Switch(config)# interface vlan 2
Switch(config-if)#
Switch(config-if)# description this is the VLAN 2
Switch(config-if)# no description ->Delete the description.
IP address of the VLAN
Switch(config)# interface vlan 2
Switch(config-if)#
Switch(config-if)# ip address 192.168.10.18/24
Switch(config-if)# no ip address 192.168.10.8/24 ->Delete
the IP address
Create multiple VLANs
(VLAN 5-10)
Switch(config)# interface vlan 5-10
Shut down VLAN
Switch(config)# interface vlan 2
Switch(config-if)# shutdown
Switch(config-if)# no shutdown ->Turn on the VLAN
Display – VLAN table
Switch# sh vlan
VLAN Name Status Trunk Ports Access Ports
---- ------------ ------- -------------------------- --------------------------
1 VLAN1 Static - fa1-7,gi8-10
2 VLAN2 Unused - -
3 test Static fa4-7,gi8-10 fa1-3,fa7,gi8-10
Display – VLAN
interface information
Switch# show interface vlan1
interface vlan1 is up, line protocol detection is disabled
index 14 metric 1 mtu 1500 <UP,BROADCAST,RUNNING,MULTICAST>
HWaddr: 00:12:77:ff:01:b0
inet 192.168.10.100/24 broadcast 192.168.10.255
input packets 639, bytes 38248, dropped 0, multicast packets 0
input errors 0, length 0, overrun 0, CRC 0, frame 0, fifo 0, missed 0
output packets 959, bytes 829280, dropped 0
output errors 0, aborted 0, carrier 0, fifo 0, heartbeat 0, window 0
collisions 0
GVRP configuration
GVRP enable/disable
Switch(config)# gvrp mode
disable Disable GVRP feature globally on the switch
enable Enable GVRP feature globally on the switch
Switch(config)# gvrp mode enable
Gvrp is enabled on the switch!
Configure GVRP timer
Join timer /Leave timer/
LeaveAll timer
Switch(config)# inter fa1
Switch(config-if)# garp timer
<10-10000>
Switch(config-if)# garp timer 20 60 1000
Note: The unit of these timer is centisecond
Management VLAN
Management VLAN
Switch(config)# int vlan 1 (Go to management VLAN)
Switch(config-if)# no shutdown
Display Switch#
show
running-config
….
!
interface vlan1
ip address 192.168.10.17/24
ip igmp
no shutdown
!
….