2232588429
V2EX  ›  问与答

OP 路由在固件不支持 mac 绑定的情况下,有没有命令行操作的办法?

  •  
  •   2232588429 · Jun 17, 2017 · 2584 views
    This topic created in 3273 days ago, the information mentioned may be changed or developed.
    用的明月固件,发现界面没有绑定 mac 地址选项。有什么命令行操作的方法么?(实现如下图步骤)

    8 replies    2017-06-17 14:27:55 +08:00
    zlhdd108
        1
    zlhdd108  
       Jun 17, 2017 via Android
    明月有绑定
    2232588429
        2
    2232588429  
    OP
       Jun 17, 2017
    @zlhdd108 我是 ar 版本,问过明月他说 ar 版本没有,你知道在哪么?
    Jodal
        3
    Jodal  
       Jun 17, 2017 via iPhone
    如果是 openwrt 的话,/etc/ethers 这个文件可以尝试一下。
    zlhdd108
        4
    zlhdd108  
       Jun 17, 2017 via Android
    @2232588429 你要在 web 找不到,就 ssh 到 busybox 里面手动绑
    GPU
        5
    GPU  
       Jun 17, 2017
    直接用 ARP 命令?
    KCheshireCat
        6
    KCheshireCat  
       Jun 17, 2017
    openwrt 通常是用 dnsmasq 来做 DHCP 服务的,那么查 dnsmasq 文档就好了

    -G, --dhcp-host=[<hwaddr>][,id:<client_id>|*][,set:<tag>][,<ipaddr>][,<hostname>][,<lease_time>][,ignore]

    这个参数应该是你需要的功能.详细介绍看 dnsmasq 文档
    jasontse
        7
    jasontse  
       Jun 17, 2017 via iPad
    你这就是设置个静态 DHCP,不是 ARP 绑定。
    http://192.168.1.1/cgi-bin/luci/admin/network/dhcp
    Nin
        8
    Nin  
       Jun 17, 2017 via iPhone
    ip neigh
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   4594 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 93c8b4a0 · 62ms · UTC 05:34 · PVG 13:34 · LAX 22:34 · JFK 01:34
    ♥ Do have faith in what you're doing.