QZLin

Padavan export/import web configured dhcp static

get

nvram showall | grep -E "dhcp_static(ip|mac|name|num)"

set

nvram set key=value

  • example
nvram showall | grep -E "dhcp_static(ip|mac|name|num)">dhcp_static.txt

cat dhcp_static.txt | while read line; do nvram set $line; done
nvram commit

posted on 2023-05-28 15:54  QZLin  阅读(11)  评论(0编辑  收藏  举报

导航