2038 CHAPTER 133: NAT CONFIGURATION COMMANDS

[Sysname-vpn-instance] quit [Sysname] interface serial 1/0

[Sysname-Serial1/0] nat server vpn-instance vrf10 protocol tcp globa l 202.110.10.10 inside 10.110.10.11

#Specify a host with an IP address of 10.110.10.12 in VPN vrf10. An external host pings 202.110.10.11 to examine the connectivity to the host.

<Sysname> system-view [Sysname] interface serial 1/0

[Sysname-Serial1/0] nat server vpn-instance vrf10 protocol icmp glob al 202.110.10.11 inside 10.110.10.12

#Specify the external IP address as 202.110.10.10. Telnet the hosts which IP addresses range from 10.110.10.1 to 10.110.10.100 in MPLS VPN vrf10 through the ports ranging from 1001 to 1100, for example, telnet 10.110.10.1 from 202.110.10.10:1001, telnet 10.110.10.2 from 202.110.10.10:1002 and so on.

<Sysname> system-view [Sysname] interface serial 1/0

[Sysname-Serial1/0] nat server vpn-instance vrf10 protocol tcp globa l 202.110.10.10 1001 1100 inside 10.110.10.1 10.110.10.100 telnet

# Remove the WWW server using the following commands.

<Sysname> system-view [Sysname] interface serial 1/0

[Sysname-Serial1/0] undo nat server protocol tcp global 202.110.10.1 0 8070 inside 10.110.10.10 www

# Remove the FTP server in VPN vrf10 using the following commands.

<Sysname> system-view [Sysname] interface serial 1/0

[Sysname-Serial1/0] undo nat server vpn-instance vrf10 protocol tcp global 202.110.10.11 8070 inside 10.110.10.11 ftp

nat static

Syntax nat static { ip-address1 ip-address2 net-to-netstart-ip end-ip global global-net-address { mask mask-length } }

undo nat static { ip-address1 ip-address2 net-to-netstart-ip end-ip global global-net-address { mask mask-length } }

View System view

Parameter ip-address1: Internal IP address. ip-address2: External IP address.

net-to-net: Specifies static translation for network segment mapping.

start-ip: Start address of an internal IP address range.

Page 2038
Image 2038
3Com MSR 30, MSR 50 manual Nat static, # Remove the WWW server using the following commands