tap0 device loses ip address after restarting openvpn service

Posted on 2010-01-08
Last Modified: 2013-12-06
I need my tap0 virtual ethernet device to keep it's assigned ip address after restarting the openvpn service.  Every time I restart the service i have to issue the "ifconfig tap0" command.  I have created a script that only has that command and if the service runs it after restarting that would work too.

OS: RHEL 5.4
Question by:SRG041808
    LVL 7

    Expert Comment

    you can probable put this script as a startup script
    LVL 7

    Expert Comment

    or edit

    /etc/sysconfig/network-scripts/ifcfg-eth0 or eth1


    Author Comment

    I already have it as a start up script when the machine boots.

    If I edit my ifcfg-eth0 file that would mess up my eth0 interface.

    eth1 is a physical adapter but isnt being used at this time...

    I tried to create a ifcfg-tap0 file and restarted the network and openvpn services and then my vpn wouldnt work.... maybe something to do with the device id?

    Accepted Solution

    If the service goes down it will be my my own doing.. i'll just have to remember to configure the tap device after...

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    I've written this article to illustrate how we can implement a Dynamic Multipoint VPN (DMVPN) with both hub and spokes having a dynamically assigned non-broadcast multiple-access (NBMA) network IP (public IP). Here is the basic setup of DMVPN Pha…
    This is an article about my experiences with remote access to my clients (so that I may serve them) and eventually to my home office system via Radmin Remote Control. I have been using remote access for over 10 years and have been improving my metho…
    Viewers will learn how to connect to a wireless network using the network security key. They will also learn how to access the IP address and DNS server for connections that must be done manually. After setting up a router, find the network security…
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now