Okey!
$ nano /etc/default/dhcp
INTERFACES="eth0"
$ nano /etc/default/dhcpd
INTERFACES="eth0"
$ nano /etc/dhcp/dhcpd.conf
default-lease-time 600;
max-lease-time 7200;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.2.255;
option routers 192.168.2.1;
option domain-name-servers 192.168.1.1;
subnet 192.168.2.0 netmask 255.255.255.0 {
interface wlan0;
range 192.168.2.2 192.168.2.20;
}
iwconfig wlan0 mode ad-hoc
iwconfig wlan0 channel 1
iwconfig wlan0 Bit 54Mb/s
iwconfig wlan0 essid "linux"
ifconfig wlan0 192.168.2.1 netmask 255.255.255.0 up
sudo service dhcpd restart
What do I get?
Internet from my ADSL router (configured as DHCP) > notebook (eth0) > wi-fi AD-HOC (wlan0) > Galaxy TAB!