All pastes #376344 Raw Edit

Unnamed

public text v1 · immutable
#376344 ·published 2007-02-28 23:47 UTC
rendered paste body
root@OpenWrt:~# cat /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 proto    dhcp
        option type     bridge
        option hostname fon

root@OpenWrt:~# cat /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 hidden   0
        option encryption psk
        option key      ']t(XXXXXXXXXXXXX|>--<m0T'



I don't know if it matters but I removed resolv.conf because I wanted to ping hosts in my LAN by names:

root@OpenWrt:~# rm resolv.conf && ln -s resolv.conf.auto resolv.conf
root@OpenWrt:~# ll
drwxr-xr-x    2 root     root           60 Jan  1  2000 lock
drwxr-xr-x    2 root     root           80 Jan  1  2000 log
lrwxrwxrwx    1 root     root           16 Mar  1 00:28 resolv.conf -> resolv.conf.auto
-rw-r--r--    1 root     root           39 Jan  1  2000 resolv.conf.auto
drwxr-xr-x    2 root     root          120 Mar  1 00:31 run
drwxr-xr-x    3 root     root           60 Mar  1 00:09 spool

root@OpenWrt:~# ps ax
  PID  Uid     VmSize Stat Command
    1 root        392 S   init
    2 root            SWN [ksoftirqd/0]
    3 root            SW< [events/0]
    4 root            SW< [khelper]
    5 root            SW< [kthread]
   20 root            SW< [kblockd/0]
   31 root            SW  [pdflush]
   32 root            SW  [pdflush]
   33 root            SW< [kswapd0]
   34 root            SW< [aio/0]
   44 root            SW  [mtdblockd]
   57 root        352 S   syslogd -C16
   60 root        288 S   klogd
   64 root        236 S   init
   75 root            SWN [jffs2_gcd_mtd1]
  291 root        208 S < udhcpc -t 0 -i br-lan -b -p /var/run/br-lan.pid -R
  435 root            SW< [rpciod/0]
  507 root        324 S   crond -c /etc/crontabs
  513 root        392 S   /usr/sbin/dropbear -p 22
  536 nobody      344 S   dnsmasq -C /proc/self/fd/0
  540 root        556 S   /usr/sbin/dropbear -p 22
  541 root        556 S   -ash
  748 root        468 S   hostapd -B /var/run/hostapd-ath0.conf
  756 root        372 R   ps ax

root@OpenWrt:~# ifconfig
ath0      Link encap:Ethernet  HWaddr 00:18:84:1A:6D:ED
          UP BROADCAST RUNNING MULTICAST  MTU:2290  Metric:1
          RX packets:1018 errors:0 dropped:0 overruns:0 frame:0
          TX packets:964 errors:0 dropped:35 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:90461 (88.3 KiB)  TX bytes:314398 (307.0 KiB)

br-lan    Link encap:Ethernet  HWaddr 00:18:84:1A:6D:EC
          inet addr:192.168.2.111  Bcast:192.168.2.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2109 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1301 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:131854 (128.7 KiB)  TX bytes:215859 (210.7 KiB)

eth0      Link encap:Ethernet  HWaddr 00:18:84:1A:6D:EC
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2639 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2138 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:460572 (449.7 KiB)  TX bytes:306229 (299.0 KiB)
          Interrupt:4 Base address:0x1000

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

wifi0     Link encap:Ethernet  HWaddr 00:18:84:1A:6D:ED
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1260 errors:0 dropped:0 overruns:0 frame:165
          TX packets:1136 errors:22 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:199
          RX bytes:139539 (136.2 KiB)  TX bytes:388973 (379.8 KiB)
          Interrupt:3 Memory:b0000000-b00ffffc

root@OpenWrt:~# brctl show
bridge name     bridge id               STP enabled     interfaces
br-lan          8000.0018841a6dec       no              eth0
                                                        ath0