Hello,
just wanted to share my experience with adding new IP/VLAN
i have been trying to add a new vlan for a while and i always get that there was a network error.
the default IP for the machine was added during the installation which was 172.21.5.17 to eno1 interface
i was trying to add a new vlan 192.168.196.1 to another interface ens2f0np0 but it always failed.
the solution was to add the already configured IP when i was editing the interfaces from the UI attached the logs for reference.
For me it was weird to add the same IP that i was using to access to the machine again in order to actually add it to the database and then add the new one.
failing attempt
[2024/12/03 10:40:24] (INFO) InterfaceService.vlan_setup():12 - Setting up ‘vlan196’
[2024/12/03 10:40:25] (INFO) InterfaceService.configure():20 - Configuring interface ‘vlan196’
[2024/12/03 10:40:25] (DEBUG) InterfaceService.configure():99 - vlan196: adding 192.168.196.1/255.255.255.
0
[2024/12/03 10:40:25] (INFO) InterfaceService.sync():1740 - Interfaces in database: vlan196
[2024/12/03 10:40:25] (INFO) InterfaceService.unconfigure():138 - Unconfiguring interface ‘ens2f0np0’
[2024/12/03 10:40:25] (INFO) InterfaceService.unconfigure():138 - Unconfiguring interface ‘ens2f1np1’
[2024/12/03 10:40:25] (INFO) InterfaceService.unconfigure():138 - Unconfiguring interface 'enxbe3af2b6059f
’
[2024/12/03 10:40:25] (INFO) InterfaceService.unconfigure():138 - Unconfiguring interface ‘eno1’
[2024/12/03 10:40:26] (INFO) InterfaceService.unconfigure():138 - Unconfiguring interface ‘eno2’
[2024/12/03 10:40:26] (INFO) RouteService.sync():83 - Adding IPv4 default route to 172.21.5.254
[2024/12/03 10:40:26] (ERROR) RouteService.sync():105 - Failed adding 172.21.5.254 as default gateway: Net
linkError(101, ‘Network is unreachable’)
[2024/12/03 10:41:26] (INFO) InterfaceService.sync():1740 - Interfaces in database: NONE
[2024/12/03 10:41:26] (INFO) InterfaceService.unconfigure():138 - Unconfiguring interface ‘ens2f0np0’
[2024/12/03 10:41:27] (INFO) InterfaceService.unconfigure():138 - Unconfiguring interface ‘ens2f1np1’
[2024/12/03 10:41:28] (INFO) InterfaceService.unconfigure():138 - Unconfiguring interface 'enxbe3af2b6059f
’
[2024/12/03 10:41:28] (INFO) InterfaceService.unconfigure():138 - Unconfiguring interface ‘eno1’
[2024/12/03 10:41:29] (INFO) InterfaceService.unconfigure():138 - Unconfiguring interface ‘eno2’
[2024/12/03 10:41:29] (INFO) InterfaceService.unconfigure():138 - Unconfiguring interface ‘vlan196’
[2024/12/03 10:41:29] (INFO) RouteService.sync():83 - Adding IPv4 default route to 172.21.5.254
[2024/12/03 10:41:29] (ERROR) RouteService.sync():105 - Failed adding 172.21.5.254 as default gateway: Net
linkError(101, ‘Network is unreachable’)
successful attempt
[2024/12/03 10:44:56] (INFO) InterfaceService.vlan_setup():12 - Setting up ‘vlan196’
[2024/12/03 10:44:56] (INFO) InterfaceService.configure():20 - Configuring interface ‘eno1’
[2024/12/03 10:44:56] (DEBUG) InterfaceService.configure():39 - Killing dhclient for ‘eno1’
[2024/12/03 10:44:56] (DEBUG) InterfaceService.configure():81 - eno1: removing possible valid_lft and pref
erred_lft on 172.21.5.17/255.255.255.0
[2024/12/03 10:44:56] (INFO) InterfaceService.configure():20 - Configuring interface ‘vlan196’
[2024/12/03 10:44:56] (DEBUG) InterfaceService.configure():99 - vlan196: adding 192.168.196.1/255.255.255.
0
[2024/12/03 10:44:56] (INFO) InterfaceService.sync():1740 - Interfaces in database: eno1, vlan196
[2024/12/03 10:44:57] (INFO) InterfaceService.unconfigure():138 - Unconfiguring interface ‘ens2f0np0’
[2024/12/03 10:44:57] (INFO) InterfaceService.unconfigure():138 - Unconfiguring interface ‘ens2f1np1’
[2024/12/03 10:44:57] (INFO) InterfaceService.unconfigure():138 - Unconfiguring interface 'enxbe3af2b6059f
’
[2024/12/03 10:44:57] (INFO) InterfaceService.unconfigure():138 - Unconfiguring interface ‘eno2’