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.he...@gmail.com> --- tools/kvm/kvm-run.c | 2 +- tools/kvm/virtio/net.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/kvm/kvm-run.c b/tools/kvm/kvm-run.c index 0ac2ed8..a16a482 100644 --- a/tools/kvm/kvm-run.c +++ b/tools/kvm/kvm-run.c @@ -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) diff --git a/tools/kvm/virtio/net.c b/tools/kvm/virtio/net.c index 7eebee0..38f0c9b 100644 --- a/tools/kvm/virtio/net.c +++ b/tools/kvm/virtio/net.c @@ -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 -- 1.7.5.4 -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html