VirtualBox

Changes between Initial Version and Version 2 of Ticket #13785


Ignore:
Timestamp:
04/28/2015 05:04:29 AM (5 years ago)
Author:
vushakov
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #13785 – Description

    initial v2  
    88 
    99Running dhclient -v eth2 shows the guest is declining the IP offer when it fails: 
    10  
     10{{{ 
    1111[root@localhost ~]# dhclient -v eth2 
    1212Internet Systems Consortium DHCP Client 4.1.1-P1 
     
    2323DHCPACK from 192.168.0.1 (xid=0x2bc89bf5) 
    2424DHCPDECLINE on eth2 to 255.255.255.255 port 67 (xid=0x2bc89bf5) 
    25  
     25}}} 
    2626This seems to be because it sees the IP as already existing - though it doesn't. I modified /sbin/dhclient-script to show the arping output like this: 
     27{{{ 
    2728        arping -D -c2 -I ${interface} ${new_ip_address} 
    2829        RC=$? 
    2930        echo "Exit: $RC" 
    3031        [ $RC -ne 0 ] && exit_with_hooks 1 
     32}}} 
    3133Interestingly, if I didn't exit and let it run its own arping afterwards - it would always succeed. More on that shortly. 
    3234 
    3335Output is below: 
    34  
     36{{{ 
    3537[root@localhost ~]# dhclient -v eth2 
    3638Internet Systems Consortium DHCP Client 4.1.1-P1 
     
    5254Exit: 1 
    5355DHCPDECLINE on eth2 to 255.255.255.255 port 67 (xid=0x2bc89bf5) 
    54  
     56}}} 
    5557Arping detects a broadcast request coming from the IP it just allocated... the Mac address there is the HOST's MAC address. So something on the host sends this request from the allocated IP, and arping here catches it and fails duplicate address detection, meaning dhclient declines the address. 
    5658 

www.oracle.com
ContactPrivacy policyTerms of Use