1、OLT 上網業務配置指導
1.登錄方式及登錄賬號和密碼串口
串口 和telnet 192.168.0.100
賬號/密碼:root/123456
2. 創建DBA模版
OLT(config)#dba-profile add profile-id 10 type4 max 1021000
查看DBA模版配置
OLT(config)# show dba-profile all
3. 業務vlan創建
OLT(config)# interface vlan 10
OLT(config-if-vlan-10)#
OLT(config-if-vlan-10)# port gpon 1 tagged
OLT(config-if-vlan-10)# port ge 1 untagged #vlan綁定到上行端口
OLT(config-if-vlan-10)# exit
4. 配置上行端口爲default vlanID,業務數據流下來不帶任何VLANID
OLT(config)# interface ge 0/1
OLT(config-if-ge-0/1)# port default-vlan 10
OLT(config-if-ge-0/1)# exit
5. 配置line-profile
OLT(config)# onu-line-profile profile-id 1
OLT(config-line-profile-1)# mapping-mode vlan
OLT(config-line-profile-1)# tcont 1 dba-profile-id 10
OLT(config-line-profile-1)# gem add 1 eth tcont 1
OLT(config-line-profile-1)# gem mapping 1 0 vlan transparent 或指定某個業務VLANID值
OLT(config-line-profile-1)# commit
OLT(config-line-profile-1)# exit
查看線路模版配置
OLT(config)# show running-configonu-line-profile
6.配置service-profile,配置ONU能力及,vlan透傳方式
OLT(config)# onu-service-profile profile-id 1 profile-name hgu
OLT(config-service-profile-1)# port-num eth adaptive
OLT(config-service-profile-1)# port-num pots adaptive
OLT(config-service-profile-1)# port-num veip adaptive 或指定veip 1 #這塊針對Realtek方案ONU是必須的,對ZTE ONU可以不需要這句
OLT(config-service-profile-1)# commit
OLT(config-service-profile-1)# exit
查看service-profile配置
OLT(config)# show running-configonu-service-profile
6.1.配置service-profile,配置ONU能力及,上行vlanID剝離方式出去
onu-service-profile profile-id 2 profile-name sfu
port-num eth adaptive
port-num pots adaptive
port-num veip adaptive
port eth 1 vlan mode trunk
port eth 1 trunk default vlan 10 0
commit
exit
7. 使能 ONU 發現功能
OLT(config)# onu auto-find enable all
8.查找未註冊的ONU
OLT(config)# show onu auto-find list all
OLT(config)# show onu auto-find list detail all
9. ONU註冊 並 可選 綁定line-profile和 service-profile
interface gpon-olt 0/1
onu auto-find enable
onu add 1 sn GPON00000001 line-profile-id 1 service-profile-id 1
onu add 2 sn GPON00000002 line-profile-id 1 service-profile-id 1
exit
9.1 僅僅綁定Line-profile
Note: Other configurations corresponding to service-profile can enter gpon-onu node to configure.
eg:
OLT(config)# interface gpon-onu 0/1:1
OLT(config-if-gpon-onu_0/1:1)# port eth 1 vlan mode transparent
或者 配置SFU模式
OLT(config)# interface gpon-onu 0/1:1
OLT(config-if-gpon-onu_0/1:1)# port eth 1 vlan mode trunk
OLT(config-if-gpon-onu_0/1:1)# port eth 1 trunk default vlan 10 0
9.2 註冊ONU時 不綁定任何模版
OLT(config)# interface gpon-olt 0/1
OLT(config-if-gpon-olt_0/1)# onu add 1 sn GPON11111111
Note: The configurations corresponding toline-profile and service-profile can enter gpon-onu node to configure.
eg:
OLT(config)# interface gpon-onu 0/1:1
OLT(config-if-gpon-onu_0/1:1)# tcont 1 dba-profile-name100M
OLT(config-if-gpon-onu_0/1:1)# gemport 1 unicast tcont 1
OLT(config-if-gpon-onu_0/1:1)# gemport 1 mapping vlan 10
OLT(config-if-gpon-olt_0/1)# show onu state
------------------------------------------------------------------
ONU-ID Auth-mode SN Config-State Match-State Run-State
------------------------------------------------------------------
0/1:1 sn GPON11111111 ok ok online
------------------------------------------------------------------
Total Num: 1 (online/offline: 1/0, Config ok/failed: 1/0)
9.4 檢查 ONU配置
OLT(config-if-gpon-olt_0/1)# show running-config gpon-onu 0/1:1
!
interfacegpon-olt 0/1
onu add 1 sn GPON11111111 line-profile-id 1 service-profile-id 1
exit
!
10. 創建 業務虛端口
service-port 1 gpon 0/1 onu 1 gemport 1 user-vlan 10 vlan 10
service-port 2 gpon 0/1 onu 2 gemport 1 user-vlan 10 vlan 10
OLT(config)# show service-port all
------------------------------------------------
ID GPON Onu GEM User-vlan CvlanSvlan
1 0/01 1 1 10 - 10
1 0/01 2 1 10 - 10
查看mac 地址表
OLT(config)# show mac-address all
OLT(config)# mac address-table flush all #刷新mac表
2、 OLT組播配置指導
2.1 使能IGMP 功能
OLT(config)# btv
OLT(config-btv)# igmp enable
2.2 創建組播vlan
OLT(config-btv)# igmp multicast-vlan 100
OLT(config-mvlan-100)#
2.3 配置IGMP mode
OLT(config-mvlan-100)# igmp mode snooping
2.4 配置組播組範圍
OLT(config-mvlan-100)# igmp channel 1 group 224.1.1.1 to 224.1.1.20 name ch1
2.5 配置組播源端口
OLT(config-mvlan-100)# igmp port pon 0/1
OLT(config-mvlan-100)# igmp port ge 0/1
OLT(config-mvlan-100)# exit
OLT(config-btv)# show igmp channel
Vlan Channel Start IP End IP Channel Name
----- -------- --------------- --------------- ------------------
100 1 224.1.1.1 224.1.1.20 ch1
查看組播相關配置
ONU 組播組下發
OLT(config)# show running-config multicast
!
multicast-ctrl channel id 1 vlan 100 group 224.1.1.1 to 224.1.1.20 name Def_Channel_1
multicast-ctrl package add id 1 name Def_Package_1
multicast-ctrl package id 1 channel id 1 watch
multicast-ctrl user 0/1:6 cvlan 100 package id 1
注意:
cvlan 100 對應 service-profile 的 igmp (veip/eth 1) igmp-forward (add 100/translation 100/transparent)
配置SFU 方式 :模仿中興OLT
OLT(config-if-gpon-onu_0/1:1)# show running-config gpon-onu 0/1:1
!
interface gpon-olt 0/1
onu add 1 sn AZGP6879f045
exit
interface gpon-onu 0/1:1
tcont 1 dba-profile-id 101
gemport 1 unicast tcont 1
gemport 1 mapping vlan 100
port eth 1 vlan mode tag
port eth 1 tag vlan 100 priority 0
multicast vlan add vlanlist 100
igmp eth 1 multicast-forward vlan-strip
exit
!
HGU 組播配置
interface gpon-olt 0/1
onu add 9 sn AZGPd704fea8
exit
interface gpon-onu 0/1:9
tcont 1 dba-profile-id 101
gemport 1 unicast tcont 1
gemport 1 mapping vlan 100
multicast vlan add vlanlist 100
igmp eth 1 multicast-forward vlan-strip
exit
!
3、其他指令
3.1 鏡像配置
eg: Mirror PON1 to GE3
OLT(config)# interface gpon-olt 0/1
OLT(config-if-gpon-olt_0/1)# mirror dst-port ge 3 all
3.2 帶內和帶外管理IP設置
![IP Band]
!
interface vlan 100
inband ip-address 192.168.88.252 255.255.255.0
exit
outband ip-address 192.168.20.251 255.255.0.0
!
3.3 ONU註冊時 不綁定 2個模版
OLT(config)# show running-config gpon-olt
!
![interface-gpon-olt]
interface gpon-olt 0/1
onu add 6 sn AZGPd704fe48
exit
OLT(config)# show running-config gpon-onu
!
![interface-gpon-onu]
interface gpon-onu 0/1:6
tcont 1 dba-profile-id 101
gemport 1 unicast tcont 1
gemport 1 mapping vlan 100
iphost 1 dhcp
iphost 1 vlan 100
voip config-method omci
voip signal-protocol sip
sip agent add proxy-server 192.168.88.166 registrar-server 192.168.88.166
sip agent signal-port 5060 iphost 1
sip user add 1 username 33333 password 11111 telno 33333
sip user add 2
exit
!
OLT(config)# service-port 6 gpon 0/1 onu 6 gemport 1 user-vlan 100 vlan 100
OLT(config)#
4、OLT缺陷須知:
2.在onu-lineprofile模版中: mapping-mode 只有vlan 和優先級映射方式;不支持 port 映射(參照華爲OLT),以及 沒有綁定VEIP的相關指令:gem
mapping 1 1 iphost(導致Realtek方案ONU無法獲取WANIP,Realtek方案ONU對接中興和華爲OLT,如果是vlan映射方式也是無法獲取到WANIP地址)
Realtek HGU ONU配置參考如下:
<1>綁模板方式
(1)line-profile
onu-line-profile profile-id 1 profile-name line-profile_1
tcont 1 dba-profile-id 0
gem add 1 eth tcont 1
gem mapping 1 1 vlan transparent(或gem mapping 1 1 vlan100)
commit
(2)service-profile
onu-service-profile profile-id 1 profile-name srv-profile_1
port-num eth adaptive
port-num pots adaptive
port-num veip adaptive(或port-num veip 1,這樣就會自動綁定veip)
commit
(3)註冊ONU
interfacegpon-olt 0/1
onu add 1 sn GPON12345678 line-profile-id 1 service-profile-id 1
3.在gpon-olt模式下:沒有ONU替換操作的相關 指令,每次接入一臺新的ONU都需要重新註冊ONU
4.mapping-mode 只有vlan 和優先級映射模式;不支持port 映射,以及 gem mapping 1 1 iphost
如參考 HUAWEI OLT :
ont-lineprofile gpon profile-id 512 profile-name "line-profile_512"
mapping-mode port
tcont 1 dba-profile-id 10
gem add 0 eth tcont 1
gem mapping 0 1 iphost
commit
5. 在gpon-olt模式下:已經註冊過的ONU並且 綁定了 相關onu profile模版操作,若想修改 替換 其它的 ONU-lineprofile 模版操作 ,無法實現?,
必須刪除 ONU ,重新去 註冊ONU且綁定相應模版或者不綁定模版操作,直接在ONU_ID模式下配置相關命令。
6.在全局模式下:已創建的 onu-lineprofile模版和onu-srvprofile等模版,無法再次 進入 修改 配置(華爲OLT可以修改配置)
答:目前是:如果模板已被ONU綁定,則無法進去修改或刪除;如果沒有被ONU綁定,則可以進去修改或刪除。
OLT 私有協議支持部分
7. 1. OLT 通過 OMCI 下發 WAN連接 配置 不成功,(IP host方式下發WAN連接 是 OK的)提示如下:
OLT(config-if-gpon-onu_0/1:6)# wan add 2 dhcp service-type internet
Failure: The ONU does not support this WAN configuration!
答:gpon-onu節點下,wan add…命令是TS私有的。其他ONU不支持該命令,只能通過iphost方式。
2. 有時在使用 OLT時 ,操作 一些指令時 會提示 如下 錯誤:出現錯誤的時候,配置其他指令也是出現同樣的錯誤(對接Realtek方案 ONU出現過此問
題)
OLT(config-if-gpon-onu_0/1:3)# no port flow-control eth 1
Error: Operation fail[-187]!
答:errno-187是ONU響應超時。可多輸幾次對應命令看看,如果還是不行和輸其他命令也出現同樣錯誤,
可先查看下ONU 的配置狀態是否OK(show onu state)。
如果配置狀態爲OK,插拔ONU光纖重新上線再試下對應命令是否配置ok,
如果還不行,麻煩提供遠程我們看看; 如果配置狀態爲fail, 插拔ONU光纖重新上線看是否OK,
如果還是fail的話,換個光模塊試試或提供遠程我們看看。