Criando arquivo de Pre-Config

Criada por Danilo Tomich, Modificado em Seg, 13 Jan na (o) 1:46 PM por Danilo Tomich

Vamos criar arquivo para já ficar pre-configurada a ONT ao liberar para o cliente.

Compatível com:

ONU G140WH ou abaixo dela utiliza o arquivo: PREAG140WH.xml
ONU G2425GA ou superior dela utiliza o arquivo: PREG2425GA.xml (Essa utiliza com as que fazem, por exemplo, rede Mesh).

O Arquivo solicite no nosso PV>


Seguem algumas opções que podemos mudar.

### Range de ips que será entregue na lan!

<MinAddress t="string" ml="32" v="192.168.1.1" dburi="InternetGatewayDevice.LANDevice.1.LANHostConfigManagement.MinAddress"/>

                        <MaxAddress t="string" ml="32" v="192.168.1.253" dburi="InternetGatewayDevice.LANDevice.1.LANHostConfigManagement.MaxAddress"/>


### IP do Roteador:

                        <IPInterfaceIPAddress t="string" ml="32" v="192.168.1.254" dburi="InternetGatewayDevice.LANDevice.1.LANHostConfigManagement.IPInterface.1.IPInterfaceIPAddress"/>






### Mudar a frequência do canal do wifi 2.4 ghz. 


<WLAN1_ChannelWidth dv="0" rw="RW" t="unsignedInt" v="2"

Se fica em 20 mhz ou 40 mhz,

Só mudar o parâmetro: V="2"

0 = 20 Mhz

1 = 40 Mhz

2 = Automatico



###Na linha VOIPCfgType:
O senário mais simples é aquele que faz toda configuração de voz dentro da ONU
E o outro é quando se faz dentro da OLT. Mais complexo.


Se você acessar a ONT na opção aplication e aparecer a opção de Voiceseti é porque a ONU esta com esse parâmetro!

v="TR069"


Quando o cenário é simples, no qual toda configuração de voz está dentro a ONU, então ajusta o parâmetro para 

v="TR069"

<VOIPCfgType t="string" ml="12" v="TR069" dburi="InternetGatewayDevice.X_ASB_COM_VOIPCfgType.type"></VOIPCfgType>


Caso utilize o senário sic-proxy, no qual toda parte de voz é gerenciável pela OLT. Então deixa assim.
Nessa opção não vai mais aparecer as opções para configurar o voip na ont.


<VOIPCfgType t="string" ml="12" v="OMCIV1" dburi="InternetGatewayDevice.X_ASB_COM_VOIPCfgType.type"></VOIPCfgType>


Essas outras opções podem deixar da seguinte forma:
Estamos permitindo o acesso pela porta lan aos serviços de ssh,http com a variável: v="false"
E estamos negando o Telnet com a variável: <TelnetEnable rw="RW" t="boolean" v="true"

Serve para liberar ou bloquear acessos pela porta lan do roteador de alguns serviços.



                        <SshDisabled rw="RW" t="boolean" v="false" dburi="InternetGatewayDevice.X_ALU-COM_LanAccessCfg.SshDisabled"/>
                        <HttpDisabled rw="RW" t="boolean" v="false" dburi="InternetGatewayDevice.X_ALU-COM_LanAccessCfg.HttpDisabled"/>
                        <TelnetDisabled rw="RW" t="boolean" v="false" dburi="InternetGatewayDevice.X_ALU-COM_LanAccessCfg.TelnetDisabled"/>
                         


Ja essa opção é o serviço de UPNP, deixe ativo. ajuda para alguns jogos.

   <UPnP rw="RW" t="boolean" v="true" dburi="InternetGatewayDevice.DeviceInfo.X_CT-COM_UPNP.Enable"/>



### Para esse campo é o DNS.


Por padrão vem com o DNS Proxy habilitado. Dessa forma vai entregar o DNS da ONT.

<Enable t="boolean" v="true" dburi="InternetGatewayDevice.X_ASB_COM_AppCfg.DnsProxyCfg.Enable"/>

Caso você tenha uma entrega de DNS já pela porta WAN e deseja utilizar o mesmo DNS para os dispositivos que conecta na ONT. Então desabilite essa opção. Conforme imagem abaixo.

<Enable t="boolean" v="false" dburi="InternetGatewayDevice.X_ASB_COM_AppCfg.DnsProxyCfg.Enable"/>



#### Se utiliza o TR069:
Caso contrario, deixa padrão!


### Caso deseja manter a data e hora atualizada pelo NTP:

Pode apontar um seu, ou deixar um padrão que esta. Considerando que a ONT tenha conexão com a internet, então vai atualizar pela internet.



### Essa opção é so uma confirmação dos ips que serão entregues na LAN.


### Aqui é deixar as portas ativar ou não.

Por padrão vem tudo ativo em modo router.
Caso deseja deixar uma porta somente em modo bridge, para, por exemplo,

lan-to-lan
qinq
IPTV

Podemos deixar uma delas em false. É feito, por exemplo, para entregar serviços a parte em uma porta:
Então essa porta não vai funcionar rede interna do roteador.


###Para alterar a senha:


Basta mudar esse campo para uma senha que deseja.

v="xEKUBYh1yT50dQFNwAr/5A=="

E retirar esse campo: (Pois se deixar fica gerando senha automático.)

fri="genpwd_longpasswd"




### Essa opção é para informar qual tipo vai ser a WAN. PPPOE, IPOE ou IP.


Para PPPoE:

<WAN_1. n="WAN_1" a="dynamic" dburi="InternetGatewayDevice.WANDevice.1.WANConnectionDevice.%d." dtype="PPP">
            <Enable t="string" ml="12" v="true" dburi="WANPPPConnection.%d.Enable"/>
            <NATEnabled t="string" ml="12" v="true" dburi="WANPPPConnection.%d.NATEnabled"/>
            <ServiceList t="string" ml="64" v="INTERNET" dburi="WANPPPConnection.%d.X_CT-COM_ServiceList"/>
            <VLANIDMark t="string" ml="12" v="100" dburi="X_CT-COM_WANGponLinkConfig.VLANIDMark"/>
            <P8021pMark t="string" ml="12" v="0" dburi="X_CT-COM_WANGponLinkConfig.P_802-1pMark"/>
            <ConnectionType t="string" ml="24" v="IP_Routed" dburi="WANPPPConnection.%d.ConnectionType"/>
            <PPPUsername t="string" ml="64" v="" dburi="WANPPPConnection.%d.Username"/>
            <PPPPassword t="string" ml="12" v="" dburi="WANPPPConnection.%d.Password" ealgo="ab"/>
            <KeepAliveTime t="int" ml="12" v="60" dburi="WANPPPConnection.%d.X_ASB_COM_KeepAliveTime"/>
            <KeepAliveRetry t="int" ml="12" v="10" dburi="WANPPPConnection.%d.X_ALU-COM_KeepAliveRetry"/>
            <InterfaceMtu dv="1492" rw="RW" t="unsignedInt" v="1492" dburi="WANPPPConnection.%d.InterfaceMtu"/>
            <GponLinkMode t="string" ml="12" v="2" dburi="X_CT-COM_WANGponLinkConfig.Mode"/>
            <HttpDisabled rw="RW" t="boolean" v="false" dburi="WANPPPConnection.%d.X_ALU-COM_WanAccessCfg.HttpDisabled"/>
            <IPv6IPAddressOrigin v="AutoConfigured" dburi="WANPPPConnection.%d.X_CT-COM_IPv6IPAddressOrigin"/>
            <IPMode v="3" dburi="WANPPPConnection.%d.X_CT-COM_IPMode"/>
            <X_ASB_COM_HttpMgtPort dv="8080" rw="RW" t="unsignedInt" v="8080" dburi="WANPPPConnection.%d.X_ASB_COM_HttpMgtPort"/>
            <X_ASB_COM_SshMgtPort dv="2222" rw="RW" t="unsignedInt" v="2222" dburi="WANPPPConnection.%d.X_ASB_COM_SshMgtPort"/>
            <PTMLink_X_ALU-COM_Mode dv="2" max="2" min="0" rw="RW" t="unsignedInt" v="2" dburi="WANPTMLinkConfig.X_ALU-COM_Mode"/>
            <PTMLink_X_ALU-COM_VLANIDMark dv="0" rw="RW" t="unsignedInt" v="100" dburi="WANPTMLinkConfig.X_ALU-COM_VLANIDMark"/>
            <PTMLink_X_ALU-COM_802-1pMark dv="0" rw="RW" t="unsignedInt" v="0" dburi="WANPTMLinkConfig.X_ALU-COM_802-1pMark"/>
        </WAN_1.>        




