01-交换网络 配置
1、配置链路聚合
在 DSW1 和 DSW2 的 G0/3 和 G0/0 接口上配置链路聚合
注:G0/0、G0/3 和 port-channel 接口都需要 no shutdown
(1)DSW1:
int ra g0/0,g0/3 no sh sw tr en do sw mo tr channel-protocol pagp channel-group 1 mode desirable exitint ra port-channel 1 no sh sw tr en do sw mo tr exit
(2)DSW2:
int ra g0/0,g0/3 no sh sw tr en do sw mo tr channel-protocol pagp channel-group 1 mode auto exitint ra port-channel 1 no sh sw tr en do sw mo tr exit
2、配置 VTP v3:
注:VTP v3 需要先配置 domain(域名),才能够将版本改为VTP v3
(1)VTP v3 配置:
1、(DSW1)VTP 服务器配置:
endconf tvtp domain wsc2023.gdvtp version 3vtp password Skills39!endvtp primary
2、(ASW1、ASW2、DSW2)VTP 客户端配置:
vtp domain wsc2023.gdvtp version 3vtp password Skills39!
2、(DSW1)创建 VLAN:
endconfig t vlan 1010name Clientexitvlan 1020name Serverexit
3、配置 VLAN 手工剪枝:
(1)DSW1、DSW2
int ra G1/0-1,port-channel 1sw tr al vlan 1010,1020exit
(2)ASW1、ASW2
int ra G1/0-1sw tr al vlan 1010,1020