H3C MSR 2600 Configuration Manual page 143

Layer 3
Hide thumbs Also See for MSR 2600:
Table of Contents

Advertisement

Configuration procedure
# Specify IP addresses for the interfaces. (Details not shown.)
# Configure a one-to-one static NAT mapping between internal address 10.1 10.10.8 and the NAT
address 202.38.1.100.
<Router> system-view
[Router] nat static 10.110.10.8 202.38.1.100
# Enable static NAT on interface GigabitEthernet 1/2.
[Router] interface gigabitethernet 1/2
[Router-GigabitEthernet1/2] nat static enable
[Router-GigabitEthernet1/2] quit
Verifying the configuration
After completing the configurations, the host at 10.1 10.10.8/24 can access the server on the Internet.
# Display static NAT configuration.
[Router] display nat static
Static NAT mappings:
There are 1 outbound static NAT mappings.
IP-to-IP:
Local IP
Global IP : 202.38.1.100
Interfaces enabled with static NAT:
There are 1 interfaces enabled with static NAT.
Interface: GigabitEthernet1/2
# Use the display nat session verbose command to display NAT session information generated when the
host accesses an external server.
[Router] display nat session verbose
Initiator:
Source
Destination IP/port: 202.38.1.111/2048
VPN instance/VLAN ID/VLL ID: -/-/-
Protocol: ICMP(1)
Responder:
Source
Destination IP/port: 202.38.1.100/0
VPN instance/VLAN ID/VLL ID: -/-/-
Protocol: ICMP(1)
State: ICMP_REPLY
Application: INVALID
Start time: 2012-08-16 09:30:49
Interface(in) : GigabitEthernet1/1
Interface(out): GigabitEthernet1/2
Initiator->Responder:
Responder->Initiator:
Total sessions found: 1
: 10.110.10.8
IP/port: 10.110.10.8/42496
IP/port: 202.38.1.111/42496
TTL: 27s
5 packets
420 bytes
5 packets
420 bytes
128

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents