![Huawei AR2200 Series Configuration Manual Download Page 167](http://html.mh-extra.com/html/huawei/ar2200-series/ar2200-series_configuration-manual_169296167.webp)
43 TTY 43 9600 - 0 - N 5/0/2
44 TTY 44 9600 - 0 - N 5/0/3
45 TTY 45 9600 - 0 - N 5/0/4
46 TTY 46 9600 - 0 - N 5/0/5
47 TTY 47 9600 - 0 - N 5/0/6
48 TTY 48 9600 - 0 - N 5/0/7
+ 129 VTY 0 - 15 4 N -
130 VTY 1 - 15 - N -
131 VTY 2 - 15 - N -
132 VTY 3 - 15 - N -
133 VTY 4 - 15 - N -
145 VTY 16 - 0 - P -
146 VTY 17 - 0 - P -
147 VTY 18 - 0 - P -
148 VTY 19 - 0 - P -
149 VTY 20 - 0 - P -
Step 3
Enable the redirection function on RouterA and associate the redirection function with the VPN
instance
vpna
.
[RouterA]
user-interface tty 42
[RouterA-ui-tty42]
undo shell
[RouterA-ui-tty42]
redirect enable
[RouterA-ui-tty42]
redirect binding vpn-instance vpna
[RouterA-ui-tty42]
quit
[RouterA]
quit
NOTE
If the redirection function is not associated with the VPN instance to which the private users belong, all
users on public and private networks can log in to RouterB.
Step 4
Check the port number allocated to the TTY user interface.
<RouterA>
display tcp status
TCPCB Tid/Soid Local Add:port Foreign Add:port VPNID State
19fde824 9 /2 0.0.0.0:22 0.0.0.0:0 23553 Listening
19fde6c0 9 /1 0.0.0.0:23 0.0.0.0:0 23553 Listening
19fde130 109/1 0.0.0.0:80 0.0.0.0:0 23553 Listening
19fdef18 9 /4
0.0.0.0:2042
0.0.0.0:0 23553 Listening
19fde55c 7 /1 0.0.0.0:7547 0.0.0.0:0 0 Listening
19fdf07c 9 /9 10.137.217.211:23 10.138.77.61:2567 0 Established
19fdf344 9 /10 10.137.217.211:23 10.138.77.69:2824 0 Time_Wait
Step 5
Verify the configuration.
Run the
telnet 10.1.1.1 2042
command on the PC to log in to RouterB. In the command,
2042
is the default port number.
C:\Documents and Settings\Administrator>
telnet 10.1.1.1 2042
Press CTRL_] to quit telnet mode
Trying 10.1.1.1...
Connected to 10.1.1.1...
[RouterB]
----End
Configuration Files
l
Configuration file of RouterA
#
sysname RouterA
#
ip vpn-instance
vpna
ipv4-
family
route-distinguisher 1:1
vpn-target 111:1 export-extcommunity
vpn-target 111:1 import-
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.
156