All pastes #632479 Raw Edit

Zeug

public text v1 · immutable
#632479 ·published 2007-07-24 21:47 UTC
rendered paste body
##### VAP

##### /etc/config/network

# Copyright (C) 2006 OpenWrt.org

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 eth1 eth2'
        option type     bridge
        option proto    static
        option ipaddr   '192.168.178.3'
        option netmask  255.255.255.0
        option gateway  '192.168.178.1'
        option dns      '192.168.178.1'


##### /etc/config/wireless

config wifi-device  wifi0
        option type     atheros
        option channel  5

config wifi-iface
        option device   wifi0
        option network  lan
        option mode     'ap'
        option ssid     OpenWrt
        option encryption       'psk2'
        option bssid    '00:18:84:14:39:95'
        option wds      '1'
        option key      'xxxxxxxxxx'

config "wifi-iface" "cfg3"
        option device   'wifi0'
        option mode     'ap'
        option ssid     'OpenWrt-TEST'
        option encryption       'none'
        option network  'lan'





##### Bridged client (Fonera)

##### /etc/config/network

# Copyright (C) 2006 OpenWrt.org

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 ipaddr   '192.168.178.4'
        option netmask  255.255.255.0
        option gateway  '192.168.178.1'
        option dns      '192.168.178.1'

#config interface wan
#       option ifname ath0
#       option proto  dhcp


##### /etc/config/wireless

config wifi-device  wifi0
        option type     atheros
#       option channel  5
        option disabled '0'

        # REMOVE THIS LINE TO ENABLE WIFI:

config wifi-iface
        option device   wifi0
        option network  lan
        option mode     'sta'
        option ssid     'OpenWrt-TEST'
        option encryption 'none'

        # option encryption     'psk2'
        # option bssid  '00:18:84:14:39:95'
        option wds      '1'
        # option key    'xxxxxxxxxx'