Sobre o código:
<Enable t="string" ml="12" v="true" = WAN ATIVA
<NATEnabled t="string" ml="12" v="true" = DEIXAR O NAT ATIVO

<ServiceList t="string" ml="64" v="INTERNET"  =SOMENTE PARA SERVIÇO DE INTERNET

OU SE DESEJAR MAISS DE UM SERVIÇO:

<ServiceList t="string" ml="64" v="INTERNET,VOIP" -= INTERNET E VOIP NO MESMO SERVIÇO

<VLANIDMark t="string" ml="12" v="100" = QUAL VLAN VC VAI DEFINIR PARA A PORTA PON.DEIXE UMA PADRÃO, E DEPOIS MUDE PELO ACESSO WEB A CORRETA.

<P8021pMark t="string" ml="12" v="0" = PRIORIDADE DA INTERNET É 0
<P8021pMark t="string" ml="12" v="5" = PRIORIDADE POR EXEMPLO PARA VOIP.


### AS INFORMAÇÕES ABAIXO DE USER E SENHA, ESTA EM BRANCO MESMO. 

<PPPUsername t="string" ml="64" v="" dburi="WANPPPConnection.%d.Username"/>

<PPPPassword t="string" ml="12" v="" dburi="WANPPPConnection.%d.Password" ealgo="ab"/>


###MTU não consegue mudar nem por aqui e nem pela web

<InterfaceMtu dv="1492"


<HttpDisabled rw="RW" t="boolean" v="false" =Permite acesso remoto a ONT pela porta wan.

<IPv6IPAddressOrigin v="AutoConfigured" = Deixar que a ONT pega automático as configurações de IPv

<IPMode v="3" = Valor 3 - permitindo / 1 - somente IPv4 / 2 - Somente IPv6


### Porta de acesso. Não tem como alterar. Então deixa a padrão. 

<X_ASB_COM_HttpMgtPort dv="8080"

<X_ASB_COM_SshMgtPort dv="2222"



Podemos ir criando outras WAN! como, por exemplo, IPOE


Para IPOE:


