你的软路由为啥不稳定? 旁路由被严重低估了? UP主自用的软路由组网方案介绍

Описание к видео 你的软路由为啥不稳定? 旁路由被严重低估了? UP主自用的软路由组网方案介绍

本期向大家介绍一个UP主自用的软路由组网方案。
本方案采用硬路由做主路由,软路由做旁路由,并使用个性化的DHCP服务器配置,达到灵活的为不同设备分配不同网关的目的。

时间轴:
00:00 软路由简介
02:29 两个偏见
08:17 实操部分
13:21 DHCP高级设置

视频中用到的脚本:

修改软路由lan口IP
nano /etc/config/network

修改dhcp服务配置
nano /etc/config/dhcp
增加
config tag 'iot'
list dhcp_option '6,192.168.2.88'
list dhcp_option '3,192.168.2.88'
option force '1'

config host
option dns '1'
option name 'test'
option mac 'aa:7d:54:a4:f8:da'
option tag 'iot'

luci命令(可替代直接修改/etc/config/dhcp)
uci set dhcp.iot="tag"
uci add_list dhcp.iot.dhcp_option="3,192.168.2.88"
uci add_list dhcp.iot.dhcp_option="6,192.168.2.88"
uci set dhcp.iot.force=1

uci add dhcp host
uci set dhcp.@host[-1].name="test"
uci set dhcp.@host[-1].dns="1"
uci set dhcp.@host[-1].mac="aa:7d:54:a4:f8:da"
uci set dhcp.@host[-1].tag="iot"
uci commit dhcp

重启dhcp和dns服务
/etc/init.d/dnsmasq restart

Telegram:https://t.me/first_sunlight
个人网站:https://www.126126.xyz/
哔哩哔哩: https://space.bilibili.com/221010336

#软路由 #旁路由 #OpenWrt #DNS

Комментарии

Информация по комментариям в разработке