[Pkg-xen-devel] Bug#437127: xen-utils-common: vif-common fails to identify ip address of ethernet device

Stefan Tomanek stefan at pico.ruhr.de
Mon Dec 3 00:36:39 UTC 2007


I did some fine tuning on the command line, and this one should be
an even better alternative:

ip -4 -o addr show primary dev $1 | awk '$3 == "inet" {print $4; exit}' | sed 's!/.*!!'





More information about the Pkg-xen-devel mailing list