[GPON] Как использовать приватные ACS параметры на ONT
Приватные параметры можно назначать непосредственно на саму ONT в режиме acs-ont:
LTP-4X(acs-ont)# 454C54585F0001A0
LTP-4X(acs-ont-sn='454C54585F0001A0')# set profile ntu2v
Ok
LTP-4X(acs-ont-sn='454C54585F0001A0')# set private ppp_login 34700s9992
Host property has been updated: 'InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANPPPConnection.1.Username' = '34700s9992'
Ok
LTP-4X(acs-ont-sn='454C54585F0001A0')# set private ppp_password zi7qeldv
Host property has been updated: 'InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANPPPConnection.1.Password' = 'zi7qeldv'
Ok
LTP-4X(acs-ont-sn='454C54585F0001A0')# set private voice1_enable Enabled
Host property has been updated: 'InternetGatewayDevice.Services.VoiceService.1.VoiceProfile.1.Line.1.Enable' = 'Enabled'
Ok
LTP-4X(acs-ont-sn='454C54585F0001A0')# set private voice1_number 3472224140
Host property has been updated: 'InternetGatewayDevice.Services.VoiceService.1.VoiceProfile.1.Line.1.CallingFeatures.CallerIDName' = '3472224140'
Host property has been updated: 'InternetGatewayDevice.Services.VoiceService.1.VoiceProfile.1.Line.1.DirectoryNumber' = '3472224140'
Host property has been updated: 'InternetGatewayDevice.Services.VoiceService.1.VoiceProfile.1.Line.1.SIP.AuthUserName' = '3472224140'
Host property has been updated: 'InternetGatewayDevice.Services.VoiceService.1.VoiceProfile.1.Line.1.SIP.URI' = '3472224140'
Ok
LTP-4X(acs-ont-sn='454C54585F0001A0')# set private voice1_password 0414222743
Host property has been updated: 'InternetGatewayDevice.Services.VoiceService.1.VoiceProfile.1.Line.1.SIP.AuthPassword' = '0414222743'
Ok
LTP-4X(acs-ont-sn='454C54585F0001A0')# commit
Либо можно назначить приватные параметры на пользователя, привязанного к конкретной ONT в разделе acs-user:
LTP-4X(acs-user)# add user tester
Ok
LTP-4X(acs-user)# user tester
LTP-4X(acs-user-subscriber='tester')# set pon_serial 454C54585F0001A0
Ok
LTP-4X(acs-user-subscriber='tester')# set profile ntu2v
Ok
LTP-4X(acs-user-subscriber='tester')# set private ppp_login 34700s9992
Host property has been updated: 'InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANPPPConnection.1.Username' = '34700s9992'
Ok
LTP-4X(acs-user-subscriber='tester')# set private ppp_password zi7qeldv
Host property has been updated: 'InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANPPPConnection.1.Password' = 'zi7qeldv'
Ok
LTP-4X(acs-user-subscriber='tester')#
Помимо стандартных приватных параметров, имеющихся на LTP по умолчанию, можно создавать свои приватные параметры. В качестве примера создадим приватные параметры, задающие статический ip адрес на WAN соединение ONT:
LTP-4X(acs)# privates
LTP-4X(acs-privates)# add ip_addr InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.1.ExternalIPAddress nocheck
Ok
LTP-4X(acs-privates)# add ip_mask InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.1.SubnetMask nocheck
Ok
LTP-4X(acs-privates)# add ip_gateway InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.1.DefaultGateway nocheck
Ok
LTP-4X(acs-privates)#
После этого приватные параметры появятся в списке доступных:
LTP-4X(acs)# user
LTP-4X(acs-user)# user tester
LTP-4X(acs-user-subscriber='tester')# set private
set private <Name> <Value>
Modify subscriber property
Name Name of user property: User property name:
voice1_enable
voice1_number
voice1_password
voice2_enable
voice2_number
voice2_password
sip_proxy
ppp_login
ppp_password
user_password
admin_password
wifi_enable
wifi_ssid
wifi_encoding
wifi_password
ip_addr
ip_mask
ip_gateway
Value Value of user property: Property value with maximum length of 250 chars (0..250)
LTP-4X(acs-user-subscriber='tester')# set private ip_addr 192.168.21.21
Host property has been updated: 'InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.1.ExternalIPAddress' = '192.168.21.21'
Ok
LTP-4X(acs-user-subscriber='tester')# set private ip_mask 255.255.255.0
Host property has been updated: 'InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.1.SubnetMask' = '255.255.255.0'
Ok
LTP-4X(acs-user-subscriber='tester')# set private ip_gateway 192.168.21.1
Host property has been updated: 'InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.1.DefaultGateway' = '192.168.21.1'
Ok
LTP-4X(acs-user-subscriber='tester')#
Источник:
docs.eltex-co.ru