Team Internet/WirelessAccessPoints

From Whitespace (Hackerspace Gent)
< Team Internet
Revision as of 04:43, 24 September 2011 by Jaroslov (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

bridging wired & wireless interface[edit]

we bridge the wired and wireless interfaces, no NAT is necessary (the devices are just extending our local network).

basically this is the default OpenWRT configuration.

# cat /etc/config/system 
config system
        option hostname 0x20-AP-ch3
        option timezone UTC
# cat /etc/config/wireless 
config 'wifi-device' 'wifi0'                                                              
        option 'type' 'atheros'                                                           
        option 'disabled' '0'                                                             
        option 'channel' '3'                                                              
        option 'diversity' '0'                                                            
                                                                                          
config 'wifi-iface'                                                                       
        option 'device' 'wifi0'                                                           
        option 'network' 'lan'                                                            
        option 'mode' 'ap'                                                                
        option 'ssid' '0x20'                                                              
        #option 'encryption' 'none'                                                       
        option 'encryption' 'psk2'                                                        
        option 'key' '*************'                          
# cat /etc/config/network
config 'interface' 'loopback'
        option 'ifname' 'lo'
        option 'proto' 'static'
        option 'ipaddr' '127.0.0.1'
        option 'netmask' '255.0.0.0'

config 'interface' 'lan'
        option 'ifname' 'eth0'
        option 'type' 'bridge'
        option 'proto' 'static'
        option 'netmask' '255.255.255.0'
        option 'ipaddr' '172.22.32.12'
        option 'gateway' '172.22.32.14'
        option 'dns' '172.22.32.14'        
        option 'defaultroute' '0'
        option 'peerdns' '0'