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

NAT static conversion

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

Share

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

I. Experimental environment and objectives

A switch, a router and three PCs are interconnected across the network and configured with static NAT translation, as shown in the following figure

II. Operation script

1. In switch SW

SW#conf t

SW (config) # no ip routing

SW (config) # int f1and0

SW (config-if) # speed 100

SW (config-if) # duplex full

two。 In router R1

R1#conf t

R1 (config) # int f0bin0

R1 (config-if) # ip add 192.168.10.1 255.255.255.0

R1 (config-if) # no shutdown

R1 (config-if) # speed 100

R1 (config-if) # duplex full

R1 (config-if) # int f0bin1

R1 (config-if) # ip add 10.0.0.1 255.255.255.0

R1 (config-if) # no shutdown

3. In VPCS

VPCS [1] > ip 192.168.10.2 192.168.10.1

VPCS [1] > 2

VPCS [2] > ip 192.168.10.3 192.168.10.1

VPCS [2] > 3

VPCS [3] > ip 10.0.0.10 10.0.0.1

VPCS [3] > 1

VPCS [1] > ping 10.0.0.10

VPCS [1] > 2

VPCS [2] > ping 10.0.0.10

4. In router R1

R1 (config-if) # exit

R1 (config) # ip nat inside source static 192.168.10.2 10.0.0.3

R1 (config) # ip nat inside source static 192.168.10.3 10.0.0.4

R1 (config) # int f0bin0

R1 (config-if) # ip nat inside

R1 (config-if) # int f0bin1

R1 (config-if) # ip nat outside

R1 (config-if) # end

R1#debug ip nat

5. In VPCS

VPCS [2] > 1

VPCS [1] > ping 10.0.0.10

VPCS [1] > 2

VPCS [2] > ping 10.0.0.10

Third, the diagram of the experimental steps

1. In switch SW

two。 In router R1

3. In VPCS

4. In router R1

5. In VPCS

4. Experimental results

The results show that the static NAT is configured successfully, as shown in the following figure

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

Network Security

Wechat

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

12
Report