REGLAS MIKROTIK
/interface ethernet
set [ find default-name=ether1 ] name=ENTRADA
set [ find default-name=ether7 ] name=SALIDA
set [ find default-name=ether6 ] name=TERNET
/interface vlan
add arp=reply-only interface=SALIDA name=vlan100 vlan-id=100
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/ip pool
add name="pool ternet" ranges=136.1.1.2-136.1.1.254
add name="pppoe salida" ranges=192.168.100.1-192.168.100.254
/ppp profile
add dns-server=8.8.8.8,8.8.4.4 local-address=192.168.100.1 name=profilesalida \
rate-limit="" remote-address="pppoe salida"
/interface pppoe-server server
add authentication=pap default-profile=profilesalida disabled=no interface=\
vlan100 max-mru=1480 max-mtu=1480 one-session-per-host=yes service-name=\
"pppoe olt"
/ip address
add address=192.168.100.1/22 interface=SALIDA network=192.168.100.0
add address=136.1.1.1/24 interface=TERNET network=136.1.1.0
/ip cloud
set ddns-enabled=yes
/ip cloud advanced
set use-local-address=yes
/ip dhcp-client
add disabled=no interface=ENTRADA
/ip dhcp-server network
add address=192.168.90.0/24 gateway=192.168.90.1
/ip dns
set servers=8.8.8.8,8.8.4.4
/ip firewall address-list
add address=amz.smartolt.com list=SmartOLT
/ip firewall nat
add action=dst-nat chain=dstnat comment=SmartOLT dst-port=2333 protocol=tcp \
src-address-list=SmartOLT to-addresses=136.1.1.100 to-ports=23
add action=dst-nat chain=dstnat comment=SmartOLT dst-port=2322 protocol=tcp \
src-address-list=SmartOLT to-addresses=136.1.1.100 to-ports=22
add action=dst-nat chain=dstnat comment=SmartOLT dst-port=2161 protocol=udp \
src-address-list=SmartOLT to-addresses=136.1.1.100 to-ports=161
add action=masquerade chain=srcnat comment=SmartOLT dst-address-list=SmartOLT
/ip service
set www-ssl disabled=no
/ppp secret
add name=derivalnet password=1234 profile=profilesalida service=pppoe
/system clock
set time-zone-name=America/Santo_Domingo
COMANDOS ZTE
ZTE OLT initial steps
In this post you'll find step by step instructions for initial OLT configuration
and for setting up the IP connectivity of the ZTE C300/C320/C350/C220 OLTs. After
completing these steps, you'll be ready to connect your OLT to SmartOLT.
Step one: Connect to the OLT with telnet using the default IP address.
The factory IP address of any ZTE OLT is 136.1.1.100. The default username is zte
and the password is zte
In some cases the "zte" username does not have high privileges assigned: the telnet
console displays after logging in the sign ">" instead of "#". In that case, the
"enable" command will be additionally needed. The default password for "enable" is
zxr10 .
Connect an ethernet cable to the dedicated (out-of-band) management port of the
OLT. This management port is typically labeled 10/100 or MNG. It is positioned near
the CL1 or DIAG port. CL1 is the serial console port (9600-8N1).
The 10/100 port is an isolated port, designed for management purposes only. This
port cannot be used to transport the traffic of the customers.
Configure on your PC or on the ethernet port of the Mikrotik where the OLTs'
management port is connected the IP address 136.1.1.1/255.255.255.0 . Verify
connectivity by pinging 136.1.1.100, you should receive replies. Then connect to
the OLT.
telnet 136.1.1.100
Trying 136.1.1.100...
Connected to 136.1.1.100.
Escape character is '^]'.
comandos consola mikrotik
/system console disable 0
/port set 0 baud-rate=9600 data-bits=8 parity=none stop-bits=1 flow-control=none
/system serial-terminal serial0
************************************************
Welcome to ZXAN product C320 of ZTE Corporation
************************************************
Username:zte
Password:
ZXAN#
Step two: Enable plug-and-play detection of the OLT boards and add the chassis
type.
# For C320 OLT
conf t
set-pnp enable
add-rack rackno 1 racktype C320Rack
add-shelf rackno 1 shelfno 1 shelftype C320_SHELF
exit
# For C300 OLT
conf t
set-pnp enable
add-rack rackno 1 racktype IEC19
add-shelf rackno 1 shelfno 1 shelftype IEC_SHELF
exit
Verify the status of the cards using the command: show card
ZXAN# show card
Rack Shelf Slot CfgType RealType Port HardVer SoftVer Status
-------------------------------------------------------------------------------
1 1 2 GTGH GTGHG 16 120700 V1.2.5P3 INSERVICE
1 1 3 SMXA SMXA 3 131201 V1.2.5P3 INSERVICE
1 1 4 SMXA SMXA 3 131201 V1.2.5P3 STANDBY
Step three Configure a new management IP address on the (out-of-band) mng1
interface:
conf t
interface mng1
ip address [IP] [MASK]
exit
Reconnect to the OLT using the new IP address you assigned.
Add the default gateway and save configuration:
conf t
no ip route 0.0.0.0 0.0.0.0
ip route 0.0.0.0 0.0.0.0 [IP of the GATEWAY]
exit
write
Step four:
Create a dedicated username/password. This user/pass will be used between SmartOLT
and your OLT.
conf t
username smartoltusr password (enter a strong password) max-sessions 16 privilege
15
exit
At this stage, your OLT is ready to be interconnected with SmartOLT system.
# Other settings (If you use SmartOLT, these are configured automatically, no need
to configure them manually):
conf t
auto-write enable
auto-write 18:00:00 everyday
mib-compatibility iftable v2
ntp server 91.189.89.199 priority 1
ntp server 80.96.196.58 priority 2
ntp enable
exit
conf t
no ssh server only
exit
write
reboot
comandos para resetear de fabrica la olt
file delete cfg-startup startrun.dat
file delete cfg-startup startrun.sav
# Optional, you can configure an "in-band" IP address on a VLAN interface. This is
useful when you want to manage the OLT using the same physical interface that is
used for normal traffic of the customers. We do not recommend this scenario because
if a loop happens in the ONT, undetected by the ONT/OLT and the uplink port is
shutdown by the uplink device as a reaction to the loop, you will lose the IP
connectivity with the OLT as well.
conf t
vlan 300
exit
interface vlan300
ip address [IP] [MASK]
Addresses Hosts Netmask Amount of a Class C
/30 4 2 255.255.255.252 1/64
/29 8 6 255.255.255.248 1/32
/28 16 14 255.255.255.240 1/16
/27 32 30 255.255.255.224 1/8
/26 64 62 255.255.255.192 1/4
/25 128 126 255.255.255.128 1/2
/24 256 254 255.255.255.0 1
/23 512 510 255.255.254.0 2
/22 1024 1022 255.255.252.0 4
/21 2048 2046 255.255.248.0 8
/20 4096 4094 255.255.240.0 16
/19 8192 8190 255.255.224.0 32
/18 16384 16382 255.255.192.0 64
/17 32768 32766 255.255.128.0 128
/16 65536 65534 255.255.0.0 256