组网图形
华为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网元:
ONT(Optical Network Terminal)是光网络终端,应用于最终用户,和ONU本质上没有区别,ONT可以理解为只有一个口的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接入各种业务流。
|
- huawei>enable // 进入特权模式
- huawei#config // 进入全局配置模式
- huawei(config)#vlan 100 smart // 创建VLAN
- huawei(config)#port vlan 100 0/10 0 //OLT上行口加入VLAN100,放通AP管理报文
# 在OLT上增加ONU。
配置GPON ONU模板,包括DBA模板、线路模板、业务模板。
huawei(config)#dba-profile add profile-id 10 profile-name "olt" type4 max 9535488
- huawei(config)#ont-srvprofile gpon profile-id 1 profile-name "wan"
- huawei(config-gpon-srvprofile-10)#ont-port pots adaptive 32 eth adaptive 8
- huawei(config-gpon-srvprofile-10)#port vlan eth 1 transparent //配置端口的报文转发模式为TAG透传模式,对报文不作任何处理,保持VLAN标签不变。
- huawei(config-gpon-srvprofile-10)#commit //配置完成后,使用commit命令使配置的参数生效。
- huawei(config-gpon-srvprofile-10)#quit
- huawei(config)#ont-lineprofile gpon profile-id 1 profile-name "ont"
- huawei(config-gpon-lineprofile-10)#tcont 1 dba-profile-id 10 //为线路模板绑定数据/上网业务的T-CONT和DBA模板。
- huawei(config-gpon-lineprofile-10)#gem add 1 eth tcont 1 //配置线路模板中GEM索引与T-CONT的绑定关系及相关属性,建立承载业务的GEM Port。
- huawei(config-gpon-lineprofile-10)#gem mapping 1 0 vlan 100 //建立GEM Port与ONU侧业务的映射,即建立GEM Port与ONU用户接口数据流的映射关系。
- huawei(config-gpon-lineprofile-10)#commit //配置完成后,使用commit命令使配置的参数生效。
- huawei(config-gpon-lineprofile-10)#quit
- huawei(config)#interface gpon 0/3 //OLT下行口板槽
- huawei(config-if-gpon-0/3)#port 0 ont-auto-find enable //使能PON端口的ONU自动发现功能
- huawei(config-if-gpon-0/3)#display ont autofind all //查找当前自动发现的ONU设备
- huawei(config-if-gpon-0/3)#ont add 0 0 sn-auth 48575443000018EE omci ont-lineprofile-id 1 ont-srvprofile-id 1 ont-type 10g/10g desc "ONU_NO_DESCRIPTION" //添加ONU设备
- huawei(config-if-gpon-0/3)#ont fec 0 0 enable //开启ONU FEC校验功能,增加OLT与ONU间数据传输的可靠性
- huawei(config-if-gpon-0/3)#ont port native-vlan 0 0 eth 1 vlan 100 priority 0 //ONU上行报文打上VLAN 100
- huawei(config-if-gpon-0/3)#quit
huawei(config)#service-port 0 vlan 100 gpon 0/3/0 ont 0 gemport 1 multi-service user-vlan 100 tag-transform translate
system-view - [HUAWEI] sysname AC
- [AC] vlan batch 100 101
- [AC] interface gigabitethernet 0/0/1
- [AC-GigabitEthernet0/0/1] port link-type trunk
- [AC-GigabitEthernet0/0/1] undo port trunk allow-pass vlan 1
- [AC-GigabitEthernet0/0/1] port trunk allow-pass vlan 100 101
- [AC-GigabitEthernet0/0/1] quit
# 配置Switch的接口GE0/0/1加入管理VLAN100和业务VLAN101,GE0/0/2加入VLAN 100,GE0/0/3加入VLAN 101。
system-view - [HUAWEI] sysname Switch
- [Switch] vlan batch 100 101
- [Switch] interface gigabitethernet 0/0/1
- [Switch-GigabitEthernet0/0/1] port link-type trunk
- [Switch-GigabitEthernet0/0/1] port trunk allow-pass vlan 100 101
- [Switch-GigabitEthernet0/0/1] quit
- [Switch] interface gigabitethernet 0/0/2
- [Switch-GigabitEthernet0/0/2] port link-type trunk
- [Switch-GigabitEthernet0/0/2] port trunk allow-pass vlan 100
- [Switch-GigabitEthernet0/0/2] quit
- [Switch] interface gigabitethernet 0/0/3
- [Switch-GigabitEthernet0/0/3] port link-type trunk
- [Switch-GigabitEthernet0/0/3] port trunk allow-pass vlan 101
- [Switch-GigabitEthernet0/0/3] quit
system-view - [Huawei] sysname Router
- [Router] vlan batch 101
- [Router] interface gigabitethernet 1/0/0
- [Router-GigabitEthernet1/0/0] port link-type trunk
- [Router-GigabitEthernet1/0/0] port trunk allow-pass vlan 101
- [Router-GigabitEthernet1/0/0] quit
- [Router] interface vlanif 101
- [Router-Vlanif101] ip address 10.23.101.2 24
- [Router-Vlanif101] quit
- [AC] dhcp enable
- [AC] interface vlanif 100
- [AC-Vlanif100] ip address 10.23.100.1 24
- [AC-Vlanif100] dhcp select interface
- [AC-Vlanif100] quit
- [AC] interface vlanif 101
- [AC-Vlanif101] ip address 10.23.101.1 24
- [AC-Vlanif101] dhcp select interface
- [AC-Vlanif101] dhcp server excluded-ip-address 10.23.101.2
- [AC-Vlanif101] quit
- [AC] ip route-static 0.0.0.0 0.0.0.0 10.23.101.2
- [AC] wlan
- [AC-wlan-view] ap-group name ap-group1
- [AC-wlan-ap-group-ap-group1] quit
- [AC-wlan-view] regulatory-domain-profile name default
- [AC-wlan-regulate-domain-default] country-code cn
- [AC-wlan-regulate-domain-default] quit
- [AC-wlan-view] ap-group name ap-group1
- [AC-wlan-ap-group-ap-group1] regulatory-domain-profile default
- Warning: Modifying the country code will clear channel, power and antenna gain configurations of the radio and reset the AP. Continue?[Y/N]:y
- [AC-wlan-ap-group-ap-group1] quit
- [AC-wlan-view] quit
[AC] capwap source interface vlanif 100
ap auth-mode命令缺省情况下为MAC认证,如果之前没有修改其缺省配置,可以不用执行ap auth-mode mac-auth。
- [AC] wlan
- [AC-wlan-view] ap auth-mode mac-auth
- [AC-wlan-view] ap-id 0 ap-mac 60de-4476-e360
- [AC-wlan-ap-0] ap-name area_1
- Warning: This operation may cause AP reset. Continue? [Y/N]:y
- [AC-wlan-ap-0] ap-group ap-group1
- 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]:y
- [AC-wlan-ap-0] quit
- [AC-wlan-view] display ap all
- 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
举例中以配置WPA-WPA2+PSK+AES的安全策略为例,密码为“a1234567”,实际配置中请根据实际情况,配置符合实际要求的安全策略。
- [AC-wlan-view] security-profile name wlan-net
- [AC-wlan-sec-prof-wlan-net] security wpa-wpa2 psk pass-phrase a1234567 aes
- [AC-wlan-sec-prof-wlan-net] quit
- [AC-wlan-view] ssid-profile name wlan-net
- [AC-wlan-ssid-prof-wlan-net] ssid wlan-net
- [AC-wlan-ssid-prof-wlan-net] quit
- [AC-wlan-view] vap-profile name wlan-net
- [AC-wlan-vap-prof-wlan-net] forward-mode tunnel
- [AC-wlan-vap-prof-wlan-net] service-vlan vlan-id 101
- [AC-wlan-vap-prof-wlan-net] security-profile wlan-net
- [AC-wlan-vap-prof-wlan-net] ssid-profile wlan-net
- [AC-wlan-vap-prof-wlan-net] quit
- [AC-wlan-view] ap-group name ap-group1
- [AC-wlan-ap-group-ap-group1] vap-profile wlan-net wlan 1 radio 0
- [AC-wlan-ap-group-ap-group1] vap-profile wlan-net wlan 1 radio 1
- [AC-wlan-ap-group-ap-group1] quit
WLAN业务配置会自动下发给AP,配置完成后,通过执行命令display vap ssid wlan-net查看如下信息,当“Status”项显示为“ON”时,表示AP对应的射频上的VAP已创建成功。
- [AC-wlan-view] display vap ssid wlan-net
- WID : WLAN ID
- --------------------------------------------------------------------------------
- AP ID AP name RfID WID BSSID Status Auth type STA SSID
- --------------------------------------------------------------------------------
- 0 area_1 0 1 60DE-4476-E360 ON WPA/WPA2-PSK 0 wlan-net
- 0 area_1 1 1 60DE-4476-E370 ON WPA/WPA2-PSK 0 wlan-net
- -------------------------------------------------------------------------------
- Total: 2
STA搜索到名为“wlan-net”的无线网络,输入密码“a1234567”并正常关联后,在AC上执行display station ssid wlan-net命令,可以查看到用户已经接入到无线网络“wlan-net”中。
- [AC-wlan-view] display station ssid wlan-net
- 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
Switch的配置文件
- #
- 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
- #
- 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
AC的配置文件
- #
- 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
OLT的配置文件
- [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 100 smart
- port vlan 100 0/10 0
- #
- [gpon]
-
- 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]
-
- service-port 0 vlan 100 gpon 0/3/0 ont 0 gemport 1 multi-service user-vlan 100 tag-transform translate