Total Pageviews

Sunday, October 24, 2010

Xen Custom Network

Xen Custom Network





Steps to be followed to remove Default Bridging of First Network Interfae eth0(peth0)---xenbr0 on xen

1) Create a new custom network script

vi /etc/xen/scripts/multi-network-bridge

#!/bin/sh
#/etc/xen/scripts/network-bridge $@ vifnum=0 netdev=eth0 bridge=xenbr0  #####default eth0 was disabled
/etc/xen/scripts/network-bridge $@ vifnum=1 netdev=eth1 bridge=xenbr1   #### new eth1(peth1)--xenbr1
/etc/xen/scripts/network-bridge $@ vifnum=2 netdev=eth2 bridge=xenbr2   #### new eth2(peth2)--xenbr2
#.
#.
#.
#/etc/xen/scripts/network-bridge $@ vifnum=n netdev=ethn bridge=xenbrn   #### new ethn(pethn)--xenbrn

n --- replace it with you ethernet interface number


2) chmod  755 multi-network-bridge

3) vi /etc/xen/xend-config.sxp

search for network-bridge and you can find some thing  of like below

(network-script network-bridge)  ### comment it and replace with the below

(network-script multi-network-bridge)  ### new one it your custom file

save it and reboot the server, once the server comes up check the  output of below commands , there should be no  peth0(that is you real eth0 interface used in xen environment) , xenbr0.


[root@storage ~]# brctl  show

bridge name    bridge id        STP enabled    interfaces
virbr0        8000.000000000000    yes       
xenbr1        8000.feffffffffff    no        peth1
                            vif0.1

No comments: