All pastes #2046180 Raw Edit

Unnamed

public text v1 · immutable
#2046180 ·published 2011-04-13 23:28 UTC
rendered paste body
# /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' '192.168.0.81'
        option 'dns' '192.168.0.1'
        option 'gateway' '192.168.0.1'

config 'interface' 'wan'
        option 'ifname' 'eth1'
        option 'proto' 'dhcp'

config 'switch' 'eth0'
        option 'enable_vlan' '1'

config 'switch_vlan'
        option 'device' 'eth0'
        option 'vlan' '1'
        option 'ports' '0 1 2 3 4'

config 'interface' 'bat0'
        option 'proto' 'static'
        option 'ipaddr' '10.0.1.1'
        option 'netmask' '255.255.255.0'
        option 'dns' '192.168.0.1'

config 'interface' 'mesh0'
        option 'proto' 'static'
        option 'ipaddr' '10.0.1.5'
        option 'netmask' '255.255.255.0'
        option 'dns' '192.168.0.1'

config 'alias'
        option 'interface' 'mesh0'
        option 'proto' 'static'
        option 'ipaddr' '10.64.1.1'
        option 'netmask' '255.255.255.0'
        option 'dns' '192.168.0.1'


# /etc/config/dhcp
config dnsmasq
        option domainneeded     1
        option boguspriv        1
        option filterwin2k      0  # enable for dial on demand
        option localise_queries 1
        option rebind_protection 1  # disable if upstream must serve RFC1918 addresses
        option rebind_localhost 1  # enable for RBL checking and similar services
        #list rebind_domain example.lan  # whitelist RFC1918 responses for domains
        option local    '/lan/'
        option domain   'lan'
        option expandhosts      1
        option nonegcache       0
        option authoritative    1
        option readethers       1
        option leasefile        '/tmp/dhcp.leases'
        option resolvfile       '/tmp/resolv.conf.auto'
        #list server            '/mycompany.local/1.2.3.4'
        #option nonwildcard     1
        #list interface         br-lan
        #list notinterface      lo
        #list bogusnxdomain     '64.94.110.11'

# config dhcp lan
#       option interface        lan
#       option start    100
#       option limit    150
#       option leasetime        12h

config dhcp bat0
        option interface bat0
        option start 100
        option limit 150
        option leasetime 12h

config dhcp wan
        option interface        wan
        option ignore   1


# /etc/config/wireless

config wifi-device  radio0
        option type     mac80211
        option channel  11
        # Note:  This file is normally created by /sbin/wifi detect, which is
        # called by /etc/init.d/network's boot() function, if it doesn't exist.
        # /sbin/wifi detect detects and sets the mac address.
        # option macaddr        74:ea:3a:a0:0b:46

        # Since this file is intended to be more generic, we're not setting the
        # mac address, we're instead setting phy, as per xMff's suggestion.
        option phy      phy0

        option hwmode   11ng
        # option htmode HT20
        option htmode   HT40-
        list ht_capab   SHORT-GI-20
        list ht_capab   SHORT-GI-40
        list ht_capab   TX-STBC
        list ht_capab   RX-STBC1
        list ht_capab   DSSS_CCK-40
        # REMOVE THIS LINE TO ENABLE WIFI:
        # option disabled 1

config wifi-iface
        option network mesh0
        option device radio0
        option mode adhoc
        option ssid AAFreenet
        option encryption none

config wifi-iface
        option device radio0
        option mode monitor