NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
Michel-jacobs
Aug 03, 2017Guide
Restart network interfaces
After installing openvpn I noticed tap0 getting a dhcp address as well. In /etc/network/interfaces I changed dhcp to static. Now I wanted to restart the tap0 device with ifup Ifdown but these commands are not available . So is there a way to restart network/interfaces without rebooting?
- If you really wanted to dig into connman, you are able to use `connmanctl`, but I think what you are looking for is to have connman just ignore the tap interface.
You can modify `/etc/connman/main.conf` and add your interface to the `NetworkInterfaceBlacklist` field. The line will looks something like this:
`NetworkInterfaceBlacklist = LeafNets,docker,veth,zt,tap`
After that configuration saved, you will need to restart the connman service:
`systemctl restart connman.service`
Note: Since this is a system service, the configuration file will be overwritten with the firmware updates. I will see if we can add the tap to the blacklist in a future firmware release.
6 Replies
Replies have been turned off for this discussion
- JennCNETGEAR Employee Retired
Hello Michel-jacobs,
If this is an app you installed, I suggest to try contacting the developer.
Regards,
- OOM-9NETGEAR ExpertYou could run `ifconfig tap0 down` and `ifconfig tap0 up`.
Since you are looking into the network settings of the NAS, you may need to look into the connman settings for that interface.So, I tried ifconfig but I still get a dhcp address , the only solution I found that is working until a reboot is to reconfigure the tap interface from the admin page .. Which is not satisfactory at all because it only sticks till a reboot
So, I tried ifconfig but I still get a dhcp address , the only solution I found that is working until a reboot is to reconfigure the tap interface from the admin page .. Which is not satisfactory at all because it only sticks till a reboot. How do I access conman settings?
- OOM-9NETGEAR ExpertIf you really wanted to dig into connman, you are able to use `connmanctl`, but I think what you are looking for is to have connman just ignore the tap interface.
You can modify `/etc/connman/main.conf` and add your interface to the `NetworkInterfaceBlacklist` field. The line will looks something like this:
`NetworkInterfaceBlacklist = LeafNets,docker,veth,zt,tap`
After that configuration saved, you will need to restart the connman service:
`systemctl restart connman.service`
Note: Since this is a system service, the configuration file will be overwritten with the firmware updates. I will see if we can add the tap to the blacklist in a future firmware release.
Related Content
NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!