Problem:
Tried to remove an IP alias on en0, but failed.
chdev -l en0 -a delalias4=126.3.45.90,255.255.255.0 Method error (/usr/lib/methods/chgif): 0514-009 Cannot delete an object from the device configuration database. 0821-232 chgif: Cannot delete alias6 (126.3.45.90) from CuAt.
Root cause:
The netmask was wrong in the chdev command.
lsattr -El en0 -a alias4|grep 26.3.45.90 alias4 26.3.45.90,26.3.45.255 IPv4 Alias including Subnet Mask True
Solution:
Enter the correct netmask, now it works:
chdev -l en0 -a delalias4=26.3.45.90,26.3.45.255 en0 changed
