debuggers.hg
changeset 3551:4df7d8e48278
bitkeeper revision 1.1159.226.3 (41f55c8er11pRwXCJ66we1vDzrEZ9Q)
With ipv6, every network interface always has a link local
address. This fools the network script into thinking that
xen-br0 already has a network address, and it refuses to
transfer over eth0's IP address to xen-br0.
By grepping for 'inet ' instead of just 'inet', the network
script is no longer fooled and does the right thing. This
patch makes Xen networking work again on my Fedora system.
Signed-off-by: Rik van Riel <riel@redhat.com>
Signed-off-by: ian.pratt@cl.cam.ac.uk
With ipv6, every network interface always has a link local
address. This fools the network script into thinking that
xen-br0 already has a network address, and it refuses to
transfer over eth0's IP address to xen-br0.
By grepping for 'inet ' instead of just 'inet', the network
script is no longer fooled and does the right thing. This
patch makes Xen networking work again on my Fedora system.
Signed-off-by: Rik van Riel <riel@redhat.com>
Signed-off-by: ian.pratt@cl.cam.ac.uk
author | iap10@labyrinth.cl.cam.ac.uk |
---|---|
date | Mon Jan 24 20:37:34 2005 +0000 (2005-01-24) |
parents | b65d76ce54d5 |
children | e2f1686415aa |
files | tools/examples/network |
line diff
1.1 --- a/tools/examples/network Mon Jan 24 17:30:59 2005 +0000 1.2 +++ b/tools/examples/network Mon Jan 24 20:37:34 2005 +0000 1.3 @@ -61,13 +61,13 @@ transfer_addrs () { 1.4 local src=$1 1.5 local dst=$2 1.6 # Don't bother if $dst already has IP addresses. 1.7 - if ip addr show dev ${dst} | egrep -q '^ *inet' ; then 1.8 + if ip addr show dev ${dst} | egrep -q '^ *inet ' ; then 1.9 return 1.10 fi 1.11 # Address lines start with 'inet' and have the device in them. 1.12 # Replace 'inet' with 'ip addr add' and change the device name $src 1.13 # to 'dev $src'. Remove netmask as we'll add routes later. 1.14 - ip addr show dev ${src} | egrep '^ *inet' | sed -e " 1.15 + ip addr show dev ${src} | egrep '^ *inet ' | sed -e " 1.16 s/inet/ip addr add/ 1.17 s@\([0-9]\+\.[0-9]\+\.[0-9]\+\.[0-9]\+\)/[0-9]\+@\1@ 1.18 s/${src}/dev ${dst}/