本期向大家介绍一个UP主自用的软路由组网方案。 本方案采用硬路由做主路由,软路由做旁路由,并使用个性化的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命令 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