Proxmox Host Network Configuration Restart Issues

gutter007

New Member
May 1, 2012
19
0
1
I'm running Proxmox 2.2

I've been working on a network setup for a new proxmox host setup.

We have been having a lot of trouble, not so much with the configuration, but with changing the configuration and applying the changes.

I set up the configuration via /etc/network/interfaces

I try to refresh the configuration by running:
service networking stop
service networking start

When it starts up the network interfaces do not come up correctly.

I follow that by rebooting the server. At this point it sometimes comes up correctly, but sometimes no matter how many times I reboot it, it doesn't work.

However, I can fix this by doing the following:
1. Copy the interfaces file to interface.old
2. Clear out the interfaces file
3. Reboot the server
4. Copy the interfaces.old file to interfaces
5. Reboot the server


This makes it very difficult to make a change to the network configurations, or as I'm doing now, attach the server to a SAN.

Is there an easier way to change the interfaces file, and refresh the network settings without rebooting twice?

This is my interfaces file.

Code:
# network interface settings
auto lo
iface lo inet loopback

iface eth3 inet manual

iface eth7 inet manual

iface eth11 inet manual

iface eth10 inet manual

iface eth4 inet manual

iface eth8 inet manual

iface eth0 inet manual

iface eth1 inet manual

iface eth2 inet manual

iface eth5 inet manual

iface eth6 inet manual

iface eth9 inet manual

auto bond1
iface bond1 inet manual
    slaves eth0 eth8
    bond_miimon 100
    bond_mode 802.3ad
    bond miimon 100

auto bond2
iface bond2 inet manual
    slaves eth1 eth9
    bond_miimon 100
    bond_mode 802.3ad
    bond miimon 100

auto bond3
iface bond3 inet manual
    slaves eth10 eth4
    bond_miimon 100
    bond_mode 802.3ad
    bond miimon 100

auto bond4
iface bond4 inet manual
    slaves eth2 eth5
    bond_miimon 100
    bond_mode 802.3ad
    bond miimon 100

iface vmbr0 inet manual
    bridge_ports none
    bridge_stp off
    bridge_fd 0

auto vmbr100
iface vmbr100 inet static
    address  10.10.10.74
    netmask  255.255.255.0
    bridge_ports bond1
    bridge_stp off
    bridge_fd 0

auto vmbr200
iface vmbr200 inet static
    address  10.10.20.74
    netmask  255.255.255.0
    bridge_ports bond2
    bridge_stp off
    bridge_fd 0

auto vmbr300
iface vmbr300 inet static
    address  10.10.30.34
    netmask  255.255.255.0
    bridge_ports bond3
    bridge_stp off
    bridge_fd 0

auto vmbr400
iface vmbr400 inet static
    address  10.10.40.10
    netmask  255.255.255.0
    gateway  10.10.40.1
    bridge_ports bond4
    bridge_stp off
    bridge_fd 0
 
The GUI writes the file /etc/network/interfaces.new. On reboot, that file is copied to /etc/network/interfaces.
If you manually change /etc/network/interfaces, make sure there is no /etc/network/interfaces.new (or simply
edit /etc/network/interfaces.new and reboot to activate)
 
The GUI writes the file /etc/network/interfaces.new. On reboot, that file is copied to /etc/network/interfaces.
If you manually change /etc/network/interfaces, make sure there is no /etc/network/interfaces.new (or simply
edit /etc/network/interfaces.new and reboot to activate)

Is there any way to do this (apply network changes) just restarting newtork services and not the whole server?

I'd like to enable jumbo frames by adding "mtu 9000" to two of my four network interfaces (connected to our SAN) without restarting the proxmox server. Is it possible?

Thanks in advance.
 
I'd like to enable jumbo frames by adding "mtu 9000" to two of my four network interfaces (connected to our SAN) without restarting the proxmox server. Is it possible?

Yes, you can do this by using the Debian standard networking tools (ifup, ifdown). But it is dangerous if it is a bridge and you have running VMs using that bridge.
 
OK, thank you for your rapid response.

If you don't mind, I'd like to ask you one more question. Are the next steps correct?

1. If required changes may be done through the web interface, do them that way.
2. If not, copy /etc/network/interfaces to /etc/network/interfaces.new and edit this one with the required changes.
3. Run /etc/init.d/pvenetcommit start
4. Run /etc/init.d/networking restart

Thanks again.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!