在SW1上配置VTP、trunk、vlanRouter>enRouter#conftEnterconfigurationcommands,oneperline
EndwithCNTL/Z
Router(config)#noipdoloRouter(config)#linecon0Router(config-line)#noexec-tRouter(config-line)#loggsynRouter(config-line)#exiRouter(config)#hostsw1sw1(config)#noiproutingsw1(config)#^Zsw1#vlandasw1(vlan)#vtpdomainvChangingVTPdomainnamefromNULLtovsw1(vlan)#vtpserverDevicemodealreadyVTPSERVER
sw1(vlan)#exiAPPLYcompleted
Exiting
sw1#conftEnterconfigurationcommands,oneperline
EndwithCNTL/Z
sw1(config)#intf0/0sw1(config-if)#swimotrsw1(config-if)#exisw1(config)#^Zsw1#vlandasw1(vlan)#vlan2name1VLAN2added:Name:1sw1(vlan)#vlan3name3VLAN3added:Name:3sw1(vlan)#exiAPPLYcompleted
Exiting
sw1#conftEnterconfigurationcommands,oneperline
EndwithCNTL/Z
sw1(config)#intf0/1sw1(config-if)#swimoaccsw1(config-if)#s