[Bug 2047904] Re: "ip address show" does not show all IP addresses of a network interface

Launchpad Bug Tracker 2047904 at bugs.launchpad.net
Sat Mar 9 04:17:09 UTC 2024


[Expired for netplan.io (Ubuntu) because there has been no activity for
60 days.]

** Changed in: netplan.io (Ubuntu)
       Status: Incomplete => Expired

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to netplan.io in Ubuntu.
Matching subscriptions: foundations-bugs
https://bugs.launchpad.net/bugs/2047904

Title:
  "ip address show" does not show all IP addresses of a network
  interface

Status in netplan.io package in Ubuntu:
  Expired

Bug description:
  Using ubuntu 22.04 I try to assign the two IP addresses
  `192.168.200.100` and `169.254.1.0` to the ethernet device
  `enx00e04c680202`. Following [this tutorial][1] and [this answer][2] I
  created a file `/etc/netplan/01-network-config_home.yaml` with the
  following content:

      network:
        version: 2
        renderer: NetworkManager
        ethernets:
          enx00e04c680202:
            addresses:
              - 192.168.200.100/24
              - 169.254.1.100/24
            routes:
             - to: default
               via: 192.168.200.220
               metric: 200
            routes:
             - to: default
               via: 169.254.1.220
               metric: 300

  
  and applied the changes using the command

      sudo netplan apply

  
  I checked the configuration with the command `ip address show dev enx00e04c680202`, but it seems only one address is shown:

      3: enx00e04c680202: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
          link/ether 00:e0:4c:68:02:02 brd ff:ff:ff:ff:ff:ff
          inet 192.168.200.100/24 brd 192.168.200.255 scope global noprefixroute enx00e04c680202
             valid_lft forever preferred_lft forever

  But the other configured address `169.254.1.0` seems to be working; I
  am able to connect to a device with the IP address 169.254.1.0.


  However, when I add an IP address to that adapter `enx00e04c680202`
  using the following command

      sudo ip addr add 169.254.1.100/24 dev enx00e04c680202

  then I see the following output of the command `ip address show dev
  enx00e04c680202`:

      3: enx00e04c680202: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
          link/ether 00:e0:4c:68:02:02 brd ff:ff:ff:ff:ff:ff
          inet 192.168.200.100/24 brd 192.168.200.255 scope global noprefixroute enx00e04c680202
             valid_lft forever preferred_lft forever
          inet 169.254.1.100/24 scope global enx00e04c680202
             valid_lft forever preferred_lft forever

  This is what I would expect in both cases.

  It has been suggested that this is a bug.

  Additional informations on request (please provide the command to get
  these informations...)

  
    [1]: https://linuxconfig.org/netplan-network-configuration-tutorial-for-beginners
    [2]: https://unix.stackexchange.com/questions/681220/netplan-generate-gateway4-has-been-deprecated-use-default-routes-instead

  ProblemType: Bug
  DistroRelease: Ubuntu 22.04
  Package: netplan.io 0.106.1-7ubuntu0.22.04.2
  ProcVersionSignature: Ubuntu 6.2.0-39.40~22.04.1-generic 6.2.16
  Uname: Linux 6.2.0-39-generic x86_64
  ApportVersion: 2.20.11-0ubuntu82.5
  Architecture: amd64
  CasperMD5CheckResult: pass
  CurrentDesktop: ubuntu:GNOME
  Date: Wed Jan  3 08:20:22 2024
  InstallationDate: Installed on 2023-10-18 (77 days ago)
  InstallationMedia: Ubuntu 22.04.2 LTS "Jammy Jellyfish" - Release amd64 (20230223)
  SourcePackage: netplan.io
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/netplan.io/+bug/2047904/+subscriptions




More information about the foundations-bugs mailing list