This is an old revision of the document!
sudo apt-get install bridge-utils hostapd
sudo hostapd /etc/hostapd/hostapd.conf
##### # Loopback interface ##### iface lo inet loopback ##### # xDSL PPPoE interface ##### iface dsl-provider inet ppp pre-up /sbin/ifconfig eth1 up up /etc/wide-dhcpv6/dhcp6c-ifupdown start down /etc/wide-dhcpv6/dhcp6c-ifupdown stop provider dsl-provider ##### # IPv4 network interfaces ##### # --- External NIC --- # --- Internal NIC --- iface eth0 inet static address 192.168.80.1 netmask 255.255.255.0 pre-up sysctl -q -e -w net.ipv6.conf.eth0.disable_ipv6=1 # DNS Settings for Internal Net dns-nameservers 192.168.80.1 dns-search LinuxMCE # --- Wlan0 --- iface wlan0 inet static address 192.168.81.1 netmask 255.255.255.0 pre-up sysctl -q -e -w net.ipv6.conf.eth0.disable_ipv6=1 dns-nameservers 192.168.81.1 #iface br0 inet static # bridge_ports eth0 wlan0 # address 192.168.80.1 # netmask 255.255.255.0 # # DNS Settings for Internal Net # dns-nameservers 192.168.80.1 # dns-search LinuxMCE ##### # Activating interfaces ##### auto dsl-provider eth0 wlan0 br0 lo
# # Sample configuration file for ISC dhcpd for Debian # # $Id: dhcpd.conf,v 1.4.2.2 2002/07/10 03:50:33 peloy Exp $ # # option definitions common to all supported networks... option domain-name-servers 192.168.80.1; option voip-tftp-server code 150 = ip-address; option voip-tftp-server 192.168.80.1; authoritative; ddns-update-style interim; ddns-updates on; ddns-domainname "LinuxMCE"; ddns-rev-domainname "in-addr.arpa."; update-static-leases on; allow unknown-clients; use-host-decl-names on; include "/etc/bind/rndc.key"; # Use what key in what zone zone LinuxMCE. { primary 127.0.0.1; key "rndc-key"; } option domain-name "LinuxMCE"; option routers 192.168.80.1; option subnet-mask 255.255.255.0; # lease IPs for 1 day, maximum 1 week default-lease-time 86400; max-lease-time 604800; allow booting; allow bootp; option space pxelinux; option pxelinux.magic code 208 = string; option pxelinux.configfile code 209 = text; option pxelinux.pathprefix code 210 = text; option pxelinux.reboottime code 211 = unsigned integer 32; subnet 192.168.80.0 netmask 255.255.255.0 { next-server 192.168.80.1; filename "/tftpboot/pxelinux.0"; option pxelinux.reboottime = 30; default-lease-time 86400; max-lease-time 604800; pool { allow unknown-clients; range 192.168.80.129 192.168.80.150; range 192.168.80.152 192.168.80.199; } zone 80.168.192.in-addr.arpa. { primary localhost; key "rndc-key"; } zone LinuxMCE. { primary localhost; key "rndc-key"; } } # option routers 192.168.81.1; # option domain-name-servers 192.168.81.1; #subnet 192.168.81.0 netmask 255.255.255.0 { # next-server 192.168.80.1; # filename "/tftpboot/pxelinux.0"; # option pxelinux.reboottime = 30; # option routers 192.168.81.1; # option domain-name-servers 192.168.81.1; # ## default-lease-time 86400; # max-lease-time 604800; # pool { # allow unknown-clients; # range 192.168.81.129 192.168.81.150; # range 192.168.81.152 192.168.81.199; # } # # zone 80.168.192.in-addr.arpa. { # primary localhost; # key "rndc-key"; # } # zone LinuxMCE. { # primary localhost; # key "rndc-key"; # } # #} # PXE booting machines group { next-server 192.168.80.1; filename "/tftpboot/pxelinux.0"; option pxelinux.reboottime = 30; } # regular machines group { # Raspberry Pi Model B as MD (78) host pc1 { hardware ethernet B8:27:EB:91:2A:45; fixed-address 192.168.80.2; } # NAS - NAS (27) host pc2 { hardware ethernet 00:11:32:1D:00:07; fixed-address 192.168.80.151; } } # The following machines did not have a valid MAC address assigned in the database. # You may want to correct this manually via the web admin. # CORE (1) has bad mac address: # Custom additions to the dhcpd conf file should be maintained in this # extra file. include "/etc/dhcp/dhcpd-extra.conf";
INTERFACES="eth0 wlan0"
interface=wlan0 bridge=br0 driver=nl80211 ssid=test hw_mode=g channel=1 macaddr_acl=0 auth_algs=1 ignore_broadcast_ssid=0 wpa=3 wpa_passphrase=1234567890 wpa_key_mgmt=WPA-PSK wpa_pairwise=TKIP rsn_pairwise=CCMP