Comment 28 for bug 2022030

Revision history for this message
mayijie (mayijie56) wrote :

Hi Lukas,

Thanks for the investigation, I followed your instruction, added the "ignore-carrier: true", netplan apply and reboot, the vlan interface shows up after reboot, cool~

But what I don't understand is the trunk mode adapter actually neither cable disconnected, nor VM exist, and from my previous test, this case only happened in ubut23.04, you can reference my comment #9.

So I did another installation ubut23.04 using another trunk adapter as the backend adapter of vNic device, the vlan interface lost again, I tried added the "ignore-carrier: true" in the yaml file, but this time, no luchy.

Here the systemd-networkd.log read :

'''
"'-- Boot 02eb864dc23541f0911df9f082c7d33e --
"
"Jul 05 10:04:49 a90ubut21 systemd[1]: Starting systemd-networkd.service - Network Configuration...
"
"Jul 05 10:04:49 a90ubut21 systemd-networkd[1070]: lo: Link UP
"
"Jul 05 10:04:49 a90ubut21 systemd-networkd[1070]: lo: Gained carrier
"
"Jul 05 10:04:49 a90ubut21 systemd-networkd[1070]: Enumeration completed
"
"Jul 05 10:04:49 a90ubut21 systemd[1]: Started systemd-networkd.service - Network Configuration.
"
"Jul 05 10:04:49 a90ubut21 systemd-networkd[1070]: enc1000: Configuring with /run/systemd/network/10-netplan-enc1000.network.
"
"Jul 05 10:04:49 a90ubut21 systemd-networkd[1070]: enc1000: Link UP
"
"Jul 05 10:04:49 a90ubut21 systemd-networkd[1070]: enc1000: Gained carrier
"
"Jul 05 10:04:49 a90ubut21 systemd-networkd[1070]: enc1000: Link DOWN
"
"Jul 05 10:04:49 a90ubut21 systemd-networkd[1070]: enc1000: Lost carrier
"
"Jul 05 10:04:49 a90ubut21 systemd-networkd[1070]: enc1000: Could not create stacked netdev: No such device
"
"Jul 05 10:04:49 a90ubut21 systemd-networkd[1070]: enc1000: Failed
"
"Jul 05 10:04:49 a90ubut21 systemd-networkd[1070]: enc1000: Link UP
"
"Jul 05 10:04:49 a90ubut21 systemd-networkd[1070]: enc1000: Gained carrier
"
"Jul 05 10:04:51 a90ubut21 systemd-networkd[1070]: enc1000: Gained IPv6LL
'''

From the log, it seems 'lost carrier' again, Hmm......

I compared the 10-netplan-enc1000.network, no difference I found from the repaired one.

Here is the configure files:

'''
cat 10-netplan-enc1000.network
[?2004l
[Match]
Name=enc1000

[Network]
LinkLocalAddressing=ipv6
ConfigureWithoutCarrier=yes
VLAN=enc1000.1300

cat 10-netplan-enc1000.1300.network
[?2004l
[Match]
Name=enc1000.1300

[Network]
LinkLocalAddressing=ipv6
Address=10.20.103.66/24
Gateway=10.20.103.254
DNS=10.20.0.2
ConfigureWithoutCarrier=yes

cat 10-netplan-enc1000.1300.netdev
[?2004l
[NetDev]
Name=enc1000.1300
Kind=vlan

[VLAN]
Id=1300
'''

Thanks~