| arp -a ip neigh |
| arp -v ip -s neigh |
| arp -i eth1 -d 192.168.1.1 ip neigh del 192.168.1.1 dev eth1 |
| ifconfig -a ip addr |
| ifconfig eth0 down ip link set eth0 down |
| ifconfig eth0 up ip link set eth0 up |
| ifconfig eth0 192.168.1.1 ip addr add 192.168.1.1/24 dev eth0 |
| ifconfig eth0 netmask 255.255.255.0 ip addr add 192.168.1.1/24 dev eth0 |
| ifconfig eth0 mtu 9000 ip link set eth0 mtu 9000 |
| ifconfig eth0:0 192.168.1.2 ip addr add 192.168.1.2/24 dev eth0 |
| netstat ss |
| netstat -neopa ss -neopa |
| netstat -g ip maddr |
| route ip route |
| route add -net 192.168.1.0 netmask 255.255.255.0 dev eth0 ip route add 192.168.1.0/24 dev eth0 |
| route add default gw 192.168.1.1 ip route add default via 192.168.1.1 |
| ip link help |
| Get Network Interface Information |
| ip link show |
| ip link show dev [device] |
| ip -s link |
| ip -s link ls [interface] |
| ip -s -s link ls [interface] |
| ip link ls up |
| Modify Network Interface Status |
| ip link set [interface] up |
| ip link set [interface] down |
| ip link set txqueuelen [number] dev [interface] |
| ip link set mtu [number] dev [interface] |
| Monitor and Manage IP Addresses |
| ip addr help |
| ip addr |
| ip addr show |
| ip addr show dev [interface] |
| ip -4 addr |
| ip -6 addr |
| How to Add IP Address in Linux |
| ip addr add [ip_address] dev [interface] |
| ip addr add brd [ip_address] dev [interface] |
| ip addr del [ip_address] dev [interface] |
| Manage and Display IP Routing Table |
| ip route help |
| ip route |
| ip route list |
| ip route list SELECTOR |
| ip route list [ip_address] |
| Modify IP Routing Table |
| ip route add [ip_address] dev [interface] |
| ip route add [ip_address] via [gatewayIP] |
| ip route add default [ip_address] dev [device] |
| ip route add default [network/mask] via [gatewayIP] |
| ip route del [ip_address] |
| ip route del default |
| ip route del [ip_address] dev [interface] |
| Display and Modify IP Neighbor Entries |
| ip neigh help |
| ip neigh show |
| ip neigh add [ip_address] dev [interface] |
| ip neigh del [ip_address] dev [interface] |
| REACHABLE – signifies a valid, reachable entry until the timeout expires |
| PERMANENT– signifies an everlasting entry that only an administrator can remove |
| STALE– signifies a valid, yet unreachable entry; to check its state, the kernel checks it at the first transmission |
| DELAY– signifies that the kernel is still waiting for validation from the stale entry |