diff --git a/mininet/link.py b/mininet/link.py
index efb802e971c58c95c9e4e95cfcd2987bf24b141d..df22ea368524afa99d4a16465009eac7ed294374 100644
--- a/mininet/link.py
+++ b/mininet/link.py
@@ -86,7 +86,9 @@ def setMAC( self, macstr ):
 
     def updateIP( self ):
         "Return updated IP address based on ifconfig"
-        ifconfig = self.ifconfig()
+        # use pexec instead of node.cmd so that we dont read
+        # backgrounded output from the cli.
+        ifconfig, _err, _exitCode = self.node.pexec( 'ifconfig %s' % self.name )
         ips = self._ipMatchRegex.findall( ifconfig )
         self.ip = ips[ 0 ] if ips else None
         return self.ip