Set-SCNativeUplinkPortProfile
汇报本机上行端口配置文件。
语法
Set-SCNativeUplinkPortProfile
[-AddLogicalNetworkDefinition <LogicalNetworkDefinition[]>]
[-RemoveLogicalNetworkDefinition <LogicalNetworkDefinition[]>]
[-VMMServer <ServerConnection>]
[-NativeUplinkPortProfile] <NativeUplinkPortProfile>
[-Name <String>]
[-Description <String>]
[-EnableNetworkVirtualization <Boolean>]
[-LBFOLoadBalancingAlgorithm <NetworkAdapterLBFOLoadBalancingAlgorithm>]
[-LBFOTeamMode <NetworkAdapterLBFOTeamMode>]
[-RunAsynchronously]
[-PROTipID <Guid>]
[-JobVariable <String>]
[<CommonParameters>]
说明
Set-SCNativeUplinkPortProfile cmdlet 更新本机上行端口配置文件。 可以使用它添加或删除逻辑网络定义。
示例
示例 1:从本机上行端口配置文件中删除逻辑网络定义
PS C:\> $LogNetDefinition = Get-SCLogicalNetworkDefinition -Name "Logical Network Definition 01"
PS C:\> Get-SCNativeUplinkPortProfile -Name "NativeUplinkPortProfile01" | Set-SCNativeUplinkPortProfile -RemoveLogicalNetworkDefinition $LogNetDefinition
第一个命令获取名为“逻辑网络定义 01”的逻辑网络定义对象,并将对象存储在$LogNetDefinition变量中。
第二个命令获取名为 NativeUplinkPortProfile01 的本机上行端口配置文件对象,并使用管道运算符将对象传递给 Set-SCNativeUplinikPortProfile。 这会从 NativeUplinkPortProfile01 中删除逻辑网络定义 01。
参数
-AddLogicalNetworkDefinition
指定此 cmdlet 添加的逻辑网络定义对象的数组。
若要获取逻辑网络定义对象,请使用 Get-SCLogicalNetworkDefinition cmdlet。
Type: | LogicalNetworkDefinition[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Description
指定端口配置文件的说明。
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-EnableNetworkVirtualization
指示是否启用网络虚拟化。 默认值为$False。
Type: | Boolean |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-JobVariable
指定跟踪和存储作业进度的变量。
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-LBFOLoadBalancingAlgorithm
指定负载均衡和故障转移 (LBFO) 网络适配器负载均衡算法。 此参数的可接受值为:
- TransortPorts
- IPAddresses
- MACAddresses
- HyperVPort
- 动态
- HostDefault
Type: | NetworkAdapterLBFOLoadBalancingAlgorithm |
Accepted values: | TransportPorts, IPAddresses, MacAddresses, HyperVPort, Dynamic, HostDefault |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-LBFOTeamMode
指定负载均衡和故障转移 (LBFO) 网络适配器的团队模式。
Type: | NetworkAdapterLBFOTeamMode |
Accepted values: | Static, SwitchIndependent, Lacp |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Name
指定 Virtual Machine Manager (VMM) 对象的名称。
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-NativeUplinkPortProfile
指定本机上行端口配置文件对象。
Type: | NativeUplinkPortProfile |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-PROTipID
指定触发此操作 (PRO 提示) 的性能和资源优化提示的 ID。 此参数允许审核 PRO 提示。
Type: | Guid |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-RemoveLogicalNetworkDefinition
指定要删除的逻辑网络定义对象的数组。
若要获取逻辑网络定义对象,请使用 Get-SCLogicalNetworkDefinition cmdlet。
Type: | LogicalNetworkDefinition[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-RunAsynchronously
指示作业以异步方式运行,以便控件立即返回到命令 shell。
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-VMMServer
指定VMM 服务器对象。
Type: | ServerConnection |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |