Linux: usare il comando ip al posto di ifconfig
Il comando ifconfig è ormai deprecato da un po’ di tempo. Ecco uno schema riassuntivo su come usare ip al suo posto:
ipconfig | ip |
ifconfig -a | ip a |
ifconfig ens192 down | ip link set ens192 down |
ifconfig ens192 up | ip link set ens192 up |
ifconfig ens192 192.168.1.10 | ip addr add 192.168.1.10/24 dev ens192 |
ifconfig ens192 netmask 255.255.255.0 | ip addr add 192.168.1.1/24 dev ens192 |
ifconfig ens192 mtu 9000 | ip link set ens192 mtu 9000 |
ifconfig ens192:0 192.168.2.12 | ip addr add 192.168.2.12/24 dev ens192 |
netstat | ss |
netstat -tulpn | ss -tulpn |
netstat -neopa | ss -neopa |
netstat -g | ip maddr |
route | ip r |
route add -net 192.168.2.0 netmask 255.255.255.0 dev ens192 | ip route add 192.168.2.0/24 dev ens192 |
route add default gw 192.168.2.254 | ip route add default via 192.168.2.254 |
arp -a | ip neigh |
arp -v | ip -s neigh |
arp -s 192.168.1.13 1:2:3:4:5:6 | ip neigh add 192.168.1.13 lladdr 1:2:3:4:5:6 dev ens192 |
arp -i ens192 -d 192.168.1.254 | ip neigh del 192.168.1.254 dev ens192 |
enjoy!
Ti interessa acquistare un dominio a prezzi ultraconvenienti? clicca qui
Se hai trovato utili le informazioni su questo blog,
Fai una donazione!
Clicca sul bottone qui sotto o almeno clicca sul banner pubblicitario 🙂
Commenta