About Us

RSInfoMinds, a web based IT Training and Consultancy firm. It is established with high dreams in training people in IT Infrastructure Field. We provide Online and Class Room training in various fields of IT Infrastructure Management.

Join Us: http://www.facebook.com/RSInfoMinds
Mail Us: rsinfominds@gmail.com
Twitter: @RSInfoMinds

We are specialized in the below courses:

Redhat Linux Admin Redhat Linux Cluster
Redhat Virutualization IBM AIX Admin
IBM AIX Virtualization IBM AIX Cluster
HP Unix Admin HP Unix Cluster
HP Unix Virtualization Shell Scripting
Veritas Volume Manager Veritas Cluster
Oracle Core DBA VMWare


We provide training in such a way, So that you get in depth knowledge on the Courses you look for.

And we ensure you are very confident from each and every Techincal aspect that the IT Industry needs and expects from you.

We also conduct Workshops on the latest technology and the real time faculties sharing their work experiences to make you the best.

Monday, 28 November 2011

Create and Remove Alias

# ifconfig en0 192.168.1.100 netmask 255.255.255.0 alias : Command to set alias for an interface (Temporarily).

# ifconfig en0 192.168.1.100 netmask 255.255.255.0 delete : Command to remove an alias.

# chdev -l en0 -a alias4=192.168.1.100,255.255.255.0 : Command to set alias permanently.

# chdev -l en0 -a delalias4=192.168.1.100,255.255.255.0 : Command to remove alias permanently.

# lsattr -EHl en0 : Command to view the alias set for an interface.

Problem:

Tried to remove an IP alias on en0, but failed.
 
# chdev -l en0 -a delalias4=192.168.1.100,255.255.254.0 Method error (/usr/lib/methods/chgif): 0514-009 Cannot delete an object from the device configuration database. 0821-232 chgif: Cannot delete alias6 (192.168.1.100) from CuAt.

Solution:

Check the alias IP and netmask which has been set for the interface.

# lsattr -El en0 -a  alias4|grep 192.168.1.100
alias4 192.168.1.100,255.255.255.0  IPv4 Alias including Subnet Mask True

Enter the correct netmask, now it works:

# chdev -l en0 -a delalias4=192.168.1.100,255.255.255.0
en0 changed

No comments:

Post a Comment