Preview only show first 10 pages with watermark. For full document please download

5 - Apostila De Redes

Apostila nº 5 de redes

   EMBED

  • Rating

  • Date

    December 2018
  • Size

    18.3KB
  • Views

    7,287
  • Categories


Share

Transcript

Redes de Computadores – VI Prof. Alexandre Prado ________________________________________________________________________________________________________________________ APOSTILA DE REDES DE COMPUTADORES PARTE – VI – SWITCH 1 Redes de Computadores – VI Prof. Alexandre Prado ________________________________________________________________________________________________________________________ REDE DE COMPUTADORES – VI 1. Criando um Banner de Login SALESIANO#conf t Enter configuration commands, one per line. End with CNTL/Z. SALESIANO(config)#banner motd c Enter TEXT message. End with the character 'c'. ################################################ # MENSAGEM!!!! # ################################################c SALESIANO(config)# 2. Verificando um Banner de Login SALESIANO (config)#^Z SALESIANO # %SYS-5-CONFIG_I: Configured from console by console SALESIANO #exit SALESIANO con0 is now available Press RETURN to get started. ################################################ # MENSAGEM!!!! # ################################################ SALESIANO > 3. Setando Data e Hora no Switch SALESIANO #clock set 15:13:00 14 Apr 2010 SALESIANO #sh clock *15:13:3.558 UTC qua abr 14 2010 SALESIANO # 2 Redes de Computadores – VI Prof. Alexandre Prado ________________________________________________________________________________________________________________________ 4. Comando Show Vlan SALESIANO #sh vlan VLAN Name Status Ports ---- -------------------------------- --------- ------------------------------1 default active Fa0/1, Fa0/2, Fa0/3, Fa0/4 Fa0/5, Fa0/6, Fa0/7, Fa0/8 Fa0/9, Fa0/10, Fa0/11, Fa0/12 Fa0/13, Fa0/14, Fa0/15, Fa0/16 Fa0/17, Fa0/18, Fa0/19, Fa0/20 Fa0/21, Fa0/22, Fa0/23, Fa0/24 Gig1/1, Gig1/2 1002 fddi-default act/unsup 1003 token-ring-default act/unsup 1004 fddinet-default act/unsup 1005 trnet-default act/unsup VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2 ---- ----- ---------- ----- ------ ---------------- ------------- -----1 enet 100001 1500 0 0 1002 fddi 101002 1500 0 0 1003 tr 101003 1500 0 0 1004 fdnet 101004 1500 ieee 0 0 1005 trnet 101005 1500 ibm 0 0 Remote SPAN VLANs -----------------------------------------------------------------------------Primary Secondary Type Ports ------- --------- ----------------- -----------------------------------------SALESIANO # 5. Criando uma Vlan SALESIANO #conf t Enter configuration commands, one per line. End with CNTL/Z. SALESIANO (config)#vlan 10 SALESIANO (config-vlan)#name TESTE SALESIANO (config-vlan)#^Z SALESIANO # %SYS-5-CONFIG_I: Configured from console by console SALESIANO # 3 Redes de Computadores – VI Prof. Alexandre Prado ________________________________________________________________________________________________________________________ 6. Verificando a Vlan Criada SALESIANO #sh vlan VLAN Name ---- -------------------------------1 default active Status Ports --------------------------------------Fa0/1, Fa0/2, Fa0/3, Fa0/4 Fa0/5, Fa0/6, Fa0/7, Fa0/8 Fa0/9, Fa0/10, Fa0/11, Fa0/12 Fa0/13, Fa0/14, Fa0/15, Fa0/16 Fa0/17, Fa0/18, Fa0/19, Fa0/20 Fa0/21, Fa0/22, Fa0/23, Fa0/24 Gig1/1, Gig1/2 10 TESTE active 1002 fddi-default act/unsup 1003 token-ring-default act/unsup 1004 fddinet-default act/unsup 1005 trnet-default act/unsup VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2 ---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ -----1 enet 100001 1500 - - - 0 0 10 enet 100010 1500 - - - 0 0 1002 fddi 101002 1500 - - - 0 0 1003 tr 101003 1500 - - - 0 0 SALESIANO # 7. Inserindo portas à uma Vlan SALESIANO #conf t Enter configuration commands, one per line. End with CNTL/Z. SALESIANO (config)#interface fastEthernet 0/20 SALESIANO (config-if)#switchport access vlan 10 SALESIANO (config-if)#no shut SALESIANO (config-if)#^Z SALESIANO # %SYS-5-CONFIG_I: Configured from console by console SALESIANO # 4 Redes de Computadores – VI Prof. Alexandre Prado ________________________________________________________________________________________________________________________ 8. Verificando a porta inserida na Vlan SALESIANO #show vlan VLAN Name ----------------------------------1 default 10 1002 1003 1004 1005 TESTE fddi-default token-ring-default fddinet-default trnet-default Status Ports --------------------------------------active Fa0/1, Fa0/2, Fa0/3, Fa0/4 Fa0/5, Fa0/6, Fa0/7, Fa0/8 Fa0/9, Fa0/10, Fa0/11, Fa0/12 Fa0/13, Fa0/14, Fa0/15, Fa0/16 Fa0/17, Fa0/18, Fa0/19, Fa0/21 Fa0/22, Fa0/23, Fa0/24, Gig1/1 Gig1/2 active Fa0/20 act/unsup act/unsup act/unsup act/unsup 9. Inserindo IP em uma Vlan SALESIANO >ena SALESIANO #conf t Enter configuration commands, one per line. End with CNTL/Z. SALESIANO (config)#interface vlan 10 SALESIANO (config-if)# %LINK-5-CHANGED: Interface Vlan10, changed state to up SALESIANO (config-if)#ip address 10.0.0.10 255.0.0.0 SALESIANO (config-if)#no shut SALESIANO (config-if)#^Z SALESIANO # %SYS-5-CONFIG_I: Configured from console by console SALESIANO # 5 Redes de Computadores – VI Prof. Alexandre Prado ________________________________________________________________________________________________________________________ 10. Verificando o Status de uma Vlan SALESIANO #sh interfaces vlan 10 Vlan10 is up, line protocol is down Hardware is CPU Interface, address is 0060.70ca.4801 (bia 0060.70ca.4801) Internet address is 10.0.0.10/8 MTU 1500 bytes, BW 100000 Kbit, DLY 1000000 usec, reliability 255/255, txload 1/255, rxload 1/255 Encapsulation ARPA, loopback not set ARP type: ARPA, ARP Timeout 04:00:00 Last input 21:40:21, output never, output hang never Last clearing of "show interface" counters never Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0 Queueing strategy: fifo Output queue: 0/40 (size/max) 5 minute input rate 0 bits/sec, 0 packets/sec 5 minute output rate 0 bits/sec, 0 packets/sec 1682 packets input, 530955 bytes, 0 no buffer Received 0 broadcasts (0 IP multicast) 0 runts, 0 giants, 0 throttles 0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored 563859 packets output, 0 bytes, 0 underruns 0 output errors, 23 interface resets 0 output buffer failures, 0 output buffers swapped out SALESIANO # 6