Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #199256
| From | David Wright <deblis@lionunicorn.co.uk> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: connecting to two networks simultaneously on buster |
| Date | 2018-08-23 02:20 +0200 |
| Message-ID | <wpLvX-5Fp-1@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> |
| Organization | linux.* mail to news gateway |
On Wed 22 Aug 2018 at 10:29:01 (+1000), Zenaan Harkness wrote: > On Tue, Aug 21, 2018 at 11:08:10PM +0100, Eric S Fraga wrote: > > On Tuesday, 21 Aug 2018 at 16:58, Glenn English wrote: > > > On Tue, Aug 21, 2018 at 3:39 PM Eric S Fraga <e.fraga@ucl.ac.uk> wrote: > > > > > >> Would somebody please point me to the right magical incantation that > > >> would allow my desktop computer to have both connections active > > >> simultaneously? > > > > > > I've done that on a couple boxes here -- a laptop (WiFi and an > > > Ethernet) and a workstation (2 Ethernets) > > > > > > On both of them, I wrote a /etc/network/interfaces script to give an > > > IP to the Ethernet and start at boot. The others are DHCP and don't > > > come on at boot. > > > > Thanks. I added a few lines to /e/n/i and everything works just fine > > now. The actual lines are > > > > ,---- > > | # the USB network for my Gemini > > | auto enp0s29u1u1 > > | iface enp0s29u1u1 inet static > > | address 10.15.19.80 > > `---- > > > > and I simply "sudo ifup enp0s29u1u1" when I need it. > > > > But I still do not understand why it works automatically on one of the > > systems but not the other. One of those mysteries, I guess. > > 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? Aside: I will get my knuckles rapped if I explain how I do this sort of connection using the IPv6 link addresses which means I don't have to ifup anything before I can transfer files. Cheers, David.
Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll 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