Add bridge without reboot

M@ario

Member
Dec 23, 2010
34
0
6
Is it possible to add a bridging device without a complete reboot?
Is cp interfaces.new interfaces init.d/network restart sufficient?
I don't want to reboot all my cluster nodes just because of one additinal interface.
 
Yes it is possible to both add vlans and bridges without rebooting the entire HN.
You need to stop/start the VM though.
Here is an example for you to make it even easier.

1. vconfig add eth1 2
2. ifconfig eth1.2 up
3. brctl addbr vmbr2
4. brctl addif vmbr2 eth1.2
5. (vi /etc/network/interfaces):
auto vmbr2
iface vmbr2 inet manual
bridge_ports eth1.2
bridge_stp off
bridge_fd 0
6. ifconfig vmbr2 up

Then you can check status on /proc/net/vlan/config and /proc/net/vlan/eth1.2
 
Is it possible to add a bridging device without a complete reboot?
Is cp interfaces.new interfaces init.d/network restart sufficient?
I don't want to reboot all my cluster nodes just because of one additinal interface.
Hi,
you can all things also do handmade (if you know, what you do).

e.g.
Code:
brctl addbr vmbr5[FONT=monospace]
[/FONT]brctl addif vmbr5 eth2
ifconfig eth2 up
ifconfig vmbr5 up

Udo
 
Thanks. That's much better than rebooting.

BTW: init.d/network restart isn't such a good idea. Kills all TAP devices.
 
Last edited: