R3102-R3103-HP 6600/HSR6600 Routers Layer 3 - IP Services Command Reference

135
[Sysname-Serial2/1/0] nat server protocol tcp global 202.110.10.10 8080 inside
10.110.10.10 www
[Sysname-Serial2/1/0] quit
[Sysname] ip vpn-instance vrf10
[Sysname-vpn-instance] route-distinguisher 100:001
[Sysname-vpn-instance] vpn-target 100:1 export-extcommunity
[Sysname-vpn-instance] vpn-target 100:1 import-extcommunity
[Sysname-vpn-instance] quit
[Sysname] interface serial 2/1/0
[Sysname-Serial2/1/0] nat server protocol tcp global 202.110.10.10 21 inside 10.110.10.11
vpn-instance vrf10
# Allow external hosts to ping the host with an IP address of 10.110.10.12 in VPN vrf10 by using the ping
202.110.10.11 command.
<Sysname> system-view
[Sysname] interface serial 2/1/0
[Sysname-Serial2/1/0] nat server protocol icmp global 202.110.10.11 inside 10.110.10.12
vpn-instance vrf10
# Allow external hosts to access the Telnet services of internal servers 10.110.10.1 to 10.110.10.100 in
MPLS VPN vrf10 through the public address of 202.110.10.10 and port numbers from 1001 to 1100. As
a result, a user can Telnet to 202.110.10.10:1001 to access 10.110.10.1, Telnet to 202.110.10.10:1002 to
access 10.110.10.2, and so on.
<Sysname> system-view
[Sysname] interface serial 2/1/0
[Sysname-Serial2/1/0] nat server protocol tcp global 202.110.10.10 1001 1100 inside
10.110.10.1 10.110.10.100 telnet vpn-instance vrf10
# Remove the Web server.
<Sysname> system-view
[Sysname] interface serial 2/1/0
[Sysname-Serial2/1/0] undo nat server protocol tcp global 202.110.10.10 8080 inside
10.110.10.10 www
# Remove the FTP server from VPN vrf10.
<Sysname> system-view
[Sysname] interface serial 2/1/0
[Sysname-Serial2/1/0] undo nat server protocol tcp global 202.110.10.11 21 inside
10.110.10.11 ftp vpn-instance vrf10
Related commands
display nat server
nat server-group
Use nat server-group to configure an internal server group.
Use undo nat server-group to remove the specified internal server group.
Syntax
nat server-group group-number
undo nat server-group group-number