Terry Tremaine wrote:

> Try 'ifconfig' while logged in as root.
>
> TT.
>
> On Fri, 01 Sep 2000, you wrote:
> > Whats the command to get IP address of u're machine? The only way I know of
> > is thru kppp when using modem... I am talking of dynamic IP addresses
> > here.. I want something which i can put in a script!
> >
> > -sarang

grep IP /etc/sysconfig/network-scripts/ifcfg-eth0

or

ifconfig -a


will give you the IP address of your first ethernet port !

-peter church


Reply via email to