LSW2:
system-view
int G0/0/1
port link-type trunk
port trunk pvid 100
port trunk allow-pass vlan 100 101
quit
int G0/0/2
port link-type trunk
port trunk pvid 100
port trunk allow-pass vlan 100 102
quit
int G0/0/3
port link-type trunk
port trunk allow-pass vlan 100 to 102
quit
LSW1:
int G0/0/2
port link-type trunk
port trunk allow-pass vlan 100 to 102
int G0/0/3
port link-type trunk
port trunk allow-pass vlan 100 to 102
AC端口基本配置
system-view
vlan batch 100 to 102
int G0/0/1
port link-type trunk
port trunk allow-pass vlan 100 to 102
quit
配置AC基本功能
[AC]WLAN ac-global ac id 1 carrier other
[AC]WLAN ac-global country-code TW
配置DHCP功能和VLANIF接口
[AC] dhcp enable
int vlanif 100
ip addr 10.1.100.1 24
dhcp select interface
int vlanif 101
ip addr 10.1.101.1 24
dhcp select interface
int vlanif 102
ip addr 10.1.102.1 24
dhcp select interface
interface WLAN-ESS0
port hybrid untagged vlan 101
interface WLAN-ESS1
port hybrid untagged vlan 102
指定AC的源IP地址,使该AC下接入AP得到该AC地址都是指定的AC源IP地址
[AC]wlan (进入wlan view)
[AC-WLAN-view]WLAN ac source interface vlanif 100
配置AC与AP互通
[AC-WLAN-view]ap-region id 101
[AC-WLAN-view]ap-region id 102
[AC-WLAN-view]ap-auth mode no-auth
ap id 0 type-id 19 mac xxxx-xxxx-xxxx sn xxxxxxxxxxx (看AP的值)
region-id 101
ap id 1 type-id 19 mac xxxx-xxxx-xxxx sn xxxxxxxxxxx (看AP的值)
region-id 102
创建WMM模板
[AC]WLAN
[AC-WLAN-view]wmm-profile name wmm-1
quit
创建射频模板
[AC-WLAN-view]radio-profile name radio-1
wmm-profile name wmm-1
quit
绑定AP的射频
ap 0 radio 0 (0: 2.4GHZ 1: 5GHZ)
radio-profile name radio-1
quit
ap 1 radio 0
radio-profile name radio-1
配置AP的服务集
1) 创建安全模板
[AC-WLAN-view] security-profile name security-1 id 1
wep authentication-method open-system
security-policy wep
quit
2)创建流量模板
[AC-WLAN-view]traffic-profile name traffic-1
quit
3)创建服务集
[AC-wlan-view]service-set name huawei-1
ssid huawei-1
traffic-profile name traffic-1
security-profile name security-1
WLAN-ess 0
service vlan 101
[AC-wlan-view]service-set name huawei-2
ssid huawei-2
traffic-profile name traffic-1
security-profile name security-1
WLAN-ess 1
service vlan 102
quit
forward-mode direct-forward
配置VAP
[AC-WLAN-view]ap 0 radio 0
service-set name huawei-1
[AC-WLAN-view]ap 1 radio 0
service-set name huawei-2
quit
[AC-WLAN-view]commit ap 0
[AC-WLAN-view]commit ap 1
下载下来后,因为网卡的部分必须要重新设置:
[AC-6605-wlan-view]
undo ap-auth-mode
undo ap id 0
undo ap id 1
ap-auth-mode no-auth
等一阵子,在通讯过后,会找到ap0、ap1 的资讯 (MAC,SN)
**要特别注意哪一个是ap0 ,哪一个是ap1(比对MAC)
ap-region id 102
ap id 0
ap-region id 101
ap id 1
ap 0 radio 0
radio-profile name radio-1
ap 1 radio 0
radio-profile name radio-1
ap 0 radio 0
service-set name huawei-2
ap 1 radio 0
service-set name huawei-1
quit
commit ap 0
commit ap 1
(注意,在回应y的时候,要大写Y)
~若文章中有写错或无法执行,麻烦请大家发私讯给我,互相交流~