ia64/xen-unstable

changeset 5270:d431df247b8a

bitkeeper revision 1.1636 (429ed8e5gOiR2KuJtp1UWCleuYe5Kg)

network:
Copy netmask across to veth0.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
author cl349@firebug.cl.cam.ac.uk
date Thu Jun 02 10:01:09 2005 +0000 (2005-06-02)
parents 97aa85e7aa21
children bd5698b07fb8
files tools/examples/network
line diff
     1.1 --- a/tools/examples/network	Thu Jun 02 08:12:43 2005 +0000
     1.2 +++ b/tools/examples/network	Thu Jun 02 10:01:09 2005 +0000
     1.3 @@ -66,10 +66,10 @@ transfer_addrs () {
     1.4      fi
     1.5      # Address lines start with 'inet' and have the device in them.
     1.6      # Replace 'inet' with 'ip addr add' and change the device name $src
     1.7 -    # to 'dev $src'. Remove netmask as we'll add routes later.
     1.8 +    # to 'dev $src'.
     1.9      ip addr show dev ${src} | egrep '^ *inet ' | sed -e "
    1.10  s/inet/ip addr add/
    1.11 -s@\([0-9]\+\.[0-9]\+\.[0-9]\+\.[0-9]\+\)/[0-9]\+@\1@
    1.12 +s@\([0-9]\+\.[0-9]\+\.[0-9]\+\.[0-9]\+/[0-9]\+\)@\1@
    1.13  s/${src}/dev ${dst}/
    1.14  " | sh -e
    1.15  }