All pastes #597070 Raw Edit

Someone

public text v1 · immutable
#597070 ·published 2007-06-30 11:54 UTC
rendered paste body
root@OpenWrt:~# ifdown wlan
root@OpenWrt:~# ifdown wlancli
root@OpenWrt:~# wifi down
root@OpenWrt:~# ifup wlan
root@OpenWrt:~# ifup wlancli
root@OpenWrt:~# wifi up
root@OpenWrt:~# Command line parsing error. Quitting...
sh: Interface: not found
sh: Interface: not found


/etc/config/wireless:
config wifi-device              wl0
        option type             broadcom
        option maxassoc         128
        option channel          6
        option disabled         0

config wifi-iface
        option network          wlan
        option device           wl0
        option mode             ap
        option ssid             Curwick
        option encryption       psk2
        option key              wI-rel355

config wifi-iface
        option network          wlancli
        option device           wl0
        option mode             sta
        option ssid             linksys
        option encryption       none


/etc/config/network:
#### VLAN configuration 
config switch eth0
        option vlan0    "0 1 2 3 4 5u"

#### Loopback configuration
config interface loopback
        option ifname   "lo"
        option proto    static
        option ipaddr   127.0.0.1
        option netmask  255.0.0.0

#### LAN configuration
config interface lan
        option type     bridge
        option ifname   "eth0"
        option macaddr  "00:1A:70:44:84:75"
        option proto    static
        option ipaddr   192.168.1.1
        option netmask  255.255.255.0

### WLAN configuration
config interface wlan
        option proto    static
        option ipaddr   192.168.3.1
        option netmask  255.255.255.0

### WLAN-Cli configuration
config interface wlancli
        option proto    static
        option ipaddr   192.168.2.2
        option netmask  255.255.255.0

#### WAN configuration
config interface        wan
        option ifname   "eth1"
        option macaddr  "00:0F:B0:FE:9D:F1"
        option proto    dhcp

root@OpenWrt:~# iwconfig
wl0       IEEE 802.11-DS  ESSID:"linksys"  
          Mode:Master  Frequency:2.437 GHz  Access Point: 00:16:B6:44:DD:D3   
          Tx-Power:19 dBm   
          Link Noise level:-96 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:96  Invalid misc:0   Missed beacon:0

wl0.1     no wireless extensions.

root@OpenWrt:~# ifconfig
wl0       Link encap:Ethernet  HWaddr 00:1A:70:44:84:FF  
          inet addr:192.168.2.2  Bcast:192.168.2.255  Mask:255.255.255.0
          inet6 addr: fe80::21a:70ff:fe44:84ff/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:7440 errors:0 dropped:0 overruns:0 frame:19028
          TX packets:59 errors:96 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:545853 (533.0 KiB)  TX bytes:5170 (5.0 KiB)
          Interrupt:2 Base address:0x2000 

wl0.1     Link encap:Ethernet  HWaddr 00:1A:70:44:84:FF  
          inet addr:192.168.3.1  Bcast:192.168.3.255  Mask:255.255.255.0
          inet6 addr: fe80::21a:70ff:fe44:84ff/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:76 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 B)  TX bytes:6808 (6.6 KiB)