kvm tools: Change default guest MAC address to 00:15:15:15:15:15

This patch makes guest MAC address the last portion of
default guest IP address which is 192.168.33.15.

Signed-off-by: Asias He <asias.hejun@gmail.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
This commit is contained in:
Asias He
2015-06-01 16:39:45 +01:00
committed by Will Deacon
parent ec7674d7f5
commit a0db70d9b6
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -44,7 +44,7 @@
#define DEFAULT_CONSOLE "serial"
#define DEFAULT_NETWORK "virtio"
#define DEFAULT_HOST_ADDR "192.168.33.2"
#define DEFAULT_GUEST_MAC "00:11:22:33:44:55"
#define DEFAULT_GUEST_MAC "00:15:15:15:15:15"
#define DEFAULT_SCRIPT "none"
#define MB_SHIFT (20)
+1 -1
View File
@@ -73,7 +73,7 @@ static struct net_dev ndev = {
.mutex = PTHREAD_MUTEX_INITIALIZER,
.config = {
.mac = { 0x00, 0x11, 0x22, 0x33, 0x44, 0x55 },
.mac = {0x00, 0x15, 0x15, 0x15, 0x15, 0x15},
.status = VIRTIO_NET_S_LINK_UP,
},
.host_features = 1UL << VIRTIO_NET_F_MAC