> -----Original Message-----
> From: Ronneil Camara [mailto:[EMAIL PROTECTED]]
> Sent: Monday, May 22, 2000 12:00 AM
> To: '[EMAIL PROTECTED]'
> Subject: RE: [plug] Linux and Destiny Cable
> 
> 
> I guess this will help you if you will be using dynamic ip 
> address and if it
> uses eth0.
> 
> ifconfig | grep -A 4 eth0 | awk '/inet/ { print $2 } ' | sed 
> -e s/addr://
> 
sorry for multiple replies, this one is better

ifconfig eth0 | grep inet | awk '{ print $2 }' | sed -e s/.*://

Kasi yung first doesn't work with ip aliasing. 

-
Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]

Reply via email to