Monday, August 6, 2007

Networking in XEN

During last startup of the Gateway server after last Saturday relocation I realized that network interfaces should be UP on boot.

network-bridges custom script:

#!/bin/sh
/etc/xen/scripts/network-bridge.orig $1 netdev=eth0 bridge=xenbr0 vifnum=0
/etc/xen/scripts/network-bridge.orig $1 netdev=eth1 bridge=xenbr1 vifnum=1
/etc/xen/scripts/network-bridge.orig $1 netdev=eth2 bridge=xenbr2 vifnum=2
/etc/xen/scripts/network-bridge.orig $1 netdev=eth3 bridge=xenbr3 vifnum=3
/etc/xen/scripts/network-bridge.orig $1 netdev=eth4 bridge=xenbr4 vifnum=4
/etc/xen/scripts/network-bridge.orig $1 netdev=eth5 bridge=xenbr5 vifnum=5
route add default gw 130.216.189.254


This script calls original network-bridge.orig script from Xen installation. In such sequence all bridges started up correct and all interfaces work well. It is called from xend configuration file during xend loading.

No comments: