Virsh net-define
Jump to navigation
Jump to search
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: