27
# Enable terminal access.
<Sysname> system-view
[Sysname] rta server enable
# Create a terminal template and enter terminal template view.
[Sysname] rta template rtcclient
# Configure the VTY.
[Sysname-rta-template-rtcclient] vty 0 rtc-client remote 10.111.21.13 remote-port
3000 udp local-port 3001 source 10.111.0.12
[Sysname-rta-template-rtcserver] quit
# Apply the template to the primary interface.
[Sysname] interface serial 2/1/0
[Sysname-Serial2/1/0] link-protocol stlp
[Sysname-Serial2/1/0] rta terminal rtcclient 1
[Sysname-Serial2/1/0] quit
# Apply the template to the backup interface.
[Sysname] interface serial 2/1/1
[Sysname-Serial2/1/1] link-protocol stlp
[Sysname-Serial2/1/1] rta terminal rtcclient 1 backup
[Sysname-Serial2/1/1] quit
2.
Configure the UDP_11_Server Router B:
# Enable terminal access.
<Sysname> system-view
[Sysname] rta server enable
# Create a terminal template and enter terminal template view.
[Sysname] rta template rtcserver
# Configure the VTY.
[Sysname-rta-template-rtcserver] vty 0 rtc-server remote 10.111.0.12 remote-port
3001 udp local-port 3000 source 10.111.21.13
[Sysname-rta-template-rtcserver] quit
# Apply the template to the interface.
[Sysname] interface serial 2/1/0
[Sysname-Serial2/1/0] link-protocol stlp
[Sysname-Serial2/1/0] rta terminal rtcserver 1
[Sysname-Serial2/1/0] quit
Verifying the configuration
To verify the backup link function, follow these steps:
1.
Send a connection request from Terminal A and Terminal B to Terminal C when both Serial
2/1/0 and Serial 2/1/1 on Router A are in up state.
Expected result: Terminal A can receive data from Terminal C. Terminal B cannot receive data
from Terminal C.
2.
Shut down Serial 2/1/0 on Router A and send a connection request from Terminal A and
Terminal B.
Expected result: Terminal A cannot receive data from Terminal C. Terminal B can receive data
from Terminal C.
3.
Bring up Serial 2/1/0 on router A and send a connection request from Terminal A and Terminal
B.
Expected result: Terminal A can receive data from Terminal C. Terminal B cannot receive data
from Terminal C.