Hi All!
One of my hosting providers has recently enforced the new routing policy for
additional IP-addresses and instead of old good bridging mode from now on
requires that all additional IPs should be routed via primary IP. I've already
found quite a good HOWTO, but unfortunately it does describe how to configure
Linux virtual guest on the Linux KVM host. My task is a bit different, I have
to configure OpenBSD 5.6 guest on the Linux (Ubuntu) KVM host. Debian/Ubuntu
HOWTO document suggests following configuration:
Prerequisites:
Main (KVM host) public IP: xxx.yyy.5.102
Netmask: 255.255.255.252
Default gateway: xxx.yyy.5.101
Additional IP (for the guest machine): xxx.yyy.4.212
HOWTO suggests following settings:
Host OS /etc/network/interfaces:
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet static
address xxx.yyy.5.102
netmask 255.255.255.255 # to enforce all the traffic through GW, not
allowing direct connection between rack neighbours
gateway xxx.yyy.5.101
pointopoint xxx.yyy.5.101
auto br212
iface br212 inet static
address 172.30.64.1 #or any other 'private' non-routable IP
pre-up brctl addbr $IFACE
post-up route add -host xxx.yyy.4.212 $IFACE
post-down brctl delbr $IFACE
Guest OS /etc/network/interfaces:
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet static
address xxx.yyy.4.212
netmask 255.255.255.255
gateway xxx.yyy.5.102
pointopoint xxx.yyy.5.102
======================================================
So, my question is, what and how should I configure on OpenBSD guest? I've
tried to adjust /etc/hostname.vio0 (I'm using virtio NIC on the host), but l
can't understand the syntax for Point-to-point settings.
Thanx in advance,
Kirill