VTP
Server Switch(config)#vtp domain g.com //Create the domain name as g.com Switch(config)#vtp mode server //Set the mode to server mode Switch(config)#vtp password g //Set the password to g Switch (config)#vtp version 2 //vtp version is 2 Client Switch(config)#vtp domain g.com //Create a domain name as g.com Switch(config)#vtp mode client //Set the mode to client mode Switch (config)#vtp password g //set the password to g Switch(config)#vtp version 2 //vtp version is 2
2-SW1(config-if)#switchport trunk encapsulation dot1q //Three-layer switch Three-layer switch must be encapsulated first when using trunk
Layer 3 switch enables routing function: Switch(config)#ip routing