The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > AIX
.
google unix.com



AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Panic kernal-mode address fault on user address 0x14 Twix UNIX for Dummies Questions & Answers 10 06-15-2009 09:42 AM
How to Achive IP address through MAC(Ethernet) address krishnacins IP Networking 3 08-29-2005 08:45 PM
network address and broadcast address? pnxi UNIX for Dummies Questions & Answers 7 11-10-2003 11:29 PM
clear console punk000 UNIX Desktop for Dummies Questions & Answers 3 07-21-2003 11:09 AM
clear screen immanuelgangte High Level Programming 6 08-02-2002 12:09 PM

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 09-11-2009
rainbow_bean rainbow_bean is offline
Registered User
  
 

Join Date: Dec 2007
Posts: 82
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 (permalink)  
Old 09-11-2009
filosophizer filosophizer is offline
Registered User
  
 

Join Date: Jan 2009
Posts: 113
You can use smitty tcpip on en3 to clear or
smitty chinet

or simplest way
# rmdev -dl en3
# cfgmgr
  #3 (permalink)  
Old 09-12-2009
sumathi.k sumathi.k is offline
Registered User
  
 

Join Date: Aug 2009
Posts: 14
Thumbs up

To clear ip for interface in aix:

# chdev -a netaddr=0.0.0.0 -a netmask=0.0.0.0 -l en3
  #4 (permalink)  
Old 09-28-2009
ravager's Avatar
ravager ravager is offline
Registered User
  
 

Join Date: Sep 2005
Posts: 127
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 06:07 AM.. Reason: i have taken the freedom of adding code-tags for the code and some indentation too.
  #5 (permalink)  
Old 10-10-2009
nagchundu nagchundu is offline
Registered User
  
 

Join Date: Aug 2009
Posts: 4
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 04:10 AM..
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 07:58 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0