3.
Switch>enSwitch#conf tEnter configuration commands, one per line. End with CNTL/Z.Switch(config)#vtp mode server Device mode already VTP SERVER.Switch(config)#vtp domain cwjChanging VTP domain name from NULL to manageSwitch(config)#vtp password ciscoSetting device VLAN database password to cisco Switch(config)#int f0/1Switch(config-if)#switchport trunk encapsulation dot1q Switch(config-if)#switchport mode trunk
2Switch>enSwitch#conf tEnter configuration commands, one per line. End with CNTL/Z.Switch(config)#vtp mode clientSetting device to VTP CLIENT mode.Switch(config)#vtp domain manageDomain name already set to manage.Switch(config)#vtp password ciscoSetting device VLAN database password to cisco
3
Switch(config-if)#exitSwitch(config)#vlan 2Switch(config-vlan)#name vlan2Switch(config-vlan)#exit Switch(config)#vlan 3Switch(config-vlan)#name vlan3
2.Switch(config)#int f0/1Switch(config-if)#switchport mode trunk Switch(config-if)#exit Switch(config)#int f0/2Switch(config-if)#switchport access vlan 2Switch(config-if)#exit vlSwitch(config)#int f0/3Switch(config-if)#switchport access vlan 3 3.Switch(config-vlan)#exit Switch(config)#int vlan2 %LINK-5-CHANGED: Interface Vlan2, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan2, changed state to upSwitch(config-if)#ip add 192.168.1.1 255.255.255.0Switch(config-if)#no shutSwitch(config-if)#exit Switch(config)#int vlan 3 %LINK-5-CHANGED: Interface Vlan3, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan3, changed state to upSwitch(config-if)#ip add 192.168.2.1 255.255.255.0Switch(config-if)#no shut zz.192.168.1.2255.255.255.0192.168.1.1 zy192.168.2.2255.255.255.0182.168.2.1