Get the App
SLTechnology News&Howtos  ›  Servers  › 

Huawei configure NAT configure PNAT

Shulou Source: shulou.com Published: 2022-06-02 15:42:36 11月12日 Update

Configure PNAT:

Ideas and steps:

1. Configure ip:192.168.10.1 255.255.255.0 gateway 192.168.20.254 for PC1

Configure ip:192.168.10.2 255.255.255.0 gateway 192.168.20.254 for PC2

two。 Configure port 0 gateway on R1: 192.168.10.254 255.255.255.0

Configure Port 1 ip:100.1.1.1 255.255.255.0 on R1

3. Configure port 0 ip:100.1.1.2 255.255.255.0 on R2

Configure 1-port ip:200.1.1.1 255.255.255.0 on R2

4. Configure port 0 ip:200.1.1.2 255.255.255.0 on R3

5. Configure a floating static route in R1 global configuration mode

Ip route 0.0.0.0 0.0.0.0 100.1.1.2

6. Configure RIP in R2 system mode

Rip

Version 2

Network 100.0.0.0

Network 200.1.1.0

Silent-interface g0/0/0

7. Configure RIP on R3 system

Rip

Version 2

Network 200.1.1.0

8. Enter any port in R1 system mode to start the static NAT function

Nat static enable

Configure a translation entry (2ways)

(1): in global mode:

Nat static global 100.1.1.x inside 192.168.10.1

(X: the last bit of a non-real ip address)

(2): in interface mode (must be the data egress port)

Nat static global 100.1.1.x inside 192.168.10.1

(X: the last bit of a non-real ip address)

9. Validate, test, save

Verify: in R1 system mode:

Display nat static

Testing: grabbing bags

Configure in R2 user mode

Terminal monitor

Terminal debuging

Debuging ip icmp

Configure in R1 user mode

Debuging nat all

10. Using pc1ping200.1.1.2, you can see the crawled packets on R2.

=

Configuration of PNAT:

Train of thought:

Steps 1-7 are the same as configuring NAT.

8. Configure in R1 system mode:

Acl 2000

Rule 5 permit sourse 192.168.10.0 0.0.0.255

Then enter port 1 (the port where traffic flows out) in system mode.

Interface gi0/0/1

Nat outbound 2000

9. Validate, test, save

In R1 system mode, do the following configuration to view

Dis nat outbound

10. Any PC in the 192.168.10.0 network segment can communicate with ping.

Tags: Configuration mode port system step gateway test authentication global address train of thought user static same function interface data entry traffic network segment Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Technology macOS Shulou Tech Info Redmi Linux