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

All interfaces and routes commands · Linux networking cheatsheet

Was this page helpful?