SheepShaver V2.2 Installation and User's Guide (Linux)

Networking with a 2.6 kernel, using the tun device

Back to index



1. Make sure you have the following preference items set up correctly in ~/.sheepshaver_prefs:

-ether tun
-etherconfig /path/to/tunconfig (most likely like "your path to"/BasiliskII/src/Unix/tunconfig)

2. Disable the gui, because settings for network could overwrite your preferences

3. Make sure you have sudo working for your user for the following binaries:

/sbin/ifconfig
/sbin/iptables

Or you will have to run SheepShaver as root.
( on SuSe 9.2 I had to copy one of these files from /usr/sbin to /sbin )

4. Check the IP of the tun0 device with /sbin/ifconfig.
(Most of the time it will report 172.20.40.1)

5. Next, on the MacOS side, set up a static IP address in this form: 172.20.XX.2 , where XX is generally 40 as you may have found with "ifconfig".
Use the ip address of the tun device as router address and enter your isp's dns ip-address as dns entries.

6. Start "ifconfig" when SheepShaver has started, and check for packages being RX-ed and TX-ed from the tun device.

7. If not, you might also need to issue the following command(s) to get the network going:

echo 1 > /proc/sys/net/ipv4/ip_forward
(try this one first)

or even these:
echo 1 > /proc/sys/net/ipv4/conf/eth0/proxy_arp
echo 1 > /proc/sys/net/ipv4/conf/tun0/proxy_arp
 


SheepShaver User's Guide