Hi. If my default interface (the one that see packets sent to default gw) has an ipv6 address, current script will just forget to filter this ipv6 address. This has the effect of killing network config. Reproducible: Always Steps to Reproduce: 1./etc/init.d/xend start 2.See the "Error: either "local" is duplicate, or "inet6" is a garbage." message(s). 3. Actual Results: Breaks network config. Expected Results: bridging inserted painlessly I'll attach a patch that should be applied to /etc/xen/scripts/network-bridge to make it work.
Created attachment 210605 [details, diff] Fix network-bridge script to work with ipv6 cd /etc/xen/scripts patch -p0 < /path/to/the/patch.diff
Proposed patch did not fix things for me: Error: either "local" is duplicate, or "192.168.0.55/35" is a garbage. where this IP is an alias set in /etc/conf.d/net. The more aliases, the more errors. This script breaks my computer; after Xend, I have to run home made script before other daemons (sshd, apache, !!! NTP !!! ... ). Until I understand Xen breaks network because of aliases, the computer lost all network connectivity (aliases, default route ... ). My script have to check, and re-set minimal connectivity ... and delay aliases to end of boot process.
And please remove arch from the list. This bug can only affect Xen compatible arch; remove the other ones, if i am correct: ALPHA ARM HPPA M68K MIPS PPC S390 SH X86
Xen 4.1 in tree. Please test with it and reopen if it doesnt work
Works in ipv4 here, thank you.
Actually had to add quick and dirty hack in vif-common.sh, frob_iptable(), change $dev for $pdev (as I use bridging, but I doubt it gonna work for all setups).