denyinterfaces config option doesn't really work
Mike Cui
Wed Aug 26 09:39:35 2009
Hi,
I'm using dhcpcd 5.0.6 on gentoo (funtoo), and I noticed that it's
impossible for me to exclude certain network interfaces from dhcpcd.
(In particular, I'm trying to use vmware, which installs a couple of
virtual network adapters, with static IPs, for talking to virtual
machines. And unfortunately, dhcpcd tries to configure these virtual
adapters, and vmware has a built-in dhcp server that will respond to
it ...)
What I noticed is that the denyinterfaces option only prevents the
dhcpcd from configuring the interfaces initially, but if the vmnet
adapters are created after dhcpcd has launched, dhcpcd will configure
them, regardless of the denyinterfaces option. Is there another config
option I'm missing? Here is the debug log:
dhcpcd: version 5.0.6 starting
dhcpcd: eth0: executing `/lib/dhcpcd/dhcpcd-run-hooks', reason PREINIT
dhcpcd: eth0: executing `/lib/dhcpcd/dhcpcd-run-hooks', reason CARRIER
dhcpcd: eth0: rebinding lease of 192.168.9.156
dhcpcd: eth0: sending DHCP_REQUEST (xid 0x1e1feab2), next in 3.11 seconds
dhcpcd: eth0: acknowledged 192.168.9.156 from 192.168.9.1
dhcpcd: eth0: checking for 192.168.9.156
dhcpcd: eth0: sending ARP probe (1 of 3), next in 1.78 seconds
dhcpcd: eth0: sending ARP probe (2 of 3), next in 1.55 seconds
dhcpcd: eth0: sending ARP probe (3 of 3), next in 2.00 seconds
dhcpcd: eth0: leased 192.168.9.156 for 86400 seconds
dhcpcd: eth0: adding IP address 192.168.9.156/21
dhcpcd: eth0: adding route to 192.168.8.0/21
dhcpcd: eth0: adding default route via 192.168.9.1
dhcpcd: eth0: executing `/lib/dhcpcd/dhcpcd-run-hooks', reason BOUND
dhcpcd: eth0: sending ARP announce (1 of 2), next in 2.00 seconds
dhcpcd: eth0: sending ARP announce (2 of 2)
(restart vmware services...)
dhcpcd: manage_link: No such device or address
dhcpcd: vmnet1: executing `/lib/dhcpcd/dhcpcd-run-hooks', reason PREINIT
dhcpcd: vmnet1: executing `/lib/dhcpcd/dhcpcd-run-hooks', reason CARRIER
dhcpcd: vmnet1: rebinding lease of 192.168.116.129
dhcpcd: vmnet1: sending DHCP_REQUEST (xid 0x45f586e6), next in 3.60 seconds
dhcpcd: vmnet8: executing `/lib/dhcpcd/dhcpcd-run-hooks', reason PREINIT
dhcpcd: vmnet8: executing `/lib/dhcpcd/dhcpcd-run-hooks', reason CARRIER
dhcpcd: vmnet8: rebinding lease of 192.168.65.129
dhcpcd: vmnet8: sending DHCP_REQUEST (xid 0x43abca87), next in 4.73 seconds
dhcpcd: vmnet1: acknowledged 192.168.116.129 from 192.168.116.254
dhcpcd: vmnet1: checking for 192.168.116.129
dhcpcd: vmnet1: sending ARP probe (1 of 3), next in 1.35 seconds
dhcpcd: vmnet8: acknowledged 192.168.65.129 from 192.168.65.254
dhcpcd: vmnet8: checking for 192.168.65.129
dhcpcd: vmnet8: sending ARP probe (1 of 3), next in 1.11 seconds
dhcpcd: vmnet8: sending ARP probe (2 of 3), next in 1.20 seconds
dhcpcd: vmnet1: sending ARP probe (2 of 3), next in 1.14 seconds
dhcpcd: vmnet8: sending ARP probe (3 of 3), next in 2.00 seconds
dhcpcd: vmnet1: sending ARP probe (3 of 3), next in 2.00 seconds
dhcpcd: vmnet8: leased 192.168.65.129 for 1800 seconds
dhcpcd: vmnet8: adding IP address 192.168.65.129/24
dhcpcd: vmnet8: adding route to 192.168.65.0/24
dhcpcd: vmnet8: adding default route via 192.168.65.2
dhcpcd: vmnet8: executing `/lib/dhcpcd/dhcpcd-run-hooks', reason BOUND
dhcpcd: vmnet8: sending ARP announce (1 of 2), next in 2.00 seconds
dhcpcd: vmnet1: leased 192.168.116.129 for 1800 seconds
dhcpcd: vmnet1: adding IP address 192.168.116.129/24
dhcpcd: vmnet1: adding route to 192.168.116.0/24
dhcpcd: vmnet1: executing `/lib/dhcpcd/dhcpcd-run-hooks', reason BOUND
dhcpcd: vmnet1: sending ARP announce (1 of 2), next in 2.00 seconds
dhcpcd: vmnet8: sending ARP announce (2 of 2)
dhcpcd: vmnet1: sending ARP announce (2 of 2)
Archive administrator: postmaster@marples.name