openwrt的相关基本知识

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/he9282520/article/details/70494814

这些都是很久以前的笔记,有些东西不记得了 ,笔记也就是当时记了个大概。有时间在慢慢地完善。
1、修改dns,让路由器去指定的dns服务器
需要修改文件位置: /etc/config/network
修改的内容: 在lan下添加。 option dns “iP”
重新启动网路服务 :/etc/init.d/network/ restart
由于这只设置了ipv4的dns服务器 ,所以最好还是禁止ipv6
(可能用到的文件/etc/init.d/dnsmasq /etc/config/dhcp)
2、修改网卡的模式
iwconfig wlan0 mode monitor
3、禁止网卡
ifconfig eth0:0 ip up

猜你喜欢

转载自blog.csdn.net/he9282520/article/details/70494814