Send connman mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.01.org/mailman/listinfo/connman
or, via email, send a message with subject or body 'help' to
        [email protected]

You can reach the person managing the list at
        [email protected]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of connman digest..."


Today's Topics:

   1. Re: Question about changing default route (Naveen Singh)


----------------------------------------------------------------------

Message: 1
Date: Fri, 9 Sep 2016 11:11:42 -0700
From: Naveen Singh <[email protected]>
To: Patrik Flykt <[email protected]>
Cc: [email protected]
Subject: Re: Question about changing default route
Message-ID:
        <caewpxka_+vaxtbieqo23leqwsdc7mdq-r3tend-yvv+4rot...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

Hi

On Fri, Sep 9, 2016 at 3:03 AM, Patrik Flykt <[email protected]>
wrote:

> On Thu, 2016-09-08 at 22:44 -0700, Naveen Singh wrote:
> > Hi All
> > Let us consider device has two ways to go over internet (one via
> > cellular and other via wifi). Even though device has two ways, the
> > default route is either via wifi or via cellular. Is it possible to
> > change the default route to other technology on fly? My understanding
> > is that we have agent API that can let user change it.
> >
> > To change the default connection to your access point, the user needs
> > to
> > manually drag the access point service to the top of the list.
> >
> > Do we have a command for doing the same? Looks like what is required
> > here is to change the order.
>
> Updating the order doesn't work flawlessly, i.e. order is rest whenever
> ConnMan sorts the services internally. Fixing this to work as expected
> will not be at all trivial, unfortunately.
>
> For a bit more static configuration, one can set PreferredTechnologies
> in /etc/connman/main.conf. Then there is always the option to enhance
> ConnMan to have multiple default routes out, but that solution ends up
> with a default defaultroute used anyway and is perhaps not what it
> wanted anyway.
>
>
> Cheers,
>
>         Patrik
>
Thanks for the response. Can this be accomplished by user trying to
disconnect with the service. In that case the another connected services's
gateway becomes's the default gateway. The only problem here would be that
that auto-connect/favorite  flag for the service would be turned off once
the disconnect is issued. So user may have to issue connect again. In short
this is the sequence:

1) Connected with service A (tech A) and Service B (tech B) and default
route is via tech A.
2) We want to change the default route via tech B.
3) Issue a disconnect to service A
4) This disconnect would trigger the change and connman would make default
route via tech B
5) Wait for that to happen
6) Issue a connect to service A again (as we still want service A to be
auto-connect)

What if user decides to bypass connman and directly change the default
route/gateway (using some ip command). Will that have any side effects on
connman?

Regards
Naveen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://lists.01.org/pipermail/connman/attachments/20160909/7baff087/attachment-0001.html>

------------------------------

Subject: Digest Footer

_______________________________________________
connman mailing list
[email protected]
https://lists.01.org/mailman/listinfo/connman


------------------------------

End of connman Digest, Vol 11, Issue 13
***************************************

Reply via email to