端口网络地址转换

  • A+
所属分类:思科教程

通过动态网络地址转换,我们可以实现多台终端同时访问外网,但是我们可以发现,随着终端数量增加,外网IP的需求也会增加。在现实中,一个外网的IP是相当昂贵的,也就是说,当使用动态网络地址转换时,成本很高。那如何低成本解决外网访问问题?我们学习一下端口网络地址转换。

端口网络地址转换

第一步当然是配置网络环境,因为我们使用的拓扑与《动态网络地址转换》相同,所以可以参考那篇教程方法配置。

接下来我们开始配置基于端口的网络地址转换,在R1路由上面:

R1(config)#access-list 1 permit 192.168.1.0 0.0.0.255
R1(config)#ip nat inside source list 1 interface fastEthernet 1/0 overload
R1(config)#interface fastEthernet 0/0
R1(config-if)#ip nat inside
R1(config-if)#exit
R1(config)#interface fastEthernet 1/0
R1(config-if)#ip nat outside

我们再来测试一下:

端口网络地址转换

同样我们在R2上增加一条ACL,然后测试下C2可否PING通:

端口网络地址转换

最后我们查看一下R1路由器的NAT转换列表,可以看出多台终端使用一个外网IP转发出,但是后面的端口号不同!

端口网络地址转换

  • 问答中心
  • 微信小程序扫一扫
  • weinxin
  • 微信公众
  • 微信公众号扫一扫
  • weinxin

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

目前评论:28   其中:访客  28   博主  0

    • avatar cbd oil that works 2020

      Hello, Neat post. There’s an issue along with your site in internet explorer, may test this?
      IE still is the market chief and a huge part of people will
      leave out your great writing due to this problem.

      • avatar cbd oil that works 2020

        wonderful publish, very informative. I wonder why the opposite specialists of this sector do not understand this.
        You should continue your writing. I’m confident, you’ve a
        huge readers’ base already!

        • avatar tinyurl.com

          My family members always say that I am killing my
          time here at web, except I know I am getting familiarity
          all the time by reading thes good content.

          • avatar www.gsjh.tyc.edu.tw

            Hi, I think your website might be having browser compatibility issues.
            When I look at your website in Opera, it looks fine but when opening
            in Internet Explorer, it has some overlapping.
            I just wanted to give you a quick heads up! Other then that,
            fantastic blog!

            • avatar http://bit.ly/3drY6lE

              Cbd oil that works 2020
              Hi there i am kavin, its my first time to commenting anyplace, when i
              read this post i thought i could also create comment due to this sensible
              post. best cbd oil for pain http://bit.ly/3drY6lE cbd oil that works 2020 http://bit.ly/3drY6lE

              • avatar hier geht es zum Angebot

                Thanks so much for providing individuals with an extremely marvellous possiblity to read from this website. It really is so kind and full of a lot of fun for me and my office peers to search your web site not less than three times every week to study the newest things you have. Not to mention, I am certainly amazed considering the fantastic opinions you give. Selected 2 ideas on this page are really the simplest we have ever had.

                • avatar at this

                  Write more, thats all I have to say. Literally, it seems as though you relied on the video to make your point. You definitely know what youre talking about, why throw away your intelligence on just posting videos to your weblog when you could be giving us something enlightening to read?

                  • avatar g https://tinyurl.com/rsacwgxy

                    Nice response in return of this difficulty with real arguments and telling the whole thing on the
                    topic of that.