Here's what I do.
On the server
- edit dnsmasq.conf as described in the FAQ,
- run netcardconfig and assign a static IP address to the network card (e.g., 192.168.0.1), confirm default values for network mask and broadcast, but delete default values for gateway and nameserver, these fields must be empty,
- start dhcp server /etc/init.d/dnsmasq start,
- enable IP forwarding/masquerading.
The appropriate commands are:
Code:
su
netcardconfig
mcedit /etc/dnsmasq.conf
/etc/init.d/dnsmasq start
masquerade
Important: By default, masquerade will forward client requests to interface ppp0. If you use another interface to connect to the Internet (e.g., eth1), you must edit the script and replace "ppp0" with "eth1".
Code:
mcedit /usr/sbin/masquerade
On the client just run netcardconfig and set the network card to use DHCP. |