




已阅读5页,还剩1页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
【每周一问】如何配置AP的上线方式? 如何配置AP的上线方式? 在AP启动后,AP上线管理模块会根据配置来决定AP的上线类型,根据不同上线类型来获取AP IP、网关IP、AC IP。当获取这些信息后发起CAPWAP建链过程。当前AP支持三种方式,DHCP、Static及PPPoE,如何配置实现呢? AC作为DHCP为AP分配IP地址:AC上的配置如下 1. #配置AC全局参数(运营商标识、ID、国家码)方便识别和管理。 AC wlan ac-global ac id 1 carrier id ctc AC wlan ac-global country-code cn #创建VLANIF接口,配置其IP地址作为数据转发的三层接口,使能DHCP服务功能。 Vlanif 100为AP分配IP地址,Vlanif 101为区域A的STA分配IP地址,Vlanif 102为区域B的STA分配IP地址。 AC dhcp enable AC interface vlanif 100 AC-Vlanif100 ip address 192.168.10.1 24 AC-Vlanif100 dhcp select interface AC-Vlanif100 quit AC interface vlanif 101 AC-Vlanif101 ip address 192.168.1.1 24 AC-Vlanif101 dhcp select interface AC-Vlanif101 quit AC interface vlanif 102 AC-Vlanif102 ip address 192.168.2.1 24 AC-Vlanif102 dhcp select interface AC-Vlanif102 quit 说明: AP需要获取一个IP地址才能与AC建立连接,可以从AC、BRAS或DHCP服务器获取IP地址。此处配置AC为DHCP服务器,AP从AC上获取IP地址。 #配置AC的源接口,用于AP和AC之间建立隧道通信。 AC wlan AC-wlan-view wlan ac source interface vlanif 100 说明: 每台AC设备都需要指定AC的源IP地址,使得该AC设备下接入AP学到的AC地址都是指定的AC源IP地址。 2. 配置AP并上线。 #配置AP的认证方式为mac认证。 AC-wlan-view ap-auth-mode mac-auth # 查询AP的设备类型 AC-wlan-view display ap-type all All AP types information:- ID Type - 0 WA601 1 WA631 6 WA603SN 7 WA603DN 8 WA633SN 11 WA603DE 12 WA653DE 14 WA653SN 17 AP6010SN-GN 19 AP6010DN-AGN 21 AP6310SN-GN 23 AP6510DN-AGN 25 AP6610DN-AGN - Total number: 13 # 根据查询到的AP设备类型ID(WA603SN type-id为6),离线添加AP AC-wlan-view ap id 0 type-id 6 mac 286E-D42B-0CE5 AC-wlan-ap-0 quit AC-wlan-view ap id 1 type-id 6 mac 0025-9EE8-DF70 AC-wlan-ap-1 quit # 查看AP的上线状态 AC-wlan-view display ap all All AP information(Normal-2,UnNormal-0):- AP AP AP Profile Region AP ID Type MAC ID ID State - 0 WA603SN 286E-D42B-0CE5 0 0 normal 1 WA603SN 0025-9EE8-DF70 0 0 normal - Total number: 2#配置AP域ID分别为101和102。 AC-wlan-view ap-region id 101 AC-wlan-ap-region-101 quit AC-wlan-view ap-region id 102 AC-wlan-ap-region-102 quit #配置AP1加入AP域101,AP2加入AP域102。 AC-wlan-view ap id 0 AC-wlan-ap-0 region-id 101 AC-wlan-ap-0 quit AC-wlan-view ap id 1 AC-wlan-ap-1 region-id 102 AC-wlan-ap-1 quit 3. 配置WLAN-ESS虚接口。 AC interface wlan-ess 0 AC-WLAN-ESS0 dhcp enable AC-WLAN-ESS0 port link-type hybrid AC-WLAN-ESS0 port hybrid untagged vlan 101 AC-WLAN-ESS0 quit AC interface wlan-ess 1 AC-WLAN-ESS1 dhcp enable AC-WLAN-ESS1 port link-type hybrid AC-WLAN-ESS1 port hybrid untagged vlan 102 AC-WLAN-ESS1 quit 4. 配置AP对应的射频。 #创建名为“wmm-1”的WMM模板,参数采用默认配置。 AC wlan AC-wlan-view wmm-profile name wmm-1 id 1 AC-wlan-wmm-prof-wmm-1 quit #创建名为“radio-1”的射频模板,绑定WMM模板“wmm-1”。 AC-wlan-view radio-profile name radio-1 AC-wlan-radio-prof-radio-1 wmm-profile name wmm-1 AC-wlan-radio-prof-radio-1 quit #将AP1和AP2对应的射频绑定射频模板“radio-1”。 AC-wlan-view ap 0 radio 0 AC-wlan-radio-0/0 radio-profile name radio-1 AC-wlan-radio-0/0 quit AC-wlan-view ap 1 radio 0 AC-wlan-radio-1/0 radio-profile name radio-1 AC-wlan-radio-1/0 quit 5. 配置AP对应的服务集。 #创建安全模板。 安全模板名为“security-1”,认证模式为WEP认证,开放认证,不加密。 AC-wlan-view security-profile name security-1 id 1 AC-wlan-sec-prof-security-1 wep authentication-method open-system AC-wlan-sec-prof-security-1 security-policy wep AC-wlan-sec-prof-security-1 quit #配置QoS策略,创建流量模板。 流量模板名为“traffic-1”,参数采用缺省配置。 AC-wlan-view traffic-profile name traffic-1 AC-wlan-traffic-prof-traffic-1 quit #分别创建与AP1及AP2对应的服务集,并绑定流量模板及安全模板、WLAN-ESS接口。 AC-wlan-view service-set name huawei-1 AC-wlan-service-set-huawei-1 ssid huawei-1 AC-wlan-service-set-huawei-1 traffic-profile name traffic-1 AC-wlan-service-set-huawei-1 security-profile name security-1 AC-wlan-service-set-huawei-1 wlan-ess 0 AC-wlan-service-set-huawei-1 service-vlan 101 AC-wlan-service-set-huawei-1 forward-mode direct-forward AC-wlan-service-set-huawei-1 quit AC-wlan-view service-set name huawei-2 AC-wlan-service-set-huawei-2 ssid huawei-2 AC-wlan-service-set-huawei-2 traffic-profile name traffic-1 AC-wlan-service-set-huawei-2 security-profile name security-1 AC-wlan-service-set-huawei-2 wlan-ess 1 AC-wlan-service-set-huawei-2 service-vlan 102 AC-wlan-service-set-huawei-2 forward-mode direct-forward AC-wlan-service-set-huawei-2 quit 6. 配置AP对应的VAP,下发WLAN服务。 #将AP1和AP2对应的射频绑定服务集“Huawei-1”和“Huawei-2”。 AC-wlan-view ap 0 radio 0 AC-wlan-radio-0/0 service-set name huawei-1 AC-wlan-radio-0/0 quit AC-wlan-view ap 1 radio 0 AC-wlan-radio-1/0 service-set name huawei-2 AC-wlan-radio-1/0 quit #下发AP的WLAN服务。 AC-wlan-view commit ap 0 AC-wlan-view commit ap 1 验证配置结果 7. AP1和AP2下的无线接入用户可以搜索到SSID标识为huawei-1和huawei-2的WLAN网络并正常上线。 配置以DHCP模式上线1. 主机以Telnet方式登录APlogin:adminPassword: / 默认密码为admin #2. 配置以DHCP模式上线 # cliEnterprise AP# configure interface ethernet / 进入有线配置模式Enter Ethernet configuration commands,one per line。Enterprise AP(if-ethernet)# ip mode dhcp / 配置上线模式Please reboot the AP,configuration will take effectEnterprise AP(if-ethernet) #3. 重启AP,使配置生效 # reboot配置以STATIC模式上线1. 主机以Telnet方式登录APlogin:adminPassword: / 默认密码为admin #2. 配置以STATIC模式上线,需要配置的项目有:与AP建立连接的AC的IP地址以及AP的IP、掩码地址、网关,其中AP的IP地址和掩码地址不可缺省,二层时网关可不配。 # cliEnterprise AP# configure interface ethernet / 进入有线配置模式Enter Ethernet configuration commands,one per line。Enterprise AP(if-ethernet)# ip mode static / 配置上线模式Enterprise AP(if-ethernet)# ac iplist 1.1.1.1 / 配置与AP相连的AC的地址Enterprise AP(if-ethernet)# ip address 192.168.60.2 255.255.255.0 192.168.60.1 / 配置AP的地址Please reboot the AP,configuration will take effectEnterprise AP(if-ethernet) #3. 重启AP,使配置生效 # reboot 配置以PPPoE模式上线1. 主机以Telnet方式登录APlogin:adminPassword: / 默认密码为admin #2. 配置以PPPoE模式上线 # cliEnterprise AP# configure interface ethernet / 进入有线配置模式Enter Ethernet configuration commands,one per line。Enterprise AP(
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
评论
0/150
提交评论