Discussion:
[libvirt-users] How do i associate a VM to An IP
Shashwat shagun
2018-01-29 13:47:06 UTC
Permalink
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
Michal Privoznik
2018-01-29 13:52:03 UTC
Permalink
Post by Shashwat shagun
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
Peter Crowther
2018-01-29 13:56:13 UTC
Permalink
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
Post by Shashwat shagun
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
https://www.redhat.com/mailman/listinfo/libvirt-users
Loading...