[SOLVED] problem in making a daemon for network auto-connection

I want to make a daemon that when I start my computer and my router is not already available, to auto connect to my router when it becomes available later without rebooting
So I thought in making a script and running it as a daemon which will hopefully solve my problems. The thing is I'm having a hard time isolating only the routers ip address. Here's how I thought the script should look like
#!/bin/sh
anet="$(ifconfig | awk "/router_address/{print $field}")"
if [ $anet = "router_address" ]
then
/etc/rc.d/network restart
fi
But although awk isolates the line with my router address it doesn't recognizes any field. Any value I assume to $field doesn't isolates anything so I could guess the right field (or fields) for the router's ip address.
Last edited by I'mGeorge (2011-03-31 09:46:05)

litemotiv wrote:Not a direct answer to your question, but have you considered using Netcfg for this? https://wiki.archlinux.org/index.php/Netcfg
thx a bunch, all I needed was ifplugd daemon. That script I thought about was a bad idea anyway 'cause continuous starting or restarting your network can't be good so I had to work more on it while ifplugd made everything happen clean and easily.

Similar Messages

  • HT1338 my mac book pro is constantly "looking for networks" while connected using my home network and other wifi systems. how can i stop it?

    Why is my Mac Book constantly "looking for networks" while i am using wifi?

    If it is constantly searching for networks every five seconds or so, then it is the bluetooth - wifi problem discussed on other threads. I find that system preferences > network and clicking at the bottom on the 'Show wi-fi status in menu bar' button to switch it off, and then back onto the menu bar, solves the problem. Sometimes on waking I lose wi-fi completely and have to reload, but that's infrequent.
    Hopefully Apple will come up with a solution soon.

  • IMac looks for networks while connected

    I have a brand new iMac 21.  It's connected wirelessly to my Airport Extreme on a closed secure network.  It connects fine, but when I click on the WiFi icon, the first line "WiFi: Looking for networks" is grayed out, but with a spinning gray circle on the far right.  I can access the Internet and my network has a check mark by it, so why is the iMac looking for networks?  Also, when the iMac wakes up from sleep mode, I get a window saying that it's looking for a network, even though I can see that it's already connected to my network.  I checked the network preferences on my Macbook, and they're exactly the same as on the iMac, but the Macbook seems to know that it's connected.  I checked the "ask to join new networks" box if that makes any difference.  Any suggestions?  Thanks.

    If it is constantly searching for networks every five seconds or so, then it is the bluetooth - wifi problem discussed on other threads. I find that system preferences > network and clicking at the bottom on the 'Show wi-fi status in menu bar' button to switch it off, and then back onto the menu bar, solves the problem. Sometimes on waking I lose wi-fi completely and have to reload, but that's infrequent.
    Hopefully Apple will come up with a solution soon.

  • [solved] problem with making dwm for configuration

    hello everyone,
    i installed and made the dwm following the instructions of this site
    https://wiki.archlinux.org/index.php/dw … mmended.29 which seemed to work fine. now i was configuring my config.h in my ~/dwm folder, which leads to the followng error:
    makepkg -efi
    ==> Making package: dwm 6.0-2 (Tue Sep 30 10:26:22 CEST 2014)
    ==> Checking runtime dependencies...
    ==> Checking buildtime dependencies...
    ==> WARNING: Using existing src/ tree
    ==> Removing existing pkg/ directory...
    ==> Starting build()...
    dwm build options:
    CFLAGS = -std=c99 -pedantic -Wall -Os -I. -I/usr/include -I/usr/include/X11 -D_FORTIFY_SOURCE=2 -DVERSION="6.0" -DXINERAMA
    LDFLAGS = -s -L/usr/lib -lc -L/usr/lib/X11 -lX11 -L/usr/lib/X11 -lXinerama
    CC = cc
    CC dwm.c
    In file included from dwm.c:288:0:
    config.h:35:2: warning: missing braces around initializer [-Wmissing-braces]
    1;
    ^
    config.h:35:2: warning: (near initialization for 'layouts[3]') [-Wmissing-braces]
    config.h:35:2: warning: initialization makes pointer from integer without a cast
    config.h:35:2: warning: (near initialization for 'layouts[3].symbol')
    config.h:35:3: error: expected '}' before ';' token
    1;
    ^
    dwm.c: In function 'keypress':
    dwm.c:1087:2: warning: 'XKeycodeToKeysym' is deprecated (declared at /usr/include/X11/Xlib.h:1699) [-Wdeprecated-declarations]
    keysym = XKeycodeToKeysym(dpy, (KeyCode)ev->keycode, 0);
    ^
    Makefile:18: recipe for target 'dwm.o' failed
    make: *** [dwm.o] Error 1
    ==> ERROR: A failure occurred in build().
    Aborting...
    here is my config.h
    /* See LICENSE file for copyright and license details. */
    /* appearance */
    static const char font[] = "-*-terminus-medium-r-*-*-16-*-*-*-*-*-*-*";
    static const char normbordercolor[] = "#444444";
    static const char normbgcolor[] = "#222222";
    static const char normfgcolor[] = "#bbbbbb";
    static const char selbordercolor[] = "#005577";
    static const char selbgcolor[] = "#005577";
    static const char selfgcolor[] = "#eeeeee";
    static const unsigned int borderpx = 1; /* border pixel of windows */
    static const unsigned int snap = 32; /* snap pixel */
    static const Bool showbar = True; /* False means no bar */
    static const Bool topbar = True; /* False means bottom bar */
    /* tagging */
    static const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" };
    static const Rule rules[] = {
    /* class instance title tags mask isfloating monitor */
    { "Gimp", NULL, NULL, 0, True, -1 },
    { "Firefox", NULL, NULL, 1 << 8, False, -1 },
    /* layout(s) */
    static const float mfact = 0.55; /* factor of master area size [0.05..0.95] */
    static const int nmaster = 1; /* number of clients in master area */
    static const Bool resizehints = True; /* True means respect size hints in tiled resizals */
    static const Layout layouts[] = {
    /* symbol arrange function */
    { "[]=", tile }, /* first entry is default */
    { "><>", NULL }, /* no layout function means floating behavior */
    { "[M]", monocle },
    1;
    /* key definitions */
    #define MODKEY Mod1Mask
    #define TAGKEYS(KEY,TAG) \
    { MODKEY, KEY, view, {.ui = 1 << TAG} }, \
    { MODKEY|ControlMask, KEY, toggleview, {.ui = 1 << TAG} }, \
    { MODKEY|ShiftMask, KEY, tag, {.ui = 1 << TAG} }, \
    { MODKEY|ControlMask|ShiftMask, KEY, toggletag, {.ui = 1 << TAG} },
    /* helper for spawning shell commands in the pre dwm-5.0 fashion */
    #define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } }
    /* commands */
    static const char *dmenucmd[] = { "dmenu_run", "-fn", font, "-nb", normbgcolor, "-nf", normfgcolor, "-sb", selbgcolor, "-sf", selfgcolor, NULL };
    static const char *termcmd[] = { "lxterminal", NULL };
    static const char *browsercmd[] = { "dwb", NULL };
    static const char *surfcmd[] = { "surf", NULL };
    static const char *mailcmd[] = { "thunderbird", NULL };
    /*static const char *browsercmd[] = { "dwb", NULL };
    static const char *browsercmd[] = { "dwb", NULL };
    static const char *browsercmd[] = { "dwb", NULL };*/
    static Key keys[] = {
    /* modifier key function argument */
    { MODKEY, XK_p, spawn, {.v = dmenucmd } },
    { MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } },
    { MODKEY, XK_w, spawn, {.v = browsercmd } },
    { MODKEY, XK_s, spawn, {.v = surfcmd} },
    { MODKEY, XK_m, spawn, {.v = mailcmd} },
    { MODKEY, XK_b, togglebar, {0} },
    { MODKEY, XK_j, focusstack, {.i = +1 } },
    { MODKEY, XK_k, focusstack, {.i = -1 } },
    { MODKEY, XK_i, incnmaster, {.i = +1 } },
    { MODKEY, XK_d, incnmaster, {.i = -1 } },
    { MODKEY, XK_h, setmfact, {.f = -0.05} },
    { MODKEY, XK_l, setmfact, {.f = +0.05} },
    { MODKEY, XK_Return, zoom, {0} },
    { MODKEY, XK_Tab, view, {0} },
    { MODKEY|ShiftMask, XK_c, killclient, {0} },
    { MODKEY, XK_t, setlayout, {.v = &layouts[0]} },
    { MODKEY, XK_f, setlayout, {.v = &layouts[1]} },
    { MODKEY, XK_z, setlayout, {.v = &layouts[2]} },
    { MODKEY, XK_space, setlayout, {0} },
    { MODKEY|ShiftMask, XK_space, togglefloating, {0} },
    { MODKEY, XK_0, view, {.ui = ~0 } },
    { MODKEY|ShiftMask, XK_0, tag, {.ui = ~0 } },
    { MODKEY, XK_comma, focusmon, {.i = -1 } },
    { MODKEY, XK_period, focusmon, {.i = +1 } },
    { MODKEY|ShiftMask, XK_comma, tagmon, {.i = -1 } },
    { MODKEY|ShiftMask, XK_period, tagmon, {.i = +1 } },
    TAGKEYS( XK_1, 0)
    TAGKEYS( XK_2, 1)
    TAGKEYS( XK_3, 2)
    TAGKEYS( XK_4, 3)
    TAGKEYS( XK_5, 4)
    TAGKEYS( XK_6, 5)
    TAGKEYS( XK_7, 6)
    TAGKEYS( XK_8, 7)
    TAGKEYS( XK_9, 8)
    { MODKEY|ShiftMask, XK_q, quit, {0} },
    /* button definitions */
    /* click can be ClkLtSymbol, ClkStatusText, ClkWinTitle, ClkClientWin, or ClkRootWin */
    static Button buttons[] = {
    /* click event mask button function argument */
    { ClkLtSymbol, 0, Button1, setlayout, {0} },
    { ClkLtSymbol, 0, Button3, setlayout, {.v = &layouts[2]} },
    { ClkWinTitle, 0, Button2, zoom, {0} },
    { ClkStatusText, 0, Button2, spawn, {.v = termcmd } },
    { ClkClientWin, MODKEY, Button1, movemouse, {0} },
    { ClkClientWin, MODKEY, Button2, togglefloating, {0} },
    { ClkClientWin, MODKEY, Button3, resizemouse, {0} },
    { ClkTagBar, 0, Button1, view, {0} },
    { ClkTagBar, 0, Button3, toggleview, {0} },
    { ClkTagBar, MODKEY, Button1, tag, {0} },
    { ClkTagBar, MODKEY, Button3, toggletag, {0} },
    i dont understand the error, but as i tried the same with the default config.h, its not due to my changes. i dont get the error when using
    makepkg -i
    but my changes weren't taken (obviously). for some reason, i cant overwrite the default package!?
    greets lizzy
    Last edited by caravanlizzy (2014-09-30 14:47:16)

    The warning messages are as clear as it gets:
    config.h:35:2: warning: missing braces around initializer [-Wmissing-braces]
    1;
    ^
    'config.h' is the filename, '35:2' is the position - 35th line, 2nd column. You even get the line in question printed out: '1;' with and "arrow" pointing to it from below - '^'.

  • Problem in making exe file for java application

    helo,
    i tried to make an windows installer packge for my jar file using advance installer. There is one option for including JRE with this package. i included jre package also.otherwise ,the applicaiton will not work in client side,if java is not installed in his system.
    But the problem is after i make the setup including JRE ,the size of the file become 26mb. So,it took long time to download the application.
    What are the essential jav files we have to include while makes the setup for running the application.I included all the JRE folder itself.
    So the size become heavy. Anybody plz help me solve this
    regards
    jithesh

    Hello, I have the same problem, did you solved it?
    Thanks

  • Solved: Problem downloading 4.1 update for Mac in Safari 5.1.7: Try Firefox.

    The download worked in Firefox (don't know which version, since the auto update just jumped to version 13.0), having the correct file size.  But it did not have the correct download size in Safari 5.1.7.  The file also appears for download on the Adobe FTP site: ftp://ftp.adobe.com/pub/adobe/lightroom/mac/4.x/Lightroom_4_LS11_mac_4 _1.dmg

    So the Shockwave Flash plugin in FF is Installed and Enabled. That's why Flash Player is working and why you were able to see the Flash Player logo animation. On the other hand, evidently the Shockwave Flash plugin is either not Installed in Safari or if it is it is Disabled. And that is why it's not working and you can't see the Flash Player logo.
    Yes, I know Flash Player can be Installed in any supported 64bit OS. Also I thot that the 64bit browser in Mac was the "default" browser and the "Compatibility layer" had to be used. Similiar to the PC IE8 or IE9, switching over to the Compatibility feature in the browser.
    Do you need to activate the Compatibility feature?  I have had other Mac users tell me that their problem was they were using the 64bit browser and found out they had to use the 32bit browser, so I thot it was something they had to do. I would think if it was automatic they would not have had to "do" anything. But like I said I don't use Mac so can only relate what they tell me.
    With Safari on either of the test sites, no Flash Player version was displayed?
    Look into the HD/Library/Internet Plug-ins/ directory and see if you have the below two files:
    Flash Player.plugin, flashplayer.xpt
    After that see if this thread is of any help: http://forums.adobe.com/message/2725949#2725949
    Thanks,
    eidnolb

  • Price problem while making budget PO for a Project

    Dear Friends,
    I wanted help from all you guys, this is related to budgetting in PS, the PS consultant prepares PR for a material wrt to a project , he has set a budget of say Rs 10000 to procure this material, now I use this PR to make a PO , & the net price of the PO is say 10000, it has a tax code carrying cenvat & say 4% CST, now the problem is when i try to save the PO , it gives me an error message saying that the budget has exceeded, that means though the net price is within the budget (Rs 10000), its also considering the tax part ,ideally it shouldnt have happened.
    Kindly guide me how do I resolve this issue .
    Regards,
    DGN

    Please check this link for maintaining budget for project:
    /message/5616626#5616626 [original link is broken]
    OR
    if you are not allowed to change buget, you can tell your PS consultant to maintain the budget for this project according
    to your requirement.
    Edited by: Afshad Irani on Jun 4, 2010 3:35 PM

  • [Solved] problem with virtualbox-iso-additions for virtualbox v. 4.2

    VirtualBox 4.2 was released recently and one of the features mentioned is support for Mac OSX. However, having installed it (an Arch virtualbox 4.2 host, and an osx guest), I found that I couldn't install guest additions via the devices menu on my osx guest. Whereupon I examined the file corresponding to virtualbox-iso-additions (/usr/lib/virtualbox/additions/VBoxGuestAdditions.iso) and found that in fact there were no scripts or drivers for osx (darwin) like there are for windows and linux. Is it possible that the Arch release of this file has not been updated properly or am I missing anything else?
    Update: I downloaded the current iso (VBoxGuestAdditions_4.2.0.iso) from http://download.virtualbox.org/virtualbox/4.2.0/ and found that that too has no files that appear linked to osx or darwin. That rules out an Arch packaging issue and I'll need to pursue things at virtualbox.org itself.
    Last edited by kinleyd (2013-07-18 12:03:48)

    I think I've figured it out, finally. It seems v. 4.2 introduces virtualbox on a mac osx host. osx guests are apparently not officially supported with guest additions. I had assumed that host support already existed, and that the new stuff in v. 4.2 was for guests.

  • My iPad2 quit connecting to wireless network. Won't turn on, won't search for networks, no connection

    A couple of days ago, my 1 month old iPad2 quit searching for wireless networks, won't recognize my home network, and the wi-fi connection won't stay on. I can switch it on, but it doesn't do anything (won't search for wifi) and as soon as I move away from that window, it switches back to "OFF". Anyone have a fix for that, or is it a problem that can only be resolved with returning the product for repair or replacement?

    If no change after resetting network settings on your iPad and/or after restoring your iPad with iTunes as a new iPad or not from the iPad's backup, your iPad has a hardware problem.

  • DHCP on 3750 for network not connected switch

    How would one configure a DHCP Pool on a 3750 for a network that is not directly connected to the switch?

    Here is scrubbed config on the switch I am using.
    aaa new-model
    aaa authentication login default group tacacs+ local
    aaa authentication enable default enable
    aaa authorization exec default group tacacs+ local
    aaa accounting send stop-record authentication failure
    aaa accounting update newinfo
    aaa accounting exec default start-stop group tacacs+
    aaa accounting commands 1 default stop-only group tacacs+
    aaa accounting commands 15 default stop-only group tacacs+
    aaa accounting network default start-stop group tacacs+
    aaa accounting system default start-stop group tacacs+
    aaa session-id common
    clock timezone EST -5
    clock summer-time EST recurring
    switch 1 provision ws-c3750g-24ts-1u
    switch 2 provision ws-c3750g-24ts-1u
    system mtu routing 1500
    vtp mode transparent
    authentication mac-move permit
    no ip subnet-zero
    no ip source-route
    ip domain-name dtsrv.local
    ip dhcp excluded-address 10.3.3.1
    ip dhcp excluded-address 10.2.2.1
    ip dhcp pool Employee_Remote_Access
       network 10.3.3.0 255.255.255.0
       default-router 10.3.3.1
    ip dhcp pool Employee_Local_Access
       network 10.2.2.0 255.255.255.0
       default-router 10.2.2.1
    spanning-tree mode pvst
    spanning-tree etherchannel guard misconfig
    spanning-tree extend system-id
    vlan internal allocation policy ascending
    vlan 102
    name Employee_Local_Access_10.2.2.0
    vlan 101
    name Towards_ASA_10.1.1.0
    interface Vlan102
    ip address 10.2.2.1
    interface Vlan101
    ip address 10.1.1.1
    ip default-gateway 10.1.1.1
    ip classless
    no ip http server
    no ip http secure-server
    Message was edited by: [email protected]

  • Problem in using context param for storing database connection information

    Hello Friends,
    I am new to struts & jsp.I am developing a project in struts.I have 1 jsp page called editProfile.jsp.On submitting this page it will call 1 action class.The action class in turn will call the Plain old java class where I have written the logic for updating User Profile.
    I have created context-param in web.xml for database connection information like dbURL , dbUserName , dbPassword , jdbcDriver.Now I want to use these connection information in my Business logic(Plain Old Java Class).As we can use context parameter only in jsp & servlets , I am setting the variables of my business logic class with these context param in jsp itself.
    now when I am calling the updateProfile method of Business logic class from Action class it is giving error as all the connection variables which I set in jsp for my business logic class has become null again.
    I am not getting.If once I have set those variables how come they are becoming null again???Please help me.Any Help will be highly appreciated.Thanx in advance.

    This is the code I have written
    web.xml file
    <context-param>
    <param-name>jdbcDriver</param-name>
    <param-value>oracle.jdbc.driver.OracleDriver</param-value>
    </context-param>
    <context-param>
    <param-name>dbUrl</param-name>
    <param-value>jdbc:oracle:thin:@localhost:1521:gd</param-value>
    </context-param>
    <context-param>
    <param-name>dbUserName</param-name>
    <param-value>system</param-value>
    </context-param>
    <context-param>
    <param-name>dbPassword</param-name>
    <param-value>password</param-value>
    </context-param>
    EditProfile.jsp
    <%@page contentType="text/html"%>
    <%@page pageEncoding="UTF-8"%>
    <%@ page import="java.sql.*" %>
    <jsp:useBean id="EditProfile" scope="application"
    class="com.myapp.struts.EditProfile"/>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Edit My Profile</title>
    </head>
    <body>
    <form action="submitEditProfileForm.do" focus="txt_FirstName" method="post">
    <%
    EditProfile.setjdbcDriver(application.getInitParameter("jdbcDriver"));
    EditProfile.setdbURL(application.getInitParameter("dbURL"));
    EditProfile.setdbUserName(application.getInitParameter("dbUserName"));
    EditProfile.setdbPassword(application.getInitParameter("dbPassword"));
    -----------more code goes here------------
    EditActionProfile.java
    package com.myapp.struts;
    import javax.servlet.jsp.jstl.core.Config;
    import org.apache.struts.action.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    import java.sql.*;
    public class EditProfileAction extends Action {
    public EditProfileAction()
    public ActionForward execute(
    ActionMapping mapping,
    ActionForm form,
    HttpServletRequest request,
    HttpServletResponse response) throws Exception
    try
    if (isCancelled(request))
    return mapping.findForward("mainpage");
    EditProfileForm epf = (EditProfileForm)form;
    EditProfile ep = new EditProfile();
    String temp = ep.updateProfile(epf.getTxt_FirstName(),epf.getTxt_MiddleName() , epf.getTxt_LastName() , epf.getTxt_Address() , epf.getTxt_Email() );
    if(temp.equals("SUCCESS"))
    return mapping.findForward("success");
    else
    return mapping.findForward("failure");
    catch(SQLException e)
    System.out.println("error" + e.getMessage());
    return mapping.findForward("failure");
    EditProfile.java class (My Business Logic Class)
    package com.myapp.struts;
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.SQLException;
    import java.sql.Statement;
    import java.sql.*;
    public class EditProfile {
    private String dbURL;
    private String dbUserName , jdbcDriver;
    private String dbPassword;
    private Connection con;
    private Statement stmt;
    public EditProfile()
    public void setdbURL(String s )
    this.dbURL = s;
    public void setdbUserName(String s )
    this.dbUserName = s;
    public void setdbPassword(String s )
    this.dbPassword = s;
    public void setjdbcDriver(String s )
    this.jdbcDriver = s;
    public String updateProfile(String firstname , String middlename , String lastname , String address , String email)
    throws SQLException, ClassNotFoundException , java.lang.InstantiationException , IllegalAccessException
    try
    String s1 = new String("update usr set first_name='" + firstname + "' , middle_name='" + middlename + "' , last_name='" + lastname +"' , address='" + address + "' , email_id='" + email + "' where usr_key=1" );
    con = this.init();
    System.out.println("after init");
    stmt = con.createStatement();
    int rslt = stmt.executeUpdate(s1);
    System.out.println("after excute update");
    stmt.close();
    if(rslt>=1)
    return "SUCCESS";
    else
    return "Failure";
    finally
    if (null != con)
    con.close();
    public Connection init() throws SQLException, ClassNotFoundException
    Class.forName(jdbcDriver);
    con = DriverManager.getConnection(dbURL, dbUserName, dbPassword);
    return con;
    public void close(Connection connection) throws SQLException
    if (!connection.isClosed())
    connection.close();
    }

  • Macbook Pro no longer auto-connects to preferred network

    The title says it.
    While my computer connects automatically to some (maybe all but one) of my preferred networks, it now does not connect, annoyingly, to the one I use the most often (let's call it NET).
    I've triple checked that it's preferred and should connect automatically, and the computer remembers the password, so that if I manually select NET, it connects no problem. But:
    a) It won't auto-connect to NET, and
    b) If I turn my computer on, when it presents the list of networks to me, I have to wait for it to reload the list, cause if I click on NET originally, it doesn't connect, and I have to refresh the list and try again.
    c) Figured that might mean that it's just taking longer to load the networks and is showing me a list before it's actually picked up on the networks, but waiting forever doesn't make it autoconnect; it just refreshes the list.
    Any ideas? This is a huge pain.

    No idea. You could try deleting the file
    /Library/Preferences/SystemConfiguration/com.apple.airport.preferences.plist
    ... and restart your Mac.
    To find that file quickly, select the above path (triple-click the line), control-click to bring up the contextual menu, and select Services > Reveal. Drag that file to the Desktop, or directly to the Trash.
    This will completely erase your AirPort network preferences, requiring that you select your Wi-Fi network and authenticate again.
    What OS X version are you using, and are you using an Apple AirPort Base Station, or a third party product?

  • Weird network problem: Ethernet link going down for few seconds, and up again

    Hi,
    this problem is driving me nuts for weeks now, and I've not had any success with solving it myself, so I hope someone might have a clue...
    A few weeks ago, maybe 2 months, when downloading VOD content from iTunes, the download suddeny stopped after a while, saying that there is a problem with my network connection. I can then resume the download until the next connection drop occurs. iTunes was and still is the only app that makes the problem noticeable (FTP, browsing, Mac App Store etc. are working fine), however, as this also affects iDevice firmware downloads and basically everything I download via iTunes, the problem started to really annoy me. I'm not sure, but the problem might have been introduced after upgrading from Lion to Mountain Lion/10.8, which I needed for Logic X.
    So here is what happens:
    I have an iMac12,2, Mid 2011, 27inch, i5 2.7GHz, 16GB RAM, 256GB Apple SSD + 1TB HDD. When using ethernet, the iMac randomly loses its link to the network. My router is a FRITZ!Box 7390 (german make). There are no switches between my iMac and the router. When that happens while running ping, this is how it looks like:
    64 bytes from 192.168.1.1: icmp_seq=3558 ttl=64 time=0.542 ms
    64 bytes from 192.168.1.1: icmp_seq=3559 ttl=64 time=0.424 ms
    ping: sendto: No route to host
    Request timeout for icmp_seq 3560
    ping: sendto: No route to host
    Request timeout for icmp_seq 3561
    ping: sendto: No route to host
    Request timeout for icmp_seq 3562
    ping: sendto: No route to host
    Request timeout for icmp_seq 3563
    ping: sendto: No route to host
    Request timeout for icmp_seq 3564
    Request timeout for icmp_seq 3565
    64 bytes from 192.168.1.1: icmp_seq=3566 ttl=64 time=0.508 ms
    64 bytes from 192.168.1.1: icmp_seq=3567 ttl=64 time=0.493 ms
    And this is what the logfile contains at the same time:
    28.10.13 21:36:35,000 kernel[0]: AppleBCM5701Ethernet [en4]: Link down (womp disabled, proxy idle)
    28.10.13 21:36:37,099 configd[18]: network changed: v4(en4-:192.168.1.188) DNS- Proxy-
    28.10.13 21:36:37,106 configd[18]: network changed: Proxy
    28.10.13 21:36:37,112 netbiosd[12000]: network_reachability_changed : network is not reachable, netbiosd is shutting down
    28.10.13 21:36:40,000 kernel[0]: Ethernet [AppleBCM5701Ethernet]: Link up on en4, 1-Gigabit, Full-duplex, Symmetric flow-control, Debug [796d,0323,0de1,0300,cde1,3800]
    28.10.13 21:36:40,237 configd[18]: network changed: Proxy
    28.10.13 21:36:42,544 configd[18]: network changed: v4(en4+:192.168.1.188) DNS+ Proxy+ SMB
    So the ethernet interface loses the link for a few seconds, and gets back up again. It's not long enough to affect average TCP connections, however it is long enough to completely screw iTunes.
    What I've tried:
    - changed all cables (save the one that's going from the ethernet outlet on my room's wall to the server/router room, as it's not replaceable (running within a wall) and I really don't know why it should become faulty offhandedly)
    - cycled ethernet ports at the router to make sure they're not faulty
    - ping'd the router from different computers on all its ethernet ports, all working fine
    - connected my iMac to router via wifi, all working fine
    - bought a Thunderbolt Ethernet adapter to make sure onboard ethernet card isn't faulty: problem still there
    - installed 10.9 over 10.8.5, problem still there
    What I didn't check is what happens when ping'ing the router via my cables, but from another computer, as I don't have one. I will try to borrow a MacBook and check that.
    So I figured it must be a local problem, as the network infrastructure itself works nicely and all cables seem to be sound. It is also not a hardware issue, as the problem occurs both with the onboard NIC and the Thunderbolt NIC. What mystifies me is that it doesn't happen when using Wi-Fi (but switching to that is not an option - it's too slow).
    I tried to use both DHCP and fixed IP addresses, different IP ranges, made sure that static IPs don't collide with the router's DHCP range, updated the router firmware, updated the firmware of all Airport Express and Time Capsules I've got in my network (just to be sure), switched all energy saving settings to "Never" (as it has been suggested here from time to time), but nothing helped ... and I don't know what else to check.
    I hope that someone has an idea of what's happening here!
    Thanks in advance!

    It looks like hooking an ethernet switch between my iMac and the router did the trick. I didn't get any timeouts after I did that. It must have been a really weird incompatibility between my iMac and the router. Still have to see if iTunes gets through without losing the connection, I hope I'll be able to check that tomorrow night. I'll report back.
    So maybe try just hooking another ethernet switch between your mac and the other side. It might actually help!

  • I have had my ipod 4th generation for a year now and had not had any problems until now. My ipod no longer connects to my WiFi. i have reset my network settings, forgot my network and followed all of Apple's advice. Any ideas?

    The WiFi isn't working on my 4th generation anymore. I have several devices connected to the WiFi which two of them are iPhone 5 that haven't had ant problems with WiFi. I have had my iPod for a year. I have tried everything and it still doesn't work. Any ideas? Thanks.

    Does the iPod connect to other networks?
    Does the iPod see the network?
    Any error messages?
    Do other devices now connect?
    Did the iOS device connect before?
    Try the following to rule out a software problem:                 
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Power off and then back on the router
    - Reset network settings: Settings>General>Reset>Reset Network Settings
    - iOS: Troubleshooting Wi-Fi networks and connections
    - Wi-Fi: Unable to connect to an 802.11n Wi-Fi network
    - iOS: Recommended settings for Wi-Fi routers and access points
    - Restore from backup. See:
    iOS: How to back up
    - Restore to factory settings/new iOS device.
    If still problem make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
    Apple Retail Store - Genius Bar

  • My iphone 4S has problem in making and receiving the calls. While making the call , call fails and netwrok disappears. Like wise no voice is heard for incoming calls. This happened after return from the overseas travel.

    My iphone 4S has problem in making and receiving the calls. While making the call , call fails and netwrok disappears. Like wise no voice is heard for incoming calls. This happened after return from the overseas travel.

    Hello SamSax
    Check out the assist page below for troubleshooting call connectivity.
    Calls and connection issues
    http://www.apple.com/support/iphone/assistant/calls/
    Thanks for using Apple Support Communities.
    Regards,
    -Norm G.

Maybe you are looking for