第1段:在SW1和SW2上配置VTP SW1912#conft Enter configuration commands,one per line.End with CNTL/Z SW1912(config)#hostn SW1 SW1(config)#vtp? client VTP client domain Set VTP domanin name passowrd Set VTP passWord PRuning VTP pruning server VTP server transparent VTP transparent trap VTP trap SW1(config-if)#tnmk on SW1(config-if)# ( Ctrl+Shift+6,x ) Term_Server>2 [Resuming connection 2 to switch2...] >en #conft Enter configuration commands,one per line,End with CNTL/Z (config)#hostn SW2 SW2(config)#vtp domain cisco SW2(config)#vtp client SW2(config)#
SW1(config-if)#trunk? auto Set DISL state to AUTO desirable Set DISL state to DESIRABLE nonegotiate Set DISL state to NONEGOTIATE off Set DISL state to OFF on Set DISL state to ON SW1(config-if)#trunk on
SW1(config-if)# (Ctrl+Shift+6,x) Term_Server>2 [Resuming connection 2 to switch2...]
SW2(config)#int fa0/26
SW2(config-if)#trunk?
SW2(config-if)# SW2#sh trunk a
DISL state:On,Trunking:on,Encapsulation type:ISL SW2#sh trunk b
DISL state:Off,Trunking:Off,Encapsulation type:Unknown SW2#sh trunk a allowed-vlans