HPE FlexNetwork MSR Series Comware 7 Layer 3 - Ip Services Configuration Manuals page 187

Table of Contents

Advertisement

# Configure NAT Server on interface GigabitEthernet 2/0/2 to allow external hosts to access the
internal DNS server by using the address 202.38.1.4.
[Router] interface gigabitethernet 2/0/2
[Router-GigabitEthernet2/0/2] nat server protocol udp global 202.38.1.4 inside
192.168.1.3 dns
# Enable outbound NO-PAT on interface GigabitEthernet 2/0/2 to translate IP address of the Web
server in the DNS response payload into the address in address group 1, and allow reversible NAT.
[Router-GigabitEthernet2/0/2] nat outbound 2000 address-group 1 no-pat reversible
# Enable inbound PAT on interface GigabitEthernet 2/0/2 to translate the source address of packets
going to the internal network to the address in address group 2.
[Router-GigabitEthernet2/0/2] nat inbound 2000 address-group 2
[Router-GigabitEthernet2/0/2] quit
# Configure a static route to 202.38.1.3 with GigabitEthernet 2/0/2 as the output interface and
20.2.2.2 as the next hop. (The next hop address varies by network.)
[Router] ip route-static 202.38.1.3 32 gigabitethernet 2/0/2 20.2.2.2
Verifying the configuration
# Verify that the host on the external network can use the domain name to access the internal Web
server whose address is the same as the host. (Details not shown.)
# Display all NAT configuration and statistics.
[Router] display nat all
NAT address group information:
Totally 2 NAT address groups.
Address group 1:
Port range: 1-65535
Address information:
Start address
202.38.1.2
Address group 2:
Port range: 1-65535
Address information:
Start address
202.38.1.3
NAT inbound information:
Totally 1 NAT inbound rules.
Interface: GigabitEthernet2/0/2
ACL: 2000
NO-PAT: N
Config status: Active
NAT outbound information:
Totally 1 NAT outbound rules.
Interface: GigabitEthernet2/0/2
ACL: 2000
NO-PAT: Y
Config status: Active
End address
202.38.1.2
End address
202.38.1.3
Address group: 2
Reversible: N
Address group: 1
Reversible: Y
173
Add route: N
Port-preserved: N

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FlexNetwork MSR Series and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents