Network Bridge creation without reboot

wahmed

Famous Member
Oct 28, 2012
1,148
59
113
Calgary, Canada
www.symmcom.com
Hello,
I am trying to create a virtual network within Proxmox cluster. I created some bridges with different IP LAN. Under pending changes it says please reboot. I have about 37 VMs running at this moment. Is there any way to activate this changes without migrating all the VMs to another node, restart this node, then migrate all vm back to the node? I am aware of the #/etc/init.d/networking restart command. Should i go with that? Is it going reset all the network connectivity to the VMs?
Thanks!
 
If you do the changes in /etc/network/interfaces and then revert the changes in the gui you will be able to manually bring the bridge up.

Lets say you have added this new bridge:

auto vmbr101
iface vmbr101 inet static
address x.y.z.v
netmask 255.255.255.0
gateway x.y.z.1
bridge_ports eth0
bridge_stp off
bridge_fd 0

The you can do the following without the need for a reboot:
ifup vmbr101
 
I'm thinking about this too. The Proxmox Web UI sometimes confuse for non-text-editor user.
Proxmox Web UI says "reboot to apply the new network config" and if you have custom config (in /etc/network/interfaces) then Proxmox will delete them all after reboot!
 
And especially if you are using vlan's I find it a lot more easier to do it with a text editor directly in /etc/network/interfaces.
 
If you do the changes in /etc/network/interfaces and then revert the changes in the gui you will be able to manually bring the bridge up.

Lets say you have added this new bridge:

auto vmbr101
iface vmbr101 inet static
address x.y.z.v
netmask 255.255.255.0
gateway x.y.z.1
bridge_ports eth0
bridge_stp off
bridge_fd 0

The you can do the following without the need for a reboot:
ifup vmbr101

And just like that i was able to bring the bridge online . :)
Once again mir thanks a million!
 
Got another Virtual Networking question. This Virtual Networking is quite new for me although i have spent many years in networking.

I setup the new bridge and activated it without restart. But the bridge do not have any internet. No doubt it is gateway issue.

Here is my current config:
Physical eth0
address=192.168.10.1
netmask=255.255.255.0
gateway=192.168.10.254

Bridge vmbr500
address=192.180.25.1
netmask=255.255.255.0
bridge port eth0

What should i put as gateway for the bridge? Also, one physical port cannot be connected to more than one bridge?
 
Last edited:
The gateway for the bridge should be what ever router is supposed to route the traffic. If you do not have a router you could install a VM on the net with two nics, one nic connected to the bridge and one nic connected to the 192.168.10.0 net and have that route the traffic. In this case the address of this VM will be the gateway for the net.

A physical port can have many bridges. Personally I use a bond which have 5 bridges configured.
 
The gateway for the bridge should be what ever router is supposed to route the traffic. If you do not have a router you could install a VM on the net with two nics, one nic connected to the bridge and one nic connected to the 192.168.10.0 net and have that route the traffic. In this case the address of this VM will be the gateway for the net.

A physical port can have many bridges. Personally I use a bond which have 5 bridges configured.

Worked! Its not so complex once we get a hang of the Network Virtualization concept. I still have way to go to setup exactly they way i intend to do, but at least now i know what i am doing.
Thanks Mir!
 
Forgot in my previous post. If you configure a VM to be gateway for a bridge the is does not give much sense to assign an IP to the bridge (IP assigned to a bridge will actually mean assigned an IP on the bridge to the host) in which case the bridge configuration could be narrowed down to:

Bridge vmbr500
bridge port eth0
 
Forgot in my previous post. If you configure a VM to be gateway for a bridge the is does not give much sense to assign an IP to the bridge (IP assigned to a bridge will actually mean assigned an IP on the bridge to the host) in which case the bridge configuration could be narrowed down to:

Bridge vmbr500
bridge port eth0

Is creating a VM to be a gateway is only way to provide internet connection to anybody connected through that particular bridge(vmbr500)?

If i do not want to put a VM gateway, how the vmbr500 config would be?