Disable DHCP (or IPv4 completely) for tap0

graealex

Cadet
Joined
Nov 15, 2017
Messages
1
The interface tap0 is created as part of the network bridge on which a VM running on the server lives:

tap0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
description: Attached to FTP1
options=80000<LINKSTATE>
ether 00:bd:9b:86:c6:00
hwaddr 00:bd:9b:86:c6:00
inet 172.20.10.29 netmask 0xffff0000 broadcast 172.20.255.255
nd6 options=1<PERFORMNUD>
media: Ethernet autoselect
status: active
groups: tap
Opened by PID 75243


Default settings for the interface are to use DHCP. This messes with the DNS entries in the network, and anyway, the system should only have a single IP address on the network.

What is the best way to either disable DHCP or disable IPv4 on the tap0 interface? Obviously the change needs to persist between reboots, as that is when the problem with the DNS entries that get created by the DHCP server surface. Manually configuring in the Web interface doesn't seem possible ("Select a valid choice. tap0 is not one of the available choices." when trying to create an interface configuration). In the VM menu, the interface shows up as a device for the VM, but there are no IP settings, possibly because the tap0 interface isn't even supposed to have IPv4 enabled at all.

Thanks in advance!
 
Top