Configuring Network Interfaces
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.
/etc/network/interfaces
/etc/dhcpcd.conf
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.
I learned all of this from the forums on https://www.raspberrypi.org/forms. [^Raspbian]: I am doing this with the Raspbian OS, so this may be different in other circumstances