配置AP接入GPON网络配置示例
组网图形
组网需求
华为Campus OptiX全光园区解决方案(简称POL),适用于企业、酒店、校园等各类行业场景。华为POL解决方案是基于无源光网络PON(Passive Optical Network)技术的局域网解决方案,拥有快速、简单和开放的组网特点,是局域网解决方案首选。
PON是一种点到多点(P2MP)结构的无源光网络,主流的PON技术包括BPON(Broadband Passive Optical Network)、EPON(Ethernet Passive Optical Network)和GPON几种技术。由于GPON具有传输距离远、带宽高、支持QoS提供灵活的全业务体验和分光特性降低运营维护成本的特点,所以GPON是目前应用范围最广的光接入主流技术。
GPON网络结构包括OLT、ODN和ONU网元:
- OLT(Optical Line Terminal)是放置在局端的终结PON协议的汇聚设备。
- ONU(Optical Network Unit)是位于客户端的给用户提供各种接口的用户侧单元或终端,OLT和ONU通过中间的无源光网络ODN连接起来进行互相通信。
ONT(Optical Network Terminal)是光网络终端,应用于最终用户,和ONU本质上没有区别,ONT可以理解为只有一个口的ONU。
- ODN(Optical Distribution Network)是由光纤、一个或多个无源分光器等无源光器件组成,在OLT和ONU间提供光通道,起着连接OLT和ONU的作用,具有很高的可靠性。
如图1所示,某企业采用GPON网络构建WLAN接入网络,以满足移动办公的最基本需求。且在覆盖区域内移动发生漫游时,不影响用户的业务使用。Switch和AP间采用GPON网络。AP上安装GPON光模块,视为ONU设备。ONU通过分光器和光纤连接OLT,由OLT终结PON协议。
报文在进入GPON网络时,转换为PON协议传输,出GPON网络时,终结PON协议,还原为原先的报文格式,GPON网络的存在不会影响AC上的配置。
数据规划
配置项 | 数据 |
---|---|
AC上的数据规划 | |
AP管理VLAN | VLAN100 |
STA业务VLAN | VLAN101 |
DHCP服务器 | AC作为DHCP服务器为AP和STA分配IP地址 |
AP的IP地址池 | 10.23.100.2~10.23.100.254/24 |
STA的IP地址池 | 10.23.101.3~10.23.101.254/24 |
AC的源接口IP地址 | VLANIF100:10.23.100.1/24 |
AP组 |
|
域管理模板 |
|
SSID模板 |
|
安全模板 |
|
VAP模板 |
|
OLT上的数据规划 | |
DBA模板 | DBA模板描述GPON的流量参数,T-CONT通过绑定DBA模板进行动态分配带宽,提高上行带宽利用率。
|
GPON ONU业务模板 | 业务模板为采用OMCI方式管理的ONU提供了业务配置渠道。ONU业务相关属性集中在业务模板中进行配置。
|
GPON ONU线路模板 | 线路模板描述了T-CONT和DBA模板的绑定关系、GEM Port与ONU侧业务的映射关系等。
|
业务虚端口参数 | 业务虚端口用于ONU的接入,通过ONU接到业务虚端口形成业务流,从而使ONU接入各种业务流。
|
操作步骤
- 配置OLT,在OLT上增加ONU并下发业务配置
# 登录OLT,OLT上行口0/10/0加入VLAN100。
<span style="color:#333333"><span style="background-color:#dddddd">huawei><strong>enable</strong> // 进入特权模式 huawei#<strong>config</strong> // 进入全局配置模式 huawei(config)#<strong>vlan 100 smart</strong> // 创建VLAN huawei(config)#<strong>port vlan 100 0/10 0</strong> //OLT上行口加入VLAN100,放通AP管理报文</span></span>
# 在OLT上增加ONU。
-
配置GPON ONU模板,包括DBA模板、线路模板、业务模板。
# 创建DBA模板。DBA模板类型为Type4,DBA模板名称为olt,最大带宽为9535488kbit/s。<span style="color:#333333"><span style="background-color:#dddddd">huawei(config)#<strong>dba-profile add profile-id 10 profile-name "olt" type4 max 9535488</strong></span></span>
# 创建模板编号为1的GPON ONU业务模板。配置ETH端口和POTS端口能力集为adaptive,系统将根据上线的ONU的实际能力进行自适应。<span style="color:#333333"><span style="background-color:#dddddd">huawei(config)#<strong>ont-srvprofile gpon profile-id 1 profile-name "wan" </strong> huawei(config-gpon-srvprofile-10)#<strong>ont-port pots adaptive 32 eth adaptive 8</strong> huawei(config-gpon-srvprofile-10)#<strong>port vlan eth 1 transparent</strong> //配置端口的报文转发模式为TAG透传模式,对报文不作任何处理,保持VLAN标签不变。 huawei(config-gpon-srvprofile-10)#<strong>commit</strong> //配置完成后,使用commit命令使配置的参数生效。 huawei(config-gpon-srvprofile-10)#<strong>quit</strong></span></span>
# 创建模板编号为1的ONU线路模板,并绑定T-CONT、DBA模板以及GEM Port。<span style="color:#333333"><span style="background-color:#dddddd">huawei(config)#<strong>ont-lineprofile gpon profile-id 1 profile-name "ont" </strong> huawei(config-gpon-lineprofile-10)#<strong>tcont 1 dba-profile-id 10</strong> //为线路模板绑定数据/上网业务的T-CONT和DBA模板。 huawei(config-gpon-lineprofile-10)#<strong>gem add 1 eth tcont 1</strong> //配置线路模板中GEM索引与T-CONT的绑定关系及相关属性,建立承载业务的GEM Port。 huawei(config-gpon-lineprofile-10)#<strong>gem mapping 1 0 vlan 100</strong> //建立GEM Port与ONU侧业务的映射,即建立GEM Port与ONU用户接口数据流的映射关系。 huawei(config-gpon-lineprofile-10)#<strong>commit</strong> //配置完成后,使用commit命令使配置的参数生效。 huawei(config-gpon-lineprofile-10)#<strong>quit</strong></span></span>
- 离线增加ONU。GPON端口0/3/0下接入ONU,添加的具体信息为:
- ONU编号:0
- 认证方式:序列号认证
- ONU SN:48575443000018EE
- 管理模式:OMCI
- 绑定的ONU线路模板序号:1
- ONU上行报文VLAN:100
<span style="color:#333333"><span style="background-color:#dddddd">huawei(config)#<strong>interface gpon 0/3</strong> //OLT下行口板槽 huawei(config-if-gpon-0/3)#<strong>port 0 ont-auto-find enable</strong> //使能PON端口的ONU自动发现功能 huawei(config-if-gpon-0/3)#<strong>display ont autofind all</strong> //查找当前自动发现的ONU设备 huawei(config-if-gpon-0/3)#<strong>ont add 0 0 sn-auth 48575443000018EE omci ont-lineprofile-id 1 ont-srvprofile-id 1</strong> <strong>ont-type 10g/10g desc "ONU_NO_DESCRIPTION"</strong> //添加ONU设备 huawei(config-if-gpon-0/3)#<strong>ont fec 0 0 enable</strong> //开启ONU FEC校验功能,增加OLT与ONU间数据传输的可靠性 huawei(config-if-gpon-0/3)#<strong>ont port native-vlan 0 0 eth 1 vlan 100 priority 0</strong> //ONU上行报文打上VLAN 100 huawei(config-if-gpon-0/3)#<strong>quit</strong></span></span>
- 创建业务虚端口。
- OLT上行报文VLAN:VLAN100
- ONU VLAN:VLAN100
- VLAN标签切换模式:透传方式,不进行任何VLAN变化。
<span style="color:#333333"><span style="background-color:#dddddd">huawei(config)#<strong>service-port 0 vlan 100 gpon 0/3/0 ont 0 gemport 1 multi-service user-vlan 100 tag-transform translate</strong></span></span>
-
- 配置AC与其它网络设备互通
# 配置AC的接口GE0/0/1加入管理VLAN100和业务VLAN101。
<span style="color:#333333"><span style="background-color:#dddddd"><HUAWEI> <strong>system-view</strong> [HUAWEI] <strong>sysname AC</strong> [AC] <strong>vlan batch 100 101</strong> [AC] <strong>interface gigabitethernet 0/0/1</strong> [AC-GigabitEthernet0/0/1] <strong>port link-type trunk</strong> [AC-GigabitEthernet0/0/1] <strong>undo port trunk allow-pass vlan 1</strong> [AC-GigabitEthernet0/0/1] <strong>port trunk allow-pass vlan 100 101 </strong> [AC-GigabitEthernet0/0/1] <strong>quit</strong></span></span>
# 配置Switch的接口GE0/0/1加入管理VLAN100和业务VLAN101,GE0/0/2加入VLAN 100,GE0/0/3加入VLAN 101。
<span style="color:#333333"><span style="background-color:#dddddd"><HUAWEI> <strong>system-view</strong> [HUAWEI] <strong>sysname Switch</strong> [Switch] <strong>vlan batch 100 101</strong> [Switch] <strong>interface gigabitethernet 0/0/1</strong> [Switch-GigabitEthernet0/0/1] <strong>port link-type trunk</strong> [Switch-GigabitEthernet0/0/1] <strong>port trunk allow-pass vlan 100 101</strong> [Switch-GigabitEthernet0/0/1] <strong>quit</strong> [Switch] <strong>interface gigabitethernet 0/0/2</strong> [Switch-GigabitEthernet0/0/2] <strong>port link-type trunk</strong> [Switch-GigabitEthernet0/0/2] <strong>port trunk allow-pass vlan 100</strong> [Switch-GigabitEthernet0/0/2] <strong>quit</strong> [Switch] <strong>interface gigabitethernet 0/0/3</strong> [Switch-GigabitEthernet0/0/3] <strong>port link-type trunk</strong> [Switch-GigabitEthernet0/0/3] <strong>port trunk allow-pass vlan 101</strong> [Switch-GigabitEthernet0/0/3] <strong>quit</strong></span></span>
# 配置Router的接口GE1/0/0加入VLAN101,创建接口VLANIF101并配置IP地址为10.23.101.2/24。<span style="color:#333333"><span style="background-color:#dddddd"><Huawei> <strong>system-view</strong> [Huawei] <strong>sysname Router</strong> [Router] <strong>vlan batch 101</strong> [Router] <strong>interface gigabitethernet 1/0/0</strong> [Router-GigabitEthernet1/0/0] <strong>port link-type trunk</strong> [Router-GigabitEthernet1/0/0] <strong>port trunk allow-pass vlan 101</strong> [Router-GigabitEthernet1/0/0] <strong>quit</strong> [Router] <strong>interface vlanif 101</strong> [Router-Vlanif101] <strong>ip address 10.23.101.2 24</strong> [Router-Vlanif101] <strong>quit</strong></span></span>
- 配置DHCP服务器为STA和AP分配IP地址
# 在AC上配置VLANIF100接口为AP提供IP地址,配置VLANIF101接口为STA提供IP地址,并配置下一跳为Router的缺省路由。DNS服务器地址请根据实际需要配置。常用配置方法如下:
- 接口地址池场景,需要在VLANIF接口视图下执行命令dhcp server dns-list ip-address &<1-8>。
- 全局地址池场景,需要在IP地址池视图下执行命令dns-list ip-address &<1-8>。
<span style="color:#333333"><span style="background-color:#dddddd">[AC] <strong>dhcp enable</strong> [AC] <strong>interface vlanif 100</strong> [AC-Vlanif100] <strong>ip address 10.23.100.1 24</strong> [AC-Vlanif100] <strong>dhcp select interface</strong> [AC-Vlanif100] <strong>quit</strong> [AC] <strong>interface vlanif 101</strong> [AC-Vlanif101] <strong>ip address 10.23.101.1 24</strong> [AC-Vlanif101] <strong>dhcp select interface</strong> [AC-Vlanif101] <strong>dhcp server excluded-ip-address 10.23.101.2</strong> [AC-Vlanif101] <strong>quit</strong> [AC] <strong>ip route-static 0.0.0.0 0.0.0.0 10.23.101.2</strong></span></span>
- 配置AP上线
# 创建AP组,用于将相同配置的AP都加入同一AP组中。
<span style="color:#333333"><span style="background-color:#dddddd">[AC] <strong>wlan</strong> [AC-wlan-view] <strong>ap-group name ap-group1</strong> [AC-wlan-ap-group-ap-group1] <strong>quit</strong></span></span>
# 创建域管理模板,在域管理模板下配置AC的国家码并在AP组下引用域管理模板。<span style="color:#333333"><span style="background-color:#dddddd">[AC-wlan-view] <strong>regulatory-domain-profile name default</strong> [AC-wlan-regulate-domain-default] <strong>country-code cn</strong> [AC-wlan-regulate-domain-default] <strong>quit</strong> [AC-wlan-view] <strong>ap-group name ap-group1</strong> [AC-wlan-ap-group-ap-group1] <strong>regulatory-domain-profile default</strong> Warning: Modifying the country code will clear channel, power and antenna gain configurations of the radio and reset the AP. Continue?[Y/N]:<strong>y</strong> [AC-wlan-ap-group-ap-group1] <strong>quit</strong> [AC-wlan-view] <strong>quit</strong></span></span>
# 配置AC的源接口。<span style="color:#333333"><span style="background-color:#dddddd">[AC] <strong>capwap source interface vlanif 100</strong></span></span>
# 在AC上离线导入AP,并将AP加入AP组“ap-group1”中。假设AP的MAC地址为60de-4476-e360,并且根据AP的部署位置为AP配置名称,便于从名称上就能够了解AP的部署位置。例如MAC地址为60de-4476-e360的AP部署在1号区域,命名此AP为area_1。ap auth-mode命令缺省情况下为MAC认证,如果之前没有修改其缺省配置,可以不用执行ap auth-mode mac-auth。
<span style="color:#333333"><span style="background-color:#dddddd">[AC] <strong>wlan</strong> [AC-wlan-view] <strong>ap auth-mode mac-auth</strong> [AC-wlan-view] <strong>ap-id 0 ap-mac 60de-4476-e360</strong> [AC-wlan-ap-0] <strong>ap-name area_1</strong> Warning: This operation may cause AP reset. Continue? [Y/N]:<strong>y</strong> [AC-wlan-ap-0] <strong>ap-group ap-group1</strong> Warning: This operation may cause AP reset. If the country code changes, it will clear channel, power and antenna gain configuration s of the radio, Whether to continue? [Y/N]:<strong>y</strong> [AC-wlan-ap-0] <strong>quit</strong></span></span>
# 将AP上电后,当执行命令display ap all查看到AP的“State”字段为“nor”时,表示AP正常上线。<span style="color:#333333"><span style="background-color:#dddddd">[AC-wlan-view] <strong>display ap all</strong> Total AP information: nor : normal [1] Extra information: P : insufficient power supply ----------------------------------------------------------------------------------------------------- ID MAC Name Group IP Type State STA Uptime ExtraInfo ----------------------------------------------------------------------------------------------------- 0 60de-4476-e360 area_1 ap-group1 10.23.100.254 AirEngine 6760-X1 nor 0 10S - ----------------------------------------------------------------------------------------------------- Total: 1</span></span>
- 配置WLAN业务参数
# 创建名为“wlan-net”的安全模板,并配置安全策略。
举例中以配置WPA-WPA2+PSK+AES的安全策略为例,密码为“a1234567”,实际配置中请根据实际情况,配置符合实际要求的安全策略。
<span style="color:#333333"><span style="background-color:#dddddd">[AC-wlan-view] <strong id="ZH-CN_TASK_0269710370__zh-cn_task_0176912351_b1991067776190921">security-profile name wlan-net</strong> [AC-wlan-sec-prof-wlan-net] <strong id="ZH-CN_TASK_0269710370__zh-cn_task_0176912351_b851752672190921">security wpa-wpa2 psk pass-phrase a1234567 aes</strong> [AC-wlan-sec-prof-wlan-net] <strong id="ZH-CN_TASK_0269710370__zh-cn_task_0176912351_b337241812190921">quit</strong></span></span>
# 创建名为“wlan-net”的SSID模板,并配置SSID名称为“wlan-net”。<span style="color:#333333"><span style="background-color:#dddddd">[AC-wlan-view] <strong id="ZH-CN_TASK_0269710370__zh-cn_task_0176912351_b69022931190921">ssid-profile name wlan-net</strong> [AC-wlan-ssid-prof-wlan-net] <strong id="ZH-CN_TASK_0269710370__zh-cn_task_0176912351_b36723145190921">ssid wlan-net</strong> [AC-wlan-ssid-prof-wlan-net] <strong id="ZH-CN_TASK_0269710370__zh-cn_task_0176912351_b1738903244190921">quit</strong></span></span>
# 创建名为“wlan-net”的VAP模板,配置业务数据转发模式、业务VLAN,并且引用安全模板和SSID模板。<span style="color:#333333"><span style="background-color:#dddddd">[AC-wlan-view] <strong id="ZH-CN_TASK_0269710370__zh-cn_task_0176912351_b1922555320190921">vap-profile name wlan-net</strong> [AC-wlan-vap-prof-wlan-net] <strong id="ZH-CN_TASK_0269710370__zh-cn_task_0176912351_b13690656190921">forward-mode tunnel</strong> [AC-wlan-vap-prof-wlan-net] <strong id="ZH-CN_TASK_0269710370__zh-cn_task_0176912351_b1155220284190921">service-vlan vlan-id 101</strong> [AC-wlan-vap-prof-wlan-net] <strong id="ZH-CN_TASK_0269710370__zh-cn_task_0176912351_b1928564414190921">security-profile wlan-net</strong> [AC-wlan-vap-prof-wlan-net] <strong id="ZH-CN_TASK_0269710370__zh-cn_task_0176912351_b889800077190921">ssid-profile wlan-net</strong> [AC-wlan-vap-prof-wlan-net] <strong id="ZH-CN_TASK_0269710370__zh-cn_task_0176912351_b1869922190190921">quit</strong></span></span>
# 配置AP组引用VAP模板,AP上射频0和射频1都使用VAP模板“wlan-net”的配置。<span style="color:#333333"><span style="background-color:#dddddd">[AC-wlan-view] <strong id="ZH-CN_TASK_0269710370__zh-cn_task_0176912351_b2051092768190921">ap-group name ap-group1</strong> [AC-wlan-ap-group-ap-group1] <strong id="ZH-CN_TASK_0269710370__zh-cn_task_0176912351_b1753511747190921">vap-profile wlan-net wlan 1 radio 0</strong> [AC-wlan-ap-group-ap-group1] <strong id="ZH-CN_TASK_0269710370__zh-cn_task_0176912351_b1212706755190921">vap-profile wlan-net wlan 1 radio 1</strong> [AC-wlan-ap-group-ap-group1] <strong id="ZH-CN_TASK_0269710370__zh-cn_task_0176912351_b729861449190921">quit</strong></span></span>
- 验证配置结果
WLAN业务配置会自动下发给AP,配置完成后,通过执行命令display vap ssid wlan-net查看如下信息,当“Status”项显示为“ON”时,表示AP对应的射频上的VAP已创建成功。
<span style="color:#333333"><span style="background-color:#dddddd">[AC-wlan-view] <strong id="ZH-CN_TASK_0269710370__zh-cn_task_0176912351_b367333496190921">display vap ssid wlan-net</strong> WID : WLAN ID -------------------------------------------------------------------------------- AP ID AP name RfID WID BSSID Status Auth type STA SSID -------------------------------------------------------------------------------- 0 area_1 0 1 60DE-4476-E360 <strong id="ZH-CN_TASK_0269710370__zh-cn_task_0176912351_b1874482883190921">ON</strong> WPA/WPA2-PSK 0 wlan-net 0 area_1 1 1 60DE-4476-E370 <strong id="ZH-CN_TASK_0269710370__zh-cn_task_0176912351_b1628414885190921">ON</strong> WPA/WPA2-PSK 0 wlan-net ------------------------------------------------------------------------------- Total: 2</span></span>
STA搜索到名为“wlan-net”的无线网络,输入密码“a1234567”并正常关联后,在AC上执行display station ssid wlan-net命令,可以查看到用户已经接入到无线网络“wlan-net”中。
<span style="color:#333333"><span style="background-color:#dddddd">[AC-wlan-view] <strong id="ZH-CN_TASK_0269710370__zh-cn_task_0176912351_b1120837202190921">display station ssid wlan-net</strong> Rf/WLAN: Radio ID/WLAN ID Rx/Tx: link receive rate/link transmit rate(Mbps) --------------------------------------------------------------------------------- STA MAC AP ID Ap name Rf/WLAN Band Type Rx/Tx RSSI VLAN IP address --------------------------------------------------------------------------------- e019-1dc7-1e08 0 area_1 1/1 5G 11n 46/59 -68 101 10.23.101.254 --------------------------------------------------------------------------------- Total: 1 2.4G: 0 5G: 1</span></span>
配置文件
-
Switch的配置文件
<span style="color:#333333"><span style="background-color:#dddddd"># sysname Switch # vlan batch 100 101 # interface GigabitEthernet0/0/1 port link-type trunk port trunk allow-pass vlan 100 101 # interface GigabitEthernet0/0/2 port link-type trunk port trunk allow-pass vlan 100 # interface GigabitEthernet0/0/3 port link-type trunk port trunk allow-pass vlan 101 # return</span></span>
- Router的配置文件
<span style="color:#333333"><span style="background-color:#dddddd"># sysname Router # vlan batch 101 # interface Vlanif101 ip address 10.23.101.2 255.255.255.0 # interface GigabitEthernet1/0/0 port link-type trunk port trunk allow-pass vlan 101 # return</span></span>
-
AC的配置文件
<span style="color:#333333"><span style="background-color:#dddddd"># sysname AC # vlan batch 100 to 101 # dhcp enable # interface Vlanif100 ip address 10.23.100.1 255.255.255.0 dhcp select interface # interface Vlanif101 ip address 10.23.101.1 255.255.255.0 dhcp select interface dhcp server excluded-ip-address 10.23.101.2 # ip route-static 0.0.0.0 0.0.0.0 10.23.101.2 # interface GigabitEthernet0/0/1 port link-type trunk port trunk allow-pass vlan 100 to 101 # capwap source interface vlanif100 # wlan security-profile name wlan-net security wpa-wpa2 psk pass-phrase %^%#m"tz0f>~7.[`^6RWdzwCy16hJj/Mc!,}s`X*B]}A%^%# aes ssid-profile name wlan-net ssid wlan-net vap-profile name wlan-net forward-mode tunnel service-vlan vlan-id 101 ssid-profile wlan-net security-profile wlan-net regulatory-domain-profile name default ap-group name ap-group1 radio 0 vap-profile wlan-net wlan 1 radio 1 vap-profile wlan-net wlan 1 ap-id 0 type-id 127 ap-mac 60de-4476-e360 ap-sn 210235554710CB000042 ap-name area_1 ap-group ap-group1 # return</span></span>
-
OLT的配置文件
<span style="color:#333333"><span style="background-color:#dddddd">[global-config] <global-config> dba-profile add profile-id 10 profile-name "olt" type4 max 9535488 ont-srvprofile gpon profile-id 1 profile-name "wan" ont-port pots adaptive 32 eth adaptive 8 port vlan eth 1 transparent commit ont-lineprofile gpon profile-id 1 profile-name "ont" tcont 1 dba-profile-id 10 gem add 1 eth tcont 1 gem mapping 1 0 vlan 100 commit quit # [vlan-config] <vlan-config> vlan 100 smart port vlan 100 0/10 0 # [gpon] <gpon-0/3> interface gpon 0/3 port 0 ont-auto-find enable ont add 0 0 sn-auth "485754438711A4A3" omci ont-lineprofile-id 1 ont-srvprofile-id 1 ont-type 10g/10g desc "ONT_NO_DESCRIPTION" ont fec 0 0 enable ont port native-vlan 0 0 eth 1 vlan 100 priority 0 # [bbs-config] <bbs-config> service-port 0 vlan 100 gpon 0/3/0 ont 0 gemport 1 multi-service user-vlan 100 tag-transform translate</span></span>