1、每个交换机划分 vlan2、vlan3,24 口相连为 trunk 口H3Cdis cu#version 5.20.99, Release 1103#sysname H3C#undo voice vlan mac-address 0001-e300-0000undo voice vlan mac-address 0004-0d00-0000undo voice vlan mac-address 0060-b900-0000undo voice vlan mac-address 00d0-1e00-0000undo voice vlan mac-address 00e0-bb00-0000#do
2、main default enable system#ipv6#password-recovery enable#vlan 1#vlan 2 to 3#domain systemaccess-limit disablestate active idle-cut disableself-service-url disable#user-group systemgroup-attribute allow-guest#local-user 1password cipher $c$3$qoNYfuSWDXL36QM59JN6Npn7O6Q=authorization-attribute level 3
3、service-type web#interface NULL0#interface Vlan-interface1ip address 192.168.20.1 255.255.255.0#interface Ethernet1/0/1#interface Ethernet1/0/2port access vlan 2#interface Ethernet1/0/3port access vlan 3#interface Ethernet1/0/4#interface Ethernet1/0/5#interface Ethernet1/0/6#interface Ethernet1/0/7#
4、interface Ethernet1/0/8#interface Ethernet1/0/9#interface Ethernet1/0/10#interface Ethernet1/0/11#interface Ethernet1/0/12#interface Ethernet1/0/13#interface Ethernet1/0/14# interface Ethernet1/0/15#interface Ethernet1/0/16#interface Ethernet1/0/17#interface Ethernet1/0/18#interface Ethernet1/0/19#i
5、nterface Ethernet1/0/20#interface Ethernet1/0/21#interface Ethernet1/0/22#interface Ethernet1/0/23#interface Ethernet1/0/24port link-type trunkport trunk permit vlan all#interface GigabitEthernet1/0/25#interface GigabitEthernet1/0/26#load xml-configuration#user-interface aux 0user-interface vty 0 15
6、#returnH3CS1626 配置H3Cdis cu#sysname H3C#dhcp-snooping#local-user adminpassword adminservice-type web#radius scheme system#vlan 1 to 3#interface vlan-interface1ip address 192.168.20.254 255.255.255.0#interface Ethernet0/1 #interface Ethernet0/2 port access vlan 2#interface Ethernet0/3 port access vla
7、n 3#interface Ethernet0/4 #interface Ethernet0/5 #interface Ethernet0/6 #interface Ethernet0/7 #interface Ethernet0/8 #interface Ethernet0/9 #interface Ethernet0/10#interface Ethernet0/11#interface Ethernet0/12#interface Ethernet0/13#interface Ethernet0/14#interface Ethernet0/15#interface Ethernet0/
8、16#interface Ethernet0/17#interface Ethernet0/18#interface Ethernet0/19#interface Ethernet0/20#interface Ethernet0/21#interface Ethernet0/22#interface Ethernet0/23#interface Ethernet0/24port link-type trunkport trunk permit vlan all#interface Ethernet0/25#interface Ethernet0/26dhcp-snooping trust#user-interface aux 0user-interface vty 0user-interface vty 1#H3C