Projecte

General

Perfil

Actions

Config » Historial » Revisió 4

« Anterior | Revisió 4/13 (diferencies) | Següent »
Pau Escrich, 09-01-2013 17:36


Config

config 'qmp' 'interfaces'
#       option 'configure_switch' 'eth0'                    # (uncomment line if available, e.g. WGT634U)
        option 'lan_devices'      'eth0 wlan1 dummy0'       # LAN (dhcp server)
        option 'wan_devices'      'eth1'                    # WAN (dhcp client)
        option 'mesh_devices'     'wlan0 wlan2 eth0 eth1'   # Mesh devices, will be extended by VLAN tag!
        option 'no_vlan_devices'   ''                       # Network devices where we do not want to use VLAN tag (not recommended!)

config 'qmp' 'node'
    option 'primary_device' 'eth0'
    option 'community_id' 'qMp'
    option 'community_node_id' ''
    option 'key' '/tmp/qmp_key'

config 'qmp' 'update'
    option 'url' 'http://fw.qmp.cat/testing'
    option 'images' 'IMAGES'
    option 'devices' 'DEVICES'
    option 'filter' 'sysupgrade'
    option 'preserve' '/etc/config/qmp /etc/shadow /etc/passwd /etc/rc.local /etc/firewall.user /etc/dropbear/* /etc/config/b6m-spread'

# This is for Roaming mode
# Each node assings a non-overlapping DHCP IPv4 ranges over a /16 network on LAN device
config 'qmp' 'non_overlapping'
        option 'ignore'              '0'  
        option 'dhcp_offset'         '2'
        option 'qmp_leasetime'       '1h'

config 'qmp' 'networks'
        option 'dns'                 '141.1.1.1 85.126.4.170 202.83.95.227'
        option 'lan_address'         '172.30.22.1'
        option 'lan_netmask'         '255.255.255.0'

        # means olsr6 use vlantag 10+1, bmx6 use vlantag 10+2
        option 'mesh_protocol_vids'  'olsr6:1 bmx6:2'   
        option 'mesh_vid_offset'     '10'

        # rescue network prefix, the 16 missing bits are taken from device MAC 
    option 'rescue_prefix24'     '169.254' 

        # OLSR (backup protocol) only supports IPv6
        option 'olsr6_mesh_prefix48' 'fd01:0:0'
        option 'olsr6_ripe_prefix48' '2011:0:0'

        # BMX6 (main protocol) runs IPv6 backbone and IPv4 tunneled
        option 'bmx6_mesh_prefix48'  'fd02:0:0'
        option 'bmx6_ripe_prefix48'  '2012:0:0'        # suffix is autoconfigured based on community_node_id
        option 'bmx6_ipv4_prefix24'  '10.202'
#       option 'bmx6_ipv4_address'   '10.202.9.01/24'  # if commented out then option is autoconfigured based on
                                                       # community_node_id and bmx6_ipv4_prefix
    option 'bmx6_tablePrefTuns'  '7000'
    option 'bmx6_tableTuns'      '70'
    option 'bmx6_throwRules'     '1'

        option 'babel_mesh_prefix48' 'fd03:0:0'
    option 'netserver' '1'

config 'qmp' 'tunnels'
        option 'search_ipv4_tunnel'  '0.0.0.0/0'
        option 'search_ipv6_tunnel'  '::/0'
#       option 'offer_ipv4_tunnel'  '0.0.0.0/0'
#       option 'offer_ipv6_tunnel'  '::/0'

config 'qmp' 'wireless'
        option 'driver'  'mac80211'
        option 'country' 'SP'
        option 'bssid'   '02:CA:FF:EE:BA:BE'
config 'qmp' 'interfaces'
#       option 'configure_switch' 'eth0'                    # (uncomment line if available, e.g. WGT634U)
        option 'lan_devices'      'eth0 wlan1 dummy0'       # will be used as is!
        option 'wan_devices'      'eth1'                    # will be used as is!
        option 'mesh_devices'     'wlan0 wlan2 eth0 eth1'   # will be extended by vlan tag!

config 'qmp' 'node'
    option 'primary_device' 'eth0'
    option 'community_id' 'qMp'
    option 'community_node_id' ''
    option 'key' '/tmp/qmp_key'

config 'qmp' 'update'
    option 'url' 'http://fw.qmp.cat/testing'
    option 'images' 'IMAGES'
    option 'devices' 'DEVICES'
    option 'filter' 'sysupgrade'
    option 'preserve' '/etc/config/qmp /etc/shadow /etc/passwd /etc/rc.local /etc/firewall.user /etc/dropbear/* /etc/config/b6m-spread'

config 'qmp' 'non_overlapping'
        option 'ignore'              '0'  # Each node assings a non-overlapping DHCP IPv4 ranges over a /16 network on lan device
        option 'dhcp_offset'         '2'
        option 'qmp_leasetime'       '1h'

config 'qmp' 'networks'
        option 'dns'                 '141.1.1.1 85.126.4.170 202.83.95.227'
        option 'lan_address'         '172.30.22.1'
        option 'lan_netmask'         '255.255.255.0'
        #option 'publish_lan'         '0'
    #option 'niit_prefix96'       '0:0:0:0:0:ffff'        # omit trailing 32 ipv4 bits !
        option 'mesh_protocol_vids'  'olsr6:1 bmx6:2'   # means olsr6 use vlantag 10+1, bmx6 use vlantag 10+2
        option 'mesh_vid_offset'     '10'

    option 'rescue_prefix24'     '169.254' # rescue network prefix, the 16 missing bits are taken from device MAC 

        option 'olsr6_mesh_prefix48' 'fd01:0:0'
        option 'olsr6_ripe_prefix48' '2011:0:0'
        option 'olsr6_ipv4_prefix24' '10.201'
