Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I would like to create a KVM guest with two different IPs, like one public IP and another private IP for the same KVM guest.

My host is 210.x.x.x. Series and Guest are also configured with the 220.x.x.x. series. Can I config one more IP with another set of IP series like 172.x.x.x.?

share|improve this question

1 Answer 1

You can do that. I would recommend to setup your guest with two virtual NIC.

  1. NIC with external IP and Default Route
  2. NIC with internal IP

In this scenario your virtualiastion Host should be either setup with bridged networking, openvswitch or macvtap but not with libvirt default network virbr0 Nat Switch

enter image description here

Source LibVirt Docs

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.