Assign an address to an interface.
Section: Interfaces Routing and Addresses
Add IP address to interface
bash
bash
sudo ip addr add 192.168.50.10/24 dev eth0Explanation
Temporary until persisted through distro networking config.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Interfaces Routing and Addresses