How to configure a second IP address (to bind it to a VBoxHeadless virtual machine then)?
Solution 1:
The simple manual way looks like this:
ip address add 192.168.0.200/24 broadcast + dev eth0
If you want to make this a permanent configuration in /etc/network/interfaces
you will have to use the older alias interface syntax (e.g., eth0:1
), because that configuration file doesn't support multiple addresses per (primary) interface yet. Add something like this:
auto eth0:1
iface eth0:1 inet static
address 192.168.0.200
network 192.168.0.0
netmask 255.255.255.0