In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-19 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.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.