To debug a Cisco router to modify a NAT configuration

Source: Internet
Author: User
Tags modify

The router did a simple NAT conversion, and the NAT address pool set up a network segment.

After a period of time, found that the address pool is a bit wasteful, when they want to use real IP, but can not use, so decided to modify the router configuration.

The original main routing settings are as follows:

...
interface FastEthernet0/0
ip address 192.168.1.58 255.255.255.252
ip nat outside
...
interface FastEthernet0/1
ip address 192.168.2.1 255.255.255.0 secondary
ip address 219.235.228.81 255.255.255.248
ip nat inside
...
ip nat pool NAT-1 219.235.228.82 219.235.228.85 netmask 255.255.255.248
ip nat inside source list 1 pool NAT-1 overload
...
access-list 1 permit 192.168.2.0 0.0.0.255
...

Now want to change the address pool 219.235.228.82-219.235.228.85 to 219.235.228.82 an address, in fact, the idea is very simple, but in the process of operation or is more careful, presumably the idea is

1. First the external network is broken, because now dynamic NAT is in use, is not allowed you to modify the configuration, so we have to break the extranet

2. Then clear all dynamic NAT conversion caches

3. Delete the previous address pool settings

4. Add the correct address pool settings

5. Open the outer net

6. Save compounding to Ram

Okay, the actual operation is as follows

#conf t
int FastEthernet0/0
no ip nat outside

Let's go back to # mode

#clear IP NAT Translation *

Enter FASTETHERNET0/1 Modify NAT

conf t
int FastEthernet0/1
no ip nat pool NAT-1 219.235.228.82 219.235.228.85 netmask 255.255.255.248
ip nat pool NAT-1 219.235.228.82 219.235.228.82 netmask 255.255.255.248

NAT configuration modified, now let's go back and open the extranet.

#conf t
int FastEthernet0/0
ip nat outside

OK, the modification is complete, simple, is to be careful on the line.

Do not forget to save the last step, otherwise restart the router after you have to modify

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: info-contact@alibabacloud.com 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.