WX2540 AC是否可以控制通过VPN接入的远程AP?
AC型号 WA4320-ACN-C
(0)
可以
AP做三层上线就行,用Option 43
跨公网的话记得将AC做端口映射
如图1所示,集中式转发架构下,AC旁挂在L3 switch上,L3 switch做DHCP server为AP、Client和Host分配IP地址。需要实现无线客户端Client通过AP连接到AC上,并能与有线客户端Host互相访问,具体要求如下:
· 无线客户端Client通过VLAN 200接入网络,有线客户端Host通过VLAN 300接入网络;
· AC属于VLAN 100,AP属于VLAN 400,AC和AP之间跨三层网络建立连接。
· L2 switch 1通过PoE方式给AP供电。
图1 Fit AP通过三层网络注册到AC配置举例组网图
· 在L3 switch上开启DHCP server功能,AP、无线客户端Client和有线客户端Host都能通过DHCP server自动获取IP地址。
· 在AC上配置缺省路由下一跳为L3 switch。
· 在DHCP server上配置AP通过option方式获取AC的IP地址完成三层注册。
· 在L2 switch 1上开启PoE功能,为AP设备供电。
· 在AC上配置无线服务,确保Client可以通过配置的无线服务接入网络。
· 配置AP的序列号时请确保该序列号与AP唯一对应,AP的序列号可以通过AP设备背面的标签获取。
· 在L2 switch 1上开启PoE功能,为AP设备供电。
· 配置L2 switch 1和AP相连的接口为Access口。
(1) 配置AC的接口
# 创建VLAN 100及其对应的VLAN接口,并为该接口配置IP地址。AP将通过DHCP option43方式获取该IP地址与AC建立CAPWAP隧道。
<AC> system-view
[AC] vlan 100
[AC-vlan100] quit
[AC] interface vlan-interface100
[AC-Vlan-interface100] ip address 192.168.10.1 255.255.255.0
[AC-Vlan-interface100] quit
# 创建VLAN 200,AC需要使用该VLAN转发无线客户端数据报文。
[AC] vlan 200
[AC-vlan200] quit
# 配置AC和L3 switch相连的接口GigabitEthernet1/0/1为Trunk类型,禁止VLAN 1报文通过,允许VLAN 100和VLAN 200通过。
[AC] interface gigabitethernet 1/0/1
[AC-GigabitEthernet1/0/1] port link-type trunk
[AC-GigabitEthernet1/0/1] undo port trunk permit vlan 1
[AC-GigabitEthernet1/0/1] port trunk permit vlan 100 200
[AC-GigabitEthernet1/0/1] quit
(2) 配置三层路由
# 配置AC缺省路由下一跳为L3 switch的IP地址为192.168.10.83。
[AC] ip route-static 0.0.0.0 0 24 192.168.10.83
(3) 配置无线服务
# 创建无线服务模板1,并进入无线服务模板视图。
[AC] wlan service-template 1
# 配置SSID为service。
[AC-wlan-st-1] ssid service
# 使能服务模板。
[AC-wlan-st-1] service-template enable
[AC-wlan-st-1] quit
(4) 配置AP
# 创建手工AP,名称为officeap,型号名称为WA4320i-ACN。
[AC] wlan ap officeap model WA4320i-ACN
# 设置AP的序列号为210235A1GQB147031200。
[AC-wlan-ap-officeap] serial-id 210235A1GQB147031200
# 进入AP的Radio 1视图,并将无线服务模板1绑定到Radio 1上,并指定客户端上线的VLAN为VLAN 200。
[AC-wlan-ap-officeap] radio 1
[AC-wlan-ap-officeap-radio-1] service-template 1 vlan 200
# 开启Radio 1的射频功能。
[AC-wlan-ap-officeap-radio-1] radio enable
[AC-wlan-ap-officeap-radio-1] return
(1) 配置L3 switch的接口
# 创建VLAN 100和VLAN 400,并配置IP地址,用于转发AC和AP间的CAPWAP隧道内的流量。
<L3 switch> system-view
[L3 switch] vlan 100
[L3 switch-vlan100] quit
[L3 switch] interface vlan-interface 100
[L3 switch-Vlan-interface100] ip address 192.168.10.83 255.255.255.0
[L3 switch-Vlan-interface100] quit
[L3 switch] vlan 400
[L3 switch-vlan400] quit
[L3 switch] interface vlan-interface 400
[L3 switch-Vlan-interface400] ip address 192.168.40.1 255.255.255.0
[L3 switch-Vlan-interface400] quit
# 创建VLAN 200,并为该接口配置IP地址。Client使用该VLAN接入无线网络。
[L3 switch] vlan 200
[L3 switch-vlan200] quit
[L3 switch] interface vlan-interface 200
[L3 switch-Vlan-interface200] ip address 192.168.20.1 255.255.255.0
[L3 switch-Vlan-interface200] quit
# 创建VLAN 300,并为该接口配置IP地址。Host使用该VLAN与AC建立连接。
[L3 switch] vlan 300
[L3 switch-vlan300] quit
[L3 switch] interface vlan-interface 300
[L3 switch-Vlan-interface300] ip address 192.168.30.1 255.255.255.0
[L3 switch-Vlan-interface300] quit
# 配置L3 switch和AC相连的接口GigabitEthernet1/0/1为Trunk类型,允许VLAN100和VLAN 200通过。
[L3 switch] interface gigabitEthernet 1/0/1
[L3 switch-GigabitEthernet1/0/1] port link-type trunk
[L3 switch-GigabitEthernet1/0/1] port trunk permit vlan 100 200
[L3 switch-GigabitEthernet1/0/1] quit
# 配置L3 switch和L2 switch1和相连的接口GigabitEthernet1/0/2为Trunk类型,禁止VLAN 1报文通过,允许VLAN 400通过。
[L3 switch] interface gigabitEthernet 1/0/2
[L3 switch-GigabitEthernet1/0/2] port link-type trunk
[L3 switch-GigabitEthernet1/0/2] undo port trunk permit vlan 1
[L3 switch-GigabitEthernet1/0/2] port trunk permit vlan 400
[L3 switch-GigabitEthernet1/0/2] quit
# 配置L3 switch和L2 switch2相连的接口GigabitEthernet1/0/3为Trunk类型,禁止VLAN 1报文通过,允许VLAN 300通过。
[L3 switch] interfac gigabitEthernet 1/0/3
[L3 switch-GigabitEthernet1/0/3] port link-type trunk
[L3 switch-GigabitEthernet1/0/3] undo port trunk permit vlan 1
[L3 switch-GigabitEthernet1/0/3] port trunk permit vlan 300
[L3 switch-GigabitEthernet1/0/3] quit
(2) 配置DHCP server
# 开启DHCP server功能。
[L3 switch] dhcp enable
# 配置DHCP地址池1为AP分配地址范围为192.168.40.0/24,网关地址为192.168.40.1。
[L3 switch] dhcp server ip-pool 1
[L3 switch-dhcp-pool-1] network 192.168.40.0 mask 255.255.255.0
[L3 switch-dhcp-pool-1] gateway-list 192.168.40.1
# 配置DHCP Option43的内容为AC的十六进制IP地址。
[L3 switch-dhcp-pool-1] option 43 hex 8007000001c0a80a01
[L3 switch-dhcp-pool-1] quit
# 配置DHCP地址池2为Client分配地址范围为192.168.20.0/24,为Client分配的DNS服务器地址为网关地址(实际使用过程中请根据实际网络规划配置无线客户端的DNS服务器地址),网关地址为192.168.20.1。
[L3 switch] dhcp server ip-pool 2
[L3 switch-dhcp-pool-2] network 192.168.20.0 mask 255.255.255.0
[L3 switch-dhcp-pool-2] gateway-list 192.168.20.1
[L3 switch-dhcp-pool-2] dns-list 192.168.20.1
[L3 switch-dhcp-pool-2] quit
# 配置DHCP地址池3为Host分配地址范围为192.168.30.0 /24,为Host分配的DNS服务器地址为网关地址(实际使用过程中请根据实际网络规划配置Host的DNS服务器地址),网关地址为192.168.30.1。
[L3 switch] dhcp server ip-pool 3
[L3 switch-dhcp-pool-3] network 192.168.30.0 mask 255.255.255.0
[L3 switch-dhcp-pool-3] gateway-list 192.168.30.1
[L3 switch-dhcp-pool-3] dns-list 192.168.30.1
[L3 switch-dhcp-pool-3] quit
(1) 配置L2 switch 1的接口
# 创建VLAN 400,VLAN 400为AP接入的VLAN。
<L2 switch 1> system-view
[L2 switch 1] vlan 400
[L2 switch 1-vlan400] quit
# 配置L2 switch 1与L3 switch相连的接口GigabitEthernet1/0/1为Trunk类型,禁止VLAN 1报文通过,允许VLAN 400通过。
[L2 switch 1] interface gigabitEthernet 1/0/1
[L2 switch 1-GigabitEthernet1/0/1] port link-type trunk
[L2 switch 1-GigabitEthernet1/0/1] undo port trunk permit vlan 1
[L2 switch 1-GigabitEthernet1/0/1] port trunk permit vlan 400
[L2 switch 1-GigabitEthernet1/0/1] quit
# 配置L2 switch 1与AP相连的接口GigabitEthernet1/0/2为Access类型,允许VLAN 400通过,并开启PoE远程供电功能。
[L2 switch 1] interface gigabitEthernet 1/0/2
[L2 switch 1-GigabitEthernet1/0/2] port link-type access
[L2 switch 1-GigabitEthernet1/0/2] port access vlan 400
[L2 switch 1-GigabitEthernet1/0/2] poe enable
[L2 switch 1-GigabitEthernet1/0/2] quit
# 创建VLAN 300,VLAN 300为Host接入的VLAN。
<L2 switch 2> system-view
[L2 switch 2] vlan 300
[L2 switch 2-vlan300] quit
# 配置L2 switch 2与L3 switch相连的接口GigabitEthernet1/0/1为Trunk类型,禁止VLAN 1报文通过,允许VLAN 300通过。
[L2 switch 2] interface gigabitEthernet 1/0/1
[L2 switch 2-GigabitEthernet1/0/1] port link-type trunk
[L2 switch 2-GigabitEthernet1/0/1] undo port trunk permit vlan 1
[L2 switch 2-GigabitEthernet1/0/1] port trunk permit vlan 300
[L2 switch 2-GigabitEthernet1/0/1] quit
# 配置L2 switch 2与Host相连的接口GigabitEthernet1/0/2为Access类型,允许VLAN 300通过。
[L2 switch 2] interface gigabitEthernet 1/0/2
[L2 switch 2-GigabitEthernet1/0/2] port link-type access
[L2 switch 2-GigabitEthernet1/0/2] port access vlan 300
[L2 switch 2-GigabitEthernet1/0/2] quit
(1) 在AC上查看到AP注册信息
# 在AC上使用命令display wlan ap all查看AP,可以看到AP的状态是R/M,表明AP已经成功注册到AC。
<AC> display wlan ap all
Total number of APs: 1
Total number of connected APs: 1
Total number of connected manual APs: 1
Total number of connected auto APs: 0
Total number of connected common APs: 1
Total number of connected WTUs: 0
Total number of inside APs: 0
Maximum supported APs: 3072
Remaining APs: 3071
Total AP licenses: 512
Remaining AP licenses: 511
AP information
State : I = Idle, J = Join, JA = JoinAck, IL = ImageLoad
C = Config, DC = DataCheck, R = Run, M = Master, B = Backup
AP name AP ID State Model Serial ID
officeap 1 R/M WA4320i-ACN 210235A1GQB147031200
(2) 在AC上查看Client信息
# 在AC上使用命令display wlan client查看在线Client,可以看到Client已经连接到AP的radio1。
<AC> display wlan client
Total number of clients: 1
MAC address User name AP name R IP address VLAN
90b9-311a-bef6 N/A officeap 1 192.168.20.3 200
(0)
确认下具体组网吧
如果2个站点ipsec组网ip路由可达情况下,且AC和版本配套则方案可行。
(0)
好的 谢谢
就是两个IPSEC站点,请问AC如何发现并添加远端的AP?
如果是dhcp方式下发下option 43就行了。ap就能找到ac了。如果是手工配置ap地址 手工配置下ac地址即可。
我问的是我的这个WX2540H这个AC,我在AP管理界面找不到可以添加AP的IP的选项。
好的 谢谢
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明