ip addr add 127.0.0.1/8 dev lo brd + scope host
-- add the usual loopback address to the loopback device.
ip addr add 10.0.0.1/24 brd + dev eth0 label eth0:Alias
-- add the address 10.0.0.1 with prefix length 24 (i.e. netmask
255.255.255.0
), standard broadcast and label eth0:Alias
to the interface eth0
.