wr703n刷openwrt挂载usb网卡rt2870

来源:互联网 发布:淘宝买家信用提高 编辑:程序博客网 时间:2024/05/16 00:48

http://jasonschaefer.com/openwrt-access-point-only-config/

http://www.tuicool.com/articles/bEbYV3





原理

http://wiki.openwrt.org/doc/networking/network.interfaces

http://www.tuicool.com/articles/QZfyQn

http://fuyufu.blog.51cto.com/4425673/1150253

http://fuyufu.blog.51cto.com/4425673/1150255

http://www.openwrt.org.cn/bbs/forum.php?mod=viewthread&tid=4020&extra=page%3D4



目标:

用2870做clent接外网,内置wlan0做ap+本地eth0做LAN

 



zone                             lan                            ---->NAT--->                           wan

                                        ^                                                                                ^

                                        |                                                                                  |

network                        lan                                                                            wan

                                         ^                                                                                 ^

                                         |                                                                                  |

interface                       lan                                                                          wwan

                                        ^                                                                                 ^

                                        |                                                                                  |

device     eth0-----------------------radio0                                                    radio1

                                  brige

                                                                                                                          |

                                                                                                                         v

                                                                                                                       other router------------------->INETERNET

                                                                                                                        

 

1,装驱动

opkg install kmod-rt2800-usb 

opkg install usbutils

 

重启

2,配置外网

 

 

3,配置内网






几经试验,AP可以,WIFI CLEINT也接上, 本地LAN也可以上网,就是AP无法通过WAN口,估计是FIREWALL设置问题,有待解决


再经试验,其它正常,AP的客户端也可以PING通外网,但却PING不出INTERNET,这应该同一,二级路由的设置有关,有待解决





附:

mac地址克隆命令

http://www.qzxx.com/bbs/archiver/tid-13720.html



vi /etc/rc.local

ifconfig eth0 down
ifconfig eth0 hw ether 00:30:E0:00:00:01 up


0 0
原创粉丝点击