VTP Server:: Switch (Config) #Int Range g0/1-2 Switch (Config-If-Range) #Switchport Mode Trunk
VTP Server:: Switch (Config) #Int Range g0/1-2 Switch (Config-If-Range) #Switchport Mode Trunk
VTP server:
Switch#
Switch#CONF T
Switch(config)#vlan 10
Switch(config-vlan)#name sales
Switch(config-vlan)#vlan 20
Switch(config-vlan)#name marketing
Switch(config-vlan)#vlan 30
Switch(config-vlan)#name production
Switch(config-vlan)#ex
Switch(config)#vtp mode server
Device mode already VTP SERVER.
Switch(config)#vtp domain cisco
Changing VTP domain name from NULL to cisco
Switch(config)#vtp password 12345
Setting device VLAN database password to 12345
Switch(config)#
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#
Switch(config)#vtp mode client
Setting device to VTP CLIENT mode.
Switch(config)#vtp domain cisco
Changing VTP domain name from NULL to cisco
Switch(config)#vtp password 12345
Setting device VLAN database password to 12345
Switch(config)#
SW3T#
SW3T(config)#
SW3T(config)#int range g0/1-2
SW3T(config-if-range)#switchport mode trunk
SW3T(config-if-range)#ex
SW3T(config)#
SW3T(config)#vtp mode transparent
Setting device to VTP TRANSPARENT mode.
SW3T(config)#vlan 40
SW3T(config-vlan)#name finance
SW3T(config-vlan)#ex
SW3T(config)#sh vlan
SW4 - Client 2
SW4C2#conf t
Enter configuration commands, one per line. End with CNTL/Z.
SW4C2(config)#
SW4C2(config)#int range g0/1-2
SW4C2(config-if-range)#switchport mode trunk
SW4C2(config-if-range)#ex
SW4C2(config)#vtp mode client
Setting device to VTP CLIENT mode.
SW4C2(config)#vtp domain cisco
Domain name already set to cisco.
SW4C2(config)#vtp password 12345
Setting device VLAN database password to 12345
SW4C2(config)#
LAYER 3 SWITCHING:
L3SW#conf t
Enter configuration commands, one per line. End with CNTL/Z.
L3SW (config)#int g0/1
L3SW (config-if)#switchport mode trunk (This doesn’t work in L3 switch)
Command rejected: An interface whose trunk encapsulation is "Auto" can not be configured to
"trunk" mode.
L3SW (config-if)#switchport mode dynamic desirable
L3SW#
L3SW(config)#vlan 10
L3SW(config-vlan)#name sales
L3SW(config-vlan)#vlan 20
L3SW(config-vlan)#name marketing
L3SW(config-vlan)#vlan 30
L3SW(config-vlan)#name production
L3SW(config-vlan)#int vlan 10 (Creating and virtual interface vlan 10)
L3SW(config-if)#
%LINK-5-CHANGED: Interface Vlan10, changed state to up
L3SW(config-if)#
L3SW(config-if)#ip address 192.168.1.254 255.255.255.0
L3SW(config-if)#int vlan 20 (Creating and interface vlan 10)
L3SW(config-if)#
%LINK-5-CHANGED: Interface Vlan20, changed state to up
L3SW(config-if)#
L3SW(config-if)#ip address 192.168.2.254 255.255.255.0
L3SW(config-if)#int vlan 30 (Creating and interface vlan 10)
L3SW(config-if)#
%LINK-5-CHANGED: Interface Vlan30, changed state to up
L3SW(config-if)#
L3SW(config-if)#ip address 192.168.3.254 255.255.255.0
L3SW(config-if)#ex
L3SW(config)#
L3SW(config)#ip routing (Enables routing functions)
L3SW(config)#
****************************************************************
Switch(config-if)#no switchport
Switch(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/2, changed state to
down
Switch(config-if)#ip add
Switch(config-if)#ip address 111.111.111.1 255.255.255.252
Switch(config-if)#
Switch#sh spanning-tree
VLAN0001
Spanning tree enabled protocol ieee
Root ID Priority 32769
Address 0002.4AA3.10C4
This bridge is the root
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Switch#
Switch#
Switch#sh spanning-tree
VLAN0001
Spanning tree enabled protocol ieee
Root ID Priority 32769
Address 0002.4AA3.10C4
Cost 4
Port 26(GigabitEthernet0/2)
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Switch#
Switch#sh spanning-tree
VLAN0001
Spanning tree enabled protocol ieee
Root ID Priority 32769
Address 0002.4AA3.10C4
Cost 8
Port 26(GigabitEthernet0/2)
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Switch#
Back up