<WAN_1. n="WAN_1" a="dynamic" dburi="InternetGatewayDevice.WANDevice.1.WANConnectionDevice.%d." dtype="IP">
            <Enable t="string" ml="12" v="true" dburi="WANIPConnection.%d.Enable"/>
            <NATEnabled t="string" ml="12" v="true" dburi="WANIPConnection.%d.NATEnabled"/>
            <ServiceList t="string" ml="64" v="INTERNET" dburi="WANIPConnection.%d.X_CT-COM_ServiceList"/>
            <VLANIDMark t="string" ml="12" v="100" dburi="X_CT-COM_WANGponLinkConfig.VLANIDMark"/>
            <P8021pMark t="string" ml="12" v="0" dburi="X_CT-COM_WANGponLinkConfig.P_802-1pMark"/>
            <ConnectionType t="string" ml="24" v="IP_Routed" dburi="WANIPConnection.%d.ConnectionType"/>
            <PPPUsername t="string" ml="64" v="" dburi="WANIPConnection.%d.Username"/>
            <PPPPassword t="string" ml="12" v="" dburi="WANIPConnection.%d.Password" ealgo="ab"/>
            <KeepAliveTime t="int" ml="12" v="60" dburi="WANIPConnection.%d.X_ASB_COM_KeepAliveTime"/>
            <KeepAliveRetry t="int" ml="12" v="10" dburi="WANIPConnection.%d.X_ALU-COM_KeepAliveRetry"/>
            <InterfaceMtu dv="1492" rw="RW" t="unsignedInt" v="1492" dburi="WANIPConnection.%d.InterfaceMtu"/>
            <GponLinkMode t="string" ml="12" v="2" dburi="X_CT-COM_WANGponLinkConfig.Mode"/>
            <HttpDisabled rw="RW" t="boolean" v="false" dburi="WANIPConnection.%d.X_ALU-COM_WanAccessCfg.HttpDisabled"/>
            <IPv6IPAddressOrigin v="AutoConfigured" dburi="WANIPConnection.%d.X_CT-COM_IPv6IPAddressOrigin"/>
            <IPMode v="3" dburi="WANIPConnection.%d.X_CT-COM_IPMode"/>
            <X_ASB_COM_HttpMgtPort dv="8080" rw="RW" t="unsignedInt" v="8080" dburi="WANIPConnection.%d.X_ASB_COM_HttpMgtPort"/>
            <X_ASB_COM_SshMgtPort dv="2222" rw="RW" t="unsignedInt" v="2222" dburi="WANIPConnection.%d.X_ASB_COM_SshMgtPort"/>
            <PTMLink_X_ALU-COM_Mode dv="2" max="2" min="0" rw="RW" t="unsignedInt" v="2" dburi="WANPTMLinkConfig.X_ALU-COM_Mode"/>
            <PTMLink_X_ALU-COM_VLANIDMark dv="0" rw="RW" t="unsignedInt" v="100" dburi="WANPTMLinkConfig.X_ALU-COM_VLANIDMark"/>
            <PTMLink_X_ALU-COM_802-1pMark dv="0" rw="RW" t="unsignedInt" v="0" dburi="WANPTMLinkConfig.X_ALU-COM_802-1pMark"/>
        </WAN_1.>        



###Com TR069

<WAN_1. n="WAN_1" a="dynamic" dburi="InternetGatewayDevice.WANDevice.1.WANConnectionDevice.%d." dtype="IP">
            <Enable t="string" ml="12" v="true" dburi="WANIPConnection.%d.Enable"/>
            <NATEnabled t="string" ml="12" v="true" dburi="WANIPConnection.%d.NATEnabled"/>
            <ServiceList t="string" ml="64" v="OTHER,TR069" dburi="WANIPConnection.%d.X_CT-COM_ServiceList"/>
            <VLANIDMark t="string" ml="12" v="700" dburi="X_CT-COM_WANGponLinkConfig.VLANIDMark"/>
            <P8021pMark t="string" ml="12" v="0" dburi="X_CT-COM_WANGponLinkConfig.P_802-1pMark"/>
            <ConnectionType t="string" ml="24" v="IP_Routed" dburi="WANIPConnection.%d.ConnectionType"/>
            <PPPUsername t="string" ml="64" v="" dburi="WANIPConnection.%d.Username"/>
            <PPPPassword t="string" ml="12" v="" dburi="WANIPConnection.%d.Password" ealgo="ab"/>
            <KeepAliveTime t="int" ml="12" v="60" dburi="WANIPConnection.%d.X_ASB_COM_KeepAliveTime"/>
            <KeepAliveRetry t="int" ml="12" v="10" dburi="WANIPConnection.%d.X_ALU-COM_KeepAliveRetry"/>
            <InterfaceMtu dv="1492" rw="RW" t="unsignedInt" v="1492" dburi="WANIPConnection.%d.InterfaceMtu"/>
            <GponLinkMode t="string" ml="12" v="2" dburi="X_CT-COM_WANGponLinkConfig.Mode"/>
            <HttpDisabled rw="RW" t="boolean" v="false" dburi="WANIPConnection.%d.X_ALU-COM_WanAccessCfg.HttpDisabled"/>
            <IPv6IPAddressOrigin v="AutoConfigured" dburi="WANIPConnection.%d.X_CT-COM_IPv6IPAddressOrigin"/>
            <IPMode v="3" dburi="WANIPConnection.%d.X_CT-COM_IPMode"/>
            <X_ASB_COM_HttpMgtPort dv="8080" rw="RW" t="unsignedInt" v="8080" dburi="WANIPConnection.%d.X_ASB_COM_HttpMgtPort"/>
            <X_ASB_COM_SshMgtPort dv="2222" rw="RW" t="unsignedInt" v="2222" dburi="WANIPConnection.%d.X_ASB_COM_SshMgtPort"/>
            <PTMLink_X_ALU-COM_Mode dv="2" max="2" min="0" rw="RW" t="unsignedInt" v="2" dburi="WANPTMLinkConfig.X_ALU-COM_Mode"/>
            <PTMLink_X_ALU-COM_VLANIDMark dv="0" rw="RW" t="unsignedInt" v="700" dburi="WANPTMLinkConfig.X_ALU-COM_VLANIDMark"/>
            <PTMLink_X_ALU-COM_802-1pMark dv="0" rw="RW" t="unsignedInt" v="0" dburi="WANPTMLinkConfig.X_ALU-COM_802-1pMark"/>
        </WAN_1.>    


