Changing MAC address during runtime
Posted: 18. Jun 2015, 09:15
Hi everybody,
I have been searching for a solution for this matter for a while now and count not get any definitive answer.
I need to test some code that depends on MAC addresses. So I need to create a stream of requests with new MAC addresses each.
The problem is that I do not know how to tell the host system (an Ubuntu 14.04) that my guest system (also Ubuntu 14.04) has a new MAC address during runtime.
I am using bridged networking with the Intel PRO/1000 card.
I know how to change MAC while the guest is off, but I need to do it during runtime.
When tracing the packets, I can see them coming from the guest with the new MAC address, reaching the destination, coming back to the host and then are probably silently dropped, because they never reach the guest.
I am guessing that the virtual network driver on the host does not know that the guest changed the MAC address and so the packet with the new MAC address does not belong to any known virtual network card.
Is there a way to update the MAC address information on the host? I used to do this with VMware and it worked out of the box. Is there some way to also do this with VirtualBox?
.David
I have been searching for a solution for this matter for a while now and count not get any definitive answer.
I need to test some code that depends on MAC addresses. So I need to create a stream of requests with new MAC addresses each.
The problem is that I do not know how to tell the host system (an Ubuntu 14.04) that my guest system (also Ubuntu 14.04) has a new MAC address during runtime.
I am using bridged networking with the Intel PRO/1000 card.
I know how to change MAC while the guest is off, but I need to do it during runtime.
When tracing the packets, I can see them coming from the guest with the new MAC address, reaching the destination, coming back to the host and then are probably silently dropped, because they never reach the guest.
I am guessing that the virtual network driver on the host does not know that the guest changed the MAC address and so the packet with the new MAC address does not belong to any known virtual network card.
Is there a way to update the MAC address information on the host? I used to do this with VMware and it worked out of the box. Is there some way to also do this with VirtualBox?
.David