I find a workaround, it is not perfect but works in most the way I
expect.

Here is my /etc/netplan/01-netcfg.yaml

# This file describes the network interfaces available on your system
# For more information, see netplan(5).
# and https://netplan.io/examples
network:
  version: 2
  renderer: networkd
  ethernets:
    eth0:
      dhcp4: yes
      addresses:
        - 192.168.4.2/24


given dhcp4 enabled on eth0, and assign an extra static ip address to it. This 
results the eth0 to  require DHCP address as well as a manually assigned static 
ip address.
The little issue is that through ifconfig, I can only see the static ip address 
with the eth0, even there is a DHCP address has granted from DHCP server and 
the granted ip address works all fine. (by checking the DHCP server I saw the 
granted ip address to that MAC address, so did all the tests).  Maybe there is 
a way to tweak  /etc/netplan/01-netcfg.yaml  to show all ip bound to eth0? I'm 
not expert on netplan, someone may help!

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1826760

Title:
  case where you do need to use ifupdown instead of  netplan

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nplan/+bug/1826760/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to