Configure PAT on a cisco router for Internet sharing

Source: Internet
Author: User

Configuring PAT on a cisco router to achieve Internet sharing I. PAT (prot Address Translation, port Address translation) is one of the most common implementations of NAT (Network Address Translation. Ii. PAT configuration example. Www.2cto.com 1. Set the IP address of the interface. Cisco2811 (config) # interface fastethent0/0Cisco2811 (config-if) # ip address 192.168.1.254 255.255.255.0Cisco2811 (config-if) # no shutdownCisco2811 (config-if) # interface fastethent0/1Cisco2811 (config-if) # ip address 220.95.5.194 255.255.255.0Cisco2811 (config-if) # no shutdown2. define the access control list. Cisco2811 (config) # access-list 1 permit 192.168.1.0 0.0.255l Access-list is the keyword used to configure the access control list. L "1" is the access control list number, and its range is 1 ~ An integer between 99. L Permit is permitted. This command is followed by an address range. Here, we can understand the IP address range that allows address translation. L 192.168.1.0 0.0.255 indicates 192.168.1.0 ~ 192.168.1.255. 0.0.0.255 is a wildcard. Www.2cto.com 3. Implement the multiplexing of external interface addresses and dynamic conversion of IP addresses. Cisco2811 (config) # ip nat inside source list 1 interface fastethernet0/1 overlocadl Ip nat: configure the PAT keyword. L Inside source list 1: indicates a packet that enters from the inside interface and meets the requirements of acces-list 1. Its source address is converted to PAT. L Interface fastethenet0/1: Indicates Interface reuse on the f0/1 Interface. L Overload: It means overload. Only when Overload is configured can the interface be reused. 4. enable PAT on the interface. cisco2811 (config) # interface fastethent0/0Cisco2811 (config-if) # ip nat insideCisco2811 (config) # interface fastethent0/1Cisco2811 (config-if) # generally, ip nat outside adds a default route pointing to the Internet. Cisco2811 (config) # ip route 0.0.0.0 0.0.0.0 fastethenet0/1

Related Article

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.