Sunday, May 8, 2016

Network concepts in aix?

Network concepts in aix?


To configure the ethernet card
#cfgmgr




To Assign IP address to the NIC
smitty tcpip

#ifconfig en0 inet 192.168.4.75 netmask 255.255.255.0 up




To add IP alias temporarily to the NIC
#ifconfig en0 alias 192.168.4.75 netmask 255.255.255.0 up
To delete temporarily created IP alias
#ifconfig en0 delete 192.168.4.75 




To add IP alias permanently to the NIC
 #chdev -l <interface> -a alias4=<IP_address>,<Netmask>
To delete permanently created IP alias
 #chdev -l <inteface> -a delalias4=<IP_address><Netmask>




To Disable IP address
#ifconfig en0 down (Turns off network card en0)




Enable IP address
#ifconfig en0 up (Turns on network card en0)




Remove IP address
#ifconfig en0 detach




Check status of the NIC
#ifconfig –a




Check the NIC device status
#entstat en0

#entstat –d en0    (for detailed information)




To change the hostname temporarily
#hostname <new hostname>
To change the hostname permanently
#chdev –l inet0 –a hostname=<new hostname>




Trace the HOST
#traceroute <server name>




. Assign gateway to network
#route add  192.168.0.1




Clear the gateway
#route –f (To clear the gateway)




List out all connections
#netstat -a
To list out only tcp connections
#netstat -at
To list out only udp connections
#netstat -au
To disable reverse dns lookup
#netstat -ant
To list out only listening connection
#netstat -tnl
To list process/user id of listening connection
#netstat -nlpt
To list out statistics of all packet 
#netstat -s
To display kernel routing info
#netstat -rn
To print out network interface
#netstat -i
To Detailed info of network interface
#netstat -ie
To get netstat continuous output
#netstat -ct
To display the multicast group info
#netstat -g
(To show the network buffers cache)
#netstat –c
(To show the net drops of packets)
#netstat –D
(To show routing table
#netstat –rn

#mktcpip -i en1 -h power1 -g 192.168.X.X -a 192.168.X.X -m 255.255.255.0
#ifconfig en1 down detach
#rmdev -dl en1
#ifconfig en1 up
#ifconfig en0 alias 192.168.X.X netmask 255.255.255.0 up
#ifconfig en0 delete 192.168.X.X
#chdev -l en0 -a alias4=192.168.X.X ,255.255.255.0
#chdev -l en0 -a delalias4=192.168.X.X,255.255.255.0