[10:38] Hi, can I have on the same interface, dhcp4 address and another sixed IP address? [10:38] fixed, sorry [11:37] I would like to leave dhcp working but also add one more IP address to the same interface [13:56] nikolam: did you already try as described in this example (see "id0" interface)? https://netplan.readthedocs.io/en/stable/examples/#complex-example [13:56] i.e. defining "dhcp4: true" and "addresses: [...]" [15:09] slyon, I tried adding addresses: under dhcp4: yes but it does not list second IP address on interface, after 'netplan try ' [15:10] Plus second address needs to be in different range. It works for another interface that has only static IPs [15:23] What works is : ' sudo ip address add 10.0.4.15/24 dev ethernet1 'but I would like to have it in netplan. [16:03] nikolam: what version of Netplan are you using (dpkg -l | grep netplan)? [16:04] It seems to be working for me when using: [16:04] addresses: [16:04] - "192.168.178.155/24" [16:04] dhcp4: true [16:05] It gives me a static IP and a dynamic/dhcp one: [16:05] $ ip addr show lan0 [16:05] 88: lan0: mtu 1500 qdisc fq_codel state UP group default qlen 1000 [16:05] link/ether f8:e4:3b:2d:3b:b7 brd ff:ff:ff:ff:ff:ff [16:05] inet 192.168.178.155/24 brd 192.168.178.255 scope global lan0 [16:05] valid_lft forever preferred_lft forever [16:05] inet 192.168.178.117/24 metric 100 brd 192.168.178.255 scope global secondary dynamic lan0 [16:05] valid_lft 863984sec preferred_lft 863984sec [16:05] Could you share your explicit YAML configuration? [16:29] slyon, Ubuntu 22.04 jammy , 5.15.0-67-generic #74-Ubuntu SMP, ii libnetplan0:amd64 0.105-0ubuntu2~22.04.1 , ii netplan.io 0.105-0ubuntu2~22.04.1 [16:30] Aha, so to try first addresses: and then dhcp4, in that order. Will try. [16:37] nope, does not apply addresses: IP , if DHCP is on.. at least here. Ok, will share slyon , https://bpa.st/SX4IS [16:38] labeling also didn't work. [16:42] interesting... I've also tested on Jammy, using the networkd backend renderer. Could you please also share what is being generated in /run/systemd/network/10-netplan-eno1.network? [16:42] And maybe enable networkd debugging (https://gist.github.com/rkalkani/817edb3d335d7bc17857be81c746e9c9), re-execute "netplan apply" afterwards, and check journalctl -u systemd-networkd logs [16:42] to see what happens to the IP address [16:43] I wonder if dhcp4-overrides are somehow interfering here [17:33] Ignore first 4 lines, I fixed copy/paste . https://bpa.st/7XK7A [17:36] There's Virtualbox running on machine, too. One guest with bridged adapter on that interface (eno1) , second VM guest virtual adapter is on VBox intnet internal network, if that is of interest.