Don't like ads? PRO users don't see any ads ;-)
Guest

crisman

By: a guest on Sep 14th, 2009  |  syntax: None  |  size: 1.06 KB  |  hits: 130  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. root@OpenWrt:/etc/config# cat wireless
  2.  
  3. config 'wifi-device' 'wl0'
  4.         option 'type' 'broadcom'
  5.         option 'channel' '5'
  6.         option 'disabled' '0'
  7.         option 'txpower' '21'
  8.  
  9. config 'wifi-iface'
  10.         option 'device' 'wl0'
  11.         option 'network' 'lan'
  12.         option 'mode' 'ap'
  13.         option 'ssid' 'xxxx'
  14.         option 'key' 'xxxxxxxxxxxxxxxx'
  15.         option 'encryption' 'psk'
  16.  
  17. config 'wifi-iface'
  18.         option 'device' 'wl0'
  19.         option 'ssid' 'xxxx'
  20.         option 'network' 'wan'
  21.         option 'mode' 'sta'
  22.         option 'encryption' 'psk'
  23.         option 'key' 'xxxxxxxxxxxxxxxxxxxx'
  24.  
  25.  
  26.  
  27.  
  28. root@OpenWrt:/etc/config# cat network
  29.  
  30. config 'switch' 'eth0'
  31.         option 'vlan0' '0 1 2 3 4 5*'
  32.  
  33. config 'interface' 'loopback'
  34.         option 'ifname' 'lo'
  35.         option 'proto' 'static'
  36.         option 'ipaddr' '127.0.0.1'
  37.         option 'netmask' '255.0.0.0'
  38.  
  39. config 'interface' 'lan'
  40.         option 'type' 'bridge'
  41.         option 'ifname' 'eth0.0'
  42.         option 'proto' 'static'
  43.         option 'ipaddr' '192.168.2.1'
  44.         option 'netmask' '255.255.255.0'
  45.  
  46. config 'interface' 'wan'
  47.         option 'proto' 'pppoe'
  48.         option 'username' 'xxxx'
  49.         option 'password' 'xxxx'
  50.         #option 'ifname' 'wl0'