Author Topic: Internet sharing Mac osx  (Read 17743 times)

keef

  • Full Member
  • ***
  • Posts: 129
    • View Profile
Internet sharing Mac osx
« Reply #15 on: May 12, 2004, 03:43:17 pm »
Try adding the command:
route add -host 192.168.129.1 usbd0
this should direct the connection through usb.

keef

freizugheit

  • Sr. Member
  • ****
  • Posts: 409
    • View Profile
    • http://
Internet sharing Mac osx
« Reply #16 on: May 12, 2004, 11:12:19 pm »
asfrank16,

Please check whether you have activated Internet shaing uisng Sharing under System Preferences.

You need to modify your /etc/resolv.conf to include nameserver and IP there.

asfrank16

  • Newbie
  • *
  • Posts: 25
    • View Profile
Internet sharing Mac osx
« Reply #17 on: May 13, 2004, 08:43:42 am »
How do I put the IP in the resolv.conf?  I do have internet sharing on.

asfrank16

  • Newbie
  • *
  • Posts: 25
    • View Profile
Internet sharing Mac osx
« Reply #18 on: May 13, 2004, 08:44:31 am »
What I meant to ask was not how (i know how to edit the file) but what syntax do I use in the file to specify the IP address

freizugheit

  • Sr. Member
  • ****
  • Posts: 409
    • View Profile
    • http://
Internet sharing Mac osx
« Reply #19 on: May 14, 2004, 10:37:02 pm »
Maybe you can post the content of /etc/resolv.con of Zaurus here.

asfrank16

  • Newbie
  • *
  • Posts: 25
    • View Profile
Internet sharing Mac osx
« Reply #20 on: May 20, 2004, 03:23:34 pm »
Sorry for the delay in responding.

the contents are as follows (I did not opy the warning about having to point to an actual nameserver):

nameserver 199.45.32.43
nameserver 199.45.32.38

freizugheit

  • Sr. Member
  • ****
  • Posts: 409
    • View Profile
    • http://
Internet sharing Mac osx
« Reply #21 on: May 20, 2004, 08:44:23 pm »
asfrank16,

By reading your ifconfig output posted on 29/4, it looks like your Mac was not connected to Internet directly.
Maybe let us know how you connect to the Interne, are you using another computer as a gateway.

asfrank16

  • Newbie
  • *
  • Posts: 25
    • View Profile
Internet sharing Mac osx
« Reply #22 on: May 21, 2004, 10:51:07 am »
I am connected through the network (dsl router).  The DSL router is part of the network router.  The info entered as the nameserver is what my computer uses to connect to the network, not what the router uses to connect to the internet (if that makes sense).

-Adam

freizugheit

  • Sr. Member
  • ****
  • Posts: 409
    • View Profile
    • http://
Internet sharing Mac osx
« Reply #23 on: May 21, 2004, 12:17:51 pm »
asfrank16,

On the Mac\'s System Preferences, click  Sharing and press Internet tab.
Select Buitl-In Ethernet follow by pressing the Start button.

I hope this will help share your built-in ethernet interface en1.

ericwerk

  • Newbie
  • *
  • Posts: 11
    • View Profile
    • http://www.elefantelegante.org
Internet sharing Mac osx
« Reply #24 on: May 26, 2004, 04:28:54 am »
It cost me some sweat as well, but i have it working. You can find a nat how-to on the following address:
http://www.mac-im-netz.de/MacOSX-NAT.html
The first part is in german, but it basically says that in /etc/hostconfig you need to change the IPFORWARDING=-NO- line
to IPFORWARDING=-YES-

