NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.

Forum Discussion

Michel-jacobs's avatar
Aug 03, 2017
Solved

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?

  • OOM-9's avatar
    OOM-9
    Aug 07, 2017
    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
  • JennC's avatar
    JennC
    NETGEAR Employee Retired

    Hello Michel-jacobs,

     

    If this is an app you installed, I suggest to try contacting the developer.

     

    Regards,

  • OOM-9's avatar
    OOM-9
    NETGEAR Expert
    You 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-9's avatar
        OOM-9
        NETGEAR Expert
        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.

NETGEAR Academy

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

Join Us!

ProSupport for Business

Comprehensive support plans for maximum network uptime and business peace of mind.

 

Learn More