美文网首页
openwrt设置ip地址

openwrt设置ip地址

作者: 朝西的生活 | 来源:发表于2017-09-18 09:47 被阅读0次
  1. 修改配置文件: vi /etc/config/network

  2. 将需要设置ip的网卡proto字段设置为static

  3. 在下方增加:

    option ipaddr '172.16.10.105'
    option netmask '255.255.255.0'
    option gateway '172.16.10.1'
    option dns '8.8.8.8 119.6.6.6'

  4. 重启interface name

    ifup wan

相关文章

网友评论

      本文标题:openwrt设置ip地址

      本文链接:https://www.haomeiwen.com/subject/cxmvsxtx.html