Changes between Initial Version and Version 2 of Ticket #13785
- Timestamp:
- Apr 28, 2015 5:04:29 AM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #13785 – Description
initial v2 8 8 9 9 Running dhclient -v eth2 shows the guest is declining the IP offer when it fails: 10 10 {{{ 11 11 [root@localhost ~]# dhclient -v eth2 12 12 Internet Systems Consortium DHCP Client 4.1.1-P1 … … 23 23 DHCPACK from 192.168.0.1 (xid=0x2bc89bf5) 24 24 DHCPDECLINE on eth2 to 255.255.255.255 port 67 (xid=0x2bc89bf5) 25 25 }}} 26 26 This 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 {{{ 27 28 arping -D -c2 -I ${interface} ${new_ip_address} 28 29 RC=$? 29 30 echo "Exit: $RC" 30 31 [ $RC -ne 0 ] && exit_with_hooks 1 32 }}} 31 33 Interestingly, if I didn't exit and let it run its own arping afterwards - it would always succeed. More on that shortly. 32 34 33 35 Output is below: 34 36 {{{ 35 37 [root@localhost ~]# dhclient -v eth2 36 38 Internet Systems Consortium DHCP Client 4.1.1-P1 … … 52 54 Exit: 1 53 55 DHCPDECLINE on eth2 to 255.255.255.255 port 67 (xid=0x2bc89bf5) 54 56 }}} 55 57 Arping 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. 56 58