Host only networking with Suse 10.0
Found out how to do this with Suse 10.0 as host and WinXP as guest OS. Here from Jos van Kan of the suse-e mail list: (just change wlan0 to eth0 or what ever you network card is called and he wrote it for Suse 9.3, but it works for 10.0)
By running parallells-config or /usr/lib/parallels/autostart/drivers_start a virtual network interface (vnic0) has been established with (local) IP addres 10.xxx.xxx.xxx Run /sbin/ifconfig to find out this ipaddress. For me this is 10.37.129.2 and the domain will be 10.37.129.0/24.
Make sure the SuSEfirewall is running, this guarantees that the ip_tables module has been loaded.
Change to root.
1. Set ip forwarding
sysctl -w net.ipv4.ip_forward=1
Edit /etc/sysconfig/sysctl and set IP_FORWARD="yes"
This guarantees that ip forwarding will be on after reboots.
2. Set ip masquerading for vnic0
Edit /etc/sysconfig/SuSEfirewall2
a. Add vnic0 to FW_DEV_INT and make sure FW_DEV_EXT="wlan0"
b. Set FW_ROUTE="yes"
c. Set FW_MASQUERADE="yes"
d. Make sure FW_MASQ_DEV="$FW_DEV_EXT"
e. Add the vnic0 domain to FW_MASQ_NETS, in my case:
FW_MASQ_NETS="10.37.129.0/24"
3. Restart the firewall
rcSuSEfirewall restart
4.
In the guest/OS set up a LAN, with IP in th vnic0 domain but not 1 or 2 (they have been used already), say 10.37.129.3, mask 255.255.255.0 and gateway the (local) IP of the wlan0 (in my case that would be 192.168.2.3)
All should work now. Fire up a console in the guest os and
ping 10.37.129.3 (Should always work, unless the drivers havent been installed)
ping your wlan
ping your wireless router
ping the internet
I might add that if you go to System, Monitor, Network interfaces, it will show your network interfaces where Yast, Network devices will not show vnic0. I added it under Network devices.