• Mark McLoughlin's avatar
    lguest: Support assigning a MAC address · dec6a2be
    Mark McLoughlin authored
    If you've got a nice DHCP configuration which maps MAC
    addresses to specific IP addresses, then you're going to
    want to start your guest with one of those MAC addresses.
    
    Also, in Fedora, we have persistent network interface naming
    based on the MAC address, so with randomly assigned
    addresses you're soon going to hit eth13. Who knows what
    will happen then!
    
    Allow assigning a MAC address to the network interface with
    e.g.
    
      --tunnet=bridge:eth0:00:FF:95:6B:DA:3D
    
    or:
    
      --tunnet=192.168.121.1:00:FF:95:6B:DA:3D
    
    which is pretty unintelligable, but ...
    
    (includes Rusty's minor rework)
    Signed-off-by: default avatarMark McLoughlin <markmc@redhat.com>
    Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
    dec6a2be
lguest.c 60.3 KB