@@ -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)
@@ -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
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> --- tools/kvm/kvm-run.c | 2 +- tools/kvm/virtio/net.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)