All:
thanks to changes suggested here, I now can "ping" from the command line internally on linux of my asus router (recall I am trying to connect a usb sensor to the internet and have it send info via xmpp). I can ping now and seem to have an internet path from linux. however, the LAN ports on the back have no connection to the Internet.. I seem to be getting close!
My recent changes were to switch my static IP to the same subnet as my home router (10.0.*) and to switch the option config to wan from lan in my wireless config..
I also note that despite having a connection via ping, my in-home router shows no DHCP connection for 10.0.1.10 (my ASUS router) so that is puzzling..
so what is the missing magic piece to actually have internet access from within the router (eg at the command line) AND on the back LAN ports? I thought it was going to be as simple as switching 'wan' to 'lan' in the config - since its those ports I want - but that doesnt work..
thanks again for all the help here..
--
current /etc/config/network:
config 'switch' 'eth0'
option 'vlan0' '1 2 3 4 5*'
# option 'vlan1' '0 5'
config 'interface' 'loopback'
option 'ifname' 'lo'
option 'proto' 'static'
option 'ipaddr' '127.0.0.1'
option 'netmask' '255.0.0.0'
config 'interface' 'wan'
option 'type' 'bridge'
option 'ifname' 'eth0.0'
option 'proto' 'static'
option 'ipaddr' '10.0.1.10'
option 'netmask' '255.255.255.0'
option 'gateway' '10.0.1.1'
option 'dns' '10.0.1.1'
current /etc/config/wireless:
config 'wifi-device' 'wl0'
option 'type' 'broadcom'
option 'disabled' '0'
option 'channel' '1'
config 'wifi-iface'
option 'device' 'wl0'
option 'encryption' 'psk2'
option 'key' 'usairways'
option 'ssid' 'HDNB'
option 'network' 'wan'
option 'mode' 'sta'
--
root@OpenWrt:~# arp -a
IP address HW type Flags HW address Mask Device
10.0.1.57 0x1 0x2 00:25:BC:E5:6F:8E * br-wan
10.0.1.1 0x1 0x2 00:11:24:0D:81:21 * br-wan
root@OpenWrt:~# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.0.1.0 0.0.0.0 255.255.255.0 U 0 0 0 br-wan
0.0.0.0 10.0.1.1 0.0.0.0 UG 0 0 0 br-wan
--
root@OpenWrt:~# ifconfig
br-wan Link encap:Ethernet HWaddr 00:24:8C:9C:22:BF
inet addr:10.0.1.10 Bcast:10.0.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1644 errors:0 dropped:0 overruns:0 frame:0
TX packets:1903 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:645961 (630.8 KiB) TX bytes:610493 (596.1 KiB)
eth0 Link encap:Ethernet HWaddr 00:24:8C:9C:22:BF
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1071 errors:0 dropped:0 overruns:0 frame:0
TX packets:1023 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:113960 (111.2 KiB) TX bytes:124116 (121.2 KiB)
Interrupt:4
eth0.0 Link encap:Ethernet HWaddr 00:24:8C:9C:22:BF
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1081 errors:0 dropped:0 overruns:0 frame:0
TX packets:1028 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:95392 (93.1 KiB) TX bytes:120006 (117.1 KiB)
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:21 errors:0 dropped:0 overruns:0 frame:0
TX packets:21 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1576 (1.5 KiB) TX bytes:1576 (1.5 KiB)
wl0 Link encap:Ethernet HWaddr 00:24:8C:9C:22:BF
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1809 errors:0 dropped:0 overruns:0 frame:3332
TX packets:2384 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:682332 (666.3 KiB) TX bytes:680694 (664.7 KiB)
Interrupt:2 Base address:0x5000
-
root@OpenWrt:~# iwconfig
lo no wireless extensions.
eth0 no wireless extensions.
eth0.0 no wireless extensions.
br-wan no wireless extensions.
wl0 IEEE 802.11-DS ESSID:"HDNB"
Mode:Managed Frequency:2.412 GHz Access Point: 00:11:24:0D:81:21
Bit Rate=54 Mb/s Tx-Power:32 dBm
Retry min limit:7 RTS thr:off Fragment thr:off
Power Management:off
Link Quality=5/5 Signal level=-38 dBm Noise level=-92 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:1 Invalid misc:0 Missed beacon:0
(Last edited by hscottm on 27 Nov 2009, 16:34)