如何修改与LIF关联的子网的网络掩码
适用场景
- ONTAP 9
- 网络子网
问题描述
- 使用关联的LIF更新子网的网络掩码失败、并显示以下错误、即使使用也是如此
-force-update-lif-associations true
Cluster01::> network subnet show -instance
IPspace Name: Default
Subnet Name: test
Broadcast Domain: Default
Layer 3 Subnet: 10.10.10.0/24
Gateway: -
IP Addresses or IP Address Ranges: 10.10.10.21-10.10.10.30
Total Address Count: 10
Used Address Count: 5
Available Address Count: 5
Cluster01::> network subnet modify -subnet-name test -subnet 10.10.10.0/22
Error: command failed: The subnet has one or more LIFs associated with it. Changing the netmask of existing LIFs through the subnet commands is not supported.
Cluster01::> network subnet modify -subnet-name test -subnet 10.10.10.0/22 -force-update-lif-associations true
Error: command failed: The subnet has one or more LIFs associated with it. Changing the netmask of existing LIFs through the subnet commands is not supported.
- 更新与子网关联的LIF的网络掩码也不起作用
Cluster01::> network interface modify -vserver xyz -lif xyz1 -netmask-length 22
Error: command failed: Cannot update LIF associations for LIF "xyz1". The netmask of the LIF ("255.255.252.0") does not match the netmask of the subnet
("255.255.255.0").