Enable MAC spoofing on KVM

Issues related to configuring your network
Post Reply
evantkh
Posts: 9
Joined: 2017/08/23 15:03:41

Enable MAC spoofing on KVM

Post by evantkh » 2017/08/23 15:05:24

How to enable mac spoofing on kvm?

It does not allow mac spoofing by default.

User avatar
jlehtone
Posts: 4523
Joined: 2007/12/11 08:17:33
Location: Finland

Re: Enable MAC spoofing on KVM

Post by jlehtone » 2017/08/23 18:48:33

What do you mean by "MAC spoofing"?

I thought that virtualization by design spoofs all the time.

evantkh
Posts: 9
Joined: 2017/08/23 15:03:41

Re: Enable MAC spoofing on KVM

Post by evantkh » 2017/08/24 00:01:44

I am trying to install CentOS on host, and then a CentOS VM on top of it.

I installed Softether VPN and configured local bridge but unfortunately it does not work properly. Client is not able to obtain IP address from the local network.

User avatar
jlehtone
Posts: 4523
Joined: 2007/12/11 08:17:33
Location: Finland

Re: Enable MAC spoofing on KVM

Post by jlehtone » 2017/08/24 07:01:12

Whoa! Who, what, where? You have to provide more information.

You are "trying to install CentOS on host". Does that succeed or not? It does?

"Client is not able". Who? The host, the VPN, the VM?

"Softether": a never-heard-of, but a VPN is essentially a VPN. Is this on the host or in the VM?

"VPN and bridge" in the same sentence. Are they somehow coupled, or separate issues?


STP of a bridge has a default forwarding delay that might be long enough to expire DHCP communication. It definitely did prevent PXEboot when I originally did set up libvirt (several years ago).



PS. Should a patient start:
"Doctor! Doctor! I have this terrible pain in my leg. Please prescribe pain-killers."
or:
"Doctor! Doctor! A lion is gnawing my leg. What should we do?"

evantkh
Posts: 9
Joined: 2017/08/23 15:03:41

Re: Enable MAC spoofing on KVM

Post by evantkh » 2017/08/25 03:02:21

I am trying to configure a transparent firewall with a VM and then a VPN server on another VM later. The bridge works now but I don't know why the MAC spoofing works now possibly due to network card type configured.

User avatar
jlehtone
Posts: 4523
Joined: 2007/12/11 08:17:33
Location: Finland

Re: Enable MAC spoofing on KVM

Post by jlehtone » 2017/08/29 07:24:25

You have a server A (with something that offers KVM).
You have two VM's (B and C) with some OS.
Your idea seems to be that incoming traffic will be delivered to B, from B to C, and C can talk to somebody (A?).

Who has bridges? Where? What kind of bridges?
What networking hardware does the server have?
What type of interfaces have been given to the VM's?

What logical subnets are there? Does each subnet have a DHCP server? Where are they?

evantkh
Posts: 9
Joined: 2017/08/23 15:03:41

Re: Enable MAC spoofing on KVM

Post by evantkh » 2017/08/30 13:53:47

I have already fixed it.

Post Reply