finding the ip address

Wojciech Puchar wojtek at tensor.3miasto.net
Sun Aug 29 14:32:29 PDT 2004


>
> I modifies your solution slightly, so I could use it for more interfaces
> easily.
>
> ifconfig dc0 | grep inet|awk '{print $2}'
> _______________________________________________

if your host use DHCP - you may add something to your dhclient.conf and
make some script to record it's IP.




More information about the freebsd-questions mailing list