Linux networking · Interfaces and routes
Add an IP address temporarily
Assign an extra address to an interface. It is lost on reboot.
sudo ip addr add 192.168.1.50/24 dev eth0
Official Linux networking documentation
More interfaces and routes commands
- Show IP addresses
- Show interface state
- Show the routing table
- Find which route a destination uses
- Find your public IP address
- Show the ARP table
All interfaces and routes commands · Linux networking cheatsheet