Network configuration is specified in /etc/network/interfaces. This example configures the WAN on eth0 and the WLAN on wlan0 which is just enough to get up and running. Other LAN interfaces will be added later.
The script etc/init.d/hostapd is run at startup and applies WLAN settings specified in /etc/hostapd/hostapd.wlan0.conf
root@voyage:~# cat /etc/network/interfaces
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp # assigns
dynamic address on WAN interface
post-up
pon eircom # starts eircom PPPoE session after
interface is up
auto wlan0
iface wlan0 inet static
address
192.168.11.254
netmask
255.255.255.0
broadcast
192.168.11.255
hostapd
/etc/hostapd/hostapd.wlan0.conf # configures WLAN interface
up nat.sh
wlan0 eth0 “192.168.11.0/24" # configures NAT
The script etc/init.d/hostapd is run at startup and applies WLAN settings specified in /etc/hostapd/hostapd.wlan0.conf
root@voyage:~# cat /etc/hostapd/hostapd.wlan0.conf
interface=wlan0
driver=nl80211
logger_syslog=-1
logger_syslog_level=2
logger_stdout=-1
logger_stdout_level=2
debug=4
channel=6
hw_mode=g
macaddr_acl=0
auth_algs=3
eapol_key_index_workaround=0
eap_server=0
wpa=3
ssid=LDK
wpa_passphrase=xxxxxxxx
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP
eapol_version=1
bridge=br0
interface=wlan0
driver=nl80211
logger_syslog=-1
logger_syslog_level=2
logger_stdout=-1
logger_stdout_level=2
debug=4
channel=6
hw_mode=g
macaddr_acl=0
auth_algs=3
eapol_key_index_workaround=0
eap_server=0
wpa=3
ssid=LDK
wpa_passphrase=xxxxxxxx
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP
eapol_version=1
bridge=br0
No comments:
Post a Comment