Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have configured guessnet along with ifplugd and it is working really well. I have two internet connection at office and I like to set a priority there. I have already installed ifmetric and here is my guessnet related config
You can see the metric1 is set to office-airtel which I like to be set when I connect lan at office. But it always set to office-tata. Obviously I checked both the connection by omitting its presence from map and both of them individually working well with guessnet. I wounder if guessnst can't set metric between the same lan device. Is there anything which can help me to set the priority ?
A correction. Actually there is only a single NIC. guessnet scans for the availability of the network. So I am looking for an arrangement which can set a particular connection among other as highest priority. Can metric help me in this situation ?
Metric effectively adds delay to a route. When computing the best route to send packets to a given destination, metric will cause a route to score lower. It may be possible to use it for your purpose, by making one interface have priority over the other. However, I suspect you have a more fundamental problem.
This really looks like an addressing conflict. Both interfaces have the same IP on what you have said is the same network segment (network: 192.168.x.x). You need to address this issue first. One simple way to do so, would be to set the mask to 255.255.255.0, but this will only work if it is compatible with the reset of the network.
Well, I think I need to clarify more. The IP 192.168.1.99 should be given to my laptop regardless the route 192.168.2.1 or 192.168.1.1 . That's why my mask is
255.255.0.0. One more reason to do this, I need to access both the segments. If I set manually like "ifup eth0=office-airtel" or ifup eth0=office-tata" the route command shows the effective gateway in action. guessnet actually taking care to auto config the eth0 and I am looking some arrangement to force guessnet to always set a highest priority to office-airtel even the presence of office-tata.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.