Configuration case of multiple pat in enterprise

Source: Internet
Author: User

Requirements: Suppose R1 for County Tobacco Bureau route, R2 for City Tobacco Bureau, R3 for provincial Tobacco Bureau route

1.0 network segments have routes to 2.0 and 3.0. But 2.0 3.0 can't reach 1.0.

Do Pat on the R1.

R1:

Configure interface IP:

R1 (config-if) #int e0/0

R1 (config-if) #ip add 192.168.1.1 255.255.255.0

R1 (config-if) #keepalive

R1 (config-if) #no sh

R1 (config) #int s1/0

R1 (config-if) #ip add 192.168.4.2 255.255.255.0

R1 (config-if) #no sh

R1 (config-if) #int S1/1

R1 (config-if) #ip add 192.168.5.2 255.255.255.0

R1 (config-if) #no sh

To configure a static route:

R1 (config) #ip Route 192.168.2.0 255.255.255.0 192.168.4.1

R1 (config) #ip Route 192.168.3.0 255.255.255.0 192.168.5.1

Pat Configuration:

1. Internal interface Configuration

R1 (config) #int e0/0

R1 (CONFIG-IF) #ip nat inside

2. External interface Configuration

R1 (config-if) #int s1/0

R1 (config-if) #ip Nat outside

R1 (config-if) #int S1/1

R1 (config-if) #ip Nat outside

3. Write ACL

R1 (config) #access-list permit ip 192.168.1.0 0.0.0.255 192.168.2.0 0.0.0.255

R1 (config) #access-list permit ip 192.168.1.0 0.0.0.255 192.168.3.0 0.0.0.255

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.