![Huawei AR2200 Series Configuration Manual Download Page 144](http://html.mh-extra.com/html/huawei/ar2200-series/ar2200-series_configuration-manual_169296144.webp)
The redirection function is associated with a VPN instance.
By default, the redirection function is not associated with any VPN instance, and all users on
public and private networks can use the redirection function to log in to remote devices.
Step 9
(Optional) Run:
redirect listen-port
port-num
The port number is set for the redirection function.
The default port number is 2000 plus
tty-number
. When the default port number is used by
another service, perform this step to set a new port number.
NOTE
l
The terminal attributes of a TTY user interface must be the same as the physical attributes of the terminal
connected to the corresponding asynchronous serial interface. For details on how to configure terminal
attributes of a TTY user interface, see
4.4.3 Setting Terminal Attributes of TTY User Interface
.
l
If the modem function is enabled on a TTY user interface, the redirection function does not take effect.
----End
Follow-up Procedure
Run the
telnet
host-name
port-number
command to log in to a remote device. In the command,
host-name
is the IP address or host name of the router with the redirection function enabled, and
port-number
is the default port number or the port number configured by running the
redirect
listen-port
command.
8.3.3 Checking the Configuration
After completing the configuration of the redirection function, check the TCP connection status
to verify the configuration.
Prerequisite
All configurations of the redirection function are complete.
Context
l
Run the
display tcp status
command to check the status of the current TCP connection.
Example
Run the
display tcp status
to check the TCP connection status.
<Huawei>
display tcp status
TCPCB Tid/Soid Local Add:port Foreign Add:port VPNID State
1973f250 9 /2 0.0.0.0:22 0.0.0.0:0 23553 Listening
1973f0ec 9 /1 0.0.0.0:23 0.0.0.0:0 23553 Listening
1973ef88 109/1 0.0.0.0:80 0.0.0.0:0 23553 Listening
1a16a204 9 /14
0.0.0.0:2046
0.0.0.0:0 23553 Listening
1973e9f8 7 /1 0.0.0.0:7547 0.0.0.0:0 0 Listening
1a169c74 9 /15 10.137.217.211:23 10.138.77.61:2120 0 Established
Huawei AR2200 Series Enterprise Routers
Configuration Guide - Basic Configuration
8 Accessing Another Device
Issue 02 (2011-10-15)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
133