en1 or en0 is the name of the interface. if you have only one ethernet 
card, you will get an error
trying to get the ip address of the second (non-existent) interface.

--
-------------------------
Sean P. Scanlon
perl -e 'print pack("h*", "3707370426c6575646f647e2e65647"), "\n"'
-------------------------

On Thursday, August 23, 2001, at 09:18 PM, Bruce Van Allen wrote:

> At 8:46 PM -0400 8/23/01, Bohdan Peter Rekshynskyj wrote:
>> At 19:37 -0500 8/23/2001, Timothy A. Canon wrote:
>>> Thanks for the tip.  From the command line this works for me:
>>>
>>> /usr/sbin/ipconfig getifaddr en1
>>
>>
>> I don't agree here - this showed me an old ip address.
>>
>> I used en0 instead to show my dynamic address assigned by dhcp...
>>
>> Please advise.
>>
>
> I get:
>
> [dslX-XX-XXX-XX-XX:~] bruce% /usr/sbin/ipconfig getifaddr en0
> XX.XXX.XX.XX
> [dslX-XX-XXX-XX-XX:~] bruce% /usr/sbin/ipconfig getifaddr en1
> get if addr en1 failed, (os/kern) failure
>
> which agrees with Bohdan.
>
> OS X 10.0.4.
>
> 1;
> --
>   - Bruce
>
> __bruce_van_allen__santa_cruz_ca__

Reply via email to