一、先启动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
MindMapper怎么插入其他对象?-MindMapper插入其他对象教程
MindMapper怎么添加计划表?-MindMapper添加计划表教程