V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
dbw9580
V2EX  ›  分享发现

Windows 终于可以在一张网卡上同时配置一个 DHCP IP 和多个静态 IP

  •  
  •   dbw9580 · 2017-09-17 00:07:00 +08:00 · 7653 次点击
    这是一个创建于 2412 天前的主题,其中的信息可能已经有所发展或是发生改变。

    1703 创造者更新里微软悄悄地在netsh set interface命令里加了一个属性dhcpstaticipcoexistence,把这个属性设为enabled就可以在一张网卡上同时配置一个 DHCP 的 IP 和多个静态 IP。而在以往的 Windows 里情况是:要么只用一个 DHCP 的 IP,要么所有的多个 IP 都必须是静态的。

    只能说,这个看上去简直理所当然的功能微软花了不下 10 年来添加。

    https://arstechnica.com/civis/viewtopic.php?t=1029758

    https://www.sevenforums.com/network-sharing/149233-dhcp-static-ip-simultaneously-one-nic-2.html

    12 条回复    2017-09-24 13:06:44 +08:00
    dbw9580
        1
    dbw9580  
    OP
       2017-09-17 00:31:16 +08:00
    难道大清早就亡了??
    mhycy
        2
    mhycy  
       2017-09-17 00:34:46 +08:00
    少用的功能,但。。很实用

    除了 WIN10.....
    Lentin
        3
    Lentin  
       2017-09-17 00:41:29 +08:00
    其他的 OS 有支持这个功能的吗,例如 LINUX 或 Mac OS ?
    fashioncj
        4
    fashioncj  
       2017-09-17 01:11:34 +08:00 via iPhone
    意思是多个 ip 同时上网么?
    mengyaoss77
        5
    mengyaoss77  
       2017-09-17 01:12:00 +08:00 via Android
    @Lentin linux 有的,vlan 就是。
    Lentin
        6
    Lentin  
       2017-09-17 01:24:09 +08:00
    @fashioncj 意思是可以不用来回切换了,如果有 DHCP 跟固定 IP 经常切换的网络环境这个会很方便
    lazycat
        7
    lazycat  
       2017-09-17 01:51:27 +08:00 via Android
    @Lentin 这种需求可以用备用配置实现。。。
    fashioncj
        8
    fashioncj  
       2017-09-17 09:37:52 +08:00 via iPhone
    @Lentin 这样啊。。我之前使用脚本解决的(◎o◎)
    Lentin
        9
    Lentin  
       2017-09-17 09:44:23 +08:00
    是我没敲对还是版本号不对?
    dbw9580
        10
    dbw9580  
    OP
       2017-09-17 16:12:17 +08:00 via Android
    @Lentin 是在 netsh interface ipv4/ipv6 上下文里的 set interface
    抱歉没有写准确。
    greatbll
        11
    greatbll  
       2017-09-24 00:27:40 +08:00
    我的 win10 里没有这个参数

    netsh int ipv6 set interface help

    @dbw9580 你有验证成功?
    dbw9580
        12
    dbw9580  
    OP
       2017-09-24 13:06:44 +08:00
    >>11
    @greatbll

    1703 的 win10
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3202 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 13:26 · PVG 21:26 · LAX 06:26 · JFK 09:26
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.