From 9a08108970ee1fd321806776f1ede67bb9a05cc1 Mon Sep 17 00:00:00 2001 From: Aaron Lauterer Date: Thu, 2 Jun 2022 11:22:50 +0200 Subject: [PATCH] network: adapt apply config section to PVE 7 ifupdown2 is now installed by default, we can therefore omit the whole installation part except a small note for people who installed PVE on top of Debian. also mention the CLI variant for users who like to edit the network config directly or are using some config management tools Signed-off-by: Aaron Lauterer --- pve-network.adoc | 33 +++++++++++---------------------- 1 file changed, 11 insertions(+), 22 deletions(-) diff --git a/pve-network.adoc b/pve-network.adoc index af3489e..99fe3c2 100644 --- a/pve-network.adoc +++ b/pve-network.adoc @@ -29,34 +29,23 @@ inaccessible. Reboot Node to apply ^^^^^^^^^^^^^^^^^^^^ -With the default installed `ifupdown` network managing package you need to -reboot to commit any pending network changes. Most of the time, the basic {pve} -network setup is stable and does not change often, so rebooting should not be -required often. +One way to apply a new network configuration is to reboot the node. Reload Network with ifupdown2 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -With the optional `ifupdown2` network managing package you also can reload the -network configuration live, without requiring a reboot. +With the 'ifupdown2' package (default since {pve} 7), it is possible to apply +network configuration changes without a reboot. If you change the network +configuration via the GUI, you can click the 'Apply Configuration' button. Run +the following command if you make changes directly to the +`/etc/network/interfaces` file: -Since {pve} 6.1 you can apply pending network changes over the web-interface, -using the 'Apply Configuration' button in the 'Network' panel of a node. - -To install 'ifupdown2' ensure you have the latest {pve} updates installed, then - -WARNING: installing 'ifupdown2' will remove 'ifupdown', but as the removal -scripts of 'ifupdown' before version '0.8.35+pve1' have a issue where network -is fully stopped on removal footnote:[Introduced with Debian Buster: -https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=945877] you *must* ensure -that you have a up to date 'ifupdown' package version. - -For the installation itself you can then simply do: - - apt install ifupdown2 +---- + ifreload -a +---- -With that you're all set. You can also switch back to the 'ifupdown' variant at -any time, if you run into issues. +NOTE: If you installed {pve} on top of Debian, make sure 'ifupdown2' is +installed: 'apt install ifupdown2' Naming Conventions ~~~~~~~~~~~~~~~~~~ -- 2.39.2