Wiki source code of Script de provisionamento
Last modified by Jean Franco on 2024/06/09 15:32
Hide last authors
| author | version | line-number | content |
|---|---|---|---|
![]() |
1.1 | 1 | Script de provisionamento: |
| 2 | |||
| 3 | interface gpon-olt_#pon_id# | ||
| 4 | onu #onu_numero# type ZTE-F660 sn #onu_mac# | ||
| 5 | onu #onu_numero# profile line padrao01 | ||
| 6 | exit | ||
| 7 | interface gpon-onu_#pon_id#:#onu_numero# | ||
| 8 | service-port 1 vport 1 user-vlan #vlan# vlan #vlan# | ||
| 9 | exit | ||
| 10 | pon-onu-mng gpon-onu_#pon_id#:#onu_numero# | ||
| 11 | service INTERNET gemport 1 vlan #vlan# | ||
| 12 | wan-ip 1 mode pppoe username #pppoe_login# password #pppoe_senha# vlan-profile INT-#vlan# host 1 | ||
| 13 | pppoe 1 nat enable user #pppoe_login# password #pppoe_senha#;security-mgmt 1 state enable mode forward ingress-type wan protocol web | ||
![]() |
2.1 | 14 | |
| 15 | |||
| 16 | Provisionando ONU em Bridge - 1 porta: | ||
| 17 | |||
| 18 | interface gpon-olt_#pon_id#; onu #onu_numero# type ZTE-F600 sn #onu_mac#; onu #onu_numero# profile PROFILE-ONU; exit; interface gpon-onu_#pon_id#:#onu_numero#; service-port 1 vport 1 user-vlan #vlan# vlan #vlan#;exit; pon-onu-mng gpon-onu_#pon_id#:#onu_numero#; service INTERNET-SERVICE gemport 1 vlan #vlan#; vlan port eth_0/1 mode tag vlan #vlan#; | ||
| 19 | |||
| 20 | Provisionando ONU em Bridge - 4 portas: | ||
| 21 | |||
| 22 | interface gpon-olt_#pon_id#; onu #onu_numero# type ZTE-F600 sn #onu_mac#; onu #onu_numero# profile PROFILE-ONU; exit; interface gpon-onu_#pon_id#:#onu_numero#; service-port 1 vport 1 user-vlan #vlan# vlan #vlan#;exit; pon-onu-mng gpon-onu_#pon_id#:#onu_numero#; service INTERNET-SERVICE gemport 1 vlan #vlan#; vlan port eth_0/1 mode tag vlan #vlan#; vlan port eth_0/2 mode tag vlan #vlan#; vlan port eth_0/3 mode tag vlan #vlan#; vlan port eth_0/4 mode tag vlan #vlan#; | ||
| 23 | |||
| 24 | Provisionando em modo roteador com PPPoE: | ||
| 25 | |||
| 26 | interface gpon-olt_#pon_id#; onu #onu_numero# type ZTE-F600 sn #onu_mac#; onu #onu_numero# profile PROFILE-ONU; exit; interface gpon-onu_#pon_id#:#onu_numero#; service-port 1 vport 1 user-vlan #vlan# vlan #vlan#; exit; pon-onu-mng gpon-onu_#pon_id#:#onu_numero#; service INTERNET-SERVICE gemport 1 iphost 1 vlan #vlan#; wan-ip 1 mode pppoe username #pppoe_login# password #pppoe_senha# vlan-profile PROFILE-PPPOE host 1; pppoe 1 nat enable user #pppoe_login# password #pppoe_senha#; security-mgmt 1 state enable mode forward ingress-type iphost 1 protocol web; | ||
| 27 | |||
| 28 | |||
| 29 |