than just do what the rest of the how-to says, putting the three files in the /System/Library/StartupItems/NAT folder (make the folder if it doesn\'t exist) . And freizugheit\'s tip about checking if you have sharing allowed in the system\'s pref network panel is very important as well (I wish I would have read that before stumbling upon it)

Then on the zaurus type

route add -host 192.168.129.1 dev usbd0
route add -host 192.168.129.201 dev usbd0
route add default gw 192.168.129.1 dev usbd0

(not my idea these, also googled them from somewhere)
<hr>
860, 256 MB PNY CF, 1 GIGA PQY CF, 512MB SANDISK SD, 802.11b CF
Gentoo, MacosX

asfrank16

  • Newbie
  • *
  • Posts: 25
    • View Profile
Internet sharing Mac osx
« Reply #25 on: June 03, 2004, 01:29:05 pm »
Thank you all who helped.  I now have access via my mac to email and the web.  Thank you.

-Adam Frank

freizugheit

  • Sr. Member
  • ****
  • Posts: 409
    • View Profile
    • http://
Internet sharing Mac osx
« Reply #26 on: June 04, 2004, 06:46:38 am »
asfrank16,

Can You share the steps or configurations you have done with us?

asfrank16

  • Newbie
  • *
  • Posts: 25
    • View Profile
Internet sharing Mac osx
« Reply #27 on: June 04, 2004, 09:09:51 am »
I used the steps outlines by ericwork above exactly (I had to create the directory and three files myself).  Then I was able to connect.  I also think part of my problem was that I had the power saving features on, which terminated the connection whenever the mac went into power save mode (although this IS NOT what stopped me from connecting originally).  Hope this helps.

-Adam

Ovi

  • Newbie
  • *
  • Posts: 27
    • View Profile
    • http://
Internet sharing Mac osx
« Reply #28 on: June 09, 2004, 03:45:28 am »
Hi
I tried also to acces my mail from my SLA-300 using the shared MAC ethernet but it does not work. I have sharing enabled on my Mac, the correct gw on my zaurus, the correct DNS server on my zaurus and the NAT modifications on my Mac. I can even ping the DNS server but when trying to get the mail it always complains about \"unknown host\". Bellow I attached the output of \"ifconfig\" on my Mac:

lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
        inet6 ::1 prefixlen 128
        inet6 fe80::1 prefixlen 64 scopeid 0x1
        inet 127.0.0.1 netmask 0xff000000
gif0: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
stf0: flags=0<> mtu 1280
en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        inet6 fe80::20a:95ff:fecf:6bea prefixlen 64 scopeid 0x4
        inet 141.xx.xxx.x netmask 0xffffffc0 broadcast 141.xx.xxx.xx
        ether 00:0a:95:cf:6b:ea
        media: autoselect (100baseTX <full-duplex>) status: active
        supported media: none autoselect 10baseT/UTP <half-duplex> 10baseT/UTP <
full-duplex> 10baseT/UTP <full-duplex,hw-loopback> 100baseTX <half-duplex> 100ba
seTX <full-duplex> 100baseTX <full-duplex,hw-loopback> 1000baseTX <full-duplex>
1000baseTX <full-duplex,hw-loopback> 1000baseTX <full-duplex,flow-control> 1000b
aseTX <full-duplex,flow-control,hw-loopback>
fw0: flags=8822<BROADCAST,SMART,SIMPLEX,MULTICAST> mtu 2030
        lladdr 00:0a:95:ff:fe:cf:6b:ea
        media: autoselect <full-duplex> status: inactive
        supported media: autoselect <full-duplex>
en1: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        inet 192.168.129.1 netmask 0xffffff00 broadcast 192.168.129.255
        ether 34:30:30:30:30:00
SLA-300 running 1.50J ROM
32MB Panasonic SD
128MB Sandisk SD

Ovi

  • Newbie
  • *
  • Posts: 27
    • View Profile
    • http://
Internet sharing Mac osx
« Reply #29 on: June 10, 2004, 02:24:38 am »
Hi
On my home setup where I share between my mac and my zaurus the modem line (dynamic IP) I can easily acces the internet from my zaurus even without the NAT files installed (just sharing from System Preferences and add the mac as a default gateway on my zaurus).

On my work setup I have a static IP for my computer and it uses a gateway somewhere on a central server of the lab to acces the net.[/i]
SLA-300 running 1.50J ROM
32MB Panasonic SD
128MB Sandisk SD