2037
global-port
: Port number designated for external access, in the range 0 to 65,535.
The default and the keyword must match those for
host-port.
host-address
: Internal IP address of the NAT server.
Description
Use the
nat server
command to define a translation table for an internal server.
Using the address and port combination defined by the
global-address
and
global-port
parameters, external users can access internal servers with an IP
address of
host-address
and a port of
host-port
.
Use the
undo nat server
command to remove the configuration.
Note that:
■
Of the two arguments
global-port
and
host-port
, if one is set to
any
, the other
must also be
any
, or remain undefined.
■
Using this command, you can configure internal servers (such as WWW, FTP,
Telnet, POP3, or DNS server) that provide services to external users. An internal
server can reside in a private network or in an MPLS VPN instance.
■
An interface can be configured with at most 256 internal server configuration
commands. Each command can create a number of internal servers equal to
the difference between
global-port2
and
global-port1
. An interface can be
configured with at most 4096 internal servers and a system allows at most
1024 internal server configuration commands.
■
In general, this command is configured on the interface that serves as the
egress of an internal network and connects to the external networks.
■
Currently the device supports Easy IP, which uses the interface address as the
public IP address of internal servers. To implement Easy IP on the current
interface, use key word
current-interface
in the command. To implement Easy
IP on other interfaces, you must specify an existing Loopback interface.
c
CAUTION:
When the protocol type is not
udp
(with a protocol number of 17) or
tcp
(with a protocol number of 6), you can only use the (
undo) nat server
[
vpn-instance
vpn-instance-name ]
protocol
pro-type
global
global-address
inside
host-address command, that is, one-to-one NAT between an internal IP
address and an external IP address.
Example
# Specify the IP address of the WWW Server in a LAN to be 10.110.10.10, the IP
address of the FTP Server in MPLS VPN vrf10 to be 10.110.10.11. It is desired to
allow external users to access the WWW Server through http://
202.110.10.10:8080, and the FTP Server through ftp://202.110.10.10. Assume
that the interface Serial 1/0 is connected to external networks.
<Sysname> system-view
[Sysname] interface serial 1/0
[Sysname-Serial1/0] nat server protocol tcp global 202.110.10.10 808
0 inside 10.110.10.10 www
[Sysname-Serial1/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
Содержание MSR 20-20
Страница 110: ......
Страница 130: ...130 CHAPTER 4 ATM OC 3C STM 1 INTERFACE CONFIGURATION COMMANDS...
Страница 141: ...141 Sysname system view Sysname interface atm 5 0 Sysname Atm5 0 shdsl wire 4 auto enhanced...
Страница 142: ...142 CHAPTER 5 G SHDSL INTERFACE CONFIGURATION COMMANDS...
Страница 150: ...150 CHAPTER 6 ADSL INTERFACE CONFIGURATION COMMANDS...
Страница 174: ...174 CHAPTER 8 GENERAL ETHERNET INTERFACE CONFIGURATION COMMANDS...
Страница 186: ...186 CHAPTER 9 CONFIGURATION COMMANDS FOR ETHERNET INTERFACES IN BRIDGE MODE...
Страница 288: ...288 CHAPTER 17 FUNDAMENTAL CT3 INTERFACE CONFIGURATION COMMANDS...
Страница 290: ...290 CHAPTER 18 ISDN BRI INTERFACE CONFIGURATION COMMANDS...
Страница 336: ...336 CHAPTER 20 DCC CONFIGURATION COMMANDS...
Страница 410: ...410 CHAPTER 22 FRAME RELAY CONFIGURATION COMMANDS Sysname system view Sysname x25 template vofr Sysname x25 vofr...
Страница 418: ...418 CHAPTER 24 GVRP CONFIGURATION COMMANDS...
Страница 502: ...502 CHAPTER 30 PORT MIRRORING CONFIGURATION COMMANDS...
Страница 532: ...532 CHAPTER 32 PPP LINK EFFICIENCY MECHANISM CONFIGURATION COMMANDS...
Страница 538: ...538 CHAPTER 33 PPPOE SERVER CONFIGURATION COMMANDS...
Страница 548: ...548 CHAPTER 35 PPP DEBUGGING COMMANDS...
Страница 596: ...596 CHAPTER 37 ISDN CONFIGURATION COMMANDS...
Страница 630: ...630 CHAPTER 38 MSTP CONFIGURATION COMMANDS...
Страница 638: ...638 CHAPTER 39 VLAN CONFIGURATION COMMANDS...
Страница 652: ...652 CHAPTER 41 VOICE VLAN CONFIGURATION COMMANDS...
Страница 670: ...670 CHAPTER 44 LOGICAL INTERFACE CONFIGURATION COMMANDS...
Страница 688: ...688 CHAPTER 45 CPOS INTERFACE CONFIGURATION COMMANDS...
Страница 696: ...696 CHAPTER 46 ARP CONFIGURATION COMMANDS...
Страница 728: ...728 CHAPTER 51 DHCP SERVER CONFIGURATION COMMANDS...
Страница 742: ...742 CHAPTER 52 DHCP RELAY AGENT CONFIGURATION COMMANDS...
Страница 746: ...746 CHAPTER 53 DHCP CLIENT CONFIGURATION COMMANDS...
Страница 750: ...750 CHAPTER 54 DHCP SNOOPING CONFIGURATION COMMANDS...
Страница 772: ...772 CHAPTER 57 DNS CONFIGURATION COMMANDS...
Страница 786: ...786 CHAPTER 59 IP ADDRESSING CONFIGURATION COMMANDS...
Страница 806: ...806 CHAPTER 60 IP PERFORMANCE CONFIGURATION COMMANDS...
Страница 818: ...818 CHAPTER 61 IP UNICAST POLICY ROUTING CONFIGURATION COMMANDS...
Страница 822: ...822 CHAPTER 62 UDP HELPER CONFIGURATION COMMANDS...
Страница 824: ...824 CHAPTER 63 URPF CONFIGURATION COMMANDS...
Страница 828: ...828 CHAPTER 64 FAST FORWARDING COMMANDS...
Страница 880: ...880 CHAPTER 67 DUAL STACK CONFIGURATION COMMANDS...
Страница 888: ...888 CHAPTER 68 TUNNELING CONFIGURATION COMMANDS...
Страница 928: ...928 CHAPTER 70 TERMINAL ACCESS CONFIGURATION COMMANDS...
Страница 1014: ...1014 CHAPTER 72 BGP CONFIGURATION COMMANDS...
Страница 1088: ...1088 CHAPTER 74 IS IS CONFIGURATION COMMANDS...
Страница 1106: ...1106 CHAPTER 75 IS IS DEBUGGING COMMANDS...
Страница 1212: ...1212 CHAPTER 79 IPV4 ROUTING POLICY CONFIGURATION COMMANDS...
Страница 1268: ...1268 CHAPTER 82 IPV6 BGP CONFIGURATION COMMANDS...
Страница 1324: ...1324 CHAPTER 85 IPV6 RIPNG CONFIGURATION COMMANDS...
Страница 1364: ...1364 CHAPTER 88 IGMP CONFIGURATION COMMANDS...
Страница 1430: ...1430 CHAPTER 90 PIM CONFIGURATION COMMANDS...
Страница 1504: ...1504 CHAPTER 93 IPV6 PIM CONFIGURATION COMMANDS...
Страница 1644: ...1644 CHAPTER 96 MPLS TE CONFIGURATION COMMANDS...
Страница 1670: ...1670 CHAPTER 97 MPLS L2VPN CONFIGURATION COMMANDS...
Страница 1742: ...1742 CHAPTER 101 IPSEC PROFILE CONFIGURATION COMMANDS...
Страница 1774: ...1774 CHAPTER 105 TRAFFIC POLICING TP CONFIGURATION COMMANDS...
Страница 1778: ...1778 CHAPTER 106 TRAFFIC SHAPING CONFIGURATION COMMANDS...
Страница 1782: ...1782 CHAPTER 107 LINE RATE CONFIGURATION COMMANDS...
Страница 1807: ...1807 Sysname system view Sysname qos policy user1 Sysname qospolicy user1...
Страница 1808: ...1808 CHAPTER 110 DEFINING POLICY COMMANDS...
Страница 1810: ...1810 CHAPTER 111 FIFO QUEUING CONFIGURATION COMMANDS...
Страница 1836: ...1836 CHAPTER 116 RTP PRIORITY QUEUE CONFIGURATION COMMANDS...
Страница 1838: ...1838 CHAPTER 117 QOS TOKEN CONFIGURATION COMMANDS...
Страница 1842: ...1842 CHAPTER 118 PRIORITY MAPPING TABLE CONFIGURATION COMMANDS...
Страница 1844: ...1844 CHAPTER 119 PORT PRIORITY CONFIGURATION COMMANDS...
Страница 1852: ...1852 CHAPTER 121 WRED CONFIGURATION COMMANDS...
Страница 1860: ...1860 CHAPTER 123 MPLS QOS CONFIGURATION COMMANDS...
Страница 1874: ...1874 CHAPTER 124 DAR CONFIGURATION COMMANDS...
Страница 1947: ...1947 Sysname system view Sysname local user user1 Sysname luser user1 work directory cf...
Страница 1948: ...1948 CHAPTER 127 AAA CONFIGURATION COMMANDS...
Страница 1990: ...1990 CHAPTER 129 HWTACACS CONFIGURATION COMMANDS...
Страница 2008: ...2008 CHAPTER 131 ASPF CONFIGURATION COMMANDS...
Страница 2080: ...2080 CHAPTER 135 PORTAL CONFIGURATION COMMANDS...
Страница 2086: ...2086 CHAPTER 137 COMMON CONFIGURATION COMMANDS...
Страница 2102: ...2102 CHAPTER 138 IPV4 ACL CONFIGURATION COMMANDS...
Страница 2118: ...2118 CHAPTER 139 IPV6 ACL CONFIGURATION COMMANDS...
Страница 2200: ...2200 CHAPTER 142 SSH2 0 CONFIGURATION COMMANDS...
Страница 2292: ...2292 CHAPTER 150 NQA SERVER CONFIGURATION COMMANDS Sysname system view Sysname nqa server udp echo 169 254 10 2 9000...
Страница 2314: ...2314 CHAPTER 152 NTP CONFIGURATION COMMANDS...
Страница 2328: ...2328 CHAPTER 153 RMON CONFIGURATION COMMANDS...
Страница 2350: ...2350 CHAPTER 154 SNMP CONFIGURATION COMMANDS...
Страница 2368: ...2368 CHAPTER 156 CONFIGURATION FILE MANAGEMENT COMMANDS...
Страница 2390: ...2390 CHAPTER 158 FTP CLIENT CONFIGURATION COMMANDS...
Страница 2396: ...2396 CHAPTER 159 TFTP CLIENT CONFIGURATION COMMANDS...
Страница 2476: ...2476 CHAPTER 164 USER INTERFACE CONFIGURATION COMMANDS Sysname system view Sysname user interface vty 0 3 Sysname ui vty0 3...
Страница 2484: ...2484 CHAPTER 165 MAC ADDRESS TABLE MANAGEMENT CONFIGURATION COMMANDS...
Страница 2646: ...2646 CHAPTER 174 DIAL PLAN CONFIGURATION COMMANDS...
Страница 2710: ...2710 CHAPTER 178 SIP CONFIGURATION COMMANDS...
Страница 2720: ...2720 CHAPTER 179 VOFR CONFIGURATION COMMANDS...