Difference between revisions of "Virsh net-define"

From wikieduonline
Jump to navigation Jump to search
Tags: Mobile web edit, Mobile edit
Tags: Mobile web edit, Mobile edit
 
Line 24: Line 24:
  
 
== See also ==
 
== See also ==
 +
* {{virsh net}}
 
* {{virsh}}
 
* {{virsh}}
  
  
 
[[Category:virsh]]
 
[[Category:virsh]]

Latest revision as of 11:55, 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[edit]

Advertising: