Get the App
SLTechnology News&Howtos  ›  Network Security  › 

Detailed explanation of Huawei NAT basic configuration example

Shulou Source: shulou.com Published: 2022-06-01 05:02:00 10月04日 Update

Lab requirements:

PC-1/2 wants to ping PC-3.

The steps of the experiment:

1. Equipment interconnection, IP address planning, power-up

two。 Equipment configuration

Intranet equipment

Terminal equipment

PC1:

Ip 192.168.10.1

Mask 255.255.255.0

Gateway 192.168.10.254

PC2:

Ip 192.168.10.2

Mask 255.255.255.0

Gateway 192.168.10.254 network equipment

& layer 2 device-SW

@ create VLANbr/ > Network device

& layer 2 device-SW

@ create VLAN

[SW] vlan 10 quit [SW] port-group group-member gi0/0/1 to gi0/0/3 port link-type access port default vlan 10 quit layer 3 device-Router [R1] interface gi0/0/2 [R1-GigabitEthernet0/0/2] ip address 192.168.10.254 255.255.255.0 [R1] interface gi0/0/0 [R1-GigabitEthernet0/0/0] ip address 12.1.1.1 255.255.255.0 [R1] ip route-static 0.0.0.0 0.0.0.0 12.1.1.2 [R1] nat static global 12.1.1.3 inside 192.168.10.1 [R1] nat static global 12. 1.1.4 inside 192.168.10.2 [R1] interface gi0/0/0 [R1-GigabitEthernet0/0/0] nat static enable external network device [R2] interface gi0/0/1 [R2-GigabitEthernet0/0/1] ip address 12.1.1.2 255.255.255.0 [R2-GigabitEthernet0/0/1] interface gi0/0/0 [R2-GigabitEthernet0/0/0] ip address 13.1.1.254 255.255.255.0 PC3: ip 13.1.1.253 mask 255.255.255.0 gateway 13.1.1.254

Test:

PC1:

192.168.10.1-> 13.1.1.253

The test was successful!

You can use wireshark to grab packets for verification.

Tags: Devices networks network devices experiments tests configurations success addresses steps terminals terminal devices requirements interconnection planning verification basic configuration examples Huawei Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Tech Info OPPO Reno Redmi MySQL Microsoft