[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-users] Re: number of ips
Hi David, As i mentioned the patch doesn't work with centos5.3+xen. Hence looking at the patch, i hand edited the file. The same was posted in an earlier mail send in this thread. Here it is again
diff -u vif-bridge vif-bridge-custom--- vif-bridge 2009-04-14 23:35:08.000000000 -0400+++ vif-bridge-custom 2009-04-15 00:01:08.000000000 -0400@@ -57,15 +57,37 @@online)setup_bridge_port "$vif"add_to_bridge "$bridge" "$vif"+ ebtables -N $vif+ ebtables -P $vif DROP+ ebtables -A INPUT -i $vif -j $vif+ ebtables -A FORWARD -i $vif -j $vif+ ebtables -A $vif -p ARP –arp-opcode 1 -j ACCEPT++ if [ ! -z "$ip" ]+ then+ for oneip in $ip+ do+ ebtables -A $vif -p IPv4 –ip-src $oneip -j ACCEPT+ ebtables -A $vif -p IPv4 –ip-dst $oneip -j ACCEPT+ ebtables -A $vif -p ARP –arp-opcode 2 –arp-ip-src $oneip -j ACCEPT+ done++ ebtables -A $vif --log-prefix="arp-drop" --log-arp -j DROP++ fi;;offline)do_without_error brctl delif "$bridge" "$vif"do_without_error ifconfig "$vif" down+ do_without_error ebtables -D INPUT -i $vif -j $vif+ do_without_error ebtables -D FORWARD -i $vif -j $vif+ do_without_error ebtables -F $vif+ do_without_error ebtables -X $vif;;esac-handle_iptable+#handle_iptablelog debug "Successful vif-bridge $command for $vif, bridge $bridge."if [ "$command" == "online" ] When i try to start the domU, i just get an error message
Error: Device 0 (vif) could not be connected. /etc/xen/scripts/vif-bridge-custom failed; error detected. Now i looked at all log files, can't seem to find any error.
2009/4/17 David <admin@xxxxxxxxxxx> did you apply the patch? -- regards, Anand Gupta _______________________________________________ Xen-users mailing list Xen-users@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-users
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |