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

Huawei dynamic nat address translation

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

Share

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

Experiment name: Huawei dynamic nat address translation

two。 Topology Diagram:

3. Configuration idea: first configure the ip address of each terminal, then enable RIP dynamic routing protocol on AR1 and AR 3, configure static route on AR1, and dynamic nat to keep the whole network interconnected.

4. Configuration step: configure the ip address of pc1,pc3

# ip address 192.168.10.2 255.255.255.0

Ip address 192.168.10.1 255.255.255.0

# configure AR1, ip address on AR2,AR3

Iterface g0/0/0

Ip address 192.168.10.254 255.255.255.0

Undo shutdown / / configure on AR1

Intrface g0/0/1

Ip address 100.1.1.1 255.255.255.0

Undoshutdown / / configure on AR1

Interface g0/0/0

Ip address 100.1.1.2 255.255.255.0

Undo shutdown / / configure on AR2

Interface g0/0/1

Ip address 200.1.1.1 255.255.255.0

Undo shutdown / / configure on AR 2

Interface

Inteface g0/0/0

Ip address 200.1.1.2 / / configure on AR3

# configure a static route to the public network in AR1

Ip router-static 0.0.0.0 0.0.0 100.1.1.2

# configure dynamic routing on AR3 AR2-rip

Rip

Version 2

Undo summary

Network 100.0.0.0

Network 200.1.1.0

It is configured on slient-interface / / AR2, and port g0cel0apor0 is set to passive port, that is to say, port g0Unitab0 only accepts packets and does not send packets out.

# configure dynamic NAT on AR1

# ACL 2000 / / create acl

Rule 5 permit source 192.168.10.0 0.0.0.255 / / define acl rules

# match the traffic destined to the public network on the AR1 port g0Uniqqq1

Interface g0/0/1

Nat outbood 2000 / / match the traffic destined to the public network on port g0Uniqqq1

Verification and testing: ping

# the figure above shows that the whole network has been interconnected

Note: the direction of the packet: when you go out, check the routing table first, then nat, and when you come back, check the nat first and then the routing table.

Summary: dynamic nat, save ip address. Static nat does not save ip

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