diff options
author | cl349@firebug.cl.cam.ac.uk <cl349@firebug.cl.cam.ac.uk> | 2005-06-02 10:01:09 +0000 |
---|---|---|
committer | cl349@firebug.cl.cam.ac.uk <cl349@firebug.cl.cam.ac.uk> | 2005-06-02 10:01:09 +0000 |
commit | 47b5bccd2f4a48a2e62bfc78350ad592fb0676dc (patch) | |
tree | cdb4fc0913457578c63ad33d2787e42eb1af5262 | |
parent | 3021e629c908c6f2cc223c22f003ebc2a98a8b61 (diff) | |
download | xen-47b5bccd2f4a48a2e62bfc78350ad592fb0676dc.tar.gz xen-47b5bccd2f4a48a2e62bfc78350ad592fb0676dc.tar.bz2 xen-47b5bccd2f4a48a2e62bfc78350ad592fb0676dc.zip |
bitkeeper revision 1.1636 (429ed8e5gOiR2KuJtp1UWCleuYe5Kg)
network:
Copy netmask across to veth0.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
-rwxr-xr-x | tools/examples/network | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/examples/network b/tools/examples/network index 8e0579f6f2..4a2cb36249 100755 --- a/tools/examples/network +++ b/tools/examples/network @@ -66,10 +66,10 @@ transfer_addrs () { fi # Address lines start with 'inet' and have the device in them. # Replace 'inet' with 'ip addr add' and change the device name $src - # to 'dev $src'. Remove netmask as we'll add routes later. + # to 'dev $src'. ip addr show dev ${src} | egrep '^ *inet ' | sed -e " s/inet/ip addr add/ -s@\([0-9]\+\.[0-9]\+\.[0-9]\+\.[0-9]\+\)/[0-9]\+@\1@ +s@\([0-9]\+\.[0-9]\+\.[0-9]\+\.[0-9]\+/[0-9]\+\)@\1@ s/${src}/dev ${dst}/ " | sh -e } |