The static one-to-one NAT Global Address of the router is also used for PAT and natpat

Source: Internet
Author: User

The static one-to-one NAT Global Address of the router is also used for PAT and natpat

I. Description

Handle a fault. A host performs one-to-one static NAT on the Cisco router. The host can log on to the device through the NAT address ssh normally, but the host sends syslogs, the obtained address is not the address after static NAT, but the address of the router interface.

Ii. Cause

After checking the vro configuration, in addition to static NAT configuration, dynamic PAT configuration is also made. However, after the dynamic configuration ACL adds the deny of the Intranet address mapped to the host, still ineffective. After logging on to the device, you will find that the mapped Intranet address is actually the floating address of the network card. Because the host actively communicates with the outside world, the floating address is not used as the source address, so PAT is used when the address goes out.

Iii. Solution

1. Assume:

Floating Intranet address:

Actual Intranet address:

Global one-to-one ing of Intranet floating addresses:

Host address for receiving syslogs:

2. Retain the static one-to-one nat of the original virtual address

Ip nat inside source static

2. modify the original PAT configuration to add a packet that first rejects syslog data.

Ip access-list extended pat

Deny udp host host eq syslog

Permit ip any

Ip nat inside source list pat interface GigabitEthernet0/0 overload

3. added the PAT configuration. The address pool address of the global address is the global address mapped to the Intranet floating address.

Ip access-list extended outpat

Permit udp host host eq syslog

Ip nat pool outpatpool netmask

Ip nat inside source list outpat pool outpatpool overload

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.