Justin McZeal wrote:
> 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).

I cannot reproduce this on stock Jessie 8.4.  It needs "eth0" not
"eth0:1".  Note that eth0:1 is not an interface but simply a label so
that older tools such as 'ifconfig' that don't understand the new
feature can interface to them.  For me:

  # ip -o link show eth0:1
  RTNETLINK answers: No such device
  Cannot send link get request: No such device

It was created this way and displays on this Jessie 8.4 VM image:

  ip addr add 192.168.1.115/24 dev eth0 label eth0:1

  # ip -o addr show eth0
  2: eth0    inet 192.168.230.123/24 brd 192.168.230.255 scope global eth0\     
  valid_lft forever preferred_lft forever
  2: eth0    inet 192.168.1.115/24 scope global eth0:1\       valid_lft forever 
preferred_lft forever
  2: eth0    inet6 fe80::5054:ff:fe97:fb1d/64 scope link \       valid_lft 
forever preferred_lft forever

And therefore I wonder how this is working for you on your Jessie 8
system?  Also testing on my up to date Sid system produced the same
behavior.  (I also looked at one of my Linodes and it was the same
there on Jessie 8 too.)

Also you showed a lot of config dumps (good) but didn't show the
obvious one that I would like to see.  Could you please?

  ip -o addr show eth0

> 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

What does an ethernet device know of IP addresses?  I think 'link' is
not the right thing to use here.  'address' is better for looking at
IP addresses.

Bob

Attachment: signature.asc
Description: PGP signature

Reply via email to