本文共 2363 字,大约阅读时间需要 7 分钟。
SW1(config)#vlan 10;创建; interface FastEthernet0/1 ;进入端口1; switchport mode access;将端口设置为access链路; switchport access vlan 10;将vlan10加入1端口; interface FastEthernet0/23 ;进入端口23; switchport mode trunk ;将端口设置为trunk链路; switchport trunk allowed vlan all ;允许全部vlan通过; switchport trunk allowed vlan 10 ;也可只让vlan10通过; ③确保SW2为“根”交换机并与SW3交换机之间的两条链路捆绑开启trunk链路; 修改 priority 0(值)把根抢过来; interface FastEthernet0/23 ;进入端口23; switchport mode trunk ;将端口设置为trunk链路; switchport trunk allowed vlan all ;允许全部vlan通过; switchport trunk allowed vlan 10 ;也可只让vlan10通过; interface FastEthernet0/22;进入端口22; switchport mode trunk ;将端口设置为trunk链路; switchport trunk allowed vlan all ;允许全部vlan通过; switchport trunk allowed vlan 10 ;也可只让vlan10通过; interface FastEthernet0/24 ;进入端口24; switchport mode trunk ;将端口设置为trunk链路; switchport trunk allowed vlan all ;允许全部vlan通过; switchport trunk allowed vlan 10 ;也可只让vlan10通过; spanning-tree mode rapid-pvst ;全局模式下,迅速生成树模式; spanning-tree vlan 10 priority 0;生成树VLAN 10优先级0;值越小越好;(根网桥) channel-protocol lacp ;把pagp修改成lacp; channel-group 1 mode passive;端口通道负载均衡; spanning-tree guard root;生成树保护; interface Port-channel 1 ;端口通道1; ④修改SW3交换机的 priority 4096(值);并开区trunk链路; interface FastEthernet0/22;进入端口22; switchport mode trunk ;将端口设置为trunk链路; switchport trunk allowed vlan all ;允许全部vlan通过; switchport trunk allowed vlan 10 ;也可只让vlan10通过; interface FastEthernet0/24 ;进入端口24; interface FastEthernet0/1 ;进入端口1; switchport mode access;将端口设置为access链路; switchport access vlan 10;将vlan10加入1端口; switchport mode trunk ;将端口设置为trunk链路; switchport trunk allowed vlan all ;允许全部vlan通过; switchport trunk allowed vlan 10 ;也可只让vlan10通过; spanning-tree mode rapid-pvst ;全局模式下,迅速生成树模式; spanning-tree vlan 10 priority 0;生成树VLAN 10优先级0;值越小越好;(根网桥) channel-protocol lacp ;把pagp修改成lacp; channel-group 1 mode passive;端口通道负载均衡; spanning-tree guard root;生成树保护; interface Port-channel 1 ;端口通道1; priority 0 ;值越小越好;
转载于:https://blog.51cto.com/13562345/2063029