I need my MacBook Air (Mavericks 10.9.2) to share the Internet connection (wi-fi;en0) with BeagleBone Black (BBB) which is in the subnet (en6).


$ ifconfig
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
    inet6 ::1 prefixlen 128 
    inet netmask 0xff000000 
    inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1 
    nd6 options=1<PERFORMNUD>
gif0: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
stf0: flags=0<> mtu 1280
    ether 7c:d1:c3:ee:f3:dd 
    inet6 fe80::7ed1:c3ff:feee:f3dd%en0 prefixlen 64 scopeid 0x4 
    inet netmask 0xffffff00 broadcast
    nd6 options=1<PERFORMNUD>
    media: autoselect
    status: active
    ether 32:00:18:d5:b1:40 
    media: autoselect <full-duplex>
    status: inactive
    ether 90:59:af:58:5e:96 
    inet netmask 0xfffffffc broadcast
    media: autoselect
    status: active
    ether 7e:d1:c3:ee:e2:00 
        id 0:0:0:0:0:0 priority 0 hellotime 0 fwddelay 0
        maxage 0 holdcnt 0 proto stp maxaddr 100 timeout 1200
        root id 0:0:0:0:0:0 priority 0 ifcost 0 port 0
        ipfilter disabled flags 0x2
    member: en5 flags=3<LEARNING,DISCOVER>
            ifmaxaddr 0 port 5 priority 0 path cost 0
    nd6 options=1<PERFORMNUD>
    media: <unknown type>
    status: inactive
    ether 0e:d1:c3:ee:f3:dd 
    media: autoselect
    status: inactive

Here are my Internet Sharing settings

Internet Sharing settings

I'm unable to ping from BBB though I shared wi-fi with BeagleBoneBlack. Whether I share internet connection or not ipfw gives same result

$ sudo ipfw list
65535 allow ip from any to any

I tried disabling firewall in vain. I could share my internet connection from Ubuntu machine through iptables. Here I need to masquerade packets through gateway interface.

Should I have configured anything like a NAT on the bridge between en0 (internet access) and en6?

  • is there a reason you showing the Internet sharing OFF
    – Ruskes
    Commented May 19, 2014 at 10:21
  • I want to share internet connection only with BeagleBoneBlack . Anyway I tried enabling sharing with all interfaces.
    – Necktwi
    Commented May 19, 2014 at 10:27
  • @Buscar notice Internet sharing off is greyed out
    – Necktwi
    Commented May 19, 2014 at 10:30
  • sorry my mistake...the inet showing (ifconfig) and the inet you wrote down do not match for en6
    – Ruskes
    Commented May 19, 2014 at 10:33
  • en6 ipv4 address is and is in subnet r8?
    – Necktwi
    Commented May 19, 2014 at 10:36

1 Answer 1


The Internet Sharing service will handle all the translation requirements by itself. For some reason, though, it's necessary to use the Network Preferences pane to manually confirm the information the bridging interface has already come up with on its own. (Since the BBB has its own DHCP server, perhaps the Mac is willing to accept the BBB's DHCP offer in the 192.168.7.x subnet as a suggestion, but then reinforces the fact that as the DNS it holds the keys to the external world, thereby imposing its configuration on the communication process. I don't know. I do digress, however.)

After turning on Internet Sharing for the BBB in the Sharing pane, switch to the Network pane of System Preferences. Select the en6 service in the lefthand window, click "Advanced" at the lower right, and select the "TCP/IP" pane. If it's not already filled in, Under "Configure IPv4," select "Manually" from the drop-down menu, enter for both the IPv4 and router addresses and as the subnet mask. This leaves for the BBB and as the broadcast address. You can ignore the IPv6 configuration section. Next, select the "DNS" pane from the top row of tabs. Click on the '+' mark just below the window and add In the right hand window, add "local" (without the quote marks) to the search domains.

FYI, I'm sure you'll want to know that ipfw has been deprecated and replaced by pfctl in OS 10.9.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .