In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Dynamic NAT
The topology diagram is as follows:
Experimental procedure
1. Set up layer 3 switch sw
Sw#conf t Enter configuration commands, one per line. End with CNTL/Z.sw (config) # no ip routing sw (config) #
2. Set up routing R1
R1#conf t Enter configuration commands, one per line. End with CNTL/Z.R1 (config) # int f 0/1R1 (config-if) # ip add 192.168.20.1 255.255.255.0 / / only set the IP address and subnet mask R1 (config-if) # no shut * Mar 1 0000 0/1R1 54.063:% LINK-3-UPDOWN: Interface FastEthernet0/1, changed state to up*Mar 1 0015 063:% LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1 Changed state to upR1 (config-if) # int f 0/0R1 (config-if) # ip add 192.168.100.1 255.255.255.0 / / only set the IP address and subnet mask R1 (config-if) # no shut R1 (config-if) # ex * Mar: 08.423:% LINK-3-UPDOWN: Interface FastEthernet0/0, changed state to up*Mar 100: 01VR 09.423:% LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0 Changed state to upR1 (config) #
3. Set up three PCs
PC1
PC1 > PC1 > ip 192.168.20.20 192.168.20.1Checking for duplicate address...PC1: 192.168.20.20 255.255.255.0 gateway 192.168.20.1PC1 >
PC2
PC2 > PC2 > ip 192.168.20.30 192.168.20.1 Checking for duplicate address...PC1: 192.168.20.30 255.255.255.0 gateway 192.168.20.1PC2 >
PC3
PC3 > PC3 > ip 192.168.100.10 192.168.100.1Checking for duplicate address...PC1: 192.168.100.10 255.255.255.0 gateway 192.168.100.1PC3 > Note: network-wide interconnection can be achieved theoretically, as shown in the following figure. If you cannot connect, please check the command yourself.
In order to meet the requirements of the experiment, we will formally set up the dynamic NAT.
R1
R1 (config) # R1 (config) # ip access-list standard zhy / / set the named access control list R1 (config-std-nacl) # permit 192.168.20.0 0.0.255 R1 (config) # ip nat pool test 12.0.10 12.0.20 netmask 255.255.255.0 / set up the public network address pool R1 (config) # * Mar 1 00:09 : 46.123:% LINEPROTO-5-UPDOWN: Line protocol on Interface NVI0 Changed state to upR1 (config) # ip nat inside source list zhy pool test / / implement network address translation R1 (config) # int f 0/1R1 (config-if) # ip nat inside / / enable internal NATR1 (config-if) # int f 0/0R1 (config-if) # ip nat outside / / enable external NATR1 (config-if) # ex verification result
The above is the address translation of dynamic NAT, which does not need to be specified manually. It automatically translates addresses within the range.
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.