I created the following startup script:
Code: Select all
#/usr/bin/sh#www.pearltrees.com/s243a/shareinternet-puppylinux-pet/id15126192
#requires ipt_MASQUERADE_tahrpup-k3.14.20.pet
#See: murga-linux.com/puppy/viewtopic.php?t=96178&start=1140
ifconfig eth0 up #Bring the interface up
ifconfig eth0 192.168.2.1 #assign an ip adress to the interface
cd ~/my-applications/shareInternetsh AppRun #Start the Internet Sharing
Code: Select all
root# sh Star*
[ -f /etc/dnsmasq.conf ] && dnsmasq -a "192.168.2.1" -F "192.168.2.100,192.168.2.200,60000" -l "/tmp/dnsmasq.leases.192.168.2"
On my d-link router I set the internet connection as DHCP which produced:
Code: Select all
IP Address: 192.168.2.152
Subnet Mask: 255.255.255.0
Default Gateway: 192.168.2.1
Primary DNS Server: 192.168.2.1
under
menu/setup/internet connection wizard
selected "Wired or wireless LAN"
And then
Selected the bottom choice (i.e. "Network Wizard")
and than selected "Static IP"
I put in
Code: Select all
IP address = 192.168.2.1
Net Mask = 255.255.255.0
Primary Name Server = 192.168.0.1 (see etc/resolv.conf)
Code: Select all
Default Gateway = 0.0.0.0
Code: Select all
Default Gateway = 192.168.0.1