In trying to get pi-hole working at home, I need to have multiple IP addresses for my Raspberry Pi server. I need this because my router requires three different IP addresses.
You can create a virtual network interface temporarily by executing the command:
If you want to permanently do the above you need to modify two files
/etc/network interfaces and
/etc/dhcpcd.conf. [^Raspbian] The example below are to add two virtual interfaces.
After you make these changes, you’ll have to reboot.
This worked mostly well for me. For some reason the second virtual interface didn’t quite take. I’m not sure why.