在虚拟机环境下可以使用DOS命令来设置IP地址,网关和DNS吗?

2025-05-20 18:54:23
推荐回答(1个)
回答1:

……》您好:
可以,例如:
1,给"本地连接"设置静态IP地址、子网掩码、网关:
netsh interface ip set address "本地连接" static 192.168.1.11 255.255.255.0 192.168.1.1
2,给"本地连接"设置首选DNS:
netsh interface ip set dns "本地连接" static 192.168.1.1
……》如能帮您解决,请随手采纳;