Wednesday, 22 June 2016

Network related AIX cmds...in draft

#ifconfig en0 192.168.1.100 netmask 255.255.255.0 alias ==> Command to set alias for an interface (Temporarily).
#ifconfig en0 192.168.1.100 netmask 255.255.255.0 delete  ==>remove an alias
#chdev -l en0 -a alias4=192.168.1.100,255.255.255.0 ==> Command to set alias permanently.
#chdev -l en0 -a delalias4=192.168.1.100,255.255.255.0 ==> Command to remove alias permanently.
#chdev -l inet0 -a route=net,-netmask,255.255.255.0,-static, 10.0.0.0, 192.168.0.1 ==>Create static route
#chdev -l inet0 -a delroute=net,-netmask,255.255.255.0,-static, 10.0.0.0, 192.168.0.1 ==>Delete static route

#tcpdump -vvv host <target ip> ===>run in required server
#tcpdump -s 96 -w /tmp/tcpdump.191208 host 134.142.34.38

#iptrace -a -d 145.26.53.99(source) -s 134.142.34.37(target) -i en0 -b /tmp/iptrace1.bin===> to start trace with another node
#kill -15 <iptrace PID> ===>to stop the trace
#ipreport /tmp/iptrace1.bin > /tmp/iptrace1.rpt ===>to convert that into ipreport

#startsrc -s iptrace -a -d 145.26.53.99(source) -s 134.142.34.37(target) -i en0 -b /tmp/iptrace1.bin===> to start trace with another

node
#stopsrc -s iptrace ===>to stop the trace
#ipreport /tmp/iptrace1.bin > /tmp/iptrace1.rpt ===>to convert that into ipreport



===================

No comments:

Post a Comment