各位兄台 tp link wr703n 刷好 openwrt 后,使用 bridged AP 桥接模式提供无线访问
上层路由器:192.168.1.111
wr703n 路由器:192.168.11
遇到的问题是:
连接 wr703n 无线的手机,可以通过 wr703n 的网桥,到上层的路由器 dhcp 获取地址
对于 wr703n 设置静态管理地址后,内网(192.168.x.x)中可以相互 ping 通的
但是无法访问公网,就没法安装 openwrt 的软件包了
无法更新软件源:
root@OpenWrt:# opkg update
Downloading
http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages/Packages.gz.
dwget: can't connect to remote host (78.24.191.177): Connection timed out
Collected errors:
* opkg_download: Failed to download
http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages/Packages.gz, wget returned 1
wr703n 网络配置:
config interface 'loopback'
option ifname 'lo'
option proto 'static'
option iPad dr '127.0.0.1'
option netmask '255.0.0.0'
config interface 'lan'
option ifname 'eth0'
option type 'bridge'
option proto 'static'
option iPad dr '192.168.1.11' ## wr703n 管理地址
option netmask '255.255.255.0'
option gateway '192.168.1.111' ## 上层路由器管理地址
option dns '192.168.1.111'
wr703n 的路由表:
root@OpenWrt:~# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.1.111 0.0.0.0 UG 0 0 0 br-lan
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 br-lan
wr703n 的 ifconfig:
root@OpenWrt:~# ifconfig
br-lan Link encap:Ethernet HWaddr B0:48:7A:3A:EE:72
inet addr:192.168.1.11 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4938 errors:0 dropped:21 overruns:0 frame:0
TX packets:4902 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:528760 (516.3 KiB) TX bytes:1187467 (1.1 MiB)
eth0 Link encap:Ethernet HWaddr B0:48:7A:3A:EE:72
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1311161 errors:0 dropped:0 overruns:0 frame:0
TX packets:821647 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1418076662 (1.3 GiB) TX bytes:88868501 (84.7 MiB)
Interrupt:4
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:415564 errors:0 dropped:0 overruns:0 frame:0
TX packets:415564 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:34076148 (32.4 MiB) TX bytes:34076148 (32.4 MiB)
wlan0 Link encap:Ethernet HWaddr B0:48:7A:3A:EE:72
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:558 errors:0 dropped:0 overruns:0 frame:0
TX packets:559 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:32
RX bytes:86849 (84.8 KiB) TX bytes:206857 (202.0 KiB)
wr703n 的网桥设备:
# brctl show
bridge name bridge id STP enabled interfaces
br-lan 8000.b0487a3aee72 no eth0
wlan0
V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。
V2EX is a community of developers, designers and creative people.