Download the authoritative guide: Cloud Computing 2018: Using the Cloud to Transform Your Business
The ip command is part of the iproute2 suite of TCP/IP networking utilities. It keeps trying to replace the old familiar ifconfig and route commands, which do what they do splendidly but are a bit limited for today's network environments. One thing ip can do that ifconfig cannot is assign multiple addresses to a single network interface. ifconfig can assign multiple aliases, such as eth0:0, eth0:1, and so forth, but then you must give each alias a separate configuration as though they are separate physical interfaces. ip adds addresses to a single interface like this:
# ip addr add 192.168.1.10/24 brd + dev eth0 # ip addr add 192.168.2.10/24 brd + dev eth0
brd + means "automatically set the broadcast address." View the results with this command:
$ ip addr show eth0 2: eth0:
If you run ifconfig to check your addresses, it will see only the first one.
# ip addr del 192.168.3.10/24 dev eth0
man ip is the best and most complete reference.
This article was first published on ServerWatch.com.