Skip to content

番外之 openwrt DHCP

cooip-jm edited this page Mar 17, 2024 · 2 revisions

在openwrt里先配置需要使用的标签

根据自己实际情况分配,配合Adguard一同食用,味道更佳

vi /etc/config/dhcp

telegram-cloud-photo-size-5-6316386868270316263-x

下面是举例

config tag 'direct'
        list dhcp_option '3,192.168.0.2'
        list dhcp_option '6,192.168.0.11'

config tag 'mihomo'
        list dhcp_option '3,192.168.0.19'
        list dhcp_option '6,192.168.0.11'

config tag 'proxyV4only'
        list dhcp_option '3,192.168.0.19'
        list dhcp_option '6,192.168.0.12'

config tag 'directV4only'
        list dhcp_option '3,192.168.0.2'
        list dhcp_option '6,192.168.0.12'

config tag 'singboxfakeV6'
        list dhcp_option '3,192.168.0.18'
        list dhcp_option '6,192.168.0.11'

config tag 'singboxV4only'
        list dhcp_option '3,192.168.0.18'
        list dhcp_option '6,192.168.0.12'

回到openwrt 配置需要绑定的LXC mac

image

image

lxc的mac地址在各自的配置文件里,或者在lxc中通过ip a查看

image

image

image