-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path5million.xml
27 lines (23 loc) · 1.06 KB
/
5million.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<network>
<name>5million</name>
<uuid>6105f0a5-80ed-47a3-aa7d-b16df3d24607</uuid>
<forward mode='nat'/>
<bridge name='5million-bridge' stp='on' delay='0'/>
<mac address='52:54:00:fb:3e:03'/>
<ip address='192.168.122.1' netmask='255.255.255.0'>
<dhcp>
<!--<range start='192.168.122.2' end='192.168.122.254'/>-->
<range start='192.168.122.100' end='192.168.122.254'/>
<host mac='52:54:00:6c:3c:01' name='vm1' ip='192.168.122.11'/>
<host mac='52:54:00:6c:3c:02' name='vm2' ip='192.168.122.12'/>
<host mac='52:54:00:6c:3c:03' name='vm3' ip='192.168.122.12'/>
</dhcp>
</ip>
</network>
<!-- Now to add that network permanently to our KVM host, run the following:
sudo virsh net-define --file default.xml
Stage 2 - Start and autostart the network
To manually start the network run:
sudo virsh net-start default
To have the network automatically start up in future run:
sudo virsh net-autostart --network default-->