1、华为S3928 三层交换机配置2008-08-04 11:06配置环境与配置文件如下:环境, 双wan口路由接入ADSL ,下接华为S3928p-SI 做核心交换机.交换机下接普通PC 和 傻瓜式的TP-Link交换机, 现用可核心交换机e 1/0/24口(ip:192.168.10.80)直接连接路由器.划分5个vlan 并隔离 e 1/0/11 to e 1/0/14端口.dis cur#sysname Quidway#dhcp-server 1 ip 192.168.1.2#radius scheme system#domain system#vlan 1#vlan 2descripti
2、on comman#vlan 3description finance#vlan 4description ap#vlan 5description server#vlan 6description route#interface Vlan-interface2ip address 192.168.1.1 255.255.255.0#interface Vlan-interface3ip address 192.168.3.1 255.255.255.0#interface Vlan-interface4ip address 192.168.6.1 255.255.255.0dhcp-serv
3、er 1#interface Vlan-interface5ip address 192.168.100.1 255.255.255.0#interface Vlan-interface6ip address 192.168.10.80 255.255.255.0#interface Aux1/0/0#interface Ethernet1/0/1port access vlan 2#interface Ethernet1/0/2port access vlan 2#interface Ethernet1/0/3port access vlan 2#interface Ethernet1/0/
4、4port access vlan 2#interface Ethernet1/0/5port access vlan 2#interface Ethernet1/0/6port access vlan 2#interface Ethernet1/0/7port access vlan 2#interface Ethernet1/0/8port access vlan 2#interface Ethernet1/0/9port access vlan 2#interface Ethernet1/0/10port access vlan 2#interface Ethernet1/0/11por
5、t access vlan 3port isolate#interface Ethernet1/0/12port access vlan 3port isolate#interface Ethernet1/0/13port access vlan 4port isolate#interface Ethernet1/0/14port access vlan 4port isolate#interface Ethernet1/0/15port access vlan 5#interface Ethernet1/0/16port access vlan 5#interface Ethernet1/0
6、/17port access vlan 5#interface Ethernet1/0/18port access vlan 5#interface Ethernet1/0/19port access vlan 5#interface Ethernet1/0/20port access vlan 5#interface Ethernet1/0/21#interface Ethernet1/0/22#interface Ethernet1/0/23#interface Ethernet1/0/24port access vlan 6#interface GigabitEthernet1/1/1#
7、interface GigabitEthernet1/1/2#interface GigabitEthernet1/1/3#interface GigabitEthernet1/1/4#undo irf-fabric authentication-mode#interface NULL0#voice vlan mac-address 0001-e300-0000 mask ffff-ff00-0000#ip route-static 0.0.0.0 0.0.0.0 192.168.10.1 preference 60#user-interface aux 0 7user-interface vty 0 4#return另需要路由器上添加回路,对应该交换机的路由规则 .192.168.0.0 255.255.0.0 192.168.10.80侠诺路由器支持多子网段,还需添加 192.168.0.0 255.255.0.0 的子网段.