华为OLT的命令: 常见命令: ONU disp cu disp boa disp boa 0/0 disp pst s 0/1 disp vlan all disp vlan OLT disp boa 0/1 disp cu int gp 0/1 disp port 查看LOID 的命令: display ont autofind all 查看是否有新接入 interface epon 0/2 display ont info 1 all (显示该PON 下已注册的ONU 设备) display ont info 1 1 (显示ONU 注册后的具体信息,这里面需关注的是SNMP profile ID 、Line profile ID 两个值) 添加删除注册信息命令: display ont info //查看所有ONU 的信息,包括注册和没注册的,状态是active 的都是注册的
添加和删除已注册的ONT 信息(这里是以 MAC 认证的方式举例): ont add 0 7 mac-auth 0018-82E8-1007 snmp ont-lineprofile-id 13 desc "XXX" //在第 0 个 pon 口添加 ID 为7 的ONU,注册方式为MAC 认证,ONT 的线路模板为13 ont ipconfig 0 7 ip-address 192
182 mask 255
0 gateway 192
254 manage-vlan 996 priority 0 //自动给 ONU 下发管理地址并定义管理vlan
删除已经注册的ONU: 1
先删除给ONU 下发的管理地址: undo ont ipconfig 0 7 ip-address 192
182 mask 255