Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #199314

Re: connecting to two networks simultaneously on buster

From Vincent Lefevre <vincent@vinc17.net>
Newsgroups linux.debian.user
Subject Re: connecting to two networks simultaneously on buster
Date 2018-08-24 14:10 +0200
Message-ID <wqj4B-mN-3@gated-at.bofh.it> (permalink)
References <wph4R-4iD-7@gated-at.bofh.it> <wpiaD-4VN-25@gated-at.bofh.it> <wpn0B-81G-1@gated-at.bofh.it> <wppc5-L2-11@gated-at.bofh.it> <wpLvX-5Fp-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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)

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

connecting to two networks simultaneously on buster Eric S Fraga <e.fraga@ucl.ac.uk> - 2018-08-21 17:50 +0200
  Re: connecting to two networks simultaneously on buster Eric S Fraga <e.fraga@ucl.ac.uk> - 2018-08-21 18:20 +0200
  Re: connecting to two networks simultaneously on buster David Wright <deblis@lionunicorn.co.uk> - 2018-08-21 18:20 +0200
  Re: connecting to two networks simultaneously on buster Glenn English <ghe2001@gmail.com> - 2018-08-21 19:00 +0200
    Re: connecting to two networks simultaneously on buster Eric S Fraga <e.fraga@ucl.ac.uk> - 2018-08-22 00:10 +0200
      Re: connecting to two networks simultaneously on buster Zenaan Harkness <zenaan@freedbms.net> - 2018-08-22 02:30 +0200
        Re: connecting to two networks simultaneously on buster David Wright <deblis@lionunicorn.co.uk> - 2018-08-23 02:20 +0200
          Re: connecting to two networks simultaneously on buster Vincent Lefevre <vincent@vinc17.net> - 2018-08-24 14:10 +0200
            Re: connecting to two networks simultaneously on buster David Wright <deblis@lionunicorn.co.uk> - 2018-08-24 18:10 +0200
              Re: connecting to two networks simultaneously on buster Lee <ler762@gmail.com> - 2018-08-24 22:10 +0200

csiph-web