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 configuration

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

1. Lab name: NAT configures private network to access public network

2. Experimental purpose: access by routers of different networks

3, Experimental Topology:

4. Configuration steps:

R3:

R3 (config) # INTerface GI0/0

R3 (config-if) # ip address 192.168.10.254 255.255.255.0

R3 (config-if) # no shutdown

R3 (config) # interface gi0/1

R3 (config-if) # ip address 100.1.254 255.255.255.0

R3 (config-if) # no shutdown

R3 (config) # route rip

R3 (config-router) # version 2

R3 (config-router) # no auto-summary

R3 (config-router) # network 192.168.10.0

R3 (config-router) # network 100.1.1.0

R3 (config) # ip route 0.0.0.0 0.0.0.0 100.1.1.254

R3 (config) # ip nat inside source static 192.168.10.1 100.1.1.254

R4:

R4 (config) # interface gi0/1

R4 (config-if) # ip address 100.1.254 255.255.255.0

R4 (config-if) # no shutdown

R4 (config-if) # interface gi0/0

R4 (config-if) # ip address 200.1.1.1 255.255.255.0

R4 (config-if) # no shutdown

R4 (config) # route rip

R4 (config-router) # version 2

R4 (config-router) # no auto-summary

R4 (config-router) # network 100.1.1.0

R4 (config-router) # network 200.1.1.0

R4 (config-router) # passive-interface gi0/1

R4 (config-router) # exit

R5:

R5 (config) # interface gi0/1

R5 (config-if) # ip address 200.1.1.254 255.255.255.0

R5 (config-if) # no shutdown

R5 (config) # route rip

R5 (config-router) # version 2

R5 (config-router) # no auto-summary

R5 (config-router) # network 200.1.1.0

5. Verification and testing:

6. Configuration ideas:

(1) configure PC IP address, private network router gateway, relay IP address, external network gateway address

(2) configure rip in public network

(3) configure the next hop in the private network

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

Servers

Wechat

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

12
Report