Перейти к содержимому

Настройка профилей для ZTE-C320

Это нужно выставить в поле extra_data таблицы device для нужной OLT в БД.

{
"telnet": { "login": "admin", "prompt": "zte-olt", "password": "admin" },
"default_vid": 123,
"zte_profiles": {
"zte_f660_v2_router_line_profile": "ZTE-F660",
"zte_f660_v2_router_remote_profile": "ZTE-F660-ROUTER",
"zte_f660_v2_dhcp_bridge_line_profile": "ZTE-F660",
"zte_f660_v2_dhcp_bridge_remote_profile": "ZTE-F660-BRIDGE",
"zte_f601_v2_router_line_profile": "ZTE-F601",
"zte_f601_v2_router_remote_profile": "ZTE-F601-ROUTER",
"zte_f601_v2_bridge_line_profile": "ZTE-F601",
"zte_f601_v2_bridge_remote_profile": "ZTE-F601-BRIDGE"
}
}

Значения подставить свои.

Кусок конфигурации с шаблонами для ZTE-C320, для которых выставляется значение:

pon
onu-profile gpon line ZTE-F660
tcont 1 name inet profile HSI_100
gemport 1 name inet tcont 1
!
pon
onu-profile gpon line ZTE-F601
tcont 1 name inet profile HSI_100
gemport 1 name inet tcont 1
!
pon
onu-profile gpon remote ZTE-F601-BRIDGE
service INET gemport 1 cos 0 vlan 123
loop-detect ethuni eth_0/1 enable
broadcast-limit ethuni eth_0/1 8
vlan port eth_0/1 mode tag vlan 123
dhcp-ip ethuni eth_0/1 from-internet
auto-shutdown hold-time 60 revert-time 120
wan ctrl max-users 5
!
pon
onu-profile gpon remote ZTE-F601-ROUTER
service INET gemport 1 vlan 123
wan-ip 1 mode dhcp vlan-profile ONU_VLAN host 1
loop-detect ethuni eth_0/1 enable
broadcast-limit ethuni eth_0/1 8
vlan port eth_0/1 mode tag vlan 123
dhcp-ip ethuni eth_0/1 from-onu
mvlan tag eth_0/1 strip
security-mgmt 1 state enable mode forward protocol web
auto-shutdown hold-time 60 revert-time 120
wifi disable
!
pon
onu-profile gpon remote ZTE-F660-BRIDGE
service INET gemport 1 vlan 123
loop-detect ethuni eth_0/1 enable
loop-detect ethuni eth_0/2 enable
loop-detect ethuni eth_0/3 enable
loop-detect ethuni eth_0/4 enable
interface pots pots_0/1 state lock
interface pots pots_0/2 state lock
broadcast-limit ethuni eth_0/1 8
broadcast-limit ethuni eth_0/2 8
broadcast-limit ethuni eth_0/3 8
broadcast-limit ethuni eth_0/4 8
vlan port eth_0/1 mode tag vlan 123
dhcp-ip ethuni eth_0/1 from-internet
dhcp-ip ethuni eth_0/2 forbidden
dhcp-ip ethuni eth_0/3 forbidden
dhcp-ip ethuni eth_0/4 forbidden
mvlan tag eth_0/1 strip
mvlan tag eth_0/2 strip
mvlan tag eth_0/3 strip
mvlan tag eth_0/4 strip
auto-shutdown hold-time 60 revert-time 120
wifi disable
wan 1 ethuni 1 service internet
!
pon
onu-profile gpon remote ZTE-F660-ROUTER
service INET gemport 1 vlan 123
wan-ip 1 mode dhcp vlan-profile ONU_VLAN host 1
loop-detect ethuni eth_0/1 enable
loop-detect ethuni eth_0/2 enable
loop-detect ethuni eth_0/3 enable
loop-detect ethuni eth_0/4 enable
interface pots pots_0/1 state lock
interface pots pots_0/2 state lock
interface wifi wifi_0/1 state lock
broadcast-limit ethuni eth_0/1 8
broadcast-limit ethuni eth_0/2 8
broadcast-limit ethuni eth_0/3 8
broadcast-limit ethuni eth_0/4 8
vlan port eth_0/1 mode tag vlan 123
vlan port eth_0/2 mode tag vlan 123
vlan port eth_0/3 mode tag vlan 123
vlan port eth_0/4 mode tag vlan 123
dhcp-ip ethuni eth_0/1 from-onu
dhcp-ip ethuni eth_0/2 from-onu
dhcp-ip ethuni eth_0/3 from-onu
dhcp-ip ethuni eth_0/4 from-onu
mvlan tag eth_0/1 strip
mvlan tag eth_0/2 strip
mvlan tag eth_0/3 strip
mvlan tag eth_0/4 strip
security-mgmt 1 state enable mode forward protocol web
auto-shutdown hold-time 60 revert-time 120
wifi disable

Значения по умолчанию для zte_profiles, если их нет в БД:

zte_f660_v2_router_line_profile = 'ZTE-F660'
zte_f660_v2_router_remote_profile = 'ZTE-F660-ROUTER'
zte_f660_v2_dhcp_bridge_line_profile = 'ZTE-F660'
zte_f660_v2_dhcp_bridge_remote_profile = 'ZTE-F660-BRIDGE'
zte_f601_v2_router_line_profile = 'ZTE-F601'
zte_f601_v2_router_remote_profile = 'ZTE-F601-ROUTER'
zte_f601_v2_bridge_line_profile = 'ZTE-F601'
zte_f601_v2_bridge_remote_profile = 'ZTE-F601'