快盘下载:好资源、好软件、快快下载吧!

快盘排行|快盘最新

当前位置:首页软件教程电脑软件教程 → openwifi-ap-sta路由配置教程

openwifi-ap-sta路由配置教程

时间:2022-10-06 15:13:03人气:作者:快盘下载我要评论

一、先启动AP

./wgd.sh

sysctl -w net.ipv4.conf.all.forwarding=1
sysctl -w net.ipv4.conf.default.forwarding=1
sysctl -w net.ipv6.conf.all.forwarding=1
sysctl -w net.ipv6.conf.default.forwarding=1
sysctl -w net.ipv4.conf.all.send_redirects=0
sysctl -w net.ipv4.conf.default.send_redirects=010
sysctl -w net.ipv4.conf.all.rp_filter=0
sysctl -w net.ipv4.conf.default.rp_filter=0
sysctl -w net.ipv4.conf.eth0.forwarding=1
sysctl -w net.ipv4.conf.eth0.send_redirects=0
sysctl -w net.ipv4.conf.eth0.rp_filter=0
sysctl -w net.ipv4.conf.sdr0.forwarding=1
sysctl -w net.ipv4.conf.sdr0.send_redirects=0
sysctl -w net.ipv4.conf.sdr0.rp_filter=0

./fosdem.sh

删除默认网关
route del default gw 192.168.10.1
添加默认网关
route add default gw 192.168.13.XX;STA无线口;

二、再启动STA

启动openwifi脚本
./wgd.sh

有线无线连接
sysctl -w net.ipv4.conf.all.forwarding=1
sysctl -w net.ipv4.conf.default.forwarding=1
sysctl -w net.ipv6.conf.all.forwarding=1
sysctl -w net.ipv6.conf.default.forwarding=1
sysctl -w net.ipv4.conf.all.send_redirects=0
sysctl -w net.ipv4.conf.default.send_redirects=010
sysctl -w net.ipv4.conf.all.rp_filter=0
sysctl -w net.ipv4.conf.default.rp_filter=0
sysctl -w net.ipv4.conf.eth0.forwarding=1
sysctl -w net.ipv4.conf.eth0.send_redirects=0
sysctl -w net.ipv4.conf.eth0.rp_filter=0
sysctl -w net.ipv4.conf.sdr0.forwarding=1
sysctl -w net.ipv4.conf.sdr0.send_redirects=0
sysctl -w net.ipv4.conf.sdr0.rp_filter=0


STA连接AP
wpa_supplicant -i sdr0 -c wpa-openwifi.conf &

STA动态分配
dhclient sdr0

配置STA有线口
ifconfig eth0 192.168.1.20

指定路由
route add -net 192.168.1.0 netmask 255.255.255.0 gw 192.168.1.20

加网关
route add default gw 192.168.13.1

相关文章

网友评论

快盘下载暂未开通留言功能。

关于我们| 广告联络| 联系我们| 网站帮助| 免责声明| 软件发布

Copyright 2019-2029 【快快下载吧】 版权所有 快快下载吧 | 豫ICP备10006759号公安备案:41010502004165

声明: 快快下载吧上的所有软件和资料来源于互联网,仅供学习和研究使用,请测试后自行销毁,如有侵犯你版权的,请来信指出,本站将立即改正。