network arp mac - ghdrako/doc_snipets GitHub Wiki
Install
Distribution | Command |
---|---|
Debian | apt-get install net-tools |
Ubuntu | apt-get install net-tools |
Alpine | apk add net-tools |
Kali Linux | apt-get install net-tools |
CentOS | yum install net-tools |
Raspbian | apt-get install net-tools |
Docker | docker run cmd.cat/arp arp |
Wpis wygasa
- host 60s
- switch 5min
- router 4h
- Show current arp table:
$ arp -a
- Clear the entire cache:
$ arp -a -d
- Delete a specific entry:
$ arp -d address
$ arp -i interface -d address
- Create an entry: Dodaje wpis niewygasajacy - ma status PERM
$ arp -s address mac_address
- Podszycie sie pod dany adres ip aby odpowiadac na zadania ARP
$ arp -i eth0 -Ds 10.0.0.1 eth1 pub
Cisco
clear arp {ip_addr | all}.
Zmiana adresu MAC:
sudo ip link set dev ens33 down
sudo ip link set dev ens33 address 00:88:77:66:55:44
sudo ip link set dev ens33 up
ip link show ens33 | grep link