Proxmox Ve How to Chang Network of Hosting Without Reboot Proxmox Ve

How to change Network settings of proxmox-ve host without rebooting.

Eache time when I want to change network settings like change netowrks and I must reboot to apply it. It is really trouble me.

Solution

Proxmox VE is based on debian. After check interface of network with the path /etc/network/

I found that each time when i change network settings. There will be a named interfaces.new created and it content new network settings wait for apply when i reboot. So I try to backup the old networking interfaces settings and replace it with the new file.

Manual change

  • Backup interfaces
1
cp /etc/network/interfaces /etc/network/interfaces.old
  • Copy interface.new to interface
1
cp /etc/network/interfaces.new /etc/network/interfaces
  • Reboot networking service
1
2

systemctl restart networking

Scirpt change

1
mv interfaces interfaces.backup && mv interfaces.new interfaces && systemctl restart networking.service
Licensed under CC BY-NC-SA 4.0
Last updated on Sep 19, 2024 09:13 UTC
Built with Hugo
Theme Stack designed by Jimmy