### WLAN - WIFI

2.4 GHZ

<WLAN_1. n="WLAN_1" a="static">
            <Enable t="string" ml="12" v="true" dburi="InternetGatewayDevice.LANDevice.1.WLANConfiguration.1.Enable"/>
            <Standard t="string" ml="12" v="b,g,n" dburi="InternetGatewayDevice.LANDevice.1.WLANConfiguration.1.Standard"/>
            <ssidName t="string" ml="64" v="YOUR COMPANY NAME-%4s" fri="genssidfmt" dburi="InternetGatewayDevice.LANDevice.1.WLANConfiguration.1.SSID"/>
            <Powerlevel t="string" ml="4" v="100" dburi="InternetGatewayDevice.LANDevice.1.WLANConfiguration.1.TransmitPower"/>
            <PreSharedKey t="string" ml="64" v="12345678" fri="" dburi="InternetGatewayDevice.LANDevice.1.WLANConfiguration.1.PreSharedKey.1.PreSharedKey"/>



<ssidName t="string" ml="64" v="YOUR COMPANY NAME-%4s" = NESSA OPÇÃO REPARE QUE DEIXAMOS O %4s , É PARA PEGAR OS 4 ÚLTIMOS NÚMERO DA ONT E DEIXAR NO NOME DO WIFI.

<PreSharedKey t="string" ml="64" v="12345678" = SENHA DO WIFI ESTA PADRONIZADA "12345678". Precisa ter no mínimo 8 caracteres.
<PreSharedKey t="string" ml="64" v="" fri="genpwd_longpasswd" = DESSA FORMA GERA A SENHA DA ETIQUEDA DO ROTEADOR


Exemplo: Repare que somente a WLAN_1 esta ativa, e podemos ter ate mais 4 sinais adicionais.


### 5.8 GHZ:


