Hi everyone,
I'm trying to configure an Ad-Hoc network on my laptop for my cellphone.
The laptop connects to the university WiFi network through wlan1. The university WiFi network authorizes access through MAC address. Therefore, my cellphone cannot connect to the university WiFi network.
I've created an Ad-Hoc network with laptop's wlan0, which is configured as:
auto wlan0
iface wlan0 inet static
address 192.168.10.1
netmask 255.255.255.0
wireless-channel 1
wireless-essid chen
wireless-mode ad-hoc
wireless-key somepasswd
I've also set up an isc-dhcp-server, which listens only to wlan0. The subnet is configured as:
subnet 192.168.10.0 netmask 255.255.255.0 {
authoritative;
range 192.168.10.2 192.168.10.254;
default-lease-time 3600;
max-lease-time 3600;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.10.255;
option routers 192.168.10.1;
option domain-name-servers 8.8.8.8;
option domain-name "
aann.tk";
}
So mycell can now connect to the ad-hoc network. I can ping the cellphone from the laptop. However, the cellphone cannot access internet. I tried to bridge wlan0 and wlan1, but failed. Apparently wireless interfaces cannot be bridged.