getting DHCP-assigned IP address
Toni Schmidbauer
toni at stderror.at
Tue Dec 2 16:29:30 PST 2003
On Tue, Dec 02, 2003 at 05:05:06PM -0500, Michael A. Smith wrote:
> Is there an easy way to get the IP address that DHCP has assigned to an
> interface?
ifconfig fxp0 | grep 'inet ' | cut -f 2 -d ' '
hth,
toni
--
Kann man etwas nicht verstehen, dann urteile man | toni at stderror dot at
lieber gar nicht, als dass man verurteile. | Toni Schmidbauer
-- Rudolf Steiner |
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20031202/8d7a5ff9/attachment.bin
More information about the freebsd-questions
mailing list