#       option 'olsr6_ipv4_address'  '10.201.9.01'
#       option 'olsr6_ipv4_netmask'  '255.255.255.0'
#       option 'olsr6_6to4_netmask'  '120'

        option 'bmx6_mesh_prefix48'  'fd02:0:0'
        option 'bmx6_ripe_prefix48'  '2012:0:0'        # suffix is autoconfigured based on community_node_id
        option 'bmx6_ipv4_prefix24'  '10.202'
#       option 'bmx6_ipv4_address'   '10.202.9.01/24'  # if commented out then option is autoconfigured based on
                                                       # community_node_id and bmx6_ipv4_prefix
    option 'bmx6_tablePrefTuns'  '7000'
    option 'bmx6_tableTuns'      '70'
    option 'bmx6_throwRules'     '1'

        option 'babel_mesh_prefix48' 'fd03:0:0'
    option 'netserver' '1'

config 'qmp' 'tunnels'
        option 'search_ipv4_tunnel'  '0.0.0.0/0'
        option 'search_ipv6_tunnel'  '::/0'
#       option 'offer_ipv4_tunnel'  '0.0.0.0/0'
#       option 'offer_ipv6_tunnel'  '::/0'

config 'qmp' 'wireless'
        option 'driver'  'mac80211'
        option 'country' 'SP'
        option 'bssid'   '02:CA:FF:EE:BA:BE'

config 'qmp' 'interfaces'
#       option 'configure_switch' 'eth0'                    # (uncomment line if available, e.g. WGT634U)
        option 'lan_devices'      'eth0 wlan1 dummy0'       # will be used as is!
        option 'wan_devices'      'eth1'                    # will be used as is!
        option 'mesh_devices'     'wlan0 wlan2 eth0 eth1'   # will be extended by vlan tag!

config 'qmp' 'node'
    option 'primary_device' 'eth0'
    option 'community_id' 'qMp'
    option 'community_node_id' ''
    option 'key' '/tmp/qmp_key'

config 'qmp' 'update'
    option 'url' 'http://fw.qmp.cat/testing'
    option 'images' 'IMAGES'
    option 'devices' 'DEVICES'
    option 'filter' 'sysupgrade'
    option 'preserve' '/etc/config/qmp /etc/shadow /etc/passwd /etc/rc.local /etc/firewall.user /etc/dropbear/* /etc/config/b6m-spread'

config 'qmp' 'non_overlapping'
        option 'ignore'              '0'  # Each node assings a non-overlapping DHCP IPv4 ranges over a /16 network on lan device
        option 'dhcp_offset'         '2'
        option 'qmp_leasetime'       '1h'

config 'qmp' 'networks'
        option 'dns'                 '141.1.1.1 85.126.4.170 202.83.95.227'
        option 'lan_address'         '172.30.22.1'
        option 'lan_netmask'         '255.255.255.0'
        #option 'publish_lan'         '0'
    #option 'niit_prefix96'       '0:0:0:0:0:ffff'        # omit trailing 32 ipv4 bits !
        option 'mesh_protocol_vids'  'olsr6:1 bmx6:2'   # means olsr6 use vlantag 10+1, bmx6 use vlantag 10+2
        option 'mesh_vid_offset'     '10'

    option 'rescue_prefix24'     '169.254' # rescue network prefix, the 16 missing bits are taken from device MAC 

        option 'olsr6_mesh_prefix48' 'fd01:0:0'
        option 'olsr6_ripe_prefix48' '2011:0:0'
        option 'olsr6_ipv4_prefix24' '10.201'
#       option 'olsr6_ipv4_address'  '10.201.9.01'
#       option 'olsr6_ipv4_netmask'  '255.255.255.0'
#       option 'olsr6_6to4_netmask'  '120'

        option 'bmx6_mesh_prefix48'  'fd02:0:0'
        option 'bmx6_ripe_prefix48'  '2012:0:0'        # suffix is autoconfigured based on community_node_id
        option 'bmx6_ipv4_prefix24'  '10.202'
#       option 'bmx6_ipv4_address'   '10.202.9.01/24'  # if commented out then option is autoconfigured based on
                                                       # community_node_id and bmx6_ipv4_prefix
    option 'bmx6_tablePrefTuns'  '7000'
    option 'bmx6_tableTuns'      '70'
    option 'bmx6_throwRules'     '1'

        option 'babel_mesh_prefix48' 'fd03:0:0'
    option 'netserver' '1'

# Offer/Fetch networks in the Mesh
config 'qmp' 'tunnels'
        option 'search_ipv4_tunnel'  '0.0.0.0/0'
        option 'search_ipv6_tunnel'  '::/0'
#       option 'offer_ipv4_tunnel'  '0.0.0.0/0'
#       option 'offer_ipv6_tunnel'  '::/0'

# Main wireless configuration (common for all wifi devices)
config 'qmp' 'wireless'
        option 'driver'  'mac80211'
        option 'country' 'SP'
        option 'bssid'   '02:CA:FF:EE:BA:BE'

# First wifi device
config 'wireless'
    option 'mode' 'adhoc'
    option 'name' 'qMp.lab104'
    option 'txpower' '14'
    option 'channel' '140-'
    option 'mac' '90:a4:de:c0:bb:c3'
    option 'device' 'wlan0'

# Second wifi device
config 'wireless'
    option 'mode' 'ap'
    option 'name' 'qMp'
    option 'txpower' '17'
    option 'channel' '9+'
    option 'mac' '00:80:48:78:75:23'
    option 'device' 'wlan1'

Actualitzat per Pau Escrich fa casi 12 anys · 4 revisions