How to clear IP address on AIX?


 
Thread Tools Search this Thread
Operating Systems AIX How to clear IP address on AIX?
# 1  
Old 09-11-2009
How to clear IP address on AIX?

I have an en3 configured a network IP address on it using smitty tcpip. how can I clear the IP address?
# 2  
Old 09-11-2009
You can use smitty tcpip on en3 to clear or
smitty chinet

or simplest way
# rmdev -dl en3
# cfgmgr
# 3  
Old 09-12-2009
MySQL

To clear ip for interface in aix:

# chdev -a netaddr=0.0.0.0 -a netmask=0.0.0.0 -l en3
# 4  
Old 09-28-2009
This will allow you to check all network settings on your system


Code:
#!/bin/ksh 
#for i in `lsdev -Cc if |grep en |awk '{print $1}'`
for i in  0 1 2 3 4 5 6 7 8 9 ; do
     ifdev=`lsdev -C |grep ent${i} |nawk -F ent '{print $2}'|awk '{print $1}'`
     if  [[ ${i} = ${ifdev} ]] ; then 
          tput smso 
          echo "  en$i  ent$i   "
          tput rmso 
          lscfg  |grep ent${i} |nawk -F "        " '{print $1 "\t" $3 " " $4 }'
          netstat -v en$i |egrep -i "Device Type:|media|Number of adapters:|ETHERNET STATISTICS"
          lsattr -El en$i |egrep "netaddr       |mtu |Status"|nawk -F " " '{print $1 " " $2 }'|grep -v remmtu
     else 
          echo " No device existing for ent$i "
     fi
done


Last edited by bakunin; 09-28-2009 at 07:07 AM.. Reason: i have taken the freedom of adding code-tags for the code and some indentation too.
# 5  
Old 10-10-2009
To clear ip for interface in aix

1)first you will goto smitty tcp/ip and remove network
2)goto /etc/hosts and remove the network if the netwok is not remove
3)#rmdev -dl en3
#cfgmgr -v

Last edited by nagchundu; 10-10-2009 at 05:10 AM..
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

C program to detect duplicate ip address if any after assigning ip address to ethernet interface

Hi , Could someone let me know how to detect duplicate ip address after assigning ip address to ethernet interface using c program (3 Replies)
Discussion started by: Gopi Krishna P
3 Replies

2. AIX

Production Issue in AIX Oracle RAC [errpt output : DUPLICATE IP ADDRESS DETECTED IN THE NET]

1)We have 2 node cluster RAC on AIX: ->test1 ->test3 2) After rebooting server both the node sequentailly, we are getting below error from errpt command : # errpt |more IDENTIFIER TIMESTAMP T C RESOURCE_NAME DESCRIPTION FE2DEE00 0901223914 P S SYSXAIXIF DUPLICATE IP ADDRESS... (2 Replies)
Discussion started by: manjusharma128
2 Replies

3. AIX

AIX How to exchange hostname and IP address between two AIX servers?

Hi all, I am trying to exchange hostname and IP address of two AIX machines. But i am confused as how to change it ? do i need to use "smitty mktcpip" or "smitty tcpip" ? what is the difference between smitty mktcpip and smitty tcpip ? Also anymore steps to follow or just updating... (3 Replies)
Discussion started by: lramsb4u
3 Replies

4. AIX

Help with clear printer queue script in AIX 5.3

Good day UNIX forum, could you help me with my clear printer queue script, i have problems with the consistency of this function, sometimes it works sometimes it doesn't. Thanks in advance } preRemovePrintQ(){ clear; echo; echo... (1 Reply)
Discussion started by: beware187
1 Replies

5. AIX

From address of an email from AIX server

My application resides on an AIX server and sends out emails when a job is completed, and a report ready to be picked up. However the from address of the email seems to have our test server's name, instead of the production server. In reality the mail is coming from the production server only. I... (5 Replies)
Discussion started by: ggayathri
5 Replies

6. AIX

Problem with IP address when restarting AIX

Hi! I have useud SMIT to configured my static adress for AIX but when I restart the AIX the ipadress is not shown when I print netstat -in or ifconfig -a. I have to configure the ip whit smit to have it start! How can I starting the ip during boot? (6 Replies)
Discussion started by: peter.olofsson
6 Replies

7. AIX

My AIX 5.3 update userPassword in clear on LDAP

I'm running OpenLDAP 2.3.43 in a linux Host. I have a AIX 5.3 TL9 as client. All works fine with client authentification, information reading in LDAP server and all the stuff. The only problem is : when I run passwd with an LDAP user it updates password (userPassword) with clear text. ... (0 Replies)
Discussion started by: puppetmaster
0 Replies

8. AIX

how to send a file from aix to a email address?

how to send a file from aix to a email address? such as xxx@yahoo.com? (2 Replies)
Discussion started by: rainbow_bean
2 Replies

9. AIX

AIX:Command to get netaddress/subnet address command in IPv4/IP6

AIX:Command to get netaddress/subnet address command in IPv4/IP6 Can anybody help us with a command to retrieve netaddress/subnet address command in IPv4/IP6 on aix machine. net/subnet address is in the format 172.16.212.0(signifies all 255 machines in an IPv4 network) (2 Replies)
Discussion started by: rookie8278
2 Replies

10. AIX

Setting Dual Ip address on LPAR AIX 5.3

Hi Guys, Can somebody help me how to add and activate addtional ip address on AIX. My server is IBM p5-570 i already set ipadress on ent1 ent0 -- 192.168.206.105 ( default ) ent1 -- 192.168.0.89 (additional) i can ping from outside to 192.168.0.89 but i can not telnet or ftp. for... (6 Replies)
Discussion started by: cahyo3074
6 Replies
Login or Register to Ask a Question