Page MenuHomeFreeBSD

Don't run dhclient on tap devices when link comes up
AbandonedPublic

Authored by allanjude on Nov 4 2014, 8:22 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Nov 27, 4:02 PM
Unknown Object (File)
Fri, Nov 21, 1:03 AM
Unknown Object (File)
Oct 29 2025, 5:40 PM
Unknown Object (File)
Oct 29 2025, 8:17 AM
Unknown Object (File)
Oct 23 2025, 12:00 AM
Unknown Object (File)
Oct 1 2025, 6:23 PM
Unknown Object (File)
Sep 25 2025, 7:06 AM
Unknown Object (File)
Jul 25 2025, 9:56 PM

Details

Reviewers
gnn
sbruno
Group Reviewers
network
Summary

tap devices are generally used for virtual machines and shouldn't run dhclient
automatically when they get LINK UP

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

allanjude retitled this revision from to Don't run dhclient on tap devices when link comes up.
allanjude updated this object.
allanjude edited the test plan for this revision. (Show Details)
allanjude added a reviewer: sbruno.
sbruno edited edge metadata.

I cannot think of a case where we would *want* to run dhclient on a tap interface from the host. If nobody comments here this week, I'll approve it.

gnn added a reviewer: gnn.
This revision is now accepted and ready to land.Nov 4 2014, 10:20 PM

Aehm and why not? There are gazillions of other usages, e.g. with VPNs where you might exactly want this. It think it's a hard call on these virtual interfaces, where it's not black or white but gray.

This dhclient script invocation is no-op unless if ifconfig_tap0="DHCP" is defined. I agree that dhclient for tap(4) interface is useless in some cases, but is this script invocation harmful in practice?

While I'm not against the change, but well,
tap is general L2 tunneling mechanism, so it is widely used in various VPN configurations.
Openvpn can be good example: http://www.freebsdwiki.net/index.php/Openvpn_and_dhcp_client (this is server side, but still)

I second on bz, hrs, melifaro. The tap(4) isn't a hypervisor only interface.

Allan:

It appears that this is a non-starter. Want to close/abandon this?