The key phrase is "ad hoc" (or, on the Mac, "Internet Sharing"), and
it's more the default than the first example you gave.

I haven't tried it from the command line, but on your Mac System
Preferences, it's under the "Sharing" pref pane.

--Don Ellis


On Sun, Sep 11, 2011 at 3:16 PM, Robert Citek <[email protected]> wrote:
> The key ingredient: the wificard must support Master mode.
> Apparently, there is no way to query if the card supports a particular
> mode.  One just tries setting it and then checks if the mode changed.
> For example, in my case my wifi card is eth1:
>
> $ sudo iwconfig eth1 | grep -o 'Mode:[^ ]*'
> Mode:Managed
>
> $ sudo iwconfig eth1 mode Master
> Error for wireless request "Set Mode" (8B06) :
>    SET failed on device eth1 ; Invalid argument.
>
> $ sudo iwconfig eth1 | grep -o 'Mode:[^ ]*'
> Mode:Managed
>
> I guess not.
>
> Regards,
> - Robert
>
> On Sun, Sep 11, 2011 at 3:20 PM, Robert Citek <[email protected]> wrote:
>> Hello all,
>>
>> In the days before ubiquitous wifi cards, I was able to "tether" a
>> friend's laptop without a wifi card to my laptop via a crossover
>> ethernet cable.  My laptop had DHCPd running on the wired interface
>> and was NAT'ed to route via the wifi interface.  This allowed my
>> friend to access the Internet via my laptop.  The setup was something
>> like this:
>>
>> [friend] --- [me] -))) (((- Internet
>>
>> where "---" represents the Ethernet cable and "-))) (((-" represents
>> the wifi connection.
>>
>> In fact, I was able to do this for a few friends at the same time if I
>> brough along a switch/hub and had access to external power.
>>
>> I would now like to do something similar, but somewhat in reverse:
>>
>> [friend] -))) (((- [me] --- Internet
>>
>> Specifically, my friend's laptop would connect to mine via wifi, and
>> my laptop would NAT/route traffic via the wired interface out to the
>> Internet.
>>
>> I would imagine that I would somehow need to do the following:
>> 1) create an ESSID
>> 2) enable it to be broadcast
>> 3) enable DHCPd on the wifi interface
>> 4) enble NAT routing between the wifi and the wired interface.
>>
>> I'm getting stuck at the first two steps.  This would seem as though I
>> am turning my laptop into a "hotspot".  However, using that search
>> term hasn't brought me any joy.  Every hit I've found refers to using
>> a wifi router (e.g. the WRT54G) and then all kinds of fancy
>> authentication schemes.
>>
>> Am still Googling and browsing, but any pointers to the more correct
>> search terms would be helpful.
>>
>> Thanks in advance.
>>
>> Regards,
>> - Robert
>>
>

-- 
Central West End Linux Users Group (via Google Groups)
Main page: http://www.cwelug.org
To post: [email protected]
To subscribe: [email protected]
To unsubscribe: [email protected]
More options: http://groups.google.com/group/cwelug

Reply via email to