Difference between revisions of "Virsh net-define"

From wikieduonline
Jump to navigation Jump to search
(Created page with " virsh net-define newnetwork.xml Create a new NAT network $ vim newnetwork.xml <network> <name>newnetwork-1</name> <uuid>d0e9964a-f91a-40c0-b769-a609aee41...")
Tags: Mobile web edit, Mobile edit
 
Tags: Mobile web edit, Mobile edit
Line 21: Line 21:
 
     </ip>
 
     </ip>
 
   </network>
 
   </network>
 +
 +
 +
== See also ==
 +
* {{virsh}}
 +
 +
 +
[[Category:virsh]]

Revision as of 11:03, 26 January 2020

virsh net-define newnetwork.xml 


Create a new NAT network

$ vim  newnetwork.xml 
 <network>
   <name>newnetwork-1</name>
   <uuid>d0e9964a-f91a-40c0-b769-a609aee41bf2</uuid>
   <forward mode='nat'>
     <nat>
       <port start='1' end='65535'/>
     </nat>
   </forward>
   <bridge name='virbr1' stp='on' delay='0' />
   <mac address='52:54:00:60:f8:6e'/>
   <ip address='192.168.142.1' netmask='255.255.255.0'>
     <dhcp>
       <range start='192.168.142.2' end='192.168.142.254' />
     </dhcp>
   </ip>
 </network>


See also

Advertising: