HN Network Connectivity loss when VE stopped [message #26576] |
Mon, 28 January 2008 20:27 |
nimbus4321
Messages: 8 Registered: January 2008
|
Junior Member |
|
|
Hi,
I've got a HN set-up with two VEs, each using veth for network access. The veth interfaces and the HN interface (eth0) are bridged using a bridge vzbr0. The bridge is assigned the HN's IP, and all traffic is routed via the bridge.
Networking all works fine to the VEs and HN, including (importantly for me) multicast between all nodes.
However, if I stop one of the VEs using "vzctl stop", I lose all network connectivity (i.e. including unicast) to the HN and to the other VE from external nodes. Connectivity to both returns after a couple of minutes.
I've tried removing the route for the VE (via the bridge) before stopping the VE, but this makes no difference.
Has anyone seen this behaviour before ? Does anyone have any suggestions on what might be wrong ? I will investigate further, but would be grateful for any help.
Thanks in advance for any suggestions.
|
|
|
|
|
|
|
|
|
|
Re: HN Network Connectivity loss when VE stopped [message #31006 is a reply to message #26576] |
Thu, 12 June 2008 14:35 |
swindmill
Messages: 57 Registered: April 2007
|
Member |
|
|
I seem to have been able to resolve this issue for myself by modifying the custom network script I use to add the veth devices created by vzctl into my bridge (containing eth0) at the VE start.
I manually set br0's mac address to that of eth0 after adding the veth device, and I also added a VEID.umount script that does the same when the VE is shutdown.
This seems to allow me to start and stop the VE without causing any network connectivity issues.
The command I'm using is:
/sbin/ifconfig br0 hw ether $(ifconfig eth0 | awk '{print $5; exit}')
|
|
|