接入交换机办公网常用配置

1.配置VTP

  vtp domain xxx

  vtp mode server

  vtp password xxx

2.配置远程登录

3.配置与汇聚或核心互联  

interface GigabitEthernet1/0/47
 switchport trunk allowed vlan 1-63,71-4094
 switchport mode trunk
 channel-protocol lacp
 channel-group 10 mode active
 ip dhcp snooping trust
!
interface GigabitEthernet1/0/48
 switchport trunk allowed vlan 1-63,71-4094
 switchport mode trunk
 channel-protocol lacp
 channel-group 10 mode active
 ip dhcp snooping trust
!
interface Port-channel10
 description 29.254
 switchport trunk allowed vlan 1-63,71-4094
 switchport mode trunk
 ip dhcp snooping trust
!

4.配置下联接入  

interface GigabitEthernet1/0/1
 switchport access vlan 2
 switchport mode access
 switchport voice vlan 12
 spanning-tree portfast
 spanning-tree bpduguard enable
!
原文地址:https://www.cnblogs.com/xinghen1216/p/14069728.html