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


Groups > linux.debian.user > #184283

Re: Jessie networking with multiple IPs (IPv and IPv6), single physical NIC

From Sven Hartge <sven@svenhartge.de>
Newsgroups linux.debian.user
Subject Re: Jessie networking with multiple IPs (IPv and IPv6), single physical NIC
Date 2017-07-26 21:20 +0200
Message-ID <u7A0F-4lW-13@gated-at.bofh.it> (permalink)
References <u7yBA-3lo-15@gated-at.bofh.it> <u7zei-3PM-15@gated-at.bofh.it> <u7zQZ-4iw-1@gated-at.bofh.it>
Organization Newsfeed am Wurmloch

Show all headers | View raw


Georgi Naplatanov <gosho@oles.biz> wrote:
> On 07/26/2017 09:22 PM, Sven Hartge wrote:
>> Tom Browder <tom.browder@gmail.com> 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.

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


Thread

Jessie networking with multiple IPs (IPv and IPv6), single physical NIC Tom Browder <tom.browder@gmail.com> - 2017-07-26 19:50 +0200
  Re: Jessie networking with multiple IPs (IPv and IPv6), single physical NIC Sven Hartge <sven@svenhartge.de> - 2017-07-26 20:30 +0200
    Re: Jessie networking with multiple IPs (IPv and IPv6), single  physical NIC Georgi Naplatanov <gosho@oles.biz> - 2017-07-26 21:10 +0200
      Re: Jessie networking with multiple IPs (IPv and IPv6), single physical NIC Sven Hartge <sven@svenhartge.de> - 2017-07-26 21:20 +0200
        Re: Jessie networking with multiple IPs (IPv and IPv6), single  physical NIC Tom Browder <tom.browder@gmail.com> - 2017-07-26 21:30 +0200
          Re: Jessie networking with multiple IPs (IPv and IPv6), single physical NIC Sven Hartge <sven@svenhartge.de> - 2017-07-26 22:50 +0200
            Re: Jessie networking with multiple IPs (IPv and IPv6), single  physical NIC Tom Browder <tom.browder@gmail.com> - 2017-07-27 00:50 +0200
              Re: Jessie networking with multiple IPs (IPv and IPv6), single  physical NIC Tom Browder <tom.browder@gmail.com> - 2017-07-27 03:40 +0200
              Re: Jessie networking with multiple IPs (IPv and IPv6), single  physical NIC Curt <curty@free.fr> - 2017-07-31 18:20 +0200
                Re: Jessie networking with multiple IPs (IPv and IPv6), single  physical NIC Wilko Fokken <wfokken@web.de> - 2017-07-31 20:10 +0200
                Re: Jessie networking with multiple IPs (IPv and IPv6), single  physical NIC Tom Browder <tom.browder@gmail.com> - 2017-07-31 23:20 +0200

csiph-web