Re: edit network while running

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks. I thought this made sense, but I didn’t understand the docs. I found a blog post that showed some of it, though I still don't fully understand all the options.

virsh net-update default add-last ip-dhcp-host '<host name="rhel7-master" mac="52:54:00:5c:1d:d7" ip="192.168.122.2"/>' --live --config
virsh net-update default delete ip-dhcp-host '<host ip="192.168.122.2"/>' --live --config

These seem to do what I want.

John Ratliff   | Pervasive Technology Institute | UITS | Research Storage - Indiana University | http://pti.iu.edu/

-----Original Message-----
From: Daniel P. Berrangé <berrange@xxxxxxxxxx> 
Sent: Wednesday, May 2, 2018 9:54 AM
To: Ratliff, John <jdratlif@xxxxxx>
Cc: virt-tools-list@xxxxxxxxxx
Subject: Re:  edit network while running

On Wed, May 02, 2018 at 01:48:23PM +0000, Ratliff, John wrote:
> Is there a way to restart dnsmasq with a new configuration in net-edit 
> without destroy/start the network?
> 
>  
> 
> I want to add host reservations when new machines are added, but if I 
> do a destroy/start, all the other running hosts lose networking.

It isn't well documented, but the 'virsh net-update' command is what you wnat. It allows you add/remove DHCP host mappings on the fly

Regards,
Daniel
-- 
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
virt-tools-list mailing list
virt-tools-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/virt-tools-list

[Index of Archives]     [Linux Virtualization]     [KVM Development]     [CentOS Virtualization]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux