# 1. 开启厂商兼容模式(若使用第三方ONU需确保此功能开启)
<OLT> system-view
[OLT] ftth
[OLT-ftth] vendor-compatible slot 0 # 按实际槽位修改
[OLT-ftth] quit
# 2. 创建 VLAN 并配置上联口透传
[OLT] vlan 100 # 创建管理VLAN
[OLT-vlan100] quit
[OLT] vlan 200 # 创建业务VLAN
[OLT-vlan200] quit
# 假设上联口为 Ten-GigabitEthernet1/0/25
[OLT] interface Ten-GigabitEthernet1/0/25
[OLT-Ten-GigabitEthernet1/0/25] port link-type hybrid
[OLT-Ten-GigabitEthernet1/0/25] port hybrid vlan 100 tagged
[OLT-Ten-GigabitEthernet1/0/25] port hybrid vlan 200 tagged
[OLT-Ten-GigabitEthernet1/0/25] quit
# 3. 配置 PON 口并放通 VLAN
[OLT] interface olt 1/0/1 # 进入GPON/EPON板卡端口
[OLT-Olt1/0/1] port link-type hybrid
[OLT-Olt1/0/1] port hybrid vlan 100 200 tagged
[OLT-Olt1/0/1] quit
# 4. 创建 DBA 模板(例如:保证10M,最大50M)
[OLT] dba-profile add profile-id 58 profile-name "Office_DBA" type 3 assure 10240 max 51200
# 5. 创建 Flow 模板与 T-CONT-Bind 模板(以 P3600 为例)
[OLT] gpon profile flow id 2 1 name EGT908HPQ-PC-VLAN200 uni-type ethernet-uni uni-bitmap 0xff upmap-type vlanId 200 200 pri-bitmap 0xff vport 1
[OLT] gpon profile tcont-bind id 2 v-port 1 name EGT908HPQ-PC-VLAN200 vportsvc-id 1 tcont-id 1 tcontsvc-id 2
# 6. 配置 ONU 接口并绑定设备
[OLT] interface Onu 1/0/1:1 # 进入具体的ONU接口视图
[OLT-Onu1/0/1:1] bind onu-id xxxx-xxxx-xxxx # 替换为ONU实际的SN或MAC
[OLT-Onu1/0/1:1] management-vlan 100 # 指定管理VLAN
[OLT-Onu1/0/1:1] undo shutdown management-vlan-interface
[OLT-Onu1/0/1:1] ip address 172.16.42.24 255.255.255.0 gateway 172.16.42.254
# 配置业务端口(UNI 1)的 VLAN 处理模式
[OLT-Onu1/0/1:1] uni 1 vlan-mode tag pvid 200 # 指定下行打上VLAN 200标签
[OLT-Onu1/0/1:1] port link-type trunk
[OLT-Onu1/0/1:1] port trunk permit vlan 200
[OLT-Onu1/0/1:1] quit暂无评论
# 1. 设备基础初始化、用户名、时钟、日志
enable
config
sysname OLT_MA5800
terminal user name admin password admin@123 service-type terminal
time zone add local GMT+8 Beijing
save logbuffer
syslog server 192.168.1.100
# 关闭无用告警
undo alarm suppress all
# 2. 创建业务VLAN,上行口透传业务VLAN
vlan 100 smart
port vlan 100 0/19 0 tagged
# 上行口基础优化
interface giu 0/19/0
port link-type trunk
port trunk permit vlan all
flow-control disable
quit
# 3. DBA带宽模板(GPON上行限速)
dba-profile add profile-name DBA_100M type4 assure 1024 max 102400
# 4. GPON线路模板(Tcont+Gem+VLAN映射)
ont-lineprofile gpon profile-id 10 profile-name LINE_100M
tcont 4 dba-profile-name DBA_100M
gem add 1 eth tcont 4
gem mapping 1 1 vlan 100
commit
quit
# 5. ONU业务模板(UNI端口VLAN)
ont-srvprofile gpon profile-id 10 profile-name SRV_4ETH
ont-port eth 4 pots 0
port vlan eth 1 100
port vlan eth 2 100
port vlan eth 3 100
port vlan eth 4 100
commit
quit
# 6. GPON端口初始化、开启ONU自动发现
interface gpon 0/15
port 0 ont-auto-find enable
port 0 laser-on
# 7. 注册ONU(SN认证,现场替换SN号)
ont add 0 sn-auth 485754435706C391 omci ont-lineprofile-id 10 ont-srvprofile-id 10 desc "办公ONU-1F机房"
ont activate 0 0
quit
# 8. 创建业务流,打通OLT-ONU-上行
service-port 1 vlan 100 gpon 0/15/0 ont 0 gemport 1 multi-service user-vlan 100 tag-transform translate
# 9. 全局保存
save
display ont autofind all # 查看未注册ONU SN
display ont info 0/15 0 0 # 查看ONU注册状态
display service-port all # 查看业务流
display dba-profile all
display ont-lineprofile gpon all
# 1. 基础初始化
system-view
sysname H3C_OLT
clock timezone Beijing add 8
info-center loghost 192.168.1.100
# 2. VLAN与上行配置
vlan 100
interface XGE 1/0
port link-type trunk
port trunk permit vlan all
quit
# 3. GPON全局带宽DBA模板
gpon profile dba 1 name DBA_100M type4 assure 1024 max 102400
# 4. Tcont绑定、Flow业务模板
gpon profile flow 1 name FLOW_INTERNET uni-type ethernet-uni upmap-type vlanId vlanId 100 100
gpon profile tcont-bind 1 name BIND_100M tcont-id 1 dba-profile-id 1 svc-type n_p
# 5. 进入GPON板卡视图
slot 1
# 6. PON口初始化
interface gpon-olt 1/1
# 开启自动发现
ont auto-find enable
# 添加ONU绑定SN
ont 1
sn H3C00001234 type gpon
# 下发业务模板
service flow-profile 1 tcont-bind-profile 1
# UNI端口VLAN配置
uni 1 vlan-mode trunk pvid 101
uni 2 vlan-mode trunk pvid 101
uni 3 vlan-mode trunk pvid 101
uni 4 vlan-mode trunk pvid 101
quit
# 7. 全局保存
save
brief-show slot 1 ont-unbound # 查看未注册ONU
show running-config gpon-profile # 查看GPON模板
show slot 1 ont-info # ONU在线状态
portal https-redirect enable 必配,解决麒麟笔记本不弹认证页;暂无评论
一、前提与规划(先定好再敲)
框 / 槽 / 端口:OLT 0/1/1(GPON),上联 1/0/2
业务 VLAN:上网 VLAN 100,管理 VLAN 400
ONU:SN 认证,单口 / 多口 HGU,UNI1 做上网
二、H3C OLT 完整开局配置(可直接刷)
1. 全局初始化
bash
运行
# 进入系统
system-view
sysname OLT-MAIN
# 关闭不必要提示,开启密码安全
undo info-center enable
password-recovery enable
# 管理VLAN及IP(带内)
vlan 400
interface Vlan-interface400
ip address 10.40.0.1 255.255.255.0
quit
# 上联口(1/0/2)透业务+管理VLAN
interface GigabitEthernet1/0/2
port link-type trunk
port trunk permit vlan 100 400
quit
# 开启DHCP(可选,给ONU/用户分配地址)
dhcp enable
2. GPON 基础模板(DBA+T-CONT+GEM)
bash
运行
# DBA模板(带宽策略)
dba-profile 10 type 3 assure 1024 max 10240
# ONU线路模板(绑定DBA、GEM映射VLAN)
onu-lineprofile gpon 1
tcont 0 dba-profile 10
gemport 1 tcont 0
gemport 1 map vlan 100 # 上网VLAN映射
quit
# ONU业务模板(UNI口能力)
onu-srvprofile gpon 1
uni 1 port-type eth
quit
3. PON 口(0/1/1)配置 + 自动发现
bash
运行
interface Olt1/0/1
port link-type hybrid
port hybrid vlan 100 tagged # 业务VLAN
port hybrid vlan 400 tagged # 管理VLAN
using onu 1 to 32 # 允许ONU编号范围
auto-find enable # 开启自动发现
quit
4. ONU 注册绑定(两种方式)
方式 A:自动发现后确认(推荐)
bash
运行
# 查看发现的ONU
display onu auto-find interface Olt1/0/1
# 确认注册(SN认证,替换SN)
interface Olt1/0/1
onu 1 sn 1234567890AB lineprofile 1 srvprofile 1
quit
方式 B:手动绑定(已知 SN)
bash
运行
interface Onu1/0/1:1
bind sn 1234567890AB
quit
5. ONU UNI 口业务配置(上网)
bash
运行
# 进入ONU接口
interface Onu1/0/1:1
# UNI1设为Trunk,透VLAN100
uni 1 link-type trunk
uni 1 trunk permit vlan 100
uni 1 trunk pvid vlan 100
# 管理(可选,ONU带内)
management-vlan 400
quit
6. 保存配置
bash
运行
save
三、ONU 本地默认配置(出厂)
一般不用改,OLT 远程管理即可:
管理 IP:192.168.1.1
用户名 / 密码:admin /admin
UNI 口默认:透明转发(VLAN 透传)
四、华为 MA5800 对照配置(简要)
bash
运行
# 全局
sysname OLT-HW
vlan 100
vlan 400
interface vlanif 400
ip address 10.40.0.1 24
quit
# 上联
interface gi 0/15/0
port link-type trunk
port trunk allow-pass vlan 100 400
quit
# GPON模板
dba-profile 10 type3 assure 1024 max 10240
ont-lineprofile gpon 1
tcont 0 dba-profile 10
gemport 1 tcont 0
gemport 1 mapping vlan 100
commit
quit
# PON口
interface gpon 0/15/1
port 0 ont-auto-find enable
quit
# 注册ONU
interface gpon 0/15/1
ont confirm 0 ontid 1 sn-auth 1234567890AB omci lineprofile 1 srvprofile 1
quit
# 业务映射
service-port vlan 100 gpon 0/15/1 ont 1 gemport 1 multi-service user-vlan 100
五、常用检查命令(排错必用)
H3C
bash
运行
display onu summary # 看ONU注册状态
display interface Olt1/0/1 # PON口状态
display interface Onu1/0/1:1 # ONU接口信息
display mac-address # 看MAC学习
华为
bash
运行
display ont info 0/15/1 1 # ONU详细信息
display port state gpon 0/15/1 # PON口状态
六、完整配置文件(H3C 示例)
bash
运行
#
sysname OLT-MAIN
#
undo info-center enable
#
vlan 100
vlan 400
#
interface Vlan-interface400
ip address 10.40.0.1 255.255.255.0
#
interface GigabitEthernet1/0/2
port link-type trunk
port trunk permit vlan 100 400
#
dba-profile 10 type 3 assure 1024 max 10240
#
onu-lineprofile gpon 1
tcont 0 dba-profile 10
gemport 1 tcont 0
gemport 1 map vlan 100
#
onu-srvprofile gpon 1
uni 1 port-type eth
#
interface Olt1/0/1
port link-type hybrid
port hybrid vlan 100 tagged
port hybrid vlan 400 tagged
using onu 1 to 32
auto-find enable
#
interface Onu1/0/1:1
bind sn 1234567890AB
uni 1 link-type trunk
uni 1 trunk permit vlan 100
uni 1 trunk pvid vlan 100
management-vlan 400
#
dhcp enable
#
save
暂无评论
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
暂无评论