Detect PPPoE vs. DHCP
alex at tweedly.net
Mon Nov 8 15:48:22 CST 2004
At 15:36 08/11/2004 -0500, Frank Engel wrote:
>Actually, DHCP and PPPoE are completely different types of protocols; both
>could theoretically be used together. DHCP is basically a way to get an
>IP address for yourself (along with info such as DNS addresses, default
>router, etc.) over an existing IP network. PPPoE is a way to bridge two
>separate networks across a third network, without allowing that third
>network access to either of the other two. These are completely different
>things, so I fail to understand what you are trying to determine here?
Let me make a guess .....
Although PPPoE can be used as a bridging medium, its most common usage
nowadays is in consumer broadband connections, where the broadband
connection itself is ethernet, but the ISP uses PPPoE to set up a PPP
connection to the consumer - and hence can use their existing Radius (or
other authentication system).
So for a consumer DSL connection, most are either
a. straight Ethernet - typically using DHCP to allocate an IP address
Can you distinguish between them ?
I know OSX is a bit different from other Unixes, so this may be wrong ....
If straight Ethernet + DHCP, I'd expect ifconfig to tell me about
interfaces called en0, en1 or similar (sometimes e0, e1, etc)
If PPPoE, I'd expect to see those PLUS one or more called ppp0, ppp1, etc.
Not fully reliable, since you could have serial lines with ppp configured
in addition to your ethernet interfaces - but it may help you get started
on interpreting the ifconfig output.
>On Nov 8, 2004, at 15:04, RGould8 at aol.com wrote:
>>Can anyone tell me if there's a way in Mac OS X to determine whether the user
>>is currently connected via DHCP vs. PPPoE? Some sort of unix shell command
>>perhaps? I've looked at the "ifconfig" command, and it spits back a lot if
>>interesting info, but nothing jumps out at me to denote "DHCP" vs. "PPPoE".
>>use-revolution mailing list
>>use-revolution at lists.runrev.com
>Frank D. Engel, Jr. <fde101 at fjrhome.net>
>$ ln -s /usr/share/kjvbible /usr/manual
>$ true | cat /usr/manual | grep "John 3:16"
>John 3:16 For God so loved the world, that he gave his only begotten Son,
>that whosoever believeth in him should not perish, but have everlasting life.
>$0 Web Hosting with up to 120MB web space, 1000 MB Transfer
>10 Personalized POP and Web E-mail Accounts, and much more.
>Signup at www.doteasy.com
>use-revolution mailing list
>use-revolution at lists.runrev.com
>Incoming mail is certified Virus Free.
>Checked by AVG anti-virus system (http://www.grisoft.com).
>Version: 6.0.786 / Virus Database: 532 - Release Date: 29/10/2004
More information about the use-livecode