Prévia do material em texto
<p>Comandos Huawei</p><p>Comandos comuns (tarefas administrativas)</p><p>Para apagar lixo de tela do console:</p><p>1</p><p>undo terminal monitor</p><p>Mostrar versão do firmware e patches instalados</p><p>1</p><p>2</p><p>display version</p><p>display patch-information</p><p>Fazendo o patching sistema</p><p>1</p><p>2</p><p>3</p><p>patch load S6720EI-V200R009SPH002.pat all</p><p>patch active all</p><p>patch run all</p><p>Criando usuários e protegendo a console</p><p>1</p><p>2</p><p>3</p><p>4</p><p>5</p><p>6</p><p>system-view</p><p>aaa</p><p>local-user user password cipher senha123</p><p>local user aluno service-type ssh terminal http</p><p>user-interface console 0</p><p>authentication-mode aaa</p><p>Ativando SSH</p><p>1</p><p>2</p><p>3</p><p>4</p><p>5</p><p>6</p><p>system-view</p><p>display ssh server status</p><p>stelnet server enable</p><p>user-interface vty 0 4</p><p>authentication-mode aaa</p><p>protocol inbound ssh</p><p>Configuração de relógio e ntp (fora do system-view)</p><p>1</p><p>2</p><p>3</p><p>4</p><p>5</p><p>clock timezone BRZ minus 03</p><p>clock datetime 10:17:03 2019-09-26</p><p>display clock (para verificação)</p><p>system-view</p><p>ntp-service unicast-server 200.160.0.8</p><p>Configuração do SNMP</p><p>1</p><p>2</p><p>3</p><p>system-view</p><p>snmp-agent community read public</p><p>snmp-agent sys-info version v2c v3</p><p>Para salvar configurações realizadas (fora do system-view)</p><p>1</p><p>save</p><p>Remover configurações de IP (exemplo com porta Gigabit 0/0/0)</p><p>1</p><p>2</p><p>3</p><p>system-view</p><p>interface GigabitEthernet 0/0/0</p><p>undo ip address</p><p>Para desabilitar uma interface</p><p>1</p><p>2</p><p>3</p><p>system-view</p><p>interface GigabitEthernet 0/0/0</p><p>shutdown</p><p>Para reabilitar uma interface</p><p>1</p><p>2</p><p>3</p><p>system-view</p><p>interface GigabitEthernet 0/0/0</p><p>no shutdown</p><p>Configurações de rede</p><p>Para entrar em modo privilegiado:</p><p>1</p><p>system-view</p><p>Para renomear o host:</p><p>1</p><p>2</p><p>system-view</p><p>sysname host</p><p>Para configurar endereços IP</p><p>1</p><p>2</p><p>3</p><p>system-view</p><p>interface GigabitEthernet 0/0/0</p><p>ip address 10.0.0.2 24</p><p>Para configurar Loopback</p><p>1</p><p>2</p><p>3</p><p>system-view</p><p>interface Loopback 0</p><p>ip address 10.99.99.1 32</p><p>Para configurar rota estática</p><p>1</p><p>2</p><p>3</p><p>system-view</p><p>ip route-static 0.0.0.0 0.0.0.0 10.0.0.1 (ou)</p><p>ip route-static 192.168.1.0 255.255.255.0 10.0.0.1</p><p>Para mostrar endereçamento IP</p><p>1</p><p>display ip interface brief</p><p>Para mostrar tabela de rotas</p><p>1</p><p>display ip routing-table</p><p>Para dar shutdown (desativar) porta (exemplo GigabitEthernet 0/0/0)</p><p>1</p><p>2</p><p>3</p><p>4</p><p>system-view</p><p>interface GigabitEthernet 0/0/0</p><p>shutdown</p><p>undo shutdown (para remover shutdown)</p><p>Configurações de OSPF</p><p>Texto simples</p><p>1</p><p>2</p><p>3</p><p>4</p><p>5</p><p>system-view</p><p>interface GigabitEthernet 0/0/0</p><p>ospf authentication-mode simple plain senhaTextoPlano (ou)</p><p>ospf authentication-mode md5 1 senhaTextoCifrado (melhor)</p><p>display this (verificar)</p><p>Interface silenciosa</p><p>1</p><p>2</p><p>3</p><p>4</p><p>5</p><p>system-view</p><p>ospf 1</p><p>silent-interface GigabitEthernet0/0/0 (ou)</p><p>silent-interface all (proibir)</p><p>undo silent-interface GigabitEthernet0/0/0</p><p>Configuração de OSPF</p><p>1</p><p>2</p><p>3</p><p>4</p><p>5</p><p>6</p><p>7</p><p>8</p><p>system-view</p><p>ospf 1 router-id 10.99.99.1</p><p>import-router direct</p><p>import-route static</p><p>area 0</p><p>network 10.0.0.0 0.0.0.3</p><p>network 10.0.0.4 0.0.0.3</p><p>network 10.99.99.1 0.0.0.0</p><p>Para mostrar o peer</p><p>1</p><p>display ospf peer</p><p>Para desconfigurar/remover o ospf</p><p>1</p><p>Configurar o MPLS</p><p>Configuração do MPLS (considerando duas interfaces Gigabit)</p><p>1</p><p>2</p><p>3</p><p>4</p><p>5</p><p>6</p><p>7</p><p>8</p><p>9</p><p>10</p><p>11</p><p>system-view</p><p>mpls lsr-id 10.99.99.1</p><p>mpls</p><p>quit</p><p>mpls ldp quit</p><p>interface GigabitEthernet 0/0/0</p><p>mpls (comando por porta)</p><p>mpls ldp (comando por porta)</p><p>interface GigabitEthernet 0/0/1</p><p>mpls</p><p>mpls ldp</p><p>Comandos para verificação da nuvem MPLS (configuração dos PEs)</p><p>1</p><p>2</p><p>3</p><p>4</p><p>5</p><p>ystem-view</p><p>display mpls ldp peer (verifica peers)</p><p>display mpls ldp session (verifica sessoes ldp)</p><p>display mpls ldp lsp (tabela LDP e LSP)</p><p>display mpls lsp (tabela LSP)</p><p>Criando a VPWS (configuração dos PEs)</p><p>1</p><p>2</p><p>3</p><p>4</p><p>5</p><p>system-view</p><p>mpls l2vpn</p><p>quit</p><p>interface GigabitEthernet 0/0/2</p><p>mpls l2vc 10.99.99.3 50</p><p>Configuração para verificação</p><p>1</p><p>2</p><p>3</p><p>4</p><p>system-view</p><p>display mpls l2vc 20</p><p>display mpls ldp session</p><p>display mpls ldp peer</p><p>Para configurar o remote-peer (configuração nos PEs)</p><p>1</p><p>2</p><p>3</p><p>system-view</p><p>mpls ldp remote-peer PE3 (adapte de acordo com a rede)</p><p>remote-ip 10.99.99.3</p><p>Criando uma VPLS (VSI)</p><p>1</p><p>2</p><p>3</p><p>4</p><p>5</p><p>6</p><p>7</p><p>8</p><p>9</p><p>system-view</p><p>vsi impar</p><p>pwsignal ldp</p><p>vsi-id 10</p><p>peer 10.99.99.3</p><p>quit</p><p>quit</p><p>interface GigabitEthernet 0/0/3</p><p>l2 binding vsi redecliente</p><p>Para verificação da VSI</p><p>1</p><p>display vsi name redecliente verbose</p><p>Configurando VLAN</p><p>Configurando VLAN no SWITCH Huawei. Exemplo com as portas 1, 2 e 3.</p><p>1</p><p>2</p><p>3</p><p>4</p><p>5</p><p>6</p><p>7</p><p>8</p><p>9</p><p>10</p><p>11</p><p>12</p><p>13</p><p>14</p><p>system-view</p><p>vlan batch 10 20</p><p>interface GigabitEthernet 0/0/1</p><p>port link-type trunk</p><p>port trunk allow-pass vlan 10 20</p><p>undo port trunk allow-pass vlan 1 (remover vlan 1)</p><p>interface GigabitEthernet 0/0/2</p><p>port link-type trunk</p><p>port trunk allow-pass vlan 10</p><p>undo port trunk allow-pass vlan 1</p><p>interface GigabitEthernet 0/0/3</p><p>port link-type trunk</p><p>port trunk allow-pass vlan 20</p><p>undo port trunk allow-pass vlan 1</p><p>Para permitir que um roteador “atue como” switch (permita VLANs)</p><p>1</p><p>2</p><p>3</p><p>system-view</p><p>interface GigabitEthernet 0/0/0</p><p>portswitch</p><p>Para configurar uma sub-interface e associar um VLAN ID e endereçamento (continuação do anterior)</p><p>1</p><p>2</p><p>3</p><p>4</p><p>system-view</p><p>interface GigabitEthernet 0/0/0</p><p>dot1q termination vid 10</p><p>ip address 172.16.0.1 30</p><p>Em equipamentos PE pode-se trabalhar também em modo de iface virtual (VlanIf)</p><p>1</p><p>2</p><p>3</p><p>system-view</p><p>interface VlanIf10</p><p>ip address 172.16.0.2 30</p><p>Glossário</p><p>Termo</p><p>Significado</p><p>OSPF</p><p>Open Short Path First – protocolo link-state que verifica os enlaces e leva em consideração a velocidade nominal dos enlaces</p><p>MPLS</p><p>Multi Protocol Label Switching – Protocolo de chaveamento de pacotes multiprotocolo, baseado em etiquetas.</p><p>LDP</p><p>Label Distribution Protocol</p><p>LSR</p><p>Label Switching Router</p><p>FEC</p><p>Forwarding Equivalence Class</p><p>LSP</p><p>Label Switched Path</p><p>PWE3</p><p>Pseudowire</p><p>AC</p><p>Circuito Conectado</p><p>VC</p><p>Circuito Virtual</p><p>VPLS</p><p>Virtual Private LAN Service</p><p>VSI</p><p>Virtual Switching Interface</p><p>VPWS</p><p>Virtual Private Wire Service</p><p>AS</p><p>Autonomous System</p><p>RR</p><p>Route Reflector</p><p>Referência</p><p>· Treinamento Operação de Redes sem Interface Gráfica – Ementa e agenda https://www.vlsm.com.br/curso/cursos-tecnicos/curso-de-operacao-de-redes-sem-interface-grafica-22/</p><p>· MPLS Basics – https://support.huawei.com/enterprise/en/doc/EDOC1000178173/953f01ce/overview-of-mpls</p><p>· S2750, S5700, and S6720 V200R008C00 Configuration Guide – MPLS – https://support.huawei.com/enterprise/br/doc/EDOC1000088751</p>