Determine if your software is the source of your network problems by:
If other machines on your network have /etc/resolv.conf files and yours does not, you probably should have a /etc/resolv.conf file.
For more information about using the /etc/resolv.conf file to resolve host names, refer to "Understanding Domain Name Resolution" in AIX Communications Programming Concepts.
ps -ef | grep yp
Look for the ypserv and ypbind processes. If found, you are probably using a network information server (NIS) server to resolve host names.
You can also enter the ypwhich command to display the name of the NIS server for the local machine:
ypwhich
If you get the message the domainname has not been set on this machine, then you are probably not using NIS to resolve host names.
ls /etc/hosts
If you can find the /etc/hosts file, you are using it to resolve host names. Check your /etc/hosts file to see if the host name is listed and not commented out.
ls /etc/resolv.conf
telnet: Unknown host SystemName
ping: HostName SystemName NOT FOUND
The ping command sends an echo request to a network host. If the host is operational and on the network, it responds to the echo. By default, the ping command will continue to send echo requests to the display until you send an interrupt (Ctrl-C).
If you know you are using a /etc/resolv.conf file to resolve host names and the /etc/resolv.conf file exists, make sure it contains the correct host name and IP address.
If you have a bad /etc/resolv.conf file, your ping command hangs indefinitely when you send an echo request with the ping command.
Note: The /etc/resolv.conf file contains the IP address, or addresses, of the nameserver(s) you can use and your domain name. Your system administrator should be able to provide you with the correct domain and IP addresses.
If you know you can resolve the host name to an address and issue the telnet command to another machine, you get the following message if the interface is down or missing:
telnet: connect: Network is down
netstat -i
The netstat command displays the status of interfaces on the network.
The interfaces marked with an asterisk (*) are down. Look for some kind of network interface such as en0 for Ethernet.
ifconfig en0 inet 129.35.147.121 up
If the Ethernet en0 is missing, enter:
ifconfig en0 129.35.147.121 netmask 255.255.255.0 up
The ifconfig command configures network interface parameters.
If naming works and the interface is up and configured but you get the following message, do the procedures following the example message:
Trying... telnet: connect: Connection refused.
telnet SystemName echo
If it echoes back, the inetd daemon is up; if it does not echo back, then you must start the inetd daemon.
If the inetd daemon is up and running correctly and the appropriate service seems to be correct but you still cannot connect, try running the inetd daemon processes through a debugger.
stopsrc -s inetd
The stopsrc command stops subsystems like the inetd daemon.
vi /etc/syslog.conf
refresh -s syslogd
kill -1 `ps -e | grep /etc/syslogd | cut -c1-7`
startsrc -s inetd -a "-d"The -d flag enables debugging.
tn bastet Trying... connected to bastet login:> Connection closed
tail -f /tmp/myfile
If the inetd daemon could execute the telnet service but you still cannot connect using the telnet command, there may be something wrong with the telnet interface.
telnet tn>
telnet bastet Trying... Connected to bastet Escape character is '^T'.Watch the display as the various commands scroll up the screen. For example:
SENT do ECHO SENT do SUPPRESS GO AHEAD SENT will TERMINAL TYPE (reply) SENT do SUPPORT SAK SENT will SUPPORT SAK (reply) RCVD do TERMINAL TYPE (don't reply) RCVD will ECHO (don't reply) RCVD will SUPPRESS GO AHEAD (don't reply) RCVD wont SUPPORT SAK (reply) SENT dont SUPPORT SAK (reply) RCVD do SUPPORT SAK (don't reply) SENT suboption TELOPT_NAWS Width 80, Height 25 RCVD suboption TELOPT_TTYPE SEND RCVD suboption TELOPT_TTYPE aixterm ...
ls -a /usr/lib/terminfo
tic ibm.tiThe tic command is a terminal information compiler.