找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 3879|回复: 7

openwrt DHCP 指定不同的网关,各种妙用

[复制链接]
发表于 2020-4-17 08:26 | 显示全部楼层 |阅读模式
本帖最后由 secowu 于 2020-4-18 20:41 编辑

openwrt DHCP 指定不同的网关转自
https://my.oschina.net/kblack/blog/3019722


1、只想自己进修,不想全局
2、把熊孩子的设备转向行为管理网关

参考 dnsmasq 配置文件 文件的格式。

以下是给指定 mac 的设备分配 192.168.1.2 作为网关。
/etc/config/dhcp
  1. # config mac 'opnvirtual**'
  2. #        option mac  '00:FF:*:*:*:*'
  3. #        option tag  'need_outernet'

  4. config host
  5.         option ip       '192.168.1.3'
  6.         option mac      '11:22:33:44:55:66 aa:bb:cc:dd:ee:ff'
  7.         option tag      'need_outernet'

  8. config tag 'need_outernet'
  9.         list dhcp_option '3, 192.168.1.2'
  10.         option force '1'
复制代码



我的恩山、我的无线 The best wifi forum is right here.
发表于 2020-4-17 08:51 | 显示全部楼层
有旁路由时用这个不错。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-4-17 09:34 | 显示全部楼层
#在这里快速回复#有旁路由时用这个不错。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-4-17 13:22 | 显示全部楼层
这个功能好,但是必须op为主路由才能对吧?我主路由梅林
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2020-4-18 20:53 | 显示全部楼层
需要关闭ipv6,要不dhcp始终会分配dhcp所在服务器的ipv6地址给首选dns
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2020-4-18 21:24 | 显示全部楼层
||amemv.com^
||snssdk.com^
||ixigua.com^
||byteimg.com^
||douyin.com^
||yy.com^
||xigua.com^
||toutiao.com^
||ixigua.com^
||ixiguavideo.com^
||iesdouyin.com^
||yximgs.com^
||gifshow.com^
||douyincdn.com^
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2020-6-26 20:26 | 显示全部楼层
address=/amemv.com/127.0.0.1
address=/snssdk.com/127.0.0.1
address=/ixigua.com/127.0.0.1
address=/byteimg.com/127.0.0.1
address=/douyin.com/127.0.0.1
address=/yy.com/127.0.0.1
address=/xigua.com/127.0.0.1
address=/toutiao.com/127.0.0.1
address=/ixigua.com/127.0.0.1
address=/ixiguavideo.com/127.0.0.1
address=/iesdouyin.com/127.0.0.1
address=/yximgs.com/127.0.0.1
address=/gifshow.com/127.0.0.1
address=/douyincdn.com/127.0.0.1
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2020-6-26 20:27 | 显示全部楼层
127.0.0.1 amemv.com
127.0.0.1 snssdk.com
127.0.0.1 ixigua.com
127.0.0.1 byteimg.com
127.0.0.1 douyin.com
127.0.0.1 yy.com
127.0.0.1 xigua.com
127.0.0.1 toutiao.com
127.0.0.1 ixigua.com
127.0.0.1 ixiguavideo.com
127.0.0.1 iesdouyin.com
127.0.0.1 yximgs.com
127.0.0.1 gifshow.com
127.0.0.1 douyincdn.com
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-4-25 09:04

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表