Ifconfig ppp0 output wanted

Paul Dickson plug-devel@lists.PLUG.phoenix.az.us
Sat Apr 9 14:17:02 2005


On Fri, 8 Apr 2005 16:32:04 -0700, William Schumacher wrote:

> I'm not sure if you still need this, but here's sample output from my 
> machine:
> 
> # ifconfig --version
> net-tools 1.60
> ifconfig 1.42 (2001-04-13)
> # ifconfig ppp0
> ppp0 Link encap:Point-to-Point Protocol 
>  inet addr:99.9.999.999 P-t-P:99.9.999.99 Mask:255.0.0.0 <http://255.0.0.0>

Thanks.  I'm now able to used the same parsing code that I used for eth*
interfaces.

    myip=$(ifconfig $EXT_IF|grep "inet "| \
           sed -e "s/^.*inet addr:\([0-9\.]*\) .*/\1/")

	-Paul