Package: iproute2 Version: 4.3.0-1+b1 Severity: normal Dear Maintainer, I'm using Stretch packages and I see a fundamental difference in ifconfig/ip between Debian 8 and Debian 9. There are extra colons being put in after the interface using /sbin/ifconfig and /sbin/ip. I'm using a third party firewall agent that is unable to grab the network interfaces correctly through /sbin/ip because of the colon not being recognized on an interface. I need to know if this is fixable or if there's a workaround. Or, is this the intended action? I've tried the same procedures below on a Debian 8 system and they report back the interface just fine.
You can see through the scenarios below, I have an eth0 and eth0:1 interface, along with lo. /sbin/ip doesn't show the eth0:1 interface at all, so I grabbed it through /sbin/ifconfig. The way this third party agent is working, it's looking for /sbin/ip -o link show eth0: and /sbin/ip -o link show eth0:1: to both come up without a hitch. The ones without the colon have been tested to fully work on a stock Debian 8 (jessie) image, not Debian 9 (stretch). root@sandbox:~# ifconfig eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 96.126.108.191 netmask 255.255.255.0 broadcast 96.126.108.255 inet6 2600:3c03::f03c:91ff:fe70:989d prefixlen 64 scopeid 0x0<global> inet6 fe80::f03c:91ff:fe70:989d prefixlen 64 scopeid 0x20<link> ether f2:3c:91:70:98:9d txqueuelen 1000 (Ethernet) RX packets 8861190 bytes 4193527512 (3.9 GiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 8562901 bytes 3997697400 (3.7 GiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 eth0:1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 192.168.135.145 netmask 255.255.128.0 broadcast 0.0.0.0 ether f2:3c:91:70:98:9d txqueuelen 1000 (Ethernet) lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536 inet 127.0.0.1 netmask 255.0.0.0 inet6 ::1 prefixlen 128 scopeid 0x10<host> loop txqueuelen 0 (Local Loopback) RX packets 2988597 bytes 2376311697 (2.2 GiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 2988597 bytes 2376311697 (2.2 GiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 root@sandbox:~# /sbin/ip -o link 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default \ link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000\ link/ether f2:3c:91:70:98:9d brd ff:ff:ff:ff:ff:ff root@sandbox:~# /sbin/ifconfig | grep flags= | awk '{print $1}' eth0: eth0:1: lo: root@sandbox:~# /sbin/ip -o link show eth0 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000\ link/ether f2:3c:91:70:98:9d brd ff:ff:ff:ff:ff:ff root@sandbox:~# /sbin/ip -o link show eth0: RTNETLINK answers: No such device Cannot send link get request: No such device root@sandbox:~# /sbin/ip -o link show eth0:1 RTNETLINK answers: No such device Cannot send link get request: No such device root@sandbox:~# /sbin/ip -o link show eth0:1: RTNETLINK answers: No such device Cannot send link get request: No such device root@sandbox:~# /sbin/ip -o link show lo 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default \ link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 root@sandbox:~# /sbin/ip -o link show lo: RTNETLINK answers: No such device Cannot send link get request: No such device -- System Information: Debian Release: stretch APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'testing'), (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 4.3.0-1-amd64 (SMP w/2 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages iproute2 depends on: ii libc6 2.22-5 ii libdb5.3 5.3.28-11 ii libselinux1 2.4-3+b1 Versions of packages iproute2 recommends: pn libatm1 <none> pn libxtables11 <none> Versions of packages iproute2 suggests: pn iproute2-doc <none> -- no debconf information