[libvirt-users] How do i associate a VM to An IP

I want to block my VM with mac addr 52:54:00:a1:05:b6 from using IPs other than 192.168.124.130 is there any libvirt way to do this? -- Regards, Shashwat Shagun

On 01/29/2018 02:47 PM, Shashwat shagun wrote:
I want to block my VM with mac addr 52:54:00:a1:05:b6 from using IPs other than 192.168.124.130
is there any libvirt way to do this?
Yes, you're looking for NWFilters: https://libvirt.org/formatnwfilter.html Or basically any firewall. Michal

Not directly. Is this for security, or for administrative convenience? If convenience, the usual approach would be to add a DHCP reservation. If security, you'll also want some network infrastructure to expect a particular IP address on the virtual port. Without more information on your environment, it's difficult to be more specific. Peter On 29 Jan 2018 1:47 p.m., "Shashwat shagun" <me@shashwat.tech> wrote:
I want to block my VM with mac addr 52:54:00:a1:05:b6 from using IPs other than 192.168.124.130
is there any libvirt way to do this?
-- Regards, Shashwat Shagun
_______________________________________________ libvirt-users mailing list libvirt-users@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-users
participants (3)
-
Michal Privoznik
-
Peter Crowther
-
Shashwat shagun