Preferred network connection [Solved]

  • This topic has 6 replies, 4 voices, and was last updated Jul 27-7:58 am by Brian Masinick.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #39410
    Member
    ex_Koo

      Is it possible to make lan connection preferred over wifi if you are running on a lan connection and switch to wifi if no lan connection is present. Lenovo T430

      #39411
      Member
      Xecure
        Helpful
        Up
        0
        ::

        If you are talking about Connman, you need to edit /etc/connman/main.conf as root, and change the preferred option to:

        [General]
        PreferredTechnologies=ethernet,wifi

        answer based on:
        https://wiki.archlinux.org/index.php/ConnMan#Prefer_ethernet_to_wireless

        antiX Live system enthusiast.
        General Live Boot Parameters for antiX.

        #39426
        Member
        ex_Koo
          Helpful
          Up
          0
          ::

          Thanks for your reply.

          No I don’t use connman in fact I uninstalled it had trouble with wifi working. I have always used ceni no interest in connman.

          But I found that the network connection on the laptop itself is no working properly yet the network connection on the docking station is working fine.

          My above statement already works as it should.

          #39437
          Member
          seaken64
            Helpful
            Up
            0
            ::

            Is it possible to make lan connection preferred over wifi if you are running on a lan connection and switch to wifi if no lan connection is present. Lenovo T430

            I’ve read this ten times and I still don’t understand the question.

            Are you asking if you can have an ethernet connection as first choice when on a wired LAN network and physically wired to that LAN? But if not physically wired to a LAN then be able to automatically select a WiFi interface to connect to a wireless access point? And then make sure that when you go back to the wired connection that the ethernet connection is first choice?

            Seaken64

            #39452
            Moderator
            Brian Masinick
              Helpful
              Up
              0
              ::

              It’s been a few years now since I’ve been able to run both wired and wireless, but as I recall the last time I had both, a properly configured system will choose wired if available, then wireless. I’m not sure if that is because at the time my fastest option was the wired option, or if that is the natural order of precedence, but I’ll state, based on the most recent time I had BOTH is that if a wired service is available and you have that interface enabled, it will be selected.

              Some modern interfaces now allow you to turn on or off one of 2-3 different options; I think that’s what’s available now with Connman, but since we’ve had Connman available I’ve only had a wifi connection; Connman can configure Ethernet, wifi, or Bluetooth if I remember correctly.

              Anyone with superior knowledge is welcome to weigh in on this; please cite any specific information and/or literature if possible to provide us with the proper means of “improving our education”. Thanks!

              --
              Brian Masinick

              #39457
              Member
              ex_Koo
                Helpful
                Up
                0
                ::

                @ Seaken64
                Are you asking if you can have an ethernet connection as first choice when on a wired LAN network and physically wired to that LAN? But if not physically wired to a LAN then be able to automatically select a WiFi interface to connect to a wireless access point? And then make sure that when you go back to the wired connection that the ethernet connection is first choice?

                You are 100% correct that is what I was trying to say. Thanks You

                (Sorry I was being lazy by stating it as Lan connection. (I should have said ethernet connection)

                @ masinick

                Thanks for your input I just don’t have time at the moment but on the weekend I will look into this , I have only used ceni in the past and connman gave me troubles with my wifi.

                #39472
                Moderator
                Brian Masinick
                  Helpful
                  Up
                  0
                  ::

                  Back a few years ago I used Ceni as my network manager on a couple of different distros. If I had an Ethernet connection, once setup, I could login any time and Ceni would pick up the Ethernet connection. If I connected wireless it was much more likely to have to explicitly select the desired connection, but if I plugged back in the connection was automatically made.

                  --
                  Brian Masinick

                Viewing 7 posts - 1 through 7 (of 7 total)
                • You must be logged in to reply to this topic.