[Bug 1860858] Re: netplan can't start 2nd NIC on server

Lukas Märdian 1860858 at bugs.launchpad.net
Fri Apr 29 15:49:54 UTC 2022


I'm sorry netplan didn't really work out for you. Your configuration
looks correct.

I guess we'd need to re-check this with a newer version of netplan.io
and also log the output of 'networkctl', 'networkctl status enp1s0' and
'journalctl -u systemd-networkd' to see what's going on.

Please reply provide that information if this is still an issue for you.

** Also affects: netplan.io (Ubuntu)
   Importance: Undecided
       Status: New

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

** Changed in: nplan (Ubuntu)
       Status: New => Invalid

-- 
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/1860858

Title:
  netplan can't start 2nd NIC on server

Status in netplan.io package in Ubuntu:
  Incomplete
Status in nplan package in Ubuntu:
  Invalid

Bug description:
  netplan can't start the 2nd NIC on a server/gateway.  The definitions
  are correct, the IP addresses and netmasks are correct.  This server
  is to replace another physical server with an identical configuration.
  Thanks in advance.

  Expected result
  ===============
  eno1:  inet = 50.211.203.178
  enp1s0:  inet = 192.168.0.138

  
  Actual results via ip a or ifconfig
  ===================================
  1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
      link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
      inet 127.0.0.1/8 scope host lo
         valid_lft forever preferred_lft forever
      inet6 ::1/128 scope host 
         valid_lft forever preferred_lft forever
  2: eno1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
      link/ether 18:31:bf:df:10:ad brd ff:ff:ff:ff:ff:ff
      inet 50.211.203.178/29 brd 50.211.203.183 scope global noprefixroute eno1
         valid_lft forever preferred_lft forever
      inet6 2603:3024:1d2f:4000::26cb/128 scope global dynamic noprefixroute 
         valid_lft 576238sec preferred_lft 576238sec
      inet6 2603:3024:1d2f:4000:1a31:bfff:fedf:10ad/64 scope global dynamic mngtmpaddr noprefixroute 
         valid_lft 300sec preferred_lft 300sec
      inet6 fe80::1a31:bfff:fedf:10ad/64 scope link 
         valid_lft forever preferred_lft forever
  3: enp1s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdi
      link/ether 68:05:ca:66:84:7c brd ff:ff:ff:ff:ff:ff

  The correct configuration for enp1s0 should be:  inet 192.168.0.138.
  I tried configuring it with and without defining a gateway and routes
  for the internal network; the IP address is never registered. The
  netplan config, debugging information, hardware list, etc. follow.

  
  50-cloud-init.yaml
  ==================
  # This file is generated from information provided by
  # the datasource.  Changes to it will not persist across an instance.
  # To disable cloud-init's network configuration capabilities, write a file
  # /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg with the following:
  # network: {config: disabled}
  network:
      version: 2
      renderer: networkd
      ethernets:
          eno1:
              addresses: [50.211.203.178/29]
              gateway4: 50.211.203.182
              dhcp4: false
              # optional: true
              nameservers:
                      search: [cime.net]
                      addresses: [1.1.1.1, 1.0.0.1]
          enp1s0:
              addresses: [192.168.0.138/24]
              # gateway4: 192.168.0.1
              dhcp4: false

  
  netplan --debug try (or apply; same result)
  ===========================================
  ** (generate:19352): DEBUG: 06:08:58.708: Processing input file /etc/netplan/50-cloud-init.yaml..
  ** (generate:19352): DEBUG: 06:08:58.708: starting new processing pass
  ** (generate:19352): DEBUG: 06:08:58.708: eno1: setting default backend to 1
  ** (generate:19352): DEBUG: 06:08:58.708: Configuration is valid
  ** (generate:19352): DEBUG: 06:08:58.708: enp1s0: setting default backend to 1
  ** (generate:19352): DEBUG: 06:08:58.708: Configuration is valid
  ** (generate:19352): DEBUG: 06:08:58.708: Generating output files..
  ** (generate:19352): DEBUG: 06:08:58.708: NetworkManager: definition eno1 is not for us (backend 1)
  ** (generate:19352): DEBUG: 06:08:58.709: NetworkManager: definition enp1s0 is not for us (backend 1)
  DEBUG:netplan generated networkd configuration changed, restarting networkd
  DEBUG:no netplan generated NM configuration exists
  DEBUG:eno1 not found in {}
  DEBUG:enp1s0 not found in {'eno1': {'addresses': ['50.211.203.178/29'], 'gateway4': '50.211.203.182', 'dhcp4': False, 'nameservers': {'search': ['cime.net'], 'addresses': ['1.1.1.1', '1.0.0.1']}}}
  DEBUG:Merged config:
  network:
    bonds: {}
    bridges: {}
    ethernets:
      eno1:
        addresses:
        - 50.211.203.178/29
        dhcp4: false
        gateway4: 50.211.203.182
        nameservers:
          addresses:
          - 1.1.1.1
          - 1.0.0.1
          search:
          - cime.net
      enp1s0:
        addresses:
        - 192.168.0.138/24
        dhcp4: false
    vlans: {}
    wifis: {}

  DEBUG:Skipping non-physical interface: lo
  DEBUG:device eno1 operstate is up, not changing
  DEBUG:Skipping non-physical interface: docker0
  DEBUG:Skipping non-physical interface: br-54073b1cfa4a
  DEBUG:Skipping non-physical interface: br-e8d6b9ed1c10
  DEBUG:Skipping non-physical interface: veth6608e46
  DEBUG:{}
  DEBUG:netplan triggering .link rules for lo
  DEBUG:netplan triggering .link rules for eno1
  DEBUG:netplan triggering .link rules for enp1s0
  DEBUG:netplan triggering .link rules for docker0
  DEBUG:netplan triggering .link rules for br-54073b1cfa4a
  DEBUG:netplan triggering .link rules for br-e8d6b9ed1c10
  DEBUG:netplan triggering .link rules for veth6608e46

  
  ------------ other config files, system information ------------

  uname -a
  ========
  Linux betty 4.15.0-74-generic #84-Ubuntu SMP Thu Dec 19 08:06:28 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

  
  /etc/debian_version
  ===================
  buster/sid

  
  /etc/lsb-release 
  ================
  DISTRIB_ID=Ubuntu
  DISTRIB_RELEASE=18.04
  DISTRIB_CODENAME=bionic
  DISTRIB_DESCRIPTION="Ubuntu 18.04.3 LTS"

  
  apt-cache policy nplan
  ======================
  nplan:
    Installed: 0.98-0ubuntu1~18.04.1
    Candidate: 0.98-0ubuntu1~18.04.1
    Version table:
   *** 0.98-0ubuntu1~18.04.1 500
          500 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages
          100 /var/lib/dpkg/status
       0.40.1~18.04.4 500
          500 http://archive.ubuntu.com/ubuntu bionic-security/main amd64 Packages
       0.36.1 500
          500 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages

  apt-cache policy netplan.io
  ===========================
  netplan.io:
    Installed: 0.98-0ubuntu1~18.04.1
    Candidate: 0.98-0ubuntu1~18.04.1
    Version table:
   *** 0.98-0ubuntu1~18.04.1 500
          500 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages
          100 /var/lib/dpkg/status
       0.40.1~18.04.4 500
          500 http://archive.ubuntu.com/ubuntu bionic-security/main amd64 Packages
       0.36.1 500
          500 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages

  
  99-disable-network-config.cfg
  =============================
  network: { config: disabled }

  
  lshw -class network
  ===================
    *-network                 
         description: Ethernet interface
         product: 82574L Gigabit Network Connection
         vendor: Intel Corporation
         physical id: 0
         bus info: pci at 0000:01:00.0
         logical name: enp1s0
         version: 00
         serial: 68:05:ca:66:84:7c
         capacity: 1Gbit/s
         width: 32 bits
         clock: 33MHz
         capabilities: pm msi pciexpress msix bus_master cap_list rom ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
         configuration: autonegotiation=on broadcast=yes driver=e1000e driverversion=3.2.6-k firmware=1.8-0 latency=0 link=no multicast=yes port=twisted pair
         resources: irq:16 memory:a12c0000-a12dffff memory:a1200000-a127ffff ioport:3000(size=32) memory:a12e0000-a12e3fff memory:a1280000-a12bffff
    *-network
         description: Ethernet interface
         product: Ethernet Connection (7) I219-V
         vendor: Intel Corporation
         physical id: 1f.6
         bus info: pci at 0000:00:1f.6
         logical name: eno1
         version: 10
         serial: 18:31:bf:df:10:ad
         size: 1Gbit/s
         capacity: 1Gbit/s
         width: 32 bits
         clock: 33MHz
         capabilities: pm msi bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
         configuration: autonegotiation=on broadcast=yes driver=e1000e driverversion=3.2.6-k duplex=full firmware=0.4-4 ip=50.211.203.178 latency=0 link=yes multicast=yes port=twisted pair speed=1Gbit/s
         resources: irq:135 memory:a1300000-a131ffff
    *-network:0
         description: Ethernet interface
         physical id: 2
         logical name: docker0
         serial: 02:42:aa:da:a8:68
         capabilities: ethernet physical
         configuration: broadcast=yes driver=bridge driverversion=2.3 firmware=N/A link=no multicast=yes
    *-network:1
         description: Ethernet interface
         physical id: 3
         logical name: veth6608e46
         serial: 32:c5:a0:2a:49:7e
         size: 10Gbit/s
         capabilities: ethernet physical
         configuration: autonegotiation=off broadcast=yes driver=veth driverversion=1.0 duplex=full link=yes multicast=yes port=twisted pair speed=10Gbit/s
    *-network:2
         description: Ethernet interface
         physical id: 4
         logical name: br-54073b1cfa4a
         serial: 02:42:2a:f5:b9:8f
         capabilities: ethernet physical
         configuration: broadcast=yes driver=bridge driverversion=2.3 firmware=N/A link=no multicast=yes
    *-network:3
         description: Ethernet interface
         physical id: 5
         logical name: br-e8d6b9ed1c10
         serial: 02:42:89:eb:7b:db
         capabilities: ethernet physical
         configuration: broadcast=yes driver=bridge driverversion=2.3 firmware=N/A link=yes multicast=yes

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




More information about the foundations-bugs mailing list