I need help setting up multiple IPs on my Ubuntu 16.04.1 server. I have it in a data center and they gave me 5 IPs range 170-174.
How to setup multiple IPs on using single NIC
ubuntu;networking;ip
You need to create aliases of your network interface.By creating temporary aliases using ip address add command. The aliases setup this way will be lost upon a reboot and you will need to recreate those aliases.sudo ip addr add xx.xx.xx.xx/xx dev eth0# For examplesudo ip addr add 172.16.100.170/24 dev eth0If you need a more permanent solution, you would have to edit /etc/network/interfaces file and add alias definitions there.Then use ip addr show command to see the changes. Then you would have to do sudo ifdown eth0 && sudo ifup eth0 to activate these settings without a reboot.