In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-21 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Topological structure diagram
Step 1: configure switch SWsw#conf tsw (config) # no ip routing / / turn off routing function sw (config) # int F1 go 0 sw (config-if) # speed 100 / / configure rate sw (config-if) # dup full / / configure full-duplex mode sw (config-if) # ex step 2: configure router R1 And set PATR1#conf tR1 (config) # int f0/0R1 (config-if) # ip add 192.168.100.1 255.255.255.0R1 (config-if) # no shutR1 (config-if) # int f0/1R1 (config-if) # ip add 12.0.0.1 255.255.255.0R1 (config-if) # no shutR1 (config-if) # exR1 (config) # access-list 1 permit 192.168.100.0 0.0.0.255 Part access list R1 (config) # ip nat inside source list 1 interface fastEthernet 0bat 1 overload / / set multiplex dynamic IP address translation to external interface R1 (config) # int f0/0R1 (config-if) # ip nat inside R1 (config-if) # int f0/1R1 (config-if) # ip nat outsideR1 (config-if) # end step 3: configure client IP address PC1 > 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.1PC2 > ip 192.168.100.20 192.168.100.1Checking for duplicate address...PC1: 192.168.100.20 255.255.255.0 gateway 192.168.100.1PC3 > ip 12.0.12 12.0.0.1Checking for duplicate address...PC1: 12.0.12 255.255.255.0 gateway 12.0.0.1 step 4: test network interconnection And use the debug function to view the PAT process PC1 > ping 12.0.0.1284 bytes from 12.0.0.12 icmp_seq=1 ttl=63 time=31.242 ms84 bytes from 12.0.0.12 icmp_seq=2 ttl=63 time=46.864 ms84 bytes from 12.0.0.12 icmp_seq=3 ttl=63 time=31.280 ms84 bytes from 12.0.0.12 icmp_seq=4 ttl=63 time=31.241 ms84 bytes from 12.0.0.12 icmp_seq=5 ttl=63 time=31.241 msR1#debug ip natIP NAT debugging is onR1#*Mar 1 00:32 : 57.215: NAT*: slots 192.168.100.10-> 12.0.0.1 NAT*: 12.0.0.12 [59174] * Mar 100: 32 57.219: 192.168.100.10 [59174]. / / Private network address 192.168.100.10 has been successfully translated into public network address 12.0.0.1 And received a reply message from the public network host, PC2 > ping 12.0.1284 bytes from 12.0.0.12 icmp_seq=1 ttl=63 time=31.242 ms84 bytes from 12.0.0.12 icmp_seq=2 ttl=63 time=31.245 ms84 bytes from 12.0.0.12 icmp_seq=3 ttl=63 time=31.244 ms84 bytes from 12.0.0.12 icmp_seq=4 ttl=63 time=31.213 ms84 bytes from 12.0.0.12 icmp_seq=5 ttl=63 time=31.246 msR1#*Mar 100R 35R 15.595 : NAT*: slots 192.168.100.20-> 12.0.0.1 Dwatches 12.0.0.12 [59312] * Mar 100: 35 Mar 15.607: NAT*: slots 12.0.0.12, dudes 12.0.0.1-> 192.168.100.20 [59312]. / the private network address 192.168.100.20 has been successfully translated into public network address 12.0.0.1 And received a reply message from the public network host summarizing the significance of the existence of the internal address, external local address, internal local address (port), internal global address (port), external local address, external global address (port) PAT
1. Dynamic and static NAT cannot solve the problem of shortage of ip addresses (default is one private network IP address to one public network IP address)
However, 2.PAT can solve the shortage of ip addresses (multiple private network IP addresses to one public network IP address)
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.