Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Detailed explanation of Huawei NAT basic configuration example

2025-01-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >

Share

Shulou(Shulou.com)06/01 Report--

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.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report