1、 duplex (full half auto)配置以太口双工属性
 2、 speed工作速率
 3、 switch mode access改端口为访问模式
 4、 switch access vlan 2把端口划分到vlan2
 5、 switch port-security打开端口安全功能
 6、 switch port-security maximum 1 允许MAC条目最大1
 7、 switch port-security violation配置端口安全
 8、 switchport port-security mac-address指定MAC可以连接本接口,其他拒绝
 9、 switchport trunk encanpsulation dot1q 配置trunk链路的封装类型为802.1Q
 10、switch mode trunk改端口为trunk口
 11、switchport nonegotiatetrunk链路上不发送trunk协商包
 12、vtp mode (server client transparent) 配置交换机为VTP(服务器 客户端 透明模式)
 13、vtp domain配置vtp域名
 14、vtp password密码
 15、vtp pruningVTP修剪启用
 16、show vtp status显示vtp的状态
转载于:https://blog.51cto.com/ghf00/1079693