This procedure seems easy, but I did encounter some problems with networking. In the following, I will summarize the procedure for setting up networking under Windows XP (SP1).
First of all, here are some useful links you might visit for troubleshooting:
- www.pearpc.net: The community site for PearPC, including FAQs and most noteably the forums,
- dev.realistanew.com/win32net/: The Windows Networking Guide for PearPC,
- forums.pearpc.net/viewtopic.php?t=1499: Forum topic “Trying to connect PearPC to the iternet behind a router”
OK, now on to the steps for getting networking working:
- Install/Extract PearPC (0.3.1) for Windows w/SDL, create a configuration (without networking) for PearPC, and install and configure MacOS X (10.3 or higher), again without bothering about networking. So, now you’ve MacOS X running… Switch it off, since now’re setup up networking in the next steps.
- Download OpenVPN 2.0 beta. Then run the OpenVPN installer and only install TAP-Win32 – i.e. deselect all other components! This will add a virtual network adapter to your Windows network connections. Don’t bother if its status says something like “network cable not attached” – that’s OK. You might like to rename the new adapter to e.g. “TAP-Win32” since it’s easier to identify it afterwards.
- Start the command prompt (“cmd”) and enter “ipconfig /release”. (In case of problems you might disconnect the network cable first.)
- Open your Control Panel and go to Network Connections. Right click on your Internet connection of your primary network card/adapter through which you access the Internet (i.e. connect to your router) – NOT your virtual adapter (“TAP-Win32”). Turn on Internet Connection Sharing (ICS) by clicking on “Allow other network users to connect through this computer’s internet connection”. Press OK.
- Right click on the TAP connection. Go to TCP/IP in the list and click Properties. Enter as the IP adress “172.16.0.1” and as the subnet mask “255.240.0.0”. Leave all other fields empty and click OK.
- Enter “ipconfig /renew” (command prompt). (If you have disconnected the network cable, then reconnect it.)
- Now edit your PearPC config file (e.g. in a text editor or through a GUI) and make sure that pci_rtl8139_installed = 1 and pci_rtl8139_mac = “de:ad:ca:fe:12:34” are present. (In a GUI-based configurator select Realtek card which will automatically set pci_rtl8139_installed = 1.)
- Ok, now for the fun part. Open PearPC, start MacOS X and go to System Preferences and click on Network. A window should popup saying it detected the card. Dismiss the box and click ‘Apply Now’.
- Click on the “Show” dropdown box and select “PCI Ethernet Slot pci10ex,8139, Port 4”. For “Configure IPv4” select “Manually” and set these values: IP Adress is 172.16.0.2, subnet mask is 255.0.0.0, Router is 172.16.0.1, and DNS is 172.16.0.1. Finally click on the “Activate” button.
- Now open Safari. If things went good it should load the page. Success!
I hope this helps.
PS: A useful keyboard tip – if you switch from Mac to Windows (e.g. with Alt-Tab) and then back again, you’ll notice that MacOS will not recognize your keys or just behave crazy. Use the “poor man’s reset” Alt-Strg-Shift to reset your keyboard under the MacOS.