Windows如何用CMD在网卡上添加多个IP地址

使用CMD在网卡上添加多个IP地址主要使用netsh脚本实现,操作方法有两种,一种是直接输入,另一种是进入netsh命令,然后一步一步输入。

方法一:

netsh interface ip add address “网卡名称” IP 掩码 网关

示例:

方法二:

netsh # 进入netsh命令行

interface # 进入interface配置

ip # 配置IPv4

add address 网卡名 IP 掩码 网关

示例: