I have an en3 configured a network IP address on it using smitty tcpip. how can I clear the IP address?
You can use smitty tcpip on en3 to clear or
smitty chinet
or simplest way
# rmdev -dl en3
# cfgmgr
To clear ip for interface in aix:
# chdev -a netaddr=0.0.0.0 -a netmask=0.0.0.0 -l en3
This will allow you to check all network settings on your system
#!/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
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