mirror of
https://github.com/clearlinux/kvmtool.git
synced 2026-09-04 12:41:37 +00:00
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:
@@ -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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user