R2511-HP MSR Router Series Terminal Access Configuration Guide(V5)

79
Verify that the IP address and terminal number configured in ttyd.conf and those on the router are
consistent.
If source IP address binding is configured on the router, verify that the source IP address can be
pinged through from the Unix server
Check whether the router has established a TCP connection with the Unix server
1. Verify TCP connectivity using the terminal connectivity test hotkey.
In terminal access, a command is provided for testing terminal connectivity. This command can be
used to verify the TCP connectivity between a terminal and a Unix server. Once the terminal
connectivity test hotkey is configured on the interface, the terminal connectivity test function is
enabled.
Now, you can press the test hotkey on the terminal. If the TCP connection between the terminal and
the Unix server is correct, the terminal screen displays "Terminal to Unix test OK!". This means a
TCP connection has been established between the application used by the terminal and the ttyd
program on the UNIX server, and the terminal can communicate with the server normally. For more
information, see "For an active terminal, verify the configuration of system file inittab."
If the terminal does not disp
lay "Terminal to Unix test OK!", either no TCP connection has been
established between the application used by the terminal and the ttyd program on the Unix server,
or the corresponding pseudo terminal on the Unix server is not operating normally. For more
information, see "View the debugging information of the router and ttyd program of the server."
2. Verify termina
l TCP connectivity with the echo command.
First, confirm the pseudo terminal ttypxx on the Unix server corresponding to the terminal by using
the configuration file ttyd.conf. Then, execute the following command on the Unix server:
# echo "123456789" > /dev/ttypxx
This command sends the string 123456789 to the terminal ttypxx (xx indicates the terminal index).
If the string appears on the terminal, a TCP connection has been established between the
application used by the terminal and the ttyd program on the Unix server, and the terminal can
communicate with the server normally. For more information, see "For an active terminal, verify the
conf
iguration of system file inittab."
If the string does not appear on the terminal, no TCP connection has been established between the
application used by the terminal and the ttyd program on the Unix server, or the corresponding
pseudo terminal on the Unix server is not operating normally. For more information, see "View the
debu
gging information of the router and ttyd program of the server."
For an active terminal, verify the configuration of system file inittab
An active terminal is a pseudo terminal that pushes the login interface.
1. The inittab system file configuration is not correct.
In the configuration file ttyd.conf on the Unix server, find the pseudo terminal that corresponds to
the terminal, ttyp50 for example. Edit the file /etc/inittab and check whether the file contains the
following line:
C50:234:respawn:/etc/getty ttyp50 m
If the line is absent, add it.
Execute the init q command to validate the configuration.
# init q
You can also use the enable command to configure a pseudo terminal as an active terminal, or use
the disable command to configure a pseudo terminal as a dumb terminal.
# enable ttyp50