Olá pessoal!
Eu sou Patrick Brandão.
Em minha experiência de quase 20 anos com sistemas Linux, percebi que boa parte do meu tempo era consumido
com re-trabalhos: reinstalar SO, reparar danos por desastres naturais (raios, quedas de energia, componentes queimados), sabotagens causadas por invasões, danos causados
por usuários inexperientes e MUITA, mas MUITA dificuldade ao lidar com usuário inexperiente por telefone diante de um terminal.
Como sou desenvolvedor de software, meus sistemas eram feitos para rodar no Linux Conectiva, Debian, CentOS, Ubuntu entre outras. Isso se mostrou
um problema pois meus clientes (usuários) sempre conseguiam dar algum comando que danificava o sistema ou causavam
inconcistencias no software com seus 'apt-get', 'yum', 'rm -rf /', 'chmod 000 *', etc...
Consegui resolver muito desses problemas migrando e homologando meus softwares somente no Slackware.
Reduzi a quase zero o indice de suportes por problemas criados pelo usuário e seus técnicos aventureiros.
O servidor passou a ter um pouco de paz e meus softwares chegaram perto do SUPORTE-ZERO.
Mas como nem tudo é perfeito, faltava lidar com os problemas de instalação, reparação do sistema em caso de danos e recuperação de dados, o que por telefone ainda eram penosos.
Apos estudar o Slackware por 10 anos, resolvi criar minha propria distribuição Linux.
Meu objetivo com o Slackmini é criar uma distribuição
extremamente simples para o usuário inexperiente mas muito abrangente para desenvolvedores e pessoas experientes.
Seu projeto visa atender todas as necessidades para executar sistemas
personalizados em plataforma x86 64bits sem muita perda de tempo e dispensando "ajustes finos".
Espero que gostem e me ajudem a torna-lo melhor!
Inspirado no Slackware, o Slackmini é uma distribuição desenvolvida do zero,
compilada pacote por pacote com o objetivo de manter apenas arquivos necessários e executar processos com o mínimo de recursos de hardware com estabilidade.
Em sua forma original, o Slackmini não prove nada, apenas um Linux cujo boot rápido e linear (baseado no Slackware) se encarrega
de subir o ambiente mínimo para execução de programas (que você deve instalar e pre-configurar).
Voce pode usar o Slackmini em conjunto com seus pacotes personalizados, o manual lhe ensinara como cria-los.
Bastará
instalar o Slackmini e seu pacote para ter um sistema pronto, pequeno, rápido, estavel e imune a sabotagens.
Lembre-se: KISS - Keep it Short & Simple.
Para baixar o Slackmini, acesse o site http://www.slackmini.com.br e clique na opção DOWNLOAD.
Link para download: http://downloads.slackmini.com.br/isos/slackmini-1.0.iso
Usuário: | root |
Senha: | tulipa |
Senhas que você não pode usar:
Porta padrão do servidor SSH: | 1822 |
ls ou [tab] :listar itens no diretório e itens. [ admin @ servidor ] > ls /[D] system/ [D] interface/ [D] ip/ [D] ipv6/ [D] tools/ [>] export [>] about [>] copyright [>] date [>] desligar [>] exit [>] logout [>] poweroff [>] quit [>] reboot [>] reiniciar [>] sair [>] service [>] free [>] iperf [>] iptraf [>] lscpu [>] mtr [>] ping [>] ping6 [>] ps [>] tcpdump [>] top [>] htop [>] traceroute [>] uptime [>] ssh [>] telnet [ admin @ servidor ] > Diretórios aparecem de azul, itens aparecem de magenta (rosa). Todos os item são comandos, basta digitar o nome do item para executá-lo. Para entrar em umdiretório basta digitar o nome tambem.(nome do diretório) :Entrar no diretório. [ admin @ servidor ] > system [ admin @ servidor ] /system > Você pode usar " .. " (sem aspas) para voltar ao diretório superior.[ admin @ servidor ] /system > .. [ admin @ servidor ] > Ou usar " - " para voltar ao diretório anterior.[ admin @ servidor ] > - [ admin @ servidor ] /system > Você pode especificar o caminho completo para um diretório para entrar nele. Ao abreviar nomes, o ZeroShell irá procurar um item ou diretorio semelhante para tentar descobrir o que você queria dizer. [ admin @ servidor ] /system > /ip addr [ admin @ servidor ] /ip address > Voltar para o / (raiz). [ admin @ servidor ] /ip address > / [ admin @ servidor ] > Execute um comando global em qualquer diretório. ping :Testar rede IP enviando um pacote ICMP. [ admin @ servidor ] > - [ admin @ servidor ] /ip address > [ admin @ servidor ] /ip address > ping 127.0.0.1 count=2 SEQ HOST SIZE TTL TIME STATUS 1 127.0.0.1 64 64 0.166 echo reply 2 127.0.0.1 64 64 0.031 echo reply sent=2 received=2 packet-loss=0 min-rtt=0.031 avg-rtt=0.098 max-rtt=0.166[ admin @ servidor ] /ip address > ping ::1 count=2 SEQ HOST SIZE TTL TIME STATUS 1 ::1 64 64 0.077 echo reply 2 ::1 64 64 0.095 echo reply sent=2 received=2 packet-loss=0 min-rtt=0.077 avg-rtt=0.086 max-rtt=0.095[ admin @ servidor ] /ip address > ping gateway 2 SEQ HOST SIZE TTL TIME STATUS 1 172.20.0.1 64 64 0.433 echo reply 2 172.20.0.1 64 64 0.548 echo reply sent=2 received=2 packet-loss=0 min-rtt=0.433 avg-rtt=0.490 max-rtt=0.548[ admin @ servidor ] /ip address > ping uol.com.br 4 Get address for uol.com.br -> 200.221.2.45 SEQ HOST SIZE TTL TIME STATUS 1 200.221.2.45 64 57 21.2 echo reply 2 200.221.2.45 64 57 17.2 echo reply 3 200.221.2.45 64 57 16.9 echo reply 4 200.221.2.45 64 57 17.6 echo reply sent=4 received=4 packet-loss=0 min-rtt=16.984 avg-rtt=18.289 max-rtt=21.279[ admin @ servidor ] /ip address > ping ipv6 uol.com.br 4 Get address for uol.com.br -> 2804:49c:3103:401:ffff:ffff:ffff:1 SEQ HOST SIZE TTL TIME STATUS 1 2804:1b40:2:4000::41 64 64 9.025 echo reply 2 2804:1b40:2:4000::41 64 64 3.049 echo reply 3 2804:1b40:2:4000::41 64 64 6.049 echo reply 4 2804:1b40:2:4000::41 64 64 8.038 echo reply sent=4 received=4 packet-loss=0 min-rtt=3.049 avg-rtt=6.542 max-rtt=9.025[ admin @ servidor ] /ip address > / [ admin @ servidor ] > Comandos importantes: about ou copyright :Exibe informações sobre o Slackmini date :Exibir data/hora e timezone export :Exportar configuração das sessões do ZeroShell desligar ou poweroff :Desligar o servidor quit, exit, sair ou logout :Finalizar a sessão (desconectar) reboot ou reiniciar :Reiniciar o servidor service :Gerenciar serviços free :Exibir uso de memória iperf :Ferramenta para testar capacidade de rede iptraf :Monitorar rede visualmente lscpu :Exibir informações do processador traceroute :Exibe um ping de roteador por roteador mtr :Monitora visualmente os roteadores igual o traceroute ps :Exibe processos sendo executados (listar todos: ps xau) tcpdump :Exibe pacotes capiturados na rede top :Monitora visualmente processos em execução htop :Versão mais completa do comando top uptime :Informa tempo de execução e carga de trabalho do Linux ssh :Fazer conexão via SSH telnet :Fazer conexão via TELNET
/ /system desligar export logout poweroff reboot reiniciar /system clock export print set /system kernel print set /system package info install print remove repair update view /system service disable enable print restart start status stop /interface export print /interface ethernet info print reset set sync /interface 6to4 add export remove set sync /interface gre add export remove set sync /interface gre6 add export remove set sync /interface ipip add export remove set sync /interface ipipv6 add export remove set sync /interface pppoe-client add export remove set sync /interface vlan add export remove set sync /ip export print /ip address add export print remove set sync /ip arp arping flush info print scan monitor /ip dns add dig dns-ping host print nslookup remove set sync test /ip route add get print remove set /ipv6 export print /ipv6 address add export print remove set sync /ipv6 neighboor flush info print scan monitor /ipv6 dns add dig dns-ping host print nslookup remove set sync test /ipv6 route add get print remove set /tools ethtool free htop iperf iptraf lscpu mtr ping ping6 ps ssh tcpdump telnet top traceroute uptime
/interface :Entrar no diretório de interfaces de rede. [ admin @ servidor ] > /interface [ admin @ servidor ] /interface > Você pode abreviar. Usando /inter ,/inte ,/int .[ admin @ servidor ] /interface > / [ admin @ servidor ] > /int [ admin @ servidor ] /interface > /interface print :Exibir interfaces de rede. Você pode digitar o comando completo (diretório item) ou entrar no diretório e digitar o nome do item. [ admin @ servidor ] /interface /interface print help :Mostra modos de listar interfaces. [ admin @ servidor ] /interface > print help Imprimir lista de interfaces Use: print : Exibir interfaces e detalhes de conexao print stats : Exibir interfaces e estatisticas print rate [opcoes] : Exibir trafego nas interfaces (TEMPO REAL) [bits/bytes/packets/errors/rate/max/sum/avg] print ethernet : Exibir interfaces ethernet print mac : Exibir MAC-ADDRESS das interfaces L2 print vlan : Exibir Vlans (802.1q e 802.1ad) print ifconfig [interface] : Exibir modo 'ifconfig' print link [interface] : Exibir modo 'ip link' print netstat : Exibir modo 'netstat -i'/interface print stats :Mostra dados enviados e recebidos. [ admin @ servidor ] /interface > print stats Nome RX Bytes RX Packets RX Bytes RX Packets lo 324 B 3 324 B 3 eth0 0 0 648 B 8 eth1 0 0 648 B 8 eth2 0 0 648 B 8 eth3 658.5 MiB 1.170.083 19.0 MiB 98.847/interface print rate :Mostra dados em tempo real. input: /proc/net/dev type: rate \ iface Rx Tx Total ============================================================================== eth0: 0.00 kb/s 0.00 kb/s 0.00 kb/s eth1: 0.00 kb/s 0.00 kb/s 0.00 kb/s eth2: 0.00 kb/s 0.00 kb/s 0.00 kb/s eth3: 157.14 kb/s 77.09 kb/s 234.23 kb/s lo: 0.00 kb/s 0.00 kb/s 0.00 kb/s ------------------------------------------------------------------------------ total: 157.14 kb/s 77.09 kb/s 234.23 kb/sSegura a barra de espaço para atualizar mais rápido. Tecle q para sair./interface print mac :Exibir MAC-Address das interfaces L2 [ admin @ servidor ] /interface > print mac Idx Nome Status Cabo Tipo L3-MTU MAC-ADDRESS 5 eth0 UP Ligado Ethernet 1500 00:0c:29:0d:a2:22 4 eth1 UP Ligado Ethernet 1500 00:0c:29:0d:a2:33 3 eth2 UP Ligado Ethernet 1500 00:0c:29:0d:a2:44 2 eth3 UP Ligado Ethernet 1500 00:0c:29:0d:a2:55/interface ethernet :Entrar no diretório de interfaces ethernet. [ admin @ servidor ] > /int eth [ admin @ servidor ] /interface ethernet > /interface ethernet print :Exibir interfaces de rede ethernet. [ admin @ servidor ] /interface ethernet /interface ethernet info :ethx Informações de midia da interface. [ admin @ servidor ] /interface ethernet > info eth3 02:07.0 Ethernet controller: Intel Corporation 82545EM Gigabit Ethernet Controller (Copper) (rev 01) Subsystem: VMware 82545EM Gigabit Ethernet Controller (Copper) (PRO/1000 MT Single Port Adapter) Physical Slot: 39 Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx- Status: Cap+ 66MHz+ UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx- Latency: 0 (63750ns min), Cache Line Size: 64 bytes Interrupt: pin A routed to IRQ 17 Region 0: Memory at fd540000 (64-bit, non-prefetchable) [size=128K] Region 2: Memory at fdfc0000 (64-bit, non-prefetchable) [size=64K] Region 4: I/O ports at 2400 [size=64] [virtual] Expansion ROM at fd530000 [disabled] [size=64K] Capabilities: [dc] Power Management version 2 Flags: PMEClk- DSI+ D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-) Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME- Capabilities: [e4] PCI-X non-bridge device Command: DPERE- ERO+ RBC=512 OST=1 Status: Dev=ff:1f.0 64bit+ 133MHz+ SCD- USC- DC=simple DMMRBC=2048 DMOST=1 DMCRS=16 RSCEM- 266MHz- 533MHz- Kernel driver in use: e1000 Kernel modules: e1000 Settings for eth0: Supported ports: [ TP ] Supported link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full 1000baseT/Full Supported pause frame use: No Supports auto-negotiation: Yes Advertised link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full 1000baseT/Full Advertised pause frame use: No Advertised auto-negotiation: Yes Speed: 1000Mb/s Duplex: Full Port: Twisted Pair PHYAD: 0 Transceiver: internal Auto-negotiation: on MDI-X: off (auto) Supports Wake-on: d Wake-on: d Current message level: 0x00000007 (7) drv probe link Link detected: yes /interface ethernet print pci :Listar interfaces (PCI). [ admin @ servidor ] /interface ethernet > print pci 02:01.0 Ethernet controller: Intel Corporation 82545EM Gigabit Ethernet Controller (Copper) (rev 01) Subsystem: VMware 82545EM Gigabit Ethernet Controller (Copper) (PRO/1000 MT Single Port Adapter) Physical Slot: 33 Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx- Status: Cap+ 66MHz+ UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx- Latency: 0 (63750ns min), Cache Line Size: 64 bytes Interrupt: pin A routed to IRQ 19 Region 0: Memory at fd5a0000 (64-bit, non-prefetchable) [size=128K] Region 2: Memory at fdff0000 (64-bit, non-prefetchable) [size=64K] Region 4: I/O ports at 2000 [size=64] [virtual] Expansion ROM at fd500000 [disabled] [size=64K] Capabilities: [dc] Power Management version 2 Flags: PMEClk- DSI+ D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-) Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME- Capabilities: [e4] PCI-X non-bridge device Command: DPERE- ERO+ RBC=512 OST=1 Status: Dev=ff:1f.0 64bit+ 133MHz+ SCD- USC- DC=simple DMMRBC=2048 DMOST=1 DMCRS=16 RSCEM- 266MHz- 533MHz- Kernel driver in use: e1000 Kernel modules: e1000 02:05.0 Ethernet controller: Intel Corporation 82545EM Gigabit Ethernet Controller (Copper) (rev 01) Subsystem: VMware 82545EM Gigabit Ethernet Controller (Copper) (PRO/1000 MT Single Port Adapter) Physical Slot: 37 Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx- Status: Cap+ 66MHz+ UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx- Latency: 0 (63750ns min), Cache Line Size: 64 bytes Interrupt: pin A routed to IRQ 19 Region 0: Memory at fd580000 (64-bit, non-prefetchable) [size=128K] Region 2: Memory at fdfe0000 (64-bit, non-prefetchable) [size=64K] Region 4: I/O ports at 2080 [size=64] [virtual] Expansion ROM at fd510000 [disabled] [size=64K] Capabilities: [dc] Power Management version 2 Flags: PMEClk- DSI+ D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-) Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME- Capabilities: [e4] PCI-X non-bridge device Command: DPERE- ERO+ RBC=512 OST=1 Status: Dev=ff:1f.0 64bit+ 133MHz+ SCD- USC- DC=simple DMMRBC=2048 DMOST=1 DMCRS=16 RSCEM- 266MHz- 533MHz- Kernel driver in use: e1000 Kernel modules: e1000 02:06.0 Ethernet controller: Intel Corporation 82545EM Gigabit Ethernet Controller (Copper) (rev 01) Subsystem: VMware 82545EM Gigabit Ethernet Controller (Copper) (PRO/1000 MT Single Port Adapter) Physical Slot: 38 Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx- Status: Cap+ 66MHz+ UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx- Latency: 0 (63750ns min), Cache Line Size: 64 bytes Interrupt: pin A routed to IRQ 16 Region 0: Memory at fd560000 (64-bit, non-prefetchable) [size=128K] Region 2: Memory at fdfd0000 (64-bit, non-prefetchable) [size=64K] Region 4: I/O ports at 20c0 [size=64] [virtual] Expansion ROM at fd520000 [disabled] [size=64K] Capabilities: [dc] Power Management version 2 Flags: PMEClk- DSI+ D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-) Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME- Capabilities: [e4] PCI-X non-bridge device Command: DPERE- ERO+ RBC=512 OST=1 Status: Dev=ff:1f.0 64bit+ 133MHz+ SCD- USC- DC=simple DMMRBC=2048 DMOST=1 DMCRS=16 RSCEM- 266MHz- 533MHz- Kernel driver in use: e1000 Kernel modules: e1000 02:07.0 Ethernet controller: Intel Corporation 82545EM Gigabit Ethernet Controller (Copper) (rev 01) Subsystem: VMware 82545EM Gigabit Ethernet Controller (Copper) (PRO/1000 MT Single Port Adapter) Physical Slot: 39 Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx- Status: Cap+ 66MHz+ UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx- Latency: 0 (63750ns min), Cache Line Size: 64 bytes Interrupt: pin A routed to IRQ 17 Region 0: Memory at fd540000 (64-bit, non-prefetchable) [size=128K] Region 2: Memory at fdfc0000 (64-bit, non-prefetchable) [size=64K] Region 4: I/O ports at 2400 [size=64] [virtual] Expansion ROM at fd530000 [disabled] [size=64K] Capabilities: [dc] Power Management version 2 Flags: PMEClk- DSI+ D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-) Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME- Capabilities: [e4] PCI-X non-bridge device Command: DPERE- ERO+ RBC=512 OST=1 Status: Dev=ff:1f.0 64bit+ 133MHz+ SCD- USC- DC=simple DMMRBC=2048 DMOST=1 DMCRS=16 RSCEM- 266MHz- 533MHz- Kernel driver in use: e1000 Kernel modules: e1000
/interface vlan :Entrar no diretório de interfaces de rede. [ admin @ servidor ] > /int vlan [ admin @ servidor ] /interface vlan > A principio não existe nenhuma VLAN, observe: [ admin @ servidor ] /interface vlan [ admin @ servidor ] /interface vlan > /interface vlan print :Exibir VLANs cadastradas. /interface vlan add help :Explica como criar VLANs. [ admin @ servidor ] /interface vlan > add help Adicionar interface VLAN Use: add (INTERFACE) (VLAN-ID) [PROTOCOLO] [opcoes] Opcoes: name=NOME : Nome simbolico comment=COMENTARIO : Comentario da VLAN mac-address=COMENTARIO : Especificar MAC-ADDRESS Exemplos: add eth1.800 : Cria a vlan 1q com VID '800' na interface 'eth1' add eth1 801 : Cria a vlan 1q com VID '801' na interface 'eth1' add eth1 80 disabled : Cria a vlan desabilitada no sistema (em DOWN) add eth2 127 qinq : Cria a vlan QinQ com VID '127' na interface 'eth2' Exemplos de compatibilidade com outros sistemas: add interface=eth2 vlan-id=127 use-service-tag=yes mtu=1500 name='V-Router'/interface vlan add :ethX.VID Criar VLAN rápida (interface.VID). /interface vlan add :ethX VID Criar VLAN rápida. (interface VID) [ admin @ servidor ] /interface vlan > add eth0.10 [ admin @ servidor ] /interface vlan [ admin @ servidor ] /interface vlan > add eth0.20 [ admin @ servidor ] /interface vlan [ admin @ servidor ] /interface vlan > /int print Idx Nome Status Cabo Velocidade Tipo L3-MTU 1 lo UP Ilimitada Loopback 65536 5 eth0 UP Ligado 1000/full Ethernet 1500 32 eth0.10 UP 1000/full VLAN 1500 33 eth0.20 UP 1000/full VLAN 1500
root@servidor:/# tcpdump -nevv -i eth1 18:12:57.967838 00:12:34:ab:cd:ef > 33:33:29:ca:fe:99, ethertype 802.1Q-QinQ (0x88a8), length 94: vlan 9, p 0, ethertype 802.1Q, vlan 10,p 0, ethertype IPv6, (hlim 255, next-header ICMPv6 (58) payload length: 32)
[ admin @ servidor ] > /int vlan [ admin @ servidor ] /interface vlan > [ admin @ servidor ] /interface vlan > add eth1.8 qinq [ admin @ servidor ] /interface vlan > add eth1.9 qinq [ admin @ servidor ] /interface vlan [ admin @ servidor ] /interface vlan >
[ admin @ servidor ] /interface vlan > add eth1.s8 10 [ admin @ servidor ] /interface vlan > add eth1.s8 20 [ admin @ servidor ] /interface vlan > add eth1.s8 30 [ admin @ servidor ] /interface vlan > add eth1.s9 10 [ admin @ servidor ] /interface vlan > add eth1.s9 20 [ admin @ servidor ] /interface vlan > add eth1.s9 30 [ admin @ servidor ] /interface vlan > add eth1.s9 40 [ admin @ servidor ] /interface vlan [ admin @ servidor ] /interface vlan > /interface vlan remove :ethX.VID Remover VLAN pelo nome. [ admin @ servidor ] /interface vlan > remove eth1.s9.10 [ admin @ servidor ] /interface vlan > remove eth1.s9.20 [ admin @ servidor ] /interface vlan > remove eth1.s9.30 [ admin @ servidor ] /interface vlan > remove eth1.s9.40 [ admin @ servidor ] /interface vlan [ admin @ servidor ] /interface vlan > /interface vlan remove :ID Remover pelo ID (primeira coluna). [ admin @ servidor ] /interface vlan > remove 5 [ admin @ servidor ] /interface vlan > remove 4 [ admin @ servidor ] /interface vlan > remove 3 [ admin @ servidor ] /interface vlan [ admin @ servidor ] /interface vlan >
[ admin @ servidor ] /interface vlan [ admin @ servidor ] /interface vlan > add eth1.40 [ admin @ servidor ] /interface vlan > add eth1.40 10 [ admin @ servidor ] /interface vlan
/interface vlan add :ethX.VID MAC Criar VLAN com MAC alterado. [ admin @ servidor ] /interface vlan [ admin @ servidor ] /interface vlan > add eth0.101 00:FF:BE:BA:CA:FE [ admin @ servidor ] /interface vlan > add eth0.102 00:FA:DA:5A:FA:DA [ admin @ servidor ] /interface vlan [ admin @ servidor ] /interface vlan > print ifconfig eth0.101 eth0.102 eth0.101: flags=4163mtu 1500 inet6 fe80::2ff:beff:feba:cafe prefixlen 64 scopeid 0x20 ether 00:ff:be:ba:ca:fe txqueuelen 0 (Ethernet) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 8 bytes 648 (648.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 eth0.102: flags=4163 mtu 1500 inet6 fe80::2fa:daff:fe5a:fada prefixlen 64 scopeid 0x20 ether 00:fa:da:5a:fa:da txqueuelen 0 (Ethernet) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 8 bytes 648 (648.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 [ admin @ servidor ] /interface vlan > print link eth0.101 eth0.102 13: eth0.101@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default link/ether 00:ff:be:ba:ca:fe brd ff:ff:ff:ff:ff:ff RX: bytes packets errors dropped overrun mcast 0 0 0 0 0 0 RX errors: length crc frame fifo missed 0 0 0 0 0 TX: bytes packets errors dropped carrier collsns 648 8 0 0 0 0 TX errors: aborted fifo window heartbeat transns 0 0 0 0 0 14: eth0.102@eth0: <<BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default link/ether 00:fa:da:5a:fa:da brd ff:ff:ff:ff:ff:ff RX: bytes packets errors dropped overrun mcast 0 0 0 0 0 0 RX errors: length crc frame fifo missed 0 0 0 0 0 TX: bytes packets errors dropped carrier collsns 648 8 0 0 0 0 TX errors: aborted fifo window heartbeat transns 0 0 0 0 0
/ip address :Entrar no diretório de configuração IPv4. [ admin @ servidor ] > /ip addr [ admin @ servidor ] /ip address > /ip address print :Listar endereços IPv4. [ admin @ servidor ] /ip address [ admin @ servidor ] /ip address >
Caso você precise atribuir um IP público (IP válido) ao Slackmini
sem perder endereços em divisões de sub-redes (como por exemplo,
num /30 você perde 3 ips: rede, gateway e broadcast) você pode adicionar um único endereço /32 na interface loopback (nome lo).
/ip address add help :Exibe ajuda para configurar endereço IPv4. [ admin @ servidor ] /ip address > add help Adicionar endereco IPv4 na interface Use: add [opcoes] Opcoes: address=x.x.x.x/nn : Endereco IP e numero de bits da mascara interface=DEV : Interface de rede comment=COMENTARIO : Comentario no registro disabled=yes/no : Adicionar desativado (yes = nao aplicar na interface) Exemplo: add eth0 192.168.0.1/24 Exemplos de compatibilidade com outros sistemas: add address=192.168.0.1/24 interface=eth0 disabled=no[ admin @ servidor ] /ip address > /ip address add :ethX x.x.x.x/n Adicionar endereço IPv4. [ admin @ servidor ] /ip address > add 172.20.0.2/24 eth0 [ admin @ servidor ] /ip address > add 10.0.0.1/24 eth1 [ admin @ servidor ] /ip address [ admin @ servidor ] /ip address > ping 10.0.0.1 2 SEQ HOST SIZE TTL TIME STATUS 1 10.0.0.1 64 64 0.027 echo reply 2 10.0.0.1 64 64 0.038 echo reply sent=2 received=2 packet-loss=0 min-rtt=0.027 avg-rtt=0.032 max-rtt=0.038[ admin @ servidor ] /ip address > /ip address remove :x.x.x.x Remover endereço IPv4. [ admin @ servidor ] /ip address > remove 10.0.0.1 - Removendo registro 2: 10.0.0.1/24 na interface eth1 [ admin @ servidor ] /ip address [ admin @ servidor ] /ip address >
/ip route :Entrar no diretório de configuração de rotas IPv4. [ admin @ servidor ] > /ip rou [ admin @ servidor ] /ip route > /ip route print :Listar rotas IPv4. [ admin @ servidor ] /ip route [ admin @ servidor ] /ip route > /ip route add help :Exibe ajuda para adicionar rotas IPv4. [ admin @ servidor ] /ip route > add help Adicionar rota estatica IPv4 Use: add [opcoes] Opcoes: dst-address=x.x.x.x/nn : Endereco IP e numero de bits da mascara interface=DEV : Interface de rede gateway=DEV : IP do proximo salto distance=N : Metrica (saltos) comment=COMENTARIO : Comentario no registro disabled=yes/no : Adicionar desativado (yes = nao aplicar) Exemplos: add 0.0.0.0/0 192.168.0.1 add dst=0.0.0.0/0 gw=192.168.0.1 Exemplos de compatibilidade com outros sistemas: add dst-address=0.0.0.0/0 gateway=192.168.0.1[ admin @ servidor ] /ip route > /ip route add :default x.x.x.x Adicionar gateway padrão [ admin @ servidor ] /ip route > add default 172.20.0.1 [ admin @ servidor ] /ip route
/ip route print help :Exibe modos de impressão de rotas IPv4. Exibir tabela de rotas IPv4 Use: print [opcoes] Opcoes: cache : Exibir cache de rotas kernel : Exibir rotas do /proc/net/route iproute : Exibir rotas via iproute2 route : Exibir rotas via 'route -n' netstat : Exibir rotas via 'netstat -rn' static : Exibir rotas estaticas cadastradas zebra : Exibir rotas pelo Zebra ospf : Exibir rotas OSPF pelo Zebra bgp : Exibir rotas BGP pelo Zebra local : Exibir tabela local default : Exibir tabela default rule : Exibir sequencia de roteamento table [N] : Exibir tabela pelo numero (0-255)[ admin @ servidor ] /ip route /ip route print static :Exibe rotas cadastradas manualmente. [ admin @ servidor ] /ip route > print static # Destino Gateway Interface Metric IP Local 1 0.0.0.0/0 172.20.0.1 1/ip route print static running :Exibe cadastradas e operacionais. [ admin @ servidor ] /ip route > print static run Flags: X - desativa A - ativa, D - dinamica C - conectada s - estatica B - blackhole U - unreachable P - prohibit # Destino IP Local Gateway Metrica Interface A 0.0.0.0/0 172.20.0.1 1 eth0
/ip route print get x.x.x.x :Faz ROUTER LOOKUP para determinado IP. [ admin @ servidor ] /ip route > get 200.160.2.3 - Rota: 200.160.2.3 via 172.20.0.1 dev eth0 src 172.20.0.2 cache[ admin @ servidor ] /ip route > /ip route print rule :Exibe ordem de consulta de roteamento. /ip route print cache :Exibe a tabela de cache de rotas. /ip route print local :Exibe a tabela de IPs locais e broadcasts. /ip route print main :Exibe a tabela de rotas estáticas/dinãmicas. /ip route print default :Exibe a tabela de rotas final. [ admin @ servidor ] /ip route > print rule 0: from all lookup local 32766: from all lookup main 32767: from all lookup default[ admin @ servidor ] /ip route > print cache [ admin @ servidor ] /ip route > print local broadcast 127.0.0.0 dev lo proto kernel scope link src 127.0.0.1 local 127.0.0.0/8 dev lo proto kernel scope host src 127.0.0.1 local 127.0.0.1 dev lo proto kernel scope host src 127.0.0.1 broadcast 127.255.255.255 dev lo proto kernel scope link src 127.0.0.1 broadcast 172.20.0.0 dev eth0 proto kernel scope link src 172.20.0.2 local 172.20.0.2 dev eth0 proto kernel scope host src 172.20.0.2 broadcast 172.20.0.255 dev eth0 proto kernel scope link src 172.20.0.2[ admin @ servidor ] /ip route > print main default via 172.20.0.1 dev eth0 127.0.0.0/8 dev lo scope link 172.20.0.0/24 dev eth0 proto kernel scope link src 172.20.0.2[ admin @ servidor ] /ip route > print default
/ip arp :Entrar no diretório de controle ARP. [ admin @ servidor ] > /ip arp [ admin @ servidor ] /ip arp > /ip arp print help :Ajuda para listar tabela ARP. [ admin @ servidor ] /ip arp > print help Imprimir tabela ARP - mapeamento IPv4 <-> MAC Address Use: print : Exibir tabela ARP print [IP] : Exibir informacoes de um IP print info : Exibir tabela ARP com detalhes print error : Exibir IPs sem resposta ARP print all : Exibir tabela ARP com IPs sem resposta print neighbors : Exibir tabela ARP via iproute2 print neighbors [IP] : Exibir informacoes de um IP via iproute2/ip arp print :Listar tabela ARP. [ admin @ servidor ] /ip arp [ admin @ servidor ] /ip arp >
/ip arp print info :Exibir informações detalhadas da tabela ARP [ admin @ servidor ] /ip arp > print info [1] IP Address....: 172.20.0.1 [1] MAC..: 44:d9:e7:07:2f:ab [1] DEV..: eth0 [1] Vendor.: Ubiquiti Networks [2] IP Address....: 172.20.0.3 [2] MAC..: 7c:6d:62:89:01:02 [2] DEV..: eth0 [2] Vendor.: Apple[ admin @ servidor ] /ip arp > /ip arp print x.x.x.x :Exibir informações de um IP específico [ admin @ servidor ] /ip arp > print 172.20.0.1 [1] IP Address....: 172.20.0.1 [1] MAC..: 44:d9:e7:07:2f:ab [1] DEV..: eth0 [1] Vendor.: Ubiquiti Networks[ admin @ servidor ] /ip arp >
/ip arp monitor [interface] :Monitora atividade ARP na [interface]. [ admin @ servidor ] /ip arp > monitor eth0 CONTROL+C to Abort ARP Monitor on eth0 10:22:55.983361 00:50:cc:cc:cc:01 > 44:d9:e7:07:2f:ab, length 60: Ethernet (len 6), IPv4 (len 4), Request who-has 172.20.0.1 (44:d9:e7:07:2f:ab) tell 172.20.0.3, length 46 10:22:55.983559 44:d9:e7:07:2f:ab > 00:50:cc:cc:cc:01, length 60: Ethernet (len 6), IPv4 (len 4), Reply 172.20.0.1 is-at 44:d9:e7:07:2f:ab, length 46
/ip arp arping [IP] :Efetua medição de ping via ARP. ouping arp [IP] :Efetua medição de ping via ARP. [ admin @ servidor ] /ip arp > arping 172.20.0.1 count 4 SEQ TYPE TARGET MAC-ADDRESS TIME STATUS 1 Reply 172.20.0.1 44:D9:E7:07:2F:AB 0.960 OK 2 Reply 172.20.0.1 44:D9:E7:07:2F:AB 1.066 OK 3 Reply 172.20.0.1 44:D9:E7:07:2F:AB 0.857 OK 4 Reply 172.20.0.1 44:D9:E7:07:2F:AB 0.910 OK sent=4 received=4 packet-loss=0% min-rtt=0.857 avg-rtt=0.948 max-rtt=1.066[ admin @ servidor ] /ip arp >
/ip arp arping [IP] broadcast :Ping ARP somente com broadcast. [ admin @ servidor ] /ip arp > arping 172.20.0.1 count 4 broadcast SEQ TYPE TARGET MAC-ADDRESS TIME STATUS 1 Reply 172.20.0.1 44:D9:E7:07:2F:AB 0.895 OK 2 Reply 172.20.0.1 44:D9:E7:07:2F:AB 0.950 OK 3 Reply 172.20.0.1 44:D9:E7:07:2F:AB 0.889 OK 4 Reply 172.20.0.1 44:D9:E7:07:2F:AB 0.963 OK sent=4 received=4 packet-loss=0% min-rtt=0.889 avg-rtt=0.924 max-rtt=0.963[ admin @ servidor ] /ip arp >
/ip arp scan [IP] :Procura IP vizinha via ARP-Request. [ admin @ servidor ] /ip arp > scan 172.20.0.1 ARP-Scan 172.20.0.1 eth0 :: arp-reply: 172.20.0.1 on 44:D9:E7:07:2F:AB [Ubiquiti Networks] eth1 :: not-found eth2 :: not-found eth3 :: not-found eth1.40 :: not-found ARP-Scan 172.20.0.1, replies=1 interface=eth0[ admin @ servidor ] /ip arp >
/ip arp flush :Renovar tabela ARP [ admin @ servidor ] /ip arp > flush [ admin @ servidor ] /ip arp >
/ipv6 address :Entrar no diretório de configuração IPv6. [ admin @ servidor ] > /ipv addr [ admin @ servidor ] /ipv6 address > /ipv6 address print help :Ajuda para listar endereços IPv6. [ admin @ servidor ] /ipv6 address > print help Imprimir lista de IPv6 nas interfaces Use: print : Exibir tabela de enderecos IPv6 print ipv6 : Exibir tabela via iproute2 (ip -6 addr show) print static : Exibir enderecos cadastrados print local : Exibir enderecos link-local[ admin @ servidor ] /ipv6 address > /ipv6 address print :Listar endereços IPv6. [ admin @ servidor ] /ipv6 address [ admin @ servidor ] /ipv6 address > /ipv6 address print static :Listar endereços IPv6 cadastrados [ admin @ servidor ] /ipv6 address > print static # ADDRESS INTERFACE 0 ::1/128 lo (loopback)[ admin @ servidor ] /ipv6 address > /ipv6 address print local :Listar endereços IPv6 LINK-LOCAL [ admin @ servidor ] /ipv6 address > print local # ADDRESS INTERFACE - fe80::20c:29ff:fe0d:a222/64 eth0 - fe80::20c:29ff:fe0d:a244/64 eth1 - fe80::20c:29ff:fe0d:a244/64 eth2 - fe80::20c:29ff:fe0d:a255/64 eth3/ipv6 address add help :Ajuda para adicionar o endereção IPv6 [ admin @ servidor ] /ipv6 address > add help Adicionar endereco IPv6 na interface Use: add (IPv6) (Interface) [opcoes] Opcoes: address=x:x:x:x:h:h:h:h/nn : Endereco IPv6 e numero de bits da mascara interface=DEV : Interface de rede comment=COMENTARIO : Comentario no registro disabled=yes/no : Adicionar desativado Exemplo: add eth0 2001:db8:beba:c0ca::1/64 Exemplos de compatibilidade com outros sistemas: add address=2001:db8:beba:c0ca::1/64 interface=eth0 disabled=no[ admin @ servidor ] /ipv6 address > /ipv6 address add (IPv6) (Interface) :Adicionar o endereção IPv6 [ admin @ servidor ] /ipv6 address > add 2001:db8:beba:cafe::2/126 eth0 [ admin @ servidor ] /ipv6 address > print static # ADDRESS INTERFACE 0 ::1/128 lo (loopback) 1 2001:db8:beba:cafe::2/126 eth0[ admin @ servidor ] /ipv6 address > /ipv6 address remove (IPv6 | ID) :Remover endereção IPv6 [ admin @ servidor ] /ipv6 address > remove 1 [ admin @ servidor ] /ipv6 address > print static # ADDRESS INTERFACE 0 ::1/128 lo (loopback)[ admin @ servidor ] /ipv6 address >
[ admin @ servidor ] /ipv6 address > add 2001:db8:beba:cafe::2/126 eth0 [ admin @ servidor ] /ipv6 address > add 2001:db8:1234:1234::1/64 eth1 [ admin @ servidor ] /ipv6 address > print static # ADDRESS INTERFACE 0 ::1/128 lo (loopback) 1 2001:db8:beba:cafe::2/126 eth0 2 2001:db8:1234:1234::1/64 eth1[ admin @ servidor ] /ipv6 address >
ping [IPv6-link-local] (interface) :Ping no IPv6 Link-Local. [ admin @ roteador-a ] > ping fe80::0211:22ff:feaa:bbcc eth0 4 SEQ HOST SIZE TTL TIME STATUS 1 fe80::0211:22ff:feaa:bbcc 64 64 0.030 echo reply 2 fe80::0211:22ff:feaa:bbcc 64 64 0.046 echo reply 3 fe80::0211:22ff:feaa:bbcc 64 64 0.044 echo reply 4 fe80::0211:22ff:feaa:bbcc 64 64 0.049 echo reply sent=4 received=4 packet-loss=0 min-rtt=0.030 avg-rtt=0.042 max-rtt=0.049[ admin @ roteador-a ] >
ping ff02::1 (interface) :Ping em todos os IPv6 Link-Local. [ admin @ roteador-a ] > ping ff02::1 eth0 4 SEQ HOST SIZE TTL TIME STATUS 1 fe80::0211:22ff:feaa:bbcc 64 64 0.030 echo reply 2 fe80::0211:22ff:feaa:bbcc 64 64 0.046 echo reply 3 fe80::0211:22ff:feaa:bbcc 64 64 0.044 echo reply 4 fe80::0211:22ff:feaa:bbcc 64 64 0.049 echo reply sent=4 received=4 packet-loss=0 min-rtt=0.030 avg-rtt=0.042 max-rtt=0.049[ admin @ roteador-a ] >
/ipv6 route :Entrar no diretório de configuração de rotas IPv6. [ admin @ servidor-a ] > /ipv rou [ admin @ servidor-a ] /ipv6 route > /ipv6 route print :Listar rotas IPv6. [ admin @ servidor-a ] /ipv6 route [ admin @ servidor-a ] /ipv6 route > /ipv6 route add help :Exibe ajuda para adicionar rotas IPv6. [ admin @ servidor-a ] /ipv6 route > add help Adicionar rota estatica IPv6 Use: add [opcoes] Opcoes: dst-address=x::x/nn : Endereco IPv6 e numero de bits do prefixo interface=DEV : Interface de rede gateway=DEV : IP do proximo salto distance=N : Metrica (saltos) comment=COMENTARIO : Comentario no registro disabled=yes/no : Adicionar desativado (yes = nao aplicar) Exemplos: add ::/0 2001:db8::1 add default 2001:db8::1 add dst=::/0 gw=2001:db8::1 Exemplos de compatibilidade com outros sistemas: add dst-address=::/0 gateway=2001:db8::1[ admin @ servidor-a ] /ipv6 route > /ipv6 route add :default x::x/p Adicionar gateway padrão [ admin @ servidor-a ] /ipv6 route > add gateway 2001:db8:beba:cafe::1 [ admin @ servidor-a ] /ipv6 route > print static Rotas estaticas cadastradas: # Destino / Gateway / Source Interface Metric 1 ::/0 1 Via: 2001:db8:beba:cafe::1[ admin @ servidor-a ] /ipv6 route >
/ipv6 neighbor :Entrar no diretório de vizinhança IPv6. [ admin @ servidor ] > /ipv nei [ admin @ servidor ] /ipv6 neighbor > /ipv6 neighbor print help :Ajuda para listar vizinhança IPv6. [ admin @ servidor ] /ipv6 neighbor > print help Imprimir vizinhanca IPv6 - mapeamento IPv6 <-> MAC Address Use: print : Exibir tabela ARP print [IPv6] : Exibir informacoes de um IPv6 print info : Exibir tabela ARP com detalhes print error : Exibir IPs sem resposta ARP print all : Exibir tabela ARP com IPv6 sem resposta print neighbors : Exibir tabela ARP via iproute2 print neighbors [IPv6] : Exibir informacoes de um IPv6 via iproute2[ admin @ servidor ] /ipv6 neighbor > /ipv6 neighbor print :Exibir mapa de vizinhança IPv6. [ admin @ servidor ] /ipv6 neighbor [ admin @ servidor ] /ipv6 neighbor > /ipv6 neighbor print info :Exibir mapa de vizinhança com detalhes. [ admin @ servidor ] /ipv6 neighbor > print info [1] IPv6 Address..: 2001:db8:beba:cafe::1 [1] MAC..: 44:d9:e7:07:3e:44 [1] DEV..: eth0 [1] Vendor.: Ubiquiti Networks [2] IPv6 Address..: fe80::7e6d:62ff:fe89:b347 [2] MAC..: 7c:6d:62:89:b3:47 [2] DEV..: eth0 [2] Vendor.: Apple [3] IPv6 Address..: fe80::46d9:e7ff:fe07:3e44 [3] MAC..: 44:d9:e7:07:3e:44 [3] DEV..: eth0 [3] Vendor.: Ubiquiti Networks [4] IPv6 Address..: fe80::250:ccff:fecc:cc01 [4] MAC..: 00:50:cc:cc:cc:01 [4] DEV..: eth0 [4] Vendor.: Xyratex[ admin @ servidor ] /ipv6 neighbor > [ admin @ servidor ] /ipv6 neighbor >
/ipv6 neighbor flush :Renovar tabela de vizinhança [ admin @ servidor ] /ipv6 neighbor > flush [ admin @ servidor ] /ipv6 neighbor >
Endereço do grupo | Nome | Descrição |
---|---|---|
FF02::1 | All Nodes | Todos os computadores na rede que possuem IPv6 |
FF02::2 | All Routers | Roteadores IPv6 |
FF02::5 | All Routers OSPF | Roteadores IPv6 rodando OSPFv3 |
FF02::6 | All Routers OSPF Designated Routers | Roteadores IPv6 rodando OSPFv3 operando como roteadores designados |
ping (IPv6-Group) (interface) :Ping para grupo na interface [ admin @ servidor ] /ipv6 neighbor > ping FF02::1 eth0 SEQ HOST SIZE TTL TIME STATUS 1 fe80::20c:29ff:fe0d:a255 64 64 0.023 echo reply 1 fe80::7e6d:62ff:fe89:b347 D 64 64 0.247 echo reply 1 fe80::250:ccff:fecc:cc01 D 64 64 0.373 echo reply 1 fe80::46d9:e7ff:fe07:3e44 D 64 64 0.463 echo reply 2 fe80::20c:29ff:fe0d:a255 64 64 0.047 echo reply 2 fe80::7e6d:62ff:fe89:b347 D 64 64 0.345 echo reply 2 fe80::250:ccff:fecc:cc01 D 64 64 0.430 echo reply 2 fe80::46d9:e7ff:fe07:3e44 D 64 64 0.536 echo reply 3 fe80::20c:29ff:fe0d:a255 64 64 0.054 echo reply 3 fe80::7e6d:62ff:fe89:b347 D 64 64 0.385 echo reply 3 fe80::250:ccff:fecc:cc01 D 64 64 0.547 echo reply 3 fe80::46d9:e7ff:fe07:3e44 D 64 64 0.610 echo reply sent=3 received=3 packet-loss=0 min-rtt=0.023 avg-rtt=0.338 max-rtt=0.610[ admin @ servidor ] /ipv6 neighbor > [ admin @ servidor ] /ipv6 neighbor > ping FF02::2 eth0 count 2 SEQ HOST SIZE TTL TIME STATUS 1 fe80::46d9:e7ff:fe07:3e44 64 64 0.577 echo reply 2 fe80::46d9:e7ff:fe07:3e44 64 64 0.729 echo reply sent=2 received=2 packet-loss=0 min-rtt=0.577 avg-rtt=0.653 max-rtt=0.729[ admin @ servidor ] /ipv6 neighbor >
/ip dns :Entrar no diretório de configuração do cliente DNS [ admin @ servidor ] > /ip dns [ admin @ servidor ] /ip dns > /ip dns print :Exibir configuração de cliente DNS [ admin @ servidor ] /ip dns [ admin @ servidor ] /ip dns >
/ip dns add help :Exibir ajuda para adicionar servidor DNS [ admin @ servidor ] /ip dns > add help Adicionar servidor DNS Use: add (IPv4 ou IPv6) (PRIO) [opcoes] Opcoes: name=NOME : Nome simbolico comment=COMENTARIO : Comentario do tunnel Exemplos: add name Localhost 127.0.0.1 1 add name Teste1 8.8.4.4 1 add name Google 8.8.8.8 2 add 4.2.2.2[ admin @ servidor ] /ip dns > /ip dns add (IPv4 ou IPv6) :Adicionar servidor DNS /ip dns add name (NOME) (IP) (PRIO) :Adicionar DNS com detalhes [ admin @ servidor ] /ip dns > add name Google_1_v4 8.8.8.8 prio 1 [ admin @ servidor ] /ip dns > add name Google_2_v4 8.8.4.4 prio 1 [ admin @ servidor ] /ip dns
/ip dns set tries=N :Determinar número de tentativas por servidor /ip dns set timeout=N :Determinar o tempo de espera pela resposta /ip dns set balance=yes|no :Definir balanceamento de requisições [ admin @ servidor ] /ip dns > set tries=2 [ admin @ servidor ] /ip dns > set timeout=1 [ admin @ servidor ] /ip dns > set balance=yes [ admin @ servidor ] /ip dns > print config Tentativas por servidor.......: 2 Tempo de espera pela resposta.: 2 Distribuicao de carga.........: Balancear entre servidores[ admin @ servidor ] /ip dns >
/ip dns dns-ping (FQDN) (DNS) :Testar ping (latência de resolução) [ admin @ servidor ] /ip dns > dns-ping www.registro.br 4.2.2.2 IP ver.: 4 Host...: www.registro.br Server.: 4.2.2.2 SEQ Q. Type Ans Aut TIME STATUS 1 1 A 2 5 2.415 Reply 2 1 A 2 5 3.235 Reply 3 1 A 2 5 5.841 Reply 4 1 A 2 5 2.373 Reply sent=4 received=4 packet-loss=0 min-rtt=2.373 avg-rtt=3.466 max-rtt=5.841[ admin @ servidor ] /ip dns >
/ip dns test (FQDN) [SERVER] :Testar nome nos DNSs cadastrados [ admin @ servidor ] /ip dns > test uol.com.br 4.2.2.2 > Servidor..: 4.2.2.2 - FQDN......: uol.com.br uol.com.br IN A 200.147.67.142 uol.com.br IN A 200.221.2.45 uol.com.br IN AAAA 2804:49c:3103:401:ffff:ffff:ffff:1[ admin @ servidor ] /ip dns > Você tambem pode testar a requisição para os servidores cadastrados, basta informar só o nome: [ admin @ servidor ] /ip dns > test google.com > Servidor..: 8.8.8.8 - FQDN......: google.com google.com IN A 201.17.165.244 google.com IN A 201.17.165.210 google.com IN AAAA 2800:3f0:4004:804::200e > Servidor..: 8.8.4.4 - FQDN......: google.com google.com IN A 201.17.165.148 google.com IN A 201.17.165.162 google.com IN AAAA 2800:3f0:4004:805::200e[ admin @ servidor ] /ip dns > /ip dns dig [opcoes] :Testar usando DIG /ip dns hostg [opcoes] :Testar usando HOST /ip dns nslookup [opcoes] :Testar usando NSLOOKUP [ admin @ servidor ] /ip dns > dig uol.com.br @4.2.2.2 ; <<>> DiG 9.10.4-P1 <<>> uol.com.br @4.2.2.2 ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 63381 ;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;uol.com.br. IN A ;; ANSWER SECTION: uol.com.br. 271 IN A 200.221.2.45 uol.com.br. 271 IN A 200.147.67.142 ;; Query time: 144 msec ;; SERVER: 4.2.2.2#53(4.2.2.2) ;; WHEN: Wed Jun 22 16:38:11 BRT 2016 ;; MSG SIZE rcvd: 60[ admin @ servidor ] /ip dns > host -t ns uol.com.br 4.2.2.2 Using domain server: Name: 4.2.2.2 Address: 4.2.2.2#53 Aliases: uol.com.br name server charles.uol.com.br. uol.com.br name server eliot.uol.com.br. uol.com.br name server borges.uol.com.br.[ admin @ servidor ] /ip dns > nslookup > set q=any > uol.com.br Server: 8.8.8.8 Address: 8.8.8.8#53 Non-authoritative answer: uol.com.br origin = eliot.uol.com.br mail addr = root.uol.com.br serial = 2016032286 refresh = 7200 retry = 3600 expire = 432000 minimum = 3600 Name: uol.com.br Address: 200.147.67.142 Name: uol.com.br Address: 200.221.2.45 uol.com.br has AAAA address 2804:49c:3103:401:ffff:ffff:ffff:1 uol.com.br mail exchanger = 10 mx.uol.com.br. uol.com.br text = "v=spf1 ip4:200.147.96.0/23 ip4:187.17.116.0/24 ip4:200.98.217.0/24 ip4:200.147.1.0/22 ip4:200.147.32.0/22 ip4:200.147.40.192/26 ip4:200.147.54.0/23 ip4:200.147.98.72/27 ip4:200.147.99.24/26 ip4:186.234.128.16/29 ip4:200.147.41.88/26 -all" uol.com.br text = "DZC=qvK68EJ" uol.com.br nameserver = charles.uol.com.br. uol.com.br nameserver = eliot.uol.com.br. uol.com.br nameserver = borges.uol.com.br. Authoritative answers can be found from: > exit[ admin @ servidor ] /ip dns >
/ip dns test (FQDN) [IPv6] :Testar nome usando DNS via IPv6 [ admin @ servidor ] /ip dns > test facebook.com 2001:4860:4860::8888 > Servidor..: 2001:4860:4860::8888 - FQDN......: facebook.com facebook.com IN A 66.220.156.68 facebook.com IN AAAA 2a03:2880:11:1f83:face:b00c:0:25de[ admin @ servidor ] /ip dns >
[ admin @ servidor ] /ip dns > test facebook.com 2001:4860:4860::8888 > Servidor..: 2001:4860:4860::8888 - FQDN......: facebook.com ;; connection timed out; no servers could be reached Erro na consulta tipo A (IPv4) ;; connection timed out; no servers could be reached Erro na consulta tipo AAAA (IPv6) Servidor DNS nao respondeu.[ admin @ servidor ] /ip dns >
/ip dns add [IPv6] :Adicionar servidor IPv6 [ admin @ servidor ] /ip dns > add name=Google-v6-A 2001:4860:4860::8888 [ admin @ servidor ] /ip dns > add name=Google-v6-B 2001:4860:4860::8844 [ admin @ servidor ] /ip dns > print servers Id Prio Nome Endereco Status 1 1 Google_1_v4 8.8.8.8 Ativo 2 1 Google_2_v4 8.8.4.4 Ativo 3 2 Google-v6-A 2001:4860:4860::8888 Ativo 4 3 Google-v6-B 2001:4860:4860::8844 Ativo[ admin @ servidor ] /ip dns >
[ admin @ servidor ] /ip dns > dns-ping ipv6.br 2001:4860:4860::8844 IP ver.: 6 Host...: ipv6.br Server.: 2001:4860:4860::8844 SEQ Q. Type Ans Aut TIME STATUS 1 1 A 1 0 144.770 Reply 2 1 A 1 0 154.415 Reply 3 1 A 1 0 199.472 Reply 4 1 A 1 0 153.871 Reply sent=4 received=4 packet-loss=0 min-rtt=144.770 avg-rtt=163.132 max-rtt=199.472[ admin @ servidor ] /ip dns >
[ admin @ servidor ] /ip dns > test yahoo.com > Servidor..: 8.8.8.8 - FQDN......: yahoo.com yahoo.com IN A 98.139.183.24 yahoo.com IN A 206.190.36.45 yahoo.com IN A 98.138.253.109 yahoo.com IN AAAA 2001:4998:44:204::a7 yahoo.com IN AAAA 2001:4998:58:c02::a9 yahoo.com IN AAAA 2001:4998:c:a06::2:4008 > Servidor..: 8.8.4.4 - FQDN......: yahoo.com yahoo.com IN A 98.139.183.24 yahoo.com IN A 206.190.36.45 yahoo.com IN A 98.138.253.109 yahoo.com IN AAAA 2001:4998:c:a06::2:4008 yahoo.com IN AAAA 2001:4998:44:204::a7 yahoo.com IN AAAA 2001:4998:58:c02::a9 > Servidor..: 2001:4860:4860::8888 - FQDN......: yahoo.com yahoo.com IN A 98.138.253.109 yahoo.com IN A 206.190.36.45 yahoo.com IN A 98.139.183.24 yahoo.com IN AAAA 2001:4998:c:a06::2:4008 yahoo.com IN AAAA 2001:4998:58:c02::a9 yahoo.com IN AAAA 2001:4998:44:204::a7 > Servidor..: 2001:4860:4860::8844 - FQDN......: yahoo.com yahoo.com IN A 98.139.183.24 yahoo.com IN A 206.190.36.45 yahoo.com IN A 98.138.253.109 yahoo.com IN AAAA 2001:4998:58:c02::a9 yahoo.com IN AAAA 2001:4998:44:204::a7 yahoo.com IN AAAA 2001:4998:c:a06::2:4008[ admin @ servidor ] /ip dns >
/interface gre :Entrar no diretório de tuneis GRE. [ admin @ servidor ] > /int gre [ admin @ servidor ] /interface gre > /interface gre print help :Ajuda para listar interfaces GRE. [ admin @ servidor ] /interface gre > print help Imprimir tuneis GRE sobre IPv4 Use: print : Exibir interfaces e detalhes de conexao print stats : Exibir interfaces e estatisticas print rate [opcoes] : Exibir trafego nas interfaces (TEMPO REAL) [bits/bytes/packets/errors/rate/max/sum/avg][ admin @ servidor ] /interface gre > /interface gre print :Listar tuneis GRE. [ admin @ servidor ] /interface gre [ admin @ servidor ] /interface gre > /interface gre add help :Ajuda para adicionar tuneis. [ admin @ servidor ] /interface gre > add help Adicionar interface GRE sobre IPv4 Use: add (LOCAL-IP) (REMOTE-IP) [TTL] [MTU] [opcoes] Opcoes: name=NOME : Nome simbolico comment=COMENTARIO : Comentario do tunnel NOTA: o LOCAL-IP deve estar atribuido a uma interface local Exemplos: add name Teste1 local 172.20.0.49 remote 172.20.0.1 add local=172.20.0.49 remote=172.20.0.21 add 172.20.0.49 172.20.0.21 Exemplos de compatibilidade com outros sistemas: add local-address=172.20.0.49 name=gre-tunnel1 remote-address=172.20.0.1[ admin @ servidor ] /interface gre > /interface gre add local=IP remote=IP :Adicionar tunel GRE. [ admin @ servidor ] /interface gre > add local 200.10.10.9 remote 187.20.20.2 [ admin @ servidor ] /interface gre [ admin @ servidor ] /interface gre > Adicione o IP na interface gri1: [ admin @ servidor ] /interface gre > /ip addr add 172.30.0.1/30 gri1 Após configurar a outra ponta como no diagrama, vamos testar o ping para o outro lado do tunel: [ admin @ servidor ] /interface gre > ping 172.30.0.2 count=2 SEQ HOST SIZE TTL TIME STATUS 1 172.30.0.2 64 53 36.4 echo reply 2 172.30.0.2 64 53 36.4 echo reply sent=2 received=2 packet-loss=0 min-rtt=36.422 avg-rtt=36.432 max-rtt=36.442[ admin @ servidor ] /interface gre >
/interface gre6 :Entrar no diretório de tuneis GRE sobre IPv6. [ admin @ servidor ] > /int gre6 [ admin @ servidor ] /interface gre6 > /interface gre6 print help :Ajuda para listar interfaces GRE. [ admin @ servidor ] /interface gre6 > print help Imprimir tuneis GRE sobre IPv6 Use: print : Exibir interfaces e detalhes de conexao print stats : Exibir interfaces e estatisticas print rate [opcoes] : Exibir trafego nas interfaces (TEMPO REAL) [bits/bytes/packets/errors/rate/max/sum/avg][ admin @ servidor ] /interface gre6 > /interface gre6 print :Listar tuneis GRE. [ admin @ servidor ] /interface gre6 [ admin @ servidor ] /interface gre6 > /interface gre6 add help :Ajuda para adicionar tuneis. [ admin @ servidor ] /interface gre6 > add help Adicionar interface GRE sobre IPv6 Use: add (LOCAL-IPv6) (REMOTE-IPv6) [TTL] [MTU] [opcoes] Opcoes: name=NOME : Nome simbolico comment=COMENTARIO : Comentario do tunnel NOTA: o LOCAL-IPv6 deve estar atribuido a uma interface local Exemplos: add name Teste1 local 2001:db9:cafe::2 remote 2001:db9:fada::1 add local=2001:db9:cafe::2 remote=2001:db9:fada::1 add 2001:db9:cafe::2 2001:db9:fada::1 Exemplos de compatibilidade com outros sistemas: add local-address=2001:db9:cafe::2 name=gre6-tunnel1 remote-address=2001:db9:fada::1[ admin @ servidor ] /interface gre6 > /interface gre6 add local=IP remote=IP :Adicionar tunel GRE. [ admin @ servidor ] /interface gre6 > add local=2001:db8:beb1:cafe::2 remote=2001:01f8:c0ca:c01a::e [ admin @ servidor ] /interface gre6 [ admin @ servidor ] /interface gre6 > Adicione o IP na interface gri1: [ admin @ servidor ] /interface gre6 > /ip addr add 172.30.0.1/30 grx1 Após configurar a outra ponta como no diagrama, vamos testar o ping para o outro lado do tunel: [ admin @ servidor ] /interface gre6 > ping 172.30.0.2 count=2 SEQ HOST SIZE TTL TIME STATUS 1 172.30.0.2 64 53 36.4 echo reply 2 172.30.0.2 64 53 36.4 echo reply sent=2 received=2 packet-loss=0 min-rtt=36.422 avg-rtt=36.432 max-rtt=36.442[ admin @ servidor ] /interface gre6 >
Diretório | Protocolo do tunel | Protocolo a ser transportado |
---|---|---|
/interface 6to4 |
IPv4 público para IPv4 público | Apenas IPv6, protocolo oficial para implementar IPv6 na internet IPv4. |
/interface ipip |
IPv4 público para IPv4 público | Apenas IPv4. |
/interface ipipv6 |
IPv6 global para IPv6 global | Apenas IPv4. |
Tecnologia | Precisão | Desvantagens |
---|---|---|
Relógio atômico | Perfeita | Caro e restrito a instalações científicas. |
GPS | Bom, satélites GPS possuem relógio atômico | Requer circuito GPS. |
Servidor NTP | Regular | Latência entre cliente e servidor varia a referência. |
Servidor HTTP | Péssima, copia a data/hora de um servidor Web | Extremamente impresisa. |
/system clock :Entrar no diretório de data/hora/timezone. [ admin @ servidor ] > /sys clock [ admin @ servidor ] /system clock > /system clock print help :Ajuda para listar data/hora. [ admin @ servidor ] /system clock > print help Exibir opcoes de relogio do sistema Use: print : Exibir todos os relogios e configuracoes print timezones : Exibir timezones suportadas print tz : Exibir configuracao de timezone print utc : Exibir data/hora UTC print local : Exibir data/hora no time-zone local print bios : Exibir data/hora da BIOS print help : Exibir ajuda[ admin @ servidor ] /system clock > /system clock print :Listar configurações de data/hora e time-zone. [ admin @ servidor ] /system clock [ admin @ servidor ] /system clock > /system clock print tz :Exibir timezone definida. [ admin @ servidor ] /system clock > print tz America/Sao_Paulo[ admin @ servidor ] /system clock > /system clock print local :Exibir data/hora local. [ admin @ servidor ] /system clock > print local 26/06/2016 19:04:36[ admin @ servidor ] /system clock > /system clock print utc :Exibir data/hora UTC. [ admin @ servidor ] /system clock > print utc 26/06/2016 22:04:36[ admin @ servidor ] /system clock > /system clock print bios :Exibir data/hora da BIOS. [ admin @ servidor ] /system clock > print bios Tue Jun 28 11:04:07 2016 .586953 seconds[ admin @ servidor ] /system clock >
/system clock print timezones :Listar time-zones suportados [ admin @ servidor ] /system clock > print timezones America/Araguaina America/Bahia America/Belem America/Boa_Vista America/Buenos_Aires America/Campo_Grande America/Cuiaba America/Maceio America/Manaus America/Noronha America/Porto_Acre America/Porto_Velho America/Recife America/Rio_Branco America/Santarem America/Sao_Paulo[ admin @ servidor ] /system clock > /system clock set help :Ajuda para alterar configuração [ admin @ servidor ] /system clock > set help Definir data/hora e timezone Use: set (dia/mes/ano) [timezone] : Definir data/hora e o timezone set (dia/mes/ano) : Definir data/hora set [timezone] : Definir data/hora timezone Para listar os timezones suportados, execute: print timezones[ admin @ servidor ] /system clock > /system clock set time-zone=TZ :Alterar o time-zone. [ admin @ servidor ] /system clock > set time-zone America/Manaus Data/hora TimeZone.........: America/Manaus Local software...: 13/05/2016 07:38:12 UTC..............: 13/05/2016 10:38:12[ admin @ servidor ] /system clock > print tz America/Manaus[ admin @ servidor ] /system clock > set time-zone America/Sao_Paulo Data/hora TimeZone.........: America/Sao_Paulo Local software...: 13/05/2016 07:38:21 UTC..............: 13/05/2016 10:38:21[ admin @ servidor ] /system clock > print tz America/Sao_Paulo[ admin @ servidor ] /system clock >
/system clock set [dd/mm/aaaa] :Alterar data [ admin @ servidor ] /system clock > set 01/01/2016 [2016-01-01 09:21:00] Date/time set, localtime [2016-01-01 07:38:21] Data/hora TimeZone.........: America/Sao_Paulo Local software...: 01/01/2016 07:38:21 UTC..............: 01/05/2016 10:38:21[ admin @ servidor ] /system clock > /system clock set [hh:mm] :Alterar hora/minuto /system clock set [hh:mm:ss] :Alterar hora/minuto/segundo [ admin @ servidor ] /system clock > set 23:19 [2016-01-01 09:21:00] Date/time set, localtime [2016-01-01 21:19:00] Data/hora TimeZone.........: America/Sao_Paulo Local software...: 01/01/2016 23:19:00 UTC..............: 01/05/2016 01:19:21[ admin @ servidor ] /system clock >
/system clock save :Salvar data/hora na BIOS [ admin @ servidor ] /system clock > save [ admin @ servidor ] /system clock [ admin @ servidor ] /system clock
Entidade | Servidor (FQDN) | IPv4 | IPv6 |
---|---|---|---|
NTP.br | a.st1.ntp.br | 200.160.7.186 | 2001:12ff:0:7::186 |
NTP.br | b.st1.ntp.br | 201.49.148.135 | (sem IPv6) |
NTP.br | c.st1.ntp.br | 200.186.125.195 | (sem IPv6) |
NTP.br | d.st1.ntp.br | 200.20.186.76 | (sem IPv6) |
NTP.br | a.ntp.br | 200.160.0.8 | 2001:12ff::8 |
NTP.br | b.ntp.br | 200.189.40.8 | (sem IPv6) |
NTP.br | c.ntp.br | 200.192.232.8 | (sem IPv6) |
NTP.br | gps.ntp.br | 200.160.7.193 | 2001:12ff:0:7::193 |
UFRJ | ntp.pads.ufrj.br | 146.164.48.1 | 2001:1291:200:8371::1 |
UFRJ | ntps1.pads.ufrj.br | 146.164.48.5 | 2001:1291:200:8371::5 |
UFRJ | ntp2.pads.ufrj.br | 146.164.48.10 | 2001:1291:200:8371::10 |
UFRJ | ntp3.pads.ufrj.br | 146.164.48.9 | 2001:1291:200:8371::9 |
Microsoft Corporation | time-nw.nist.gov | 131.107.13.100 | (sem IPv6) |
NTP.org (DNS global balancing) | 0.pool.ntp.org | (auto) | (auto) |
NTP.org (DNS global balancing) | 1.pool.ntp.org | (auto) | (auto) |
NTP.org (DNS global balancing) | 2.pool.ntp.org | (auto) | (auto) |
NTP.org (DNS global balancing) | 3.pool.ntp.org | (auto) | (auto) |
/system ntp-client :Entrar no diretório de cliente NTP. [ admin @ servidor ] > /sys ntp-c [ admin @ servidor ] /system ntp-client > /system ntp-client print help :Ajuda para listar servidores NTP. [ admin @ servidor ] /system ntp-client > print help Imprimir opcoes de servidores NTP Use: print : Exibir servidores NTP[ admin @ servidor ] /system ntp-client > /system ntp-client print :Listar servidores NTP. [ admin @ servidor ] /system ntp-client [ admin @ servidor ] /system ntp-client > /system ntp-client add help :Ajuda para adicionar servidor NTP [ admin @ servidor ] /system ntp-client > add help Adicionar servidor NTP Use: add (IPv4 ou IPv6) (PRIO) [opcoes] Opcoes: name=NOME : Nome simbolico comment=COMENTARIO : Comentario do tunnel Exemplos: add name a.ntp.br 200.160.0.8 1 add name a.ntp.br 2001:12ff::8 2[ admin @ servidor ] /system ntp-client > /system ntp-client add help :Ajuda para adicionar servidor NTP [ admin @ servidor ] /system ntp-client > add a.ntp.br 200.160.0.8 [ admin @ servidor ] /system ntp-client [ admin @ servidor ] /system ntp-client > /system ntp-client update help :Exibir ajuda sobre sincronização [ admin @ servidor ] /system ntp-client > update help Atualizar data/hora baseado em NTP Use: update : Atualizar via servidores cadastrados update (ipv4|ipv6|fqdn) : Atualizar usando endereco especifico[ admin @ servidor ] /system ntp-client > /system ntp-client update :Sincronizar relógio com servidor NTP. [ admin @ servidor ] /system ntp-client > update > Atualizando via '200.160.0.8' [ OK ] Data/hora TimeZone.........: America/Sao_Paulo Local software...: 31/07/2016 17:55:15 UTC..............: 31/07/2016 20:55:15[ admin @ servidor ] /system ntp-client > /system ntp-client save :Salvar relógio de software no hardware. [ admin @ servidor ] /system ntp-client > save > Salvando data/hora UTC [ OK ] Data/hora TimeZone.........: America/Sao_Paulo Local software...: 31/07/2016 17:57:38 UTC..............: 31/07/2016 20:57:38 Local hardware...: Sun Jul 31 17:57:38 2016 .498781 seconds[ admin @ servidor ] /system ntp-client >
/system package :Entrar no diretório de gerenciamento de pacotes. [ admin @ servidor ] > /sys pac [ admin @ servidor ] /system package > /system package print :Listar pacotes instalados [ admin @ servidor ] /system package [ admin @ servidor ] /system package > /system package update help :Ajuda para atualizar pacotes. [ admin @ servidor ] /system package > update help Atualizar Slackmini Use: update all : Atualizar todos os pacotes update (pkgname) : Atualizar apenas o pacotes 'pkgname'[ admin @ servidor ] /system package > /system package update :Procurar atualizações, baixar e instalar. [ admin @ servidor ] /system package > update [ admin @ servidor ] /system package > /system package info help :Ajuda para obter informações de pacote. [ admin @ servidor ] /system package > info help Informacoes sobre um pacotes do Slackmini Use: info (pkgname) Opcoes: (pkgname) : Informacoes do pacote 'pkgname' all : Informacoes sobre todos os pacotes help : Exibir ajuda[ admin @ servidor ] /system package > /system package info :Listar informações dos pacotes. [ admin @ servidor ] /system package > info /system package info [PKG] :Listar informações de um pacote. [ admin @ servidor ] /system package > info kernel [2016-07-31 21:22:55] Pacote......: kernel [2016-07-31 21:22:55] Assinatura: d57d06311fc5389a1f801f027dc1a9a6 [2016-07-31 21:22:55] Ficheiro..: /var/lib/packages/kernel-1.0.txz [2016-07-31 21:22:55] Indice....: /var/log/packages/kernel-1.0 [2016-07-31 21:22:55] Itens.....: 5.545 [2016-07-31 21:22:55] Tamanho...: 64.2 MiB (67277140 bytes)[ admin @ servidor ] /system package > /system pac view [PKG] :Listar conteudo de um pacote. /system pac check [PKG] :Verificar arquivos do pacote. /system pac repair [PKG] :Reparar arquivos danificados do pacote.
#!/bin/sh #@95 #&95 case "$1" in 'start') echo "Iniciar servico HELLO-WORLD" ;; 'stop') echo "Parar servico HELLO-WORLD" ;; 'restart') echo "Reiniciar servico HELLO-WORLD" ;; 'status') echo "Servico HELLO-WORLD vai bem, obrigado" ;; *) echo "Nao entendi, use: start/stop/restart/status" esac
/system service :Entrar no diretório de gerenciamento de serviços. [ admin @ servidor ] > /sys serv [ admin @ servidor ] /system service > /system service print :Listar serviços instalados [ admin @ servidor ] /system service apache2 92 10 Desativado bind9 15 15 Desativado mariadb 99 99 Desativado ntpd 16 16 Desativado php-fpm 99 99 Desativado quagga 90 90 Desativado shellinabox 95 10 Desativado snmpd 99 99 Desativado sshd 22 80 Ativado unbound 15 15 Desativado [ admin @ servidor ] /system service > /system service stop [SERVICE] :Parar um serviço. /system service start [SERVICE] :Iniciar um serviço ativo. /system service restart [SERVICE] :Reiniciar um serviço ativo. /system service disable [SERVICE] :Parar e desativar um serviço. /system service enable [SERVICE] :Ativar e iniciar um serviço. /system service status [SERVICE] :Verificar status de um serviço.
[ admin @ servidor ] > /sys pac [ admin @ servidor ] /system package > repair all
[ admin @ servidor ] > /sys pac [ admin @ servidor ] /system package > update
Serviço | Arquivo de configuração |
---|---|
Bind9 | /etc/named.conf |
Unbound | /etc/unbound/unbound.conf |
[ admin @ servidor ] > /sys serv [ admin @ servidor ] /system service > enable bind9 [2016-07-31 23:20:25] Iniciando Bind9 [ OK ][ admin @ servidor ] /system service >
Serviço | Arquivo de configuração | Pasta raiz (htdocs) |
---|---|---|
Apache 2 | /etc/httpd/httpd.conf | /srv/httpd/htdocs |
Lighttpd | /etc/lighttpd/lighttpd.conf | /srv/lighttpd/htdocs |
[ admin @ servidor ] > /sys serv [ admin @ servidor ] /system service > enable lighttpd [2016-07-31 23:20:25] Iniciando Lighttpd [ OK ][ admin @ servidor ] /system service >
[ admin @ servidor ] > /sys serv [ admin @ servidor ] /system service > enable apache2 [2016-08-14 20:59:13] Iniciando Apache2 [ OK ][ admin @ servidor ] /system service >
[ admin @ servidor ] > /sys serv [ admin @ servidor ] /system service > enable php-fpm [2016-08-14 21:01:38] Iniciando PHP-FPM [ OK ][ admin @ servidor ] /system service > enable lighttpd [2016-07-31 23:20:25] Iniciando Lighttpd [ OK ][ admin @ servidor ] /system service >
Serviço | Finalidade | Arquivo de configuração | Pasta de includes |
---|---|---|---|
PHP | Comportamento geral | /etc/php.ini | /etc/php.d |
PHP-FPM | Serviço PHP sobre Fast-CGI | /etc/php-fpm.conf | /etc/php-fpm.d |
[ admin @ servidor ] > /sys serv [ admin @ servidor ] /system service > enable mariadb [2016-08-15 22:58:18] MariaDB: Banco de dados inicial - Instalando... Installing MariaDB/MySQL system tables in '/var/lib/mysql' ... 160815 19:58:18 [Warning] 'THREAD_CONCURRENCY' is deprecated and will be removed in a future release. 160815 19:58:18 [Warning] option 'thread_cache_size': unsigned value 262144 adjusted to 16384 160815 19:58:18 [Warning] options --log-slow-admin-statements, --log-queries-not-using-indexes and --log-slow-slave-statements have no effect if --log_slow_queries is not set 160815 19:58:18 [Note] /usr/libexec/mysqld (mysqld 10.0.24-MariaDB) starting as process 7524 ... 160815 19:58:18 [Note] InnoDB: Using mutexes to ref count buffer pool pages 160815 19:58:18 [Note] InnoDB: The InnoDB memory heap is disabled 160815 19:58:18 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins 160815 19:58:18 [Note] InnoDB: Memory barrier is not used 160815 19:58:18 [Note] InnoDB: Compressed tables use zlib 1.2.8 160815 19:58:18 [Note] InnoDB: Using Linux native AIO 160815 19:58:18 [Note] InnoDB: Using CPU crc32 instructions 160815 19:58:18 [Note] InnoDB: Initializing buffer pool, size = 128.0M 160815 19:58:18 [Note] InnoDB: Completed initialization of buffer pool 160815 19:58:18 [Note] InnoDB: The first specified data file ./ibdata1 did not exist: a new database to be created! 160815 19:58:18 [Note] InnoDB: Setting file ./ibdata1 size to 12 MB 160815 19:58:18 [Note] InnoDB: Database physically writes the file full: wait... 160815 19:58:18 [Note] InnoDB: Setting log file ./ib_logfile101 size to 48 MB 160815 19:58:18 [Note] InnoDB: Setting log file ./ib_logfile1 size to 48 MB 160815 19:58:19 [Note] InnoDB: Renaming log file ./ib_logfile101 to ./ib_logfile0 160815 19:58:19 [Warning] InnoDB: New log files created, LSN=45781 160815 19:58:19 [Note] InnoDB: Doublewrite buffer not found: creating new 160815 19:58:19 [Note] InnoDB: Doublewrite buffer created 160815 19:58:19 [Note] InnoDB: 128 rollback segment(s) are active. 160815 19:58:19 [Warning] InnoDB: Creating foreign key constraint system tables. 160815 19:58:19 [Note] InnoDB: Foreign key constraint system tables created 160815 19:58:19 [Note] InnoDB: Creating tablespace and datafile system tables. 160815 19:58:19 [Note] InnoDB: Tablespace and datafile system tables created. 160815 19:58:19 [Note] InnoDB: Waiting for purge to start 160815 19:58:19 [Note] InnoDB: Percona XtraDB (http://www.percona.com) 5.6.28-76.1 started; log sequence number 0 160815 19:58:19 [Note] InnoDB: FTS optimize thread exiting. 160815 19:58:19 [Note] InnoDB: Starting shutdown... 160815 19:58:21 [Note] InnoDB: Shutdown completed; log sequence number 1616697 OK Filling help tables... 160815 19:58:21 [Warning] 'THREAD_CONCURRENCY' is deprecated and will be removed in a future release. 160815 19:58:21 [Warning] option 'thread_cache_size': unsigned value 262144 adjusted to 16384 160815 19:58:21 [Warning] options --log-slow-admin-statements, --log-queries-not-using-indexes and --log-slow-slave-statements have no effect if --log_slow_queries is not set 160815 19:58:21 [Note] /usr/libexec/mysqld (mysqld 10.0.24-MariaDB) starting as process 7576 ... 160815 19:58:21 [Note] InnoDB: Using mutexes to ref count buffer pool pages 160815 19:58:21 [Note] InnoDB: The InnoDB memory heap is disabled 160815 19:58:21 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins 160815 19:58:21 [Note] InnoDB: Memory barrier is not used 160815 19:58:21 [Note] InnoDB: Compressed tables use zlib 1.2.8 160815 19:58:21 [Note] InnoDB: Using Linux native AIO 160815 19:58:21 [Note] InnoDB: Using CPU crc32 instructions 160815 19:58:21 [Note] InnoDB: Initializing buffer pool, size = 128.0M 160815 19:58:21 [Note] InnoDB: Completed initialization of buffer pool 160815 19:58:21 [Note] InnoDB: Highest supported file format is Barracuda. 160815 19:58:21 [Note] InnoDB: 128 rollback segment(s) are active. 160815 19:58:21 [Note] InnoDB: Waiting for purge to start 160815 19:58:21 [Note] InnoDB: Percona XtraDB (http://www.percona.com) 5.6.28-76.1 started; log sequence number 1616697 160815 19:58:21 [Note] InnoDB: FTS optimize thread exiting. 160815 19:58:21 [Note] InnoDB: Starting shutdown... 160815 19:58:23 [Note] InnoDB: Shutdown completed; log sequence number 1616707 OK To start mysqld at boot time you have to copy support-files/mysql.server to the right place for your system PLEASE REMEMBER TO SET A PASSWORD FOR THE MariaDB root USER ! To do so, start the server, then issue the following commands: '/usr/bin/mysqladmin' -u root password 'new-password' '/usr/bin/mysqladmin' -u root -h servidor password 'new-password' Alternatively you can run: '/usr/bin/mysql_secure_installation' which will also give you the option of removing the test databases and anonymous user created by default. This is strongly recommended for production servers. See the MariaDB Knowledgebase at http://mariadb.com/kb or the MySQL manual for more instructions. You can start the MariaDB daemon with: cd '/usr' ; /usr/bin/mysqld_safe --datadir='/var/lib/mysql' You can test the MariaDB daemon with mysql-test-run.pl cd '/usr/mysql-test' ; perl mysql-test-run.pl Please report any problems at http://mariadb.org/jira The latest information about MariaDB is available at http://mariadb.org/. You can find additional information about the MySQL part at: http://dev.mysql.com Support MariaDB development by buying support/new features from MariaDB Corporation Ab. You can contact us about this at sales@mariadb.com. Alternatively consider joining our community based development effort: http://mariadb.com/kb/en/contributing-to-the-mariadb-project/ [2016-08-15 22:58:23] MariaDB: Banco de dados inicial - Instalado com sucesso. [2016-08-15 22:58:23] MariaDB: Iniciando banco de dados... [ OK ][ admin @ servidor ] /system service >
[ admin @ servidor ] /system service > disable mariadb [2016-08-15 23:01:07] MariaDB: Parando banco de dados...... [ DONE ][ admin @ servidor ] /system service > enable mariadb [2016-08-15 23:01:22] MariaDB: Iniciando banco de dados... [ OK ][ admin @ servidor ] /system service >