Skip to content

Experiência 1

Camões edited this page Dec 21, 2020 · 1 revision

Disclaimer: Esta configuração é para a bancada 2


Exp1

Steps

  1. Disconnect switch from netlab and connect tux computers
  2. Configure tuxy3 and tuxy4 using ifconfig and route commands
  3. Register the IP and MAC addresses of network interfaces
  4. Use ping command to verify connectivity between these computers
  5. Inspect forwarding (route –n) and ARP (arp–a) tables
  6. Delete ARP table entries in tuxy3 (arp–d ipaddress)
  7. Start Wireshark in tuxy3.eth0 and start capturing packets
  8. In tuxy3, ping tuxy4 for a few seconds
  9. Stop capturing packets
  10. Save log study it at home

Step 2 & 3

Ligar Cabos

TUX23E0  -> Switch
TUX24E0  -> Switch

tux3:

> ifconfig eth0 up
> ifconfig eth0 172.16.20.1/24
> ifconfig eth0 

tux4:

> ifconfig eth0 up
> ifconfig eth0 172.16.20.254/24
> ifconfig eth0 
IP MAC tux/ether
172.16.20.1 00:21:5a:5a:7d:12 tux23 eth0
172.16.20.254 00:08:54:50:3f:2c tux24 eth0

Step 4

tux3:

> ping 172.16.20.254 

recebe pacotes de 64 bytes desse endereço

tux4:

> ping 172.16.20.1

recebe pacotes de 64 bytes desse endereço

Step 5

tux3:

> route -n

Associa endereço IP a porta para saber por onde mandar

Neste pc:

  • Destination 172.16.20.0
  • Iface eth0
> arp -a

Associa Endereço IP a um Endereço MAC

< ? (172.16.20.254) at 00:08:54:50:3f:2c [ether] on eth0

Step 6

tux3:

> arp -d 172.16.20.254
> arp -a [retorna nada]
Clone this wiki locally