21.02.2013 Views

AIX 5L Problem Determination - IBM Redbooks

AIX 5L Problem Determination - IBM Redbooks

AIX 5L Problem Determination - IBM Redbooks

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

command ping -f (flood ping) requires root access to the system. For every<br />

ECHO_REQUEST sent, a period '.' is printed, while for every ECHO_REPLY<br />

received, a backspace is printed. This provides a rapid display of how many<br />

packets are being dropped.<br />

If the ping is not successful, you need to:<br />

1. Ensure that the inetd process is actively using the lssrc -g tcpip command.<br />

If inetd is not active, issue the startsrc -s inetd or startsrc -g tcpip<br />

command.<br />

# lssrc -g tcpip<br />

Subsystem Group PID Status<br />

routed tcpip 5424 active<br />

inetd tcpip 6192 active<br />

snmpd tcpip 6450 active<br />

gated tcpip inoperative<br />

named tcpip inoperative<br />

----- the output was edited for brevity -----<br />

2. Check the state of the loopback interface (lo0) with the netstat -i<br />

command. If you see lo0* in the output, check the /etc/hosts file for an<br />

uncommented local loopback entry, as follows:<br />

# netstat -I lo0 -n<br />

Name Mtu Network Address Ipkts Ierrs Opkts Oerrs Coll<br />

lo0* 16896 link#1 412934 0 414344 0 0<br />

lo0* 16896 127 127.0.0.1 412934 0 414344 0 0<br />

lo0* 16896 ::1 412934 0 414344 0 0<br />

# grep localhost /etc/hosts<br />

127.0.0.1 loopback localhost # loopback (lo0) name/address<br />

A splat (*) after the interface name in the output from the netstat command<br />

indicates that the interface is down. Use the following command to start the<br />

lo0 interface:<br />

# ifconfig lo0 inet 127.0.0.1 up<br />

If you cannot reach a host that is in a different network, you can check the<br />

connection using the traceroute command. The traceroute command output<br />

shows each gateway that the packet traverses on its way to finding the target<br />

host. If possible, examine the routing tables of the last machine shown in the<br />

traceroute output to check if a route exists to the destination from that host. The<br />

last machine shown is where the routing is incorrectly set.<br />

# traceroute 9.3.240.56<br />

traceroute to 9.3.240.56 (9.3.240.56), 30 hops max, 40 byte packets<br />

1 server4e (10.47.1.1) 1 ms 1 ms 0 ms<br />

2 server1 (9.3.240.56) 1 ms 1 ms 1 ms<br />

Chapter 8. Network problem determination 183

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!