Dedicated IPv4 address for a KVM guest

Server Fault Asked by manifestor on December 20, 2020

I have a dedicated bare metal server, which is a KVM host and which has it’s own IPv4 address. I just ordered another seperate IPv4 address for a KVM guest and which should be used for the KVM guest only. How I can I use both IPv4 addresses, one connecting to the KVM host, the other one should be used for the KVM guest machine?

Should I create a bridge on the KVM host and share this bridge with the KVM guest? Maybe something like this:

auto eth0
iface eth0 inet manual
auto WANbr0
iface WANbr0 inet static
    hwaddress ether 00:16:3e:00:00:00
    bridge_ports eth0
    bridge_stp off
    bridge_fd 0

I would make the KVM guest use the WANbr0 interface in it’s xml file and add the new separate IPv4 in /etc/network/interfaces on the guest machine.

  • Would that work?
  • Is this a good approach or is there another one, a better one?

Add your own answers!

Related Questions

postfix-Postfwd rate limit

1  Asked on December 23, 2021 by vivek-jain


CentOS 7 – firewalld[8509]: ERROR: COMMAND_FAILED

1  Asked on December 23, 2021 by eric-kim


Microsoft IIS Rules with Reverse Proxy and Static

1  Asked on December 23, 2021 by dean-christian-armada


FreeIpa. How to setup specific shell only on 1 host for group of users

1  Asked on December 23, 2021 by sergii-skybenko


How can I access a local-area LDAP through a VPN?

1  Asked on December 22, 2021 by zenklys


PsExec.exe- The network path was not found

1  Asked on December 21, 2021 by anegi


macvtap interface associated with a VM on a host cannot ping host eno1 IP

0  Asked on December 21, 2021 by lakshmi-bangalore


Can not input or print Chinese on PuTTY

1  Asked on December 20, 2021 by hetaoblog


Ask a Question

Get help from others!

© 2022 All rights reserved. Sites we Love: PCI Database, MenuIva, UKBizDB, Menu Kuliner, Sharing RPP