Re: Jessie networking with multiple IPs (IPv and IPv6), single physical NIC
On Mon, Jul 31, 2017 at 11:18 Curtwrote: ... > Are you not confounding the de and dk domain suffixes, because I believe > Sven is 'de' (Germany). You are certainly correct and I should have caught my error before sending. My apologies for any offended sensibilities. 50th wedding anniversary. Do they give out medals for that? No, but we got lots of congratulations for staying the course and remaining friends! -Tom
Re: Jessie networking with multiple IPs (IPv and IPv6), single physical NIC
On Mon, Jul 31, 2017 at 04:17:24PM +, Curt wrote: > > Never heard of Arhus. Aarhus is the main town of Jutland, Danmark. -- "Certitude is not the test of certainty." --Oliver Wendell Holmes, Jr. & "Education is a man's going from cocksure ignorance to thoughtful uncertainty." (n.n.)
Re: Jessie networking with multiple IPs (IPv and IPv6), single physical NIC
On 2017-07-26, Tom Browderwrote: > > Thanks so much Sven. > > Best regards, > > -Tom > > BTW, my wife and I and two friends had a very nice time visiting > Denmark in May while on a cruise in the Baltic celebrating our 50th > wedding anniversary. Our ship, Holland-America's ms Rotterdam, > visited Copenhagen and Arhus and we enjoyed them very much--especially > Arhus. > Are you not confounding the de and dk domain suffixes, because I believe Sven is 'de' (Germany). Or maybe you know something I don't. Never heard of Arhus. 50th wedding anniversary. Do they give out medals for that? Or just voyages to exotic places? ;-) -- “Certitude is not the test of certainty.” --Oliver Wendell Holmes, Jr.
Re: Jessie networking with multiple IPs (IPv and IPv6), single physical NIC
On Wed, Jul 26, 2017 at 5:42 PM, Tom Browderwrote: > On Wed, Jul 26, 2017 at 3:43 PM, Sven Hartge wrote: ... >> , >> | auto eth0 >> | iface eth0 inet static >> | address 142.54.186.2/29 >> | gateway 142.54.186.1 >> | dns-nameservers 192.187.107.16 69.30.209.16 >> | iface eth0 inet static >> | address 142.54.186.3/29 >> ` Oops, I just looked at the ENTIRE active file and I forgot some lines at the top: #== # The loopback network interface auto lo iface lo inet loopback # The primary network interface allow-hotplug eth0 iface eth0 inet static address 142.54.186.2 ... #== At any rate, I'm going to try the file (suitably modified) on a spare, local server I have before going live remotely. -Tom
Re: Jessie networking with multiple IPs (IPv and IPv6), single physical NIC
On Wed, Jul 26, 2017 at 3:43 PM, Sven Hartgewrote: > Tom Browder wrote: >> On Wed, Jul 26, 2017 at 2:11 PM, Sven Hartge wrote: > >> So can the above be simplified by leaving out the repeated info like >> dns-nameservers, gateway, and netmask to give something like: > >> #= >> iface eth0 inet static >> address 142.54.186.2 >> netmask 255.255.255.248 >> gateway 142.54.186.1 >> dns-nameservers 192.187.107.16 69.30.209.16 >> iface eth0 inet static >> address 142.54.186.3 >> iface eth0 inet static >> address 142.54.186.4 >> iface eth0 inet static >> address 142.54.186.5 >> iface eth0 inet static >> address 142.54.186.6 > > I do believe you need the "netmask" option, but the rest is just needed > once. But from reading interfaces(5) I think you further simplify by > writing: > > , > | auto eth0 > | iface eth0 inet static > | address 142.54.186.2/29 > | gateway 142.54.186.1 > | dns-nameservers 192.187.107.16 69.30.209.16 > | iface eth0 inet static > | address 142.54.186.3/29 > | iface eth0 inet static > | address 142.54.186.4/29 > | iface eth0 inet static > | address 142.54.186.5/29 > | iface eth0 inet static > | address 142.54.186.6/29 > ` Okay, sounds good: I don't need to duplicate anything, then. I admire your reading of man 5 interfaces. I find it very hard to understand since the pieces seem so disconnected, and, as usual, man pages are short on real examples. I'm ready to try the new file and I'll report results later. Thanks so much Sven. Best regards, -Tom BTW, my wife and I and two friends had a very nice time visiting Denmark in May while on a cruise in the Baltic celebrating our 50th wedding anniversary. Our ship, Holland-America's ms Rotterdam, visited Copenhagen and Arhus and we enjoyed them very much--especially Arhus.
Re: Jessie networking with multiple IPs (IPv and IPv6), single physical NIC
Tom Browderwrote: > On Wed, Jul 26, 2017 at 2:11 PM, Sven Hartge wrote: > So can the above be simplified by leaving out the repeated info like > dns-nameservers, gateway, and netmask to give something like: > #= > iface eth0 inet static > address 142.54.186.2 > netmask 255.255.255.248 > gateway 142.54.186.1 > dns-nameservers 192.187.107.16 69.30.209.16 > iface eth0 inet static > address 142.54.186.3 > iface eth0 inet static > address 142.54.186.4 > iface eth0 inet static > address 142.54.186.5 > iface eth0 inet static > address 142.54.186.6 I do believe you need the "netmask" option, but the rest is just needed once. But from reading interfaces(5) I think you further simplify by writing: , | auto eth0 | iface eth0 inet static | address 142.54.186.2/29 | gateway 142.54.186.1 | dns-nameservers 192.187.107.16 69.30.209.16 | iface eth0 inet static | address 142.54.186.3/29 | iface eth0 inet static | address 142.54.186.4/29 | iface eth0 inet static | address 142.54.186.5/29 | iface eth0 inet static | address 142.54.186.6/29 ` Grüße, Sven. -- Sigmentation fault. Core dumped.
Re: Jessie networking with multiple IPs (IPv and IPv6), single physical NIC
On Wed, Jul 26, 2017 at 2:11 PM, Sven Hartgewrote: > Georgi Naplatanov wrote: >> On 07/26/2017 09:22 PM, Sven Hartge wrote: >>> Tom Browder wrote: >>> You don't need those up/down parts, you can add additional blocks for >>> eth0: >>> >>> auto eth0 >>> iface eth0 inet static >>> address 142.54.186.2 >>> netmask 255.255.255.248 >>> gateway 142.54.186.1 >>> dns-nameservers 192.187.107.16 69.30.209.16 >>> > > Since Wheezy you can have multiple "iface eth0 ..." blocks in > /e/n/interface without problems. So can the above be simplified by leaving out the repeated info like dns-nameservers, gateway, and netmask to give something like: #= iface eth0 inet static address 142.54.186.2 netmask 255.255.255.248 gateway 142.54.186.1 dns-nameservers 192.187.107.16 69.30.209.16 iface eth0 inet static address 142.54.186.3 iface eth0 inet static address 142.54.186.4 iface eth0 inet static address 142.54.186.5 iface eth0 inet static address 142.54.186.6 iface eth0 inet6 static address 2604:4300:a:95::2 netmask ::::: gateway 2604:4300:a:95::1 dns-nameservers 192.187.107.16 69.30.209.16 iface eth0 inet6 static address 2604:4300:a:95::3 iface eth0 inet6 static address 2604:4300:a:95::4 iface eth0 inet6 static address 2604:4300:a:95::5 iface eth0 inet6 static address 2604:4300:a:95::6 #= Thanks, Sven! -Tom
Re: Jessie networking with multiple IPs (IPv and IPv6), single physical NIC
Georgi Naplatanovwrote: > On 07/26/2017 09:22 PM, Sven Hartge wrote: >> Tom Browder wrote: >> >>> The proposed /etc/network/interfaces file: >>> # begin = >>> iface eth0 inet static >>> address 142.54.186.2 >>> netmask 255.255.255.248 >>> gateway 142.54.186.1 >>> dns-nameservers 192.187.107.16 69.30.209.16 >> >>> # add new IPv4 devices >>> up addr add 142.54.186.3/29 dev $IFACE label $IFACE:0 >>> down addr del 142.54.186.3/29 dev $IFACE label $IFACE:0 >> >> You don't need those up/down parts, you can add additional blocks for >> eth0: >> >> auto eth0 >> iface eth0 inet static >> address 142.54.186.2 >> netmask 255.255.255.248 >> gateway 142.54.186.1 >> dns-nameservers 192.187.107.16 69.30.209.16 >> > I think that every additional interface should have suffix in its name - > eth0:1, et0:2, etc. No. That was ages ago and only a workaround for the broken ifconfig, which is not able to cope with multiple IPv4 addresses per interface. Since Wheezy you can have multiple "iface eth0 ..." blocks in /e/n/interface without problems. Grüße, Sven -- Sigmentation fault. Core dumped.
Re: Jessie networking with multiple IPs (IPv and IPv6), single physical NIC
On 07/26/2017 09:22 PM, Sven Hartge wrote: > Tom Browderwrote: > >> The proposed /etc/network/interfaces file: >> # begin = >> iface eth0 inet static >> address 142.54.186.2 >> netmask 255.255.255.248 >> gateway 142.54.186.1 >> dns-nameservers 192.187.107.16 69.30.209.16 > >> # add new IPv4 devices >> up addr add 142.54.186.3/29 dev $IFACE label $IFACE:0 >> down addr del 142.54.186.3/29 dev $IFACE label $IFACE:0 > > You don't need those up/down parts, you can add additional blocks for > eth0: > > auto eth0 > iface eth0 inet static > address 142.54.186.2 > netmask 255.255.255.248 > gateway 142.54.186.1 > dns-nameservers 192.187.107.16 69.30.209.16 > I think that every additional interface should have suffix in its name - eth0:1, et0:2, etc. Example: iface eth0:1 inet static address 142.54.186.3 netmask 255.255.255.248 iface eth0:2 inet static address 142.54.186.4 netmask 255.255.255.248 By the way Linux kernel supports virtual interfaces as well. I used this feature when my local ISP forced me to use only one IPv4 address per MAC address. Kind regards Georgi > iface eth0 inet static > address 142.54.186.3 > netmask 255.255.255.248 > > iface eth0 inet static > address 142.54.186.4 > netmask 255.255.255.248 > [...] > > >> iface eth0 inet6 static >> address 2604:4300:a:95::2 >> netmask ::::: >> gateway 2604:4300:a:95::1 >> dns-nameservers 192.187.107.16 69.30.209.16 > > And the same here as well. > > Grüße, > Sven. >
Re: Jessie networking with multiple IPs (IPv and IPv6), single physical NIC
Tom Browderwrote: > The proposed /etc/network/interfaces file: > # begin = > iface eth0 inet static > address 142.54.186.2 > netmask 255.255.255.248 > gateway 142.54.186.1 > dns-nameservers 192.187.107.16 69.30.209.16 > # add new IPv4 devices > up addr add 142.54.186.3/29 dev $IFACE label $IFACE:0 > down addr del 142.54.186.3/29 dev $IFACE label $IFACE:0 You don't need those up/down parts, you can add additional blocks for eth0: auto eth0 iface eth0 inet static address 142.54.186.2 netmask 255.255.255.248 gateway 142.54.186.1 dns-nameservers 192.187.107.16 69.30.209.16 iface eth0 inet static address 142.54.186.3 netmask 255.255.255.248 iface eth0 inet static address 142.54.186.4 netmask 255.255.255.248 [...] > iface eth0 inet6 static > address 2604:4300:a:95::2 > netmask ::::: > gateway 2604:4300:a:95::1 > dns-nameservers 192.187.107.16 69.30.209.16 And the same here as well. Grüße, Sven. -- Sigmentation fault. Core dumped.