Autostart of network-service fails, but manual start works fine

I followed a guide to set up a network connection. The steps were to create a network config (/etc/config.d/network)
interface=eth0
address=192.168.1.2
netmask=24
broadcast=192.168.1.255
gateway=192.168.1.1
then a service description (/etc/systemd/system/network.service)
[Unit]
Description=Network startup
Wants=network.target
Before=network.target
[Service]
Type=oneshot
RemainAfterExit=yes
EnvironmentFile=/etc/conf.d/network
ExecStart=/sbin/ip link set dev ${interface} up
ExecStart=/sbin/ip addr add ${address}/${netmask} broadcast ${broadcast} dev ${interface}
ExecStart=/sbin/ip route add default via ${gateway}
ExecStop=/sbin/ip addr flush dev ${interface}
ExecStop=/sbin/ip link set dev ${interface} down
[Install]
WantedBy=multi-user.target
and then enable the service using systemctl enable network.
After the rebooting calling systemctl states the service as failed. If I start it manually using systemctl start network everything works fine.
How do I get it to work with autostart? Thanks in advance.
Last edited by devrandom (2013-08-03 12:22:55)

With 'a guide' I presume you referred to this guide
The guide states
To set static IP on enp3s0 interface you will need to create /etc/conf.d/network@enp3s0 config file and run:
# systemctl enable [email protected]
where enp3s0 has to be changed into your own interface name.
Note that the EnvironmentFile has to change to /etc/conf.d/network@<interface>.

Similar Messages

  • Hi Team, Showing Yellow icons after every 15 to 20 Min and internet stop working.when we enable- disbale the network connection then will internet start working fine.Some time network connection is disable but when we renable that connection it will st

    Hi Team,
    Showing Yellow icons after every 15 to 20 Min and internet stop working.when we enable- disbale the network connection then will internet start working fine.Some time network connection is disable but when we renable that connection it will stuck on enabling
    and will not renable till i am not restart that machine. I have 350 Machine in network but facing this issue in 25 machines. Kindly help me on this issue .
    Regards
    Sahil bhateja

    Hi,
    So switch a LAN card fix this issue...seems a compatibility issue or maybe some packs or programs you installed recently cause this issue.
    Have you manually check the network adapter driver from the PC's manufacture website? sometimes, it will be a time delay before Microsoft push out the driver update.
    Check if issue exists in safemode with network, this mode will launch Windows with limited sets of files and drivers. 
    if you have a restore point, restore the pc to a previous point at which the pc is functioning fine.
    Yolanda Zhu
    TechNet Community Support

  • Can't connect to WiFi networks via tray icon, manually adding works fine

    I've searched for about a day for anyone having a similar issue and have come up with nothing so far.  I have an older HP laptop with Windows 7 32 bit that is having issues with connecting to WiFi networks.  It will find all available wireless
    networks just fine, and when I select mine, it comes up with the prompt to enter my password, however when I hit OK to connect, the prompt disappears and nothing happens or responds afterwards.  A few things that I've tried in order to troubleshoot and
    narrow down the problem:
    -I've tried connecting to two different wireless networks; one with WPA2 encryption and one with no encryption, both have the same issue (obviously the non-encrypted wireless network doesn't prompt for a password, but once I hit connect all prompts disappear
    and acts as if I did nothing).
    -I've added the WPA2 encrypted network manually to my list of wireless networks, and once I do this it connects just fine.  When removed, it disconnects and the issue happens again (this confirms that the wireless password I'm entering is correct and
    that there are no issues with the wireless network itself, as well as other devices working flawlessly on the same wireless network).
    -I've disabled all firewalls and antivirus through this whole process, did not make a difference.
    -I've reset winsock which didn't make a difference.
    -I've run a virus scan, no viruses on the laptop.
    I've run out of ideas as to what would prevent being able to connect to a wireless network through the normal process of finding nearby access points, putting in your password, and having it work.  I understand that I could simply leave the wireless
    network added manually, but this is not an option for when the laptop is taken elsewhere as having to add whatever wireless network I'm near manually is not something that should have to be done.

    I would recommend to update the driver for you wireless nic as a first step. Also, if installed, get rid of third party utilities that 'manage' your wireless network(s)
    Also check if you can
    clear out the remembered connections i've encountered issues before when a network with same ssid but different connection settings was stored by windows.
    MCP/MCSA/MCTS/MCITP

  • I get a network error that pops up that says model_ERROR_BIND and tells me to check the network settings. But all is working fine. Any ideas what to do to fix this error.

    I get a pop message that says there is a network error. The message is MODEL_ERROR_BIND. Please help. The network seems to be working fine.

    You have some other problem with your boot drive that has corrupted data backed up to the TimeMacine drive.
    My advice is to boot into each operating system and manually backup just your Users files each to separate regular external drives (no Timemachine or backup software) and disconnect.
    Make a note of any serial numbers, emails, address book contacts, export bookmarks etc. that isn't typically in your users folders data.
    You might be able to Winclone 3 the Windows as a whole thing as it's appearing not to have issues but it's your MacintoshHD partition that is so that will have to be rebuilt from scratch.
    Most commonly used backup methods
    If your OS X parititon doesn't boot, you can use this to recover files.
    Create a data recovery/undelete external boot drive
    Without any further detail about your machine I can't advise specifically what to do, but it involves using Disk Utility to Zero Erase (move slider one spot to the right or in 10.6 using Security Option) the ENTIRE boot drive and reformatting, then installing OSX fresh and then setting up BootCamp again.
    If you wish to switch your boot drive for something better, this is a good time to do this.
    Install/upgrade RAM or storage drive in Mac's
    If your machine is capable of Internet Recovery, then use that, then upgrade.
    If your machine came with 10.6 or earlier, then use the 10.6 install disks and work up from there.
    Erase, formatting, OS X installs on Mac's

  • I bought a used sprint 4s and tried to put my motorola sim which is also on sprint network into phone but it doesnt work is there something i need to do to make it work or am i SOL?

    I bought a used sprint 4s and tried to put my motorola sim which is also on sprint network into phone but it doesnt work is there something i need to do to make it work or am i SOL? major problem is that my current motorola phone is issued to me from my employer but phone ***** so i want to upgrade to the ipone i purchased but it still needs to work like my company phone as they pay the bill.  help me pls

    A Sprint iPhone uses CDMA when in the US.  The SIM is used only when not in the US.
    To use it in the US, you have to have Sprint activate it, but it is unlikely they will activate in on your company's account.

  • Why can't i update itunes on windows xp? It says update server could not be contacted but internet is working fine. I'm trying to go from itunes 10 to itunes version 11

    why can't i update itunes on windows xp? It says update server could not be contacted but internet is working fine. I'm trying to go from itunes 10 to itunes version 11

    Windows System Requirements
    PC with a 1GHz Intel or AMD processor and 512MB of RAM
    Windows XP Service Pack 2 or later, 32-bit editions of Windows Vista, Windows 7, or Windows 8
    64-bit editions of Windows Vista, Windows 7, or Windows 8 require the iTunes 64-bit installer
    400MB of available disk space
    Broadband Internet connection to use the iTunes Store
    See Here  >  http://support.apple.com/kb/TS3125
    From Here  >  http://www.apple.com/support/itunes/troubleshooting/

  • The enter key is not working in firefox but it has working fine in chrome and IE so please help me to rid out from this.

    The enter key is not working in firefox but it has working fine in chrome and IE so please help me to rid out from this.

    Hello gokulaan, '''try Firefox Safe Mode''' to see if the problem goes away. Safe Mode is a troubleshooting mode, which disables most add-ons.
    ''(If you're not using it, switch to the Default theme.)''
    * You can open Firefox 4.0+ in Safe Mode by holding the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * Or open the Help menu and click on the '''Restart with Add-ons Disabled...''' menu item while Firefox is running.
    ''Once you get the pop-up, just select "'Start in Safe Mode"''
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshooting extensions and themes]] article for that.
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    ''When you figure out what's causing your issues, please let us know. It might help other users who have the same problem.''
    Thank you.

  • My laptop speakers are not working but my headphones work fine

    I have an HP Pavilion g6-1d73us laptop and although my headphones work properly the speakers do not. This is a recent problem.  I have tried troubleshooting with windows troubleshooter with no results. I have checked all the drivers for audio and they check out fine. I have tried driver software with no success. Windows Media Player does not work. I get an error message when I try to use it. What else can I try?   Carl
    This question was solved.
    View Solution.

    Hello @hifive11,
    I have read your post on how your notebook speakers are not working, but the headphones work fine, and I would be happy to assist you in this matter!
    The first step I recommend is to follow this document on No Sound from the Speakers (Windows 7). This should help to restore the sound to your speakers. 
    You can also enable the speakers on your computer as the default playback device. This can be done by following the steps below:
    1. Click the Start button
    2. Click Control Panel
    3. Click on Hardware and Sound (sorting the control panel icons by "category"), and then click on Sound
    4. Under Playback, you should see one or two speaker icons. One of them should already have a green checkmark next to it (which will be your notebook's headset device). If the second Speakers icon is not visible, right-click in the list of devices and select Show Disabled Devices
    5. A second, disabled icon of "speakers" should appear. Right-click this icon and click Enable
    6. Test your speakers
    If the issue continues, I recommend returning your notebook to a previous restore point before the speakers stopped working. This can be done by following the steps in this document on Using Microsoft System Restore (Windows 7).
    Please re-post with the results of your troubleshooting, and I look forward to your reply!
    Regards
    MechPilot
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the right to say “Thanks” for helping!

  • I've reset my network settings , my wireless router is working fine, my iPhone keeps saying unable to join network.

    I've reset my network settings , my wireless router is working fine, my iPhone keeps saying unable to join network.

    Are there other devices that can connect to your Wi-Fi and work just fine?
    You can troubleshoot this using http://support.apple.com/kb/TS1398 as well. If you need to restore your iPhone at all, use http://support.apple.com/kb/HT1766?viewlocale=en_US and http://support.apple.com/kb/HT1414?viewlocale=en_US and set it up as new to see if this still happens. If it does, you might need a replacement

  • I copied several MOV files to a CD. When I play them from the CD the video is fine but the audio works fine for the first few seconds then stops (using Qicktime Player 7.7.1.  Everything works fine if I use VLC Media Player. Does anyone have any idea why?

    I copied several MOV files to a CD. When I play them from the CD the video is fine but the audio works fine for the first few seconds then stops (using Qicktime Player 7.7.1.  Everything works fine if I use VLC Media Player. Does anyone have any idea why?

    My purpose for copying to a CD or DVD is so that I can make copies and send to friends and relatives. What is the best way to get these files on a CD/DVD with the right codecs?
    The easiest thing to do is to simply tell your friends and relatives to copy the files to their local hard drive before playing them. Your basic problem is that data discs have a limited real time transfer rate. Since you say VLC plays the files fine, I might suspect its player is likely buffering the data while the QT 7 Player is not.
    Data discs made for playback directly from the CD or DVD are normally encoded using MPEG-4/AVC (H.264) video with AAC audio. This is a modern codec which has specific settings to re-package the data (i.e., must be encoded using the multipass option and then select the "optimize for CD/DVD" option).

  • Group owner distribution list cant add/remove member via outlook but via ecp work fine

    Hi all,
    i user exchange server 2013 sp1 with domain contoler windows server 2008 R2.
    my end user have problem. When group owner want to add/remove member via outlook cant but via ecp work fine ?
    i try to folowing this article http://theucguy.net/group-owners-cannot-manage-distribution/ but not work.
    any ideas? please help
    thanks,

    Hi,
    Please share me the error message which is occurring when the group owner try to add or remove members.
    Note : Group owners cannot be as a group and it should be an individual member.
    Please execute the below mentioned command and let me know the status .
    Get-DistributionGroup –ID “DistributionGroupName”
    | Set-DistributionGroup –ForceUpgrade
    Execute the above mentioned command and check.
    Regards
    S.Nithyanandham
    Thanks & Regards S.Nithyanandham

  • I keep getting "Unknown error has occurred" every time I try to login, but Itunes is working fine.

    I keep getting "Unknown error has occurred" every time I try to login, but Itunes is working fine.  I have now called support twice with no help.

    Ok..  try restarting your Mac.
    If that doesn't help, temporarily disable anti virus software.
    Apps such as Little Snitch, Net Nanny, and Hands Off can prevent access to the App Store as well as third party download managers.
    Try installing the Mac OS X 10.6.8 Update Combo
    That will reinstall the App Store for you which may help. It's ok to do this even though you already have v10.6.8 installled.

  • NETWORK marked [FAIL] but works...

    Hi everyone,
    Recently, during boot, network is marked as failed but everyhting works properly... This only happens with wireless connection (ipw2100), ethernet is marked [DONE] and works too 
    Thanks in advance for any advice...
    Cheers

    I'm not sure if I completely understand your post, but if you have multiple network interfaces and one fails, then network shows fail even if others were successful. There's a bug report filed about it, but it's been quite a while without being fixed...
    And if that doesn't answer your question then ignore me.

  • DNS not resolving on one Mac but the other works fine in same local network

    Snow Leopard is doing something strange to the DNS or the permission to ping.
    I have 2 Macs on the same local network, connect through the same ISP (verizon FIOS). One has no problem resolving any domain, but the other is constantly not resolving some domains.
    The problem progresses like this:
    * All of a sudden, DNS is not resolving from Ethernet (when it did perfectly well a minute ago).
    * Then I switched to wireless (using the same LAN), and it resolved fine.
    * Then it failed completely a few minutes later.
    * Then I reboot my Mac, and it seemed to clear that, and worked for a day.
    * Then it failed again in both Ethernet and Wireless; rebooting does not fix it.
    * I cleared all the caches using Onyx, did "dscacheutil -flushcache", zapped the PRAM, reinstalled 10.6.2 combo update, repaired the permission, nothing works.
    * Since the unresolved domain is my own domain, I changed the nameserver, and waited for it to propagate to see if that may be the problem, since it appeared that it is not resolving the A Record, and I waited 72 hours, and it is not resolved or propagating to the local DNS, but it worked perfectly well on my other Mac within the same network.
    * Then I added other DNS, such as google DNS 8.8.8.8 or openDNS servers to it, but it didn't fix anything.
    * Then I "ping" either the unresolved domain or my own Mac .local, and it gave me the error "permission denied". (Whereas I have no problem pinging my own Mac or the unresolved domain in my other Mac that works!).
    * Then I "sudo ping" the unresolved domain or my own Mac, and it pinged perfectly well.
    * Then I tried "ping6" my own Mac or the unresolved domain on the broken Mac, and it worked fine!
    * Also, I used http://network-tools.com to ping it, and noticed that during the trace, somewhere along the route through te7-2.dsr02.dllstx3.theplanet.com and po2.car04.dllstx5.theplanet.com, it timed out along the route, so I don't know if the timeout could have been causing the reject, but I doubted, because "sudo ping" locally will get through but "ping" does not.
    So I think I traced the Snow Leopard DNS problem as follows:
    * Why does "ping6" works, but "ping" permission is denied unless the user is root?
    * I tried to "chmod 4755 ping" but it won't let me.
    * Is it because DNS is resolving using IPv6 but not IPv4?
    * Or is Snow Leopard somehow screwed up the permission to access ping or similar DNS service?
    * Why DNS has no problem in one Mac but caused problem on the other Mac, even though they are in the same local network?
    * The only difference between the Macs maybe because I have Parallels installed in the Mac that failed to resolve DNS (with the extra Parallels Shared Ethernet), which may be interfering with it, but I tried to turn Parallels Shared Ethernet off, and it did not fix the problem.
    Can anyone help or have any idea that I can fix this nagging bug with DNS? The DNS had worked before, but it simply quit working all of a sudden, and nothing can resurrect it.
    Thanks.

    Shut down Parallels and restart w/o letting any of Parallels TCP/IP stack resurrect itself. So many network issues with VM solutions. See if the problem persists. Create a new account and ping from there. Are your search domains manually entered on the 10.6 box?

  • Why do I get connection failed when logging in on app store on wireless, but Wired LAN works fine?

    I've been having the same issue as many other people. On OSX Lion with latest updates as of 3/20/2012. Tried deleting .plist files, checking keychain access and even reset keychain. I still get the error of Connection Failed when trying to download updates or a new app from the app store.
    I also can't connect to the iTunes "Account" area. It produces an error that the request failed (-1200)
    I finally decided to try a wired connection instead of my wireless. Now it works great! So I removed my wireless network and re-added it. Back to square one. Work around for now is fine, but I should be able to use this over wireless, too!
    I just now tested connecting to a different wireless network (EVO Hotspot) and it worked fine. So it's something specific to my office wireless network. Nothing changed on our firewall (I'm the administrator). It just stopped working.
    Anthony

    Hi ...
    Perhaps there's something that you haven't tried here >  Troubleshooting Wi-Fi issues in OS X Lion

Maybe you are looking for