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

Marc A. Donges kosh at hadiko.de
Mon Aug 25 23:13:58 UTC 2008


ip -4 -o addr show primary dev eth0 | awk '$3 == "inet" {match($4,"([0-9.]*)",i); print i[1]; exit}'

HTH, Marc

-- 
  _ _    Marc A. Donges                      +49 721 6904-2130
  'v'    Klosterweg 28 / E110
 /   \   76131 Karlsruhe
  W W                              http://www.hadiko.de/~marc/





More information about the Pkg-xen-devel mailing list