光AP业务部署

解决方案 
1. 配置DBA模板,线路模板,业务模板。

(i)dba-profile add profile-id 10  type4 max 1229952  

(ii)ont-lineprofile gpon profile-id 970 
 omcc encrypt on
 tcont 1 dba-profile-id 10
 gem add 6 eth tcont 1 encrypt on
 gem mapping 6 0 vlan 100
 gem mapping 6 1 vlan 4078
 commit
 quit

(iii) ont-srvprofile gpon profile-id 315 
 ont-port pots adaptive 32 eth 4 catv adaptive 8
 commit

 

2. 添加ONT

interface gpon 0/13
ont add 15 2 sn-auth "485754439CD42FAA" omci ont-lineprofile-id 970 ont-srvprofile-id 315

WLAN 配置

OLT作为AC,同时作为AP管理网段的DHCP服务器,给光AP分配地址。

1. 配置DHCP如下

interface Vlanif4078
ip address 192.168.128.1 255.255.240.0
dhcp select interface
dhcp server ip-range 192.168.128.2 192.168.143.254     //配置可分配的地址池
dhcp server mask 255.255.240.0
dhcp server gateway-list 192.168.128.1
dhcp server option 43 sub-option 3 ascii "192.168.128.1"   //配置option 43字段后,AP只会对option 43通告的AC IP地址发送单播Discovery Request报文。也就是通过这个命令AP知道AC的地址是多少。然后向AC发送交互报文。

注意:

对于V100R021C10版本,必须要使用security anti-ipattack disable命令去使能防IP攻击功能,否则OLT会丢弃从用户侧发来的目的地址是OLT IP地址的报文,造成AP发送的CAPWAP报文全部被丢弃,AP无法上线。
2. 配置OLT的capwap管理通道的源接口及使能capwap功能

sysman server source capwap vlanif 4078

sysman service capwap enable

3. 配置ONT的管理IP

interface gpon 0/13
ont add 15 2 sn-auth "485754439CD42FAA" omci ont-lineprofile-id 970 ont-srvprofile-id 315  ///添加ONT的命令
ont ipconfig 15 2 ip-index 3 dhcp vlan 4078      ///配置ONT的IP地址通过DHCP方式获取
ont capwap-config 15 2 ip-index 3 ac-ip dhcp   ///配置ONT通过DHCP方式获取AC的地址,也就是上面的option 43参数获取

4. 配置AP管理vlan的业务流

service-port  vlan 4078 gpon 0/13/15 ont 2 gemport 6 multi-service user-vlan 4078 tag-transform translate

以上配置完成后,AP会自动获取到IP地址,并通过DHCP获取到AC地址,注册上线,查询命令如下。

display   ont wan-info 0/13 15 2   //查询ONT获取到WAN IP

进入WLAN视图    ///AP状态显示nor就是正常的

wlan

display ap all

ID     MAC             IP                Type   State   STA
      Name                              Group
      Uptime
      Ont-Description
2      983f-60e0-2f80  192.168.128.2     W626E  nor     0
      485754439CD42FAA                  default
      14H:11M:32S
      Library

 

AP上线后,下一步配置无线业务,无线业务的配置方式与华为数通AP的配置类似
进入WLAN视图,配置SSID模板,VAP模板,安全模板。
9.71.42.81(config)#wlan
9.71.42.81(config-wlan)#security-profile name wlan-test   //配置安全模板
9.71.42.81(config-wlan-sec-prof-wlan-test)#security wpa2 psk pass-phrase aes
Please configure the key(8-63):                              //这里输入wifi密码


9.71.42.81(config-wlan)#ssid-profile name wlan-test  //配置SSID模板
9.71.42.81(config-wlan-ssid-prof-wlan-test)#ssid test  //配置SSID名称

9.71.42.81(config-wlan)# vap-profile name wlan-test  //配置vap模板
9.71.42.81(config-wlan-vap-prof-wlan-test)#service-vlan vlan-id 100  //配置无线业务vlan 100
9.71.42.81(config-wlan-vap-prof-wlan-test)# security-profile wlan-test // 调用安全模板
9.71.42.81(config-wlan-vap-prof-wlan-test)#ssid-profile wlan-test   //调用SSID模板

AP组下调用配置的VAP模板

9.71.42.81(config-wlan)#

9.71.42.81(config-wlan)#ap-group name default      /// 进入AP组

9.71.42.81(config-wlan-ap-group-default)#vap-profile wlan-test wlan 1 radio all       /// 调用vap模板,radio 后的参数all表示2.4G和5G射频同时。0表示2.4G,1表示5G。

config视图下配置无线业务vlan的业务流

service-port  vlan 100 gpon 0/13/15 ont 2 gemport 6 multi-service user-vlan 100 tag-transform translate

配置完成后,可以在wlan视图查看对应的射频有没有生成。
9.71.42.81(config-wlan)#display  vap ap-group default   查看对应AP组的VAP模板
9.71.42.81(config-wlan)#display  radio ap-id 2     //查看对应AP的射频
9.71.42.81(config)#display  ont  wlan-info 0/13/15 2   //也可以通过此命令查看对应ONT的WIFI信息
 ------------------------------------------------------------------------------
 F/S/P                    : 0/13/15
 ONT ID                   : 2
 The total number of SSID : 2
 ------------------------------------------------------------------------------
 SSID Index               : 1
 SSID                     : test
 Wireless Standard        : IEEE 802.11b/g/n
 Administrative state     : enable
 Operational state        : up
 Maximum associate number : 64
 Current associate number : 0
 ------------------------------------------------------------------------------
 SSID Index               : 5
 SSID                     : test
 Wireless Standard        : IEEE 802.11ac
 Administrative state     : enable
 Operational state        : up
 Maximum associate number : 64
 Current associate number : 0
 ------------------------------------------------------------------------------

 

总结:光AP场景,无线业务为直接转发模式,AP的管理地址由OLT分配,OLT是AC的角色。也就是光AP与OLT之间建立AP的capwap通道。

光AP到OLT之间建立无线二层通道,只透传无线业务vlan,由上层核心给无线终端分配IP地址。

News.

行业资讯