Ip

Updated: September 28, 2024

Obtain and maintain IP information.

Configuration with Ubuntu should be handled with netplan


Table of Contents

tldr

# = ifconfig
ip address show
ip addr show
ip a

# get ip info for single device
ip addr show dev eth0

# see routing table
ip route show

# add default gateway
ip route add default via 10.0.18.1

# see link state of hardware devices
ip link show

# flush ip address
ip addr flush eth0