interfaces - Multiple IPs not working

Kernels & Hardware, configuring network, installing services

interfaces - Multiple IPs not working

Postby DieterK » 2019-08-07 14:17

Hello,

i just installed Debian 10 on my new server and I have problems upgrading the config files from Jessie.

I have two network devices:
The first one:
eno1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 1c:69:7a:xx:xx:xx brd ff:ff:ff:ff:ff:ff
inet 10.0.0.2/24 brd 10.0.0.255 scope global eno1

And the second one is :
enx8cae4cdf4bd8: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000

My interfaces config is:
Code: Select all
auto lo
iface lo inet loopback

auto eno1
iface eno1 inet static
      address 10.0.0.1
      netmask 255.255.255.0

auto enx8cae4cdf4bd8
iface enx8cae4cdf4bd8 inet static
            address 92.x.x.3
            netmask 255.255.255.192
      broadcast 92.x.x.63
            gateway 92.x.x.1

auto enx8cae4cdf4bd8:1
iface enx8cae4cdf4bd8:1 inet static
      address 92.x.x.2
      netmask 255.255.255.192
      broadcast 92.x.x.63

auto enx8cae4cdf4bd8:2
iface enx8cae4cdf4bd8:2 inet static
      address 92.x.x.4
      netmask 255.255.255.192
      broadcast 92.x.x.63


This config worked previously in Jessie, i only renamed the network interfaces from eth0 to eno1 and eth1 to enx8cae4cdf4bd8.

The syslog shows:
Code: Select all
Aug  7 17:01:58 server2 ifup[723]: Cannot find device "enx8cae4cdf4bd8:1"
Aug  7 17:01:58 server2 ifup[723]: ifup: failed to bring up enx8cae4cdf4bd8:1
Aug  7 17:01:58 server2 ifup[723]: Cannot find device "enx8cae4cdf4bd8:2"
Aug  7 17:01:58 server2 ifup[723]: ifup: failed to bring up enx8cae4cdf4bd8:2
Aug  7 17:01:58 server2 dhcpd[795]: No subnet declaration for enx8cae4cdf4bd8 (92.198.53.3).
Aug  7 17:01:58 server2 dhcpd[795]: ** Ignoring requests on enx8cae4cdf4bd8.  If this is not what
Aug  7 17:01:58 server2 dhcpd[795]:    to which interface enx8cae4cdf4bd8 is attached. **
Aug  7 17:02:01 server2 kernel: [    8.501832] ax88179_178a 2-3:1.0 enx8cae4cdf4bd8: ax88179 - Link status is: 1
Aug  7 17:02:01 server2 kernel: [    8.508128] IPv6: ADDRCONF(NETDEV_CHANGE): enx8cae4cdf4bd8: link becomes ready


Code: Select all
root@server2:/etc/network# ifup enx8cae4cdf4bd8
ifup: interface enx8cae4cdf4bd8 already configured
root@server2:/etc/network# ifup enx8cae4cdf4bd8:1
Cannot find device "enx8cae4cdf4bd8:1"
ifup: failed to bring up enx8cae4cdf4bd8:1


What am I doing wrong?

Thanks,
Dieter
DieterK
 
Posts: 4
Joined: 2009-04-14 13:04

Re: interfaces - Multiple IPs not working

Postby Head_on_a_Stick » 2019-08-07 19:11

Try adding an allow-hotplug line to the virtual interface stanzas.

Or perhaps go back to the traditional naming scheme to see if your old configuration files still work: https://www.debian.org/releases/buster/ ... face-names
User avatar
Head_on_a_Stick
 
Posts: 10321
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: interfaces - Multiple IPs not working

Postby ruwolf » 2019-08-07 19:30

And what about
Code: Select all
allow-hotplug enx8cae4cdf4bd8 enx8cae4cdf4bd8:1 enx8cae4cdf4bd8:2

iface enx8cae4cdf4bd8 inet static
      address 92.x.x.3
      netmask 255.255.255.192
      broadcast 92.x.x.63
      gateway 92.x.x.1

auto enx8cae4cdf4bd8:1
iface enx8cae4cdf4bd8:1 inet static
      address 92.x.x.2
      netmask 255.255.255.192
      broadcast 92.x.x.63

auto enx8cae4cdf4bd8:2
iface enx8cae4cdf4bd8:2 inet static
      address 92.x.x.4
      netmask 255.255.255.192
      broadcast 92.x.x.63

I do not know, if it works, but similar example is in the manual. (Except there is used full stop "." instead colon ":" in your example.)
User avatar
ruwolf
 
Posts: 357
Joined: 2008-02-18 05:04
Location: Slovakia, Banovce nad Bebravou, Matice slovenskej 1260/4-7


Return to System configuration

Who is online

Users browsing this forum: ruwolf and 7 guests

fashionable