Solved

Remove alias IP permamently in AIX

Posted on 2015-02-18
3
204 Views
Last Modified: 2015-02-19
Can I use the followign command to remove the Alias IP address permanently from AIX interface  en0 ?


chdev -l en0 -a delalias4={10.xx.xx.xx},{255.xxx.xx.0}
0
Comment
Question by:mokkan
  • 2
3 Comments
 
LVL 14

Expert Comment

by:mikelfritz
ID: 40618147
I'd use ifconfig.

ifconfig <interface_name> inet <virtual_ip_address> delete

For example:

ifconfig en0 inet 10.10.10.219 delete
0
 
LVL 14

Expert Comment

by:mikelfritz
ID: 40618152
I'm not sure my first comment would live through a reboot...

Yes, the command you posted will work.
0
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 500 total points
ID: 40618441
The chdev command is the one to use, but without the curly braces!!

chdev -l en0 -a delalias4=10.xx.xx.xx,255.xxx.xx.0

Please note that the above will remove an IPv4 alias. Use "delalias6" to remove an IPv6 alias.
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question