runqemu: fix networking issues
PATCH 1/1 runqemu: fix networking issues
After switching from ifconfig to ip, networking stopped working. This commit contains the following fixes:
* set a decent broadcast address for the tap device;
* bring up the device;
---
Apparently, the autobuilder has some magic into it because all the sanity tests succeeded... So, I don't know why AB tests succeeded but on my machine, and several others, networking was broken and couldn't connect into the qemu image. If I'm missing something, please, do not hesitate to correct me. This patch fixes the issue for me though.
Thanks,
Laurentiu
scripts/runqemu-ifup | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
scripts/runqemu-ifup +2 -1
@@ -100,7 +100,8 @@ if [ ! -x "$IPTABLES" ]; then fi n=$[ (`echo $TAP | sed 's/tap//'` * 2) + 1 ] -$IFCONFIG addr add 192.168.7.$n/32 dev $TAP +$IFCONFIG addr add 192.168.7.$n/32 broadcast 192.168.7.255 dev $TAP +$IFCONFIG link set dev $TAP up dest=$[ (`echo $TAP | sed 's/tap//'` * 2) + 2 ] $ROUTE add -host 192.168.7.$dest $TAP
Signature · 1 line
1.7.9.5
Quoted 25 lines · Laurentiu Palcu
After switching from ifconfig to ip, networking stopped working. This commit contains the following fixes:
* set a decent broadcast address for the tap device;
* bring up the device;Signed-off-by Laurentiu Palcu <[email protected]>---
Apparently, the autobuilder has some magic into it because all the sanity tests succeeded... So, I don't know why AB tests succeeded but on my machine, and several others, networking was broken and couldn't connect into the qemu image. If I'm missing something, please, do not hesitate to correct me. This patch fixes the issue for me though.Thanks,
Laurentiuscripts/runqemu-ifup | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)scripts/runqemu-ifup +0
-0
scripts/runqemu-ifup if [ ! -x "$IPTABLES" ]; then · line 107
Quoted 9 lines
scripts/runqemu-ifup +2
-1@@ -100,7 +100,8 @@ if [ ! -x "$IPTABLES" ]; then fi n=$[ (`echo $TAP | sed 's/tap//'` * 2) + 1 ] -$IFCONFIG addr add 192.168.7.$n/32 dev $TAP +$IFCONFIG addr add 192.168.7.$n/32 broadcast 192.168.7.255 dev $TAP +$IFCONFIG link set dev $TAP up dest=$[ (`echo $TAP | sed 's/tap//'` * 2) + 2 ] $ROUTE add -host 192.168.7.$dest $TAP
This fixes the issue for me too, thought there is something very strange here. Last week I ran master builds (with newer commits than the ifconfig->ip change) without ever seeing this issue. But today on the same commit that on Friday worked, I get no network. The only thing that changed is that my machine rebooted Monday morning... (I blame the gamma rays). Also I think ROUTE too should be changed to use ip instead of the old route command.
Regards,
Stefan
thanks for fixing it. I wonder why I did not run into it something in my settings probably.
Quoted 37 lines · Laurentiu Palcu
After switching from ifconfig to ip, networking stopped working. This commit contains the following fixes:
* set a decent broadcast address for the tap device;
* bring up the device;Signed-off-by Laurentiu Palcu <[email protected]>---
Apparently, the autobuilder has some magic into it because all the sanity tests succeeded... So, I don't know why AB tests succeeded but on my machine, and several others, networking was broken and couldn't connect into the qemu image. If I'm missing something, please, do not hesitate to correct me. This patch fixes the issue for me though.Thanks,
Laurentiuscripts/runqemu-ifup | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)scripts/runqemu-ifup +2
-2@@ -100,7 +100,8 @@ if [ ! -x "$IPTABLES" ]; then fi n=$[ (`echo $TAP | sed 's/tap//'` * 2) + 1 ] -$IFCONFIG addr add 192.168.7.$n/32 dev $TAP +$IFCONFIG addr add 192.168.7.$n/32 broadcast 192.168.7.255 dev $TAP +$IFCONFIG link set dev $TAP up dest=$[ (`echo $TAP | sed 's/tap//'` * 2) + 2 ] $ROUTE add -host 192.168.7.$dest $TAP --1.7.9.5
Quoted 2 lines · StefanX
Also I think ROUTE too should be changed to use ip instead of the old route command.
yes it should be.