Announcement

Collapse
No announcement yet.

SOLVED - Wicd do not autoconnect to wired network

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    SOLVED - Wicd do not autoconnect to wired network

    Because of a lot of problems with the standard network manager in Kubuntu 9.04, I installed wicd at a friends computer. He needed to set a static IP, and the network manager would not set this.

    Wicd is easy to set up and everything worked fine, except for one thing - it did not autoconnect when rebooting. After some searching I found a tip about checking the settings in /etc/network/interfaces and found that the section for the wired network was totally missing. The only thing in that file was the loopback interface.

    So first I checked that I actually had a network interface running by typing this in a console window:

    Code:
    ifconfig
    This showed the loopback interface and eth0. So I added a section for the eth0 interface like this

    Code:
     auto eth0
     iface eth0 inet static
       address 192.168.0.42
       network 192.168.0.0
       netmask 255.255.255.0
       broadcast 192.168.0.255
       gateway 192.168.0.1
    Everything is just perfect now and works as it should, but thought I would post this here just in case someone else comes across this.
    Regards,
    Oceanwatcher
    Blog: http://www.wisnaes.com/
    Pictures: http://www.oceanwatcher.com/
    Software tips (in Norwegian): http://www.datahverdag.com/

    #2
    Re: SOLVED - Wicd do not autoconnect to wired network

    This is not as it should be and you are probably headed for trouble. I am not entirely sure what wicd is doing on this system but my guess is nothing. If it were it would conflict with ifupdown (/etc/network/interfaces) and you would have trouble. If you do not have wireless on that computer probably the best thing to do is uninstall wicd, since you are not using it.

    After you installed wicd did you start it from the menu and configure an interface? If you do that and tell it to automatically connect it should be started at boot and configure the network. In that situation you need to comment the eth0 in /etc/network/interfaces or the two will conflict and cause trouble.

    Comment


      #3
      Re: SOLVED - Wicd do not autoconnect to wired network

      Yes. Started it from the menu, configured it, but it still do not autoconnect. BUT - it connected if I pressed connect in wicd (I have wicd running on my laptop and it does everything the way it should there). And wireless should not be necessary as wicd has a wired section?

      As it is now, there is no problem with network, wicd comes up and indicates that it is connected.

      Actually, I would expect wicd to set up the interfaces file itself? I thought the interfaces file was the holy grail of networking on linux?
      Regards,
      Oceanwatcher
      Blog: http://www.wisnaes.com/
      Pictures: http://www.oceanwatcher.com/
      Software tips (in Norwegian): http://www.datahverdag.com/

      Comment


        #4
        Re: SOLVED - Wicd do not autoconnect to wired network

        Wireless should not be necessary to run wicd. I am sure that in your situation you can uninstall wicd and get exactly the same behavior you are now seeing, except that the wicd applet will not be visible.

        I am glad you do not have a problem, but I think that will not last, and when it fails you will need to know why.

        Wicd does not edit /etc/network/interfaces. It has its own configuration files and runs ifconfig and route all on its own.

        The interfaces file is part of ifupdown, a debian network configuration system. There is no Unix grail as you suggest. Each system had its own way of storing the info they needed to allow them to run ifconfig, route and setup /etc/resolv.conf.

        The way you have configured networking now (other than the use of wicd) is the most reliable and complete way to configure a network on a debian system. It will run the scripts in /etc/network/if-up.d and if-down.d which will do things like set the clock from an ntp server and mount NFS and samba shares. Wicd will not do that. You can stop the networking with
        Code:
        sudo ifdown eth0
        and start it again with
        Code:
        sudo ifdown eth0
        .

        Quoting from http://wicd.sourceforge.net/download.php
        If Wicd fails to connect after you install it, make sure that the only entry in your /etc/network/interfaces file is

        auto lo
        iface lo inet loopback

        Comment


          #5
          Re: SOLVED - Wicd do not autoconnect to wired network

          Hmm... seems like there is a bit of a mess regarding networks! Would it not be better to have a network tool that use the "standard" config files instead of making a "mess" of everything? It does not exactly make it easier for newcomers! :-)

          Thank you for explaining it. I will let him run it as it is now, but if anything happens, I will just uninstall wicd and check the config files again.
          Regards,
          Oceanwatcher
          Blog: http://www.wisnaes.com/
          Pictures: http://www.oceanwatcher.com/
          Software tips (in Norwegian): http://www.datahverdag.com/

          Comment


            #6
            Re: SOLVED - Wicd do not autoconnect to wired network

            Everything about computers would be less confusing if it used a "standard" configuration. It would also be boring. In actuality no such standard file exists for unix networking and never has. It is interesting that the world of unix has become much more similar with the growth of linux because many of the older commercial Unixes are dying and taking with them their AIXism's and HPUXism's etc... This is very similar to the fight about the Open Document Standard that MS is trying very hard to control.

            Comment


              #7
              Re: SOLVED - Wicd do not autoconnect to wired network

              I had a similar problem: wicd did not autoconnect to any network.
              Then I noticed the following line in
              Code:
              /var/log/wicd/wicd.log: Skipping autoconnect because GUI is open.
              All I had to do was to keep the wicd-client window closed (while
              the tray icon is no harm) and since then, autoconnection works fine

              Comment

              Working...
              X