Página 1 de 1

Conectividade

Enviado: 14 Ago 2022, 21:53
por bernardino
Este tópico é continuação do Interfaces.

Sequência: 03

1) Vamos estabelecer a conectividade entre o switch e o router.

Acesse a CLI do switch que está conectado ao NY_R1.

Configure um nome

Switch>enable
Switch#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#hostname NY_SW1

2) Configure a senha enable com a senha cisco.

NY_SW1(config)#enable secret cisco

3) Configure o banner.

NY_SW1(config)#banner motd ^C
Enter TEXT message. End with the character '^'.
O ACESSO NAO PERMITIDO E RESTRITO^C

NY_SW1(config)#end
NY_SW1#
%SYS-5-CONFIG_I: Configured from console by console

NY_SW1#exit
NY_SW1 con0 is now available

Press RETURN to get started.

O ACESSO NAO PERMITIDO E RESTRITO

NY_SW1>ena
NY_SW1>enable
Password: cisco
NY_SW1#

4) Salve as configurações.

NY_SW1#wr
Building configuration...
[OK]

5) Visualize todas as configurações do equipamento

NY_SW1#show running-config

6) Certifique de que a conexão entre o switch e o router esteja via porta Giga

NY_SW1#show ip int brief
Interface IP-Address OK? Method Status Protocol
FastEthernet0/1 unassigned YES manual down down
FastEthernet0/2 unassigned YES manual down down
FastEthernet0/3 unassigned YES manual down down
FastEthernet0/4 unassigned YES manual down down
FastEthernet0/5 unassigned YES manual down down
FastEthernet0/6 unassigned YES manual down down
FastEthernet0/7 unassigned YES manual down down
FastEthernet0/8 unassigned YES manual down down
FastEthernet0/9 unassigned YES manual down down
FastEthernet0/10 unassigned YES manual down down
FastEthernet0/11 unassigned YES manual down down
FastEthernet0/12 unassigned YES manual down down
FastEthernet0/13 unassigned YES manual down down
FastEthernet0/14 unassigned YES manual down down
FastEthernet0/15 unassigned YES manual down down
FastEthernet0/16 unassigned YES manual down down
FastEthernet0/17 unassigned YES manual down down
FastEthernet0/18 unassigned YES manual down down
FastEthernet0/19 unassigned YES manual down down
FastEthernet0/20 unassigned YES manual down down
FastEthernet0/21 unassigned YES manual down down
FastEthernet0/22 unassigned YES manual down down
FastEthernet0/23 unassigned YES manual down down
FastEthernet0/24 unassigned YES manual down down
GigabitEthernet0/1 unassigned YES manual up up
GigabitEthernet0/2 unassigned YES manual up up

Vlan1 unassigned YES manual administratively down down

7) Configure um endereço IP na vlan 1 do switch e remova o shutdown

NY_SW1#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
NY_SW1(config)#interface vlan 1
NY_SW1(config-if)#ip address 192.168.10.2 255.255.255.0
NY_SW1(config-if)#no shutdown

NY_SW1(config-if)# %LINK-5-CHANGED: Interface Vlan1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed state to up

8) Verifique se há conectividade local com a vlan 1

NY_SW1#ping 192.168.10.2

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.10.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 0/9/28 ms

8) Verifique se há conectividade com o roteador

NY_SW1#ping 192.168.10.1

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.10.1, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 0/0/0 ms

O mesmo deve ocorrer via roteador

NY_R1>ping 192.168.10.2

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.10.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 0/0/0 ms

Download do PKT