I've recently configured my network using advice from this question but now I need to configure this a little different. I'm using Debian distribution.
I have one dedicated server with 3 IP addresses assigned to it from my provider. I want to configure it in such way that two IP are assigned to host and one is assigned to virtual machine:
My /etc/network/interfaces from host now looks like this:
auto lo br0
iface lo inet loopback
iface eth0 inet manual
iface br0 inet static
bridge_ports eth0
address 192.168.0.1
broadcast 192.168.0.95
netmask 255.255.255.224
gateway 192.168.0.65
bridge_stp off # disable Spanning Tree Protocol
bridge_waitport 0 # no delay before a port becomes available
bridge_fd 0 # no forwarding delay
On my virtual machine:
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.0.3
netmask 255.255.255.224
broadcast 192.168.0.1
gateway 192.168.0.65
hwaddress ether xx:xx:xx:xx:xx:xx
post-up iptables-restore < /etc/iptables.up.rules
Now I want to add address 192.168.0.2 to point to host server (I want to assign separate apache configuration to this IP later). How can I achieve this?