<WLAN_5. n="WLAN_5" a="static">
                        <Enable t="string" ml="12" v="true" dburi="InternetGatewayDevice.LANDevice.1.WLANConfiguration.5.Enable"/>
            <Standard t="string" ml="12" v="a,n,ac" dburi="InternetGatewayDevice.LANDevice.1.WLANConfiguration.5.Standard"/>
            <ssidName t="string" ml="64" v="YOUR COMPANY NAME-5G-%4s" fri="genssidfmt" dburi="InternetGatewayDevice.LANDevice.1.WLANConfiguration.5.SSID"/>
            <Powerlevel t="string" ml="4" v="100" dburi="InternetGatewayDevice.LANDevice.1.WLANConfiguration.5.TransmitPower"/>
            <BeaconType t="string" ml="4" v="11i" dburi="InternetGatewayDevice.LANDevice.1.WLANConfiguration.5.BeaconType" WiFiHotreset="true"/>
            <WPAEncryptionModes t="string" ml="32" v="AESEncryption" dburi="InternetGatewayDevice.LANDevice.1.WLANConfiguration.5.WPAEncryptionModes" WiFiHotreset="true"/>
            <PreSharedKey t="string" ml="64" v="12345678" dburi="InternetGatewayDevice.LANDevice.1.WLANConfiguration.5.PreSharedKey.1.PreSharedKey" WiFiHotreset="true"/>
            <X_ASB_COM_MuMimoEnable dv="false" rw="RW" t="boolean" v="true" dburi="InternetGatewayDevice.LANDevice.1.WLANConfiguration.5.X_ASB_COM_MuMimoEnable"/>            
                </WLAN_5.>
        <WLAN_6. n="WLAN_6" a="static">
                        <Enable t="string" ml="12" v="false" dburi="InternetGatewayDevice.LANDevice.1.WLANConfiguration.6.Enable"/>
            <ssidName t="string" ml="64" v="ALHN-%4s" fri="genssidfmt" dburi="InternetGatewayDevice.LANDevice.1.WLANConfiguration.6.SSID"/>
            <BeaconType t="string" ml="4" v="11i" dburi="InternetGatewayDevice.LANDevice.1.WLANConfiguration.6.BeaconType" WiFiHotreset="true"/>
            <WPAEncryptionModes t="string" ml="32" v="AESEncryption" dburi="InternetGatewayDevice.LANDevice.1.WLANConfiguration.6.WPAEncryptionModes" WiFiHotreset="true"/>
            <PreSharedKey t="string" ml="64" v="" fri="genpwd_longpasswd" dburi="InternetGatewayDevice.LANDevice.1.WLANConfiguration.6.PreSharedKey.1.PreSharedKey" WiFiHotreset="true"/>
            <X_ASB_COM_MuMimoEnable dv="false" rw="RW" t="boolean" v="true" dburi="InternetGatewayDevice.LANDevice.1.WLANConfiguration.6.X_ASB_COM_MuMimoEnable"/>            
                </WLAN_6.>
        <WLAN_7. n="WLAN_7" a="static">
                        <Enable t="string" ml="12" v="false" dburi="InternetGatewayDevice.LANDevice.1.WLANConfiguration.7.Enable"/>
            <ssidName t="string" ml="64" v="ALHN-%4s" fri="genssidfmt" dburi="InternetGatewayDevice.LANDevice.1.WLANConfiguration.7.SSID"/>
            <BeaconType t="string" ml="4" v="11i" dburi="InternetGatewayDevice.LANDevice.1.WLANConfiguration.7.BeaconType" WiFiHotreset="true"/>
            <WPAEncryptionModes t="string" ml="32" v="AESEncryption" dburi="InternetGatewayDevice.LANDevice.1.WLANConfiguration.7.WPAEncryptionModes" WiFiHotreset="true"/>
            <PreSharedKey t="string" ml="64" v="" fri="genpwd_longpasswd" dburi="InternetGatewayDevice.LANDevice.1.WLANConfiguration.7.PreSharedKey.1.PreSharedKey" WiFiHotreset="true"/>
            <X_ASB_COM_MuMimoEnable dv="false" rw="RW" t="boolean" v="true" dburi="InternetGatewayDevice.LANDevice.1.WLANConfiguration.7.X_ASB_COM_MuMimoEnable"/>            
                </WLAN_7.>  
        <WLAN_8. n="WLAN_8" a="dynamic" dburi="InternetGatewayDevice.LANDevice.1.WLANConfiguration.8." >
            <Enable t="string" ml="12" v="false" dburi="Enable"/>
            <ssidName t="string" ml="64" v="" fri="genssid2" dburi="SSID"/>
            <PreSharedKey t="string" ml="64" v="" fri="genpwd_longpasswd" dburi="PreSharedKey.1.PreSharedKey"/>
        </WLAN_8.>







Este artigo foi útil?

Que bom!

Obrigado pelo seu feedback

Desculpe! Não conseguimos ajudar você

Obrigado pelo seu feedback

Deixe-nos saber como podemos melhorar este artigo!

Selecione pelo menos um dos motivos

Feedback enviado

Agradecemos seu esforço e tentaremos corrigir o artigo