H3C S7500 Series Ethernet Switches Command Manual

Table Of Contents
Command Manual – NAT, Netstream, Policy Routing
H3C S7500 Series Ethernet Switches Chapter 1
NAT Configuration Commands
1-19
Examples
# Specify the IP address of the internal WWW server to be 10.110.10.10, the IP address
of the internal FTP server to be 10.110.10.11, and allow external hosts to access the
WWW server and FTP server by http://202.110.10.10:8080 and ftp://202.110.10.10
respectively. Suppose that VLAN-interface 2 is connected to an ISP network.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] interface Vlan-interface 2
[H3C-Vlan-interface2] nat server protocol tcp global 202.110.10.10 8080 inside
10.110.10.10 www slot 3
[H3C-Vlan-interface2] nat server protocol tcp global 202.110.10.10 ftp inside
10.110.10.11 ftp slot 3
# Specify an internal host 10.110.10.12 which can be successfully pinged by external
hosts using the ping 202.110.10.11 command.
[H3C-Vlan-interface2] nat server protocol icmp global 202.110.10.11 inside
10.110.10.12 slot 2
# Delete the WWW server.
[H3C-Vlan-interface2] undo nat server protocol tcp global 202.110.10.10 8080
inside 10.110.10.10 www slot 3
# Delete the FTP server.
[H3C-Vlan-interface2] undo nat server protocol tcp global 202.110.10.10 ftp
inside 10.110.10.11 ftp slot 3
# Specify an external address 202.110.10.10, map ports from 1001 to 1100 to the Telnet
service of internal hosts from 10.110.10.1 to 10.110.10.100, thus allowing external
access to 10.110.10.1 through 202.110.10.10:1001, access to 10.110.10.2 through
202.110.10.10:1002, and so on.
[H3C-Vlan-interface2] nat server protocol tcp global 202.110.10.10 1001 1100
inside 10.110.10.1 10.110.10.100 telnet slot 5
1.1.17 reset nat
Syntax
reset nat session slot slot-number
View
User view
Parameters
slot-number: Slot number of an LPU.