Gro*_*roo 89 networking windows-server-2012-r2
在我们的一台服务器(Windows Server 2012 R2)重新启动后,所有私人连接都变为公共连接,反之亦然(该用户遇到了同样的问题)。诸如 ping 和 iSCSI 之类的东西停止工作,经过一些调查后发现这就是原因。
问题是我不知道如何再次将它们设为私有。左键单击托盘中的网络图标会显示“现代”侧边栏,但它仅显示连接列表,右键单击它们不会显示任何选项。
可能是什么问题,有没有办法更改这些设置?我必须将其中一个连接设为公开(Internet 访问),将其中两个设为私有(主干)。
Rya*_*ies 85
电源外壳。下面是将名为 Ethernet1 的网络接口的网络配置文件从现在的任何内容更改为“专用”的示例。我从Get-Help Set-NetConnectionProfile -Full.
PS C:\>$Profile = Get-NetConnectionProfile -InterfaceAlias Ethernet1
PS C:\>$Profile.NetworkCategory = "Private"
PS C:\>Set-NetConnectionProfile -InputObject $Profile
Run Code Online (Sandbox Code Playgroud)
文档:https : //technet.microsoft.com/en-us/library/jj899566(v=wps.630).aspx
小智 55
进行此更改的 GUI 方式:
Computer Configuration/Windows Settings/Security Setting /Network List Manager Policies。关闭本地策略编辑器。
来源:https : //social.technet.microsoft.com/Forums/lync/en-US/82ccc68c-947e-435a-a237-1090f38d0dbe/windows-server-2012-r2-datacenter-network-stuck-in-public-模式
tec*_*man 36
使用 Powershell。下面是将称为以太网的网络接口的网络配置文件更改为“专用”的示例。这是一个单行命令。
Set-NetConnectionProfile -InterfaceAlias Ethernet -NetworkCategory Private
Run Code Online (Sandbox Code Playgroud)
这适用于任何安装了 Powershell 的本地计算机。