Re: connecting to two networks simultaneously on buster
On 2018-08-22 19:09:24 -0500, David Wright wrote:
> On Wed 22 Aug 2018 at 10:29:01 (+1000), Zenaan Harkness wrote:
> > Static configuration is by necessity (basically) custom setup - i.e.
> > requires manual intervention.
> >
> > Automatic means the above /e/n/i lines would look like this instead:
> >
> > # the USB network for my Gemini
> > auto enp0s29u1u1
> > iface enp0s29u1u1 inet dhcp
> >
> >
> > But of course for network-manager, it would by default use dhcp, and
> > you would not manually configure for DHCP in your /e/n/i file.
> >
> > Always remember you can do an in-foreground one shot DHCP like so:
> >
> > sudo dhclient -d enp0s29u1u1
> >
> > which has the benefit that you can easily kill it as desired with a
> > CTRL-c, AND you can monitor its output immediately, AND you will see
> > immediately if you got the device/ interface name wrong. What's not
> > to like?
>
> I'm not sure I understand using DHCP to get the ipaddr for the
> network running through the USB connection. Could you explain?
That's the usual way to do it, because you don't necessarily know
what IP address you should get, and it can entirely be dynamic.
Moreover, one often wants to do this to use the phone's modem,
and this will also set up a default route automatically (but this
is not what you want, AFAIK).
--
Vincent Lefèvre <vincent@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)
Reply to: