Using any network interface whatsoever

Alain Hebert ahebert at pubnix.net
Sat Apr 8 22:27:28 UTC 2006


    ...lazy...

    Not all problems can be fixed by somebody else.  Work a little for a 
change.

    If you wish to name your interfaces switch to Windows.

ifconfig -a | awk '/^[a-z0-9^]*:/ {i=$1} /inet / {ip=$2;net=$4;} 
/status/ {print i" "ip" - "net" - "$2}'

em0: 10.0.1.1 - 0xff000000 - active
em1: 69.x.x.x - 0xfffffff8 - active
em2: 64.x.x.x - 0xfffffff8 - active
em3: 192.168.3.1 - 0xffffff00 - active
em4: 206.x.x.x - 0xfffffff0 - active

Scott Long wrote:

> Mike Meyer wrote:
>
>> In <443811EF.2020509 at samsco.org>, Scott Long <scottl at samsco.org> typed:
>>
>> Please trim the text you are repling to.
>>
>
> Please, I'm tired of arbitrary email etiquette.
>
>> But where do you put the label on an ethernet interface?
>>
>>     <mike
>
>
> It sounds like your message is, "don't be like Linux."  Fine, what do
> you want instead?  How does having 2 em devices in my system, named em0
> and em1, tell me by name which one is connected to which LAN?
>
> Scott
> _______________________________________________
> freebsd-hackers at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to 
> "freebsd-hackers-unsubscribe at freebsd.org"
>

-- 
Alain Hebert                                ahebert at pubnix.net   
PubNIX Inc.        
P.O. Box 175       Beaconsfield, Quebec     H9W 5T7	
tel 514-990-5911   http://www.pubnix.net    fax 514-990-9443



More information about the freebsd-hackers mailing list