• 全部
  • 经验案例
  • 典型配置
  • 技术公告
  • FAQ
  • 漏洞说明
  • 全部
  • 全部
  • 大数据引擎
  • 知了引擎
产品线
搜索
取消
案例类型
发布者
是否解决
是否官方
时间
搜索引擎
匹配模式
高级搜索

MSR2600外网多个同段固定IP做端口映射

2021-01-07提问
  • 0关注
  • 1收藏,983浏览
粉丝:0人 关注:0人

问题描述:

我这边有5个同段连续的外网ip,x.x.x.145/24、x.x.x.146/24、x.x.x.147/24、x.x.x.148/24、x.x.x.149/24,对应内网的5台服务器x.x.x.3/24、x.x.x.4/24、x.x.x.5/24、x.x.x.6/24、x.x.x.7/24需要做端口映射,怎么配置


组网及组网描述:


最佳答案

粉丝:8人 关注:1人

写多条普通映射就行了


看链接的:https://www.h3c.com/cn/d_202007/1314229_30005_0.htm#_Toc45125489

2.15.4  外网用户通过外网地址访问内网服务器配置举例


那我端口只写一个固定IP??

秃头鱼 发表时间:2021-01-07
1 个回答
粉丝:124人 关注:6人

您好,请知:

由于是有5个连续的外网IP,因此需要拿一个配置在外网口上,剩下的进行NAT地址转换及映射。其他的就是路由的发布或指向了。

以下是nat server映射的配置举例,请参考:

https://www.h3c.com/cn/d_202007/1314229_30005_0.htm#_Toc45125489  

是不去直接在外网端口配置一个ip地址,然后后面直接可以写端口映射了 interface GigabitEthernet0/0 port link-mode route description Single_Line1 ip address 101.205.236.148 255.255.255.0 nat outbound nat server protocol tcp global 101.205.236.145 9100 inside 192.168.1.3 9100 description MTS1 nat server protocol tcp global 101.205.236.145 9200 inside 192.168.1.3 9200 description DMS1 nat server protocol tcp global 101.205.236.145 9320 inside 192.168.1.3 9320 description SS1 nat server protocol tcp global 101.205.236.145 9500 inside 192.168.1.3 9500 description ARS1 nat server protocol tcp global 101.205.236.146 9100 inside 192.168.1.4 9100 description MTS2 nat server protocol tcp global 101.205.236.146 9200 inside 192.168.1.4 9200 description DMS2 nat server protocol tcp global 101.205.236.146 9320 inside 192.168.1.4 9320 description SS2 nat server protocol tcp global 101.205.236.146 9500 inside 192.168.1.4 9500 description ARS2 nat server protocol tcp global 101.205.236.147 9100 inside 192.168.1.5 9100 description MTS3 nat server protocol tcp global 101.205.236.147 9200 inside 192.168.1.5 9200 description DMS3 nat server protocol tcp global 101.205.236.147 9320 inside 192.168.1.5 9320 description SS3 nat server protocol tcp global 101.205.236.147 9500 inside 192.168.1.5 9500 description ARS3 nat server protocol tcp global 101.205.236.148 22 inside 192.168.1.6 22 description CRT4 nat server protocol tcp global 101.205.236.148 80 inside 192.168.1.6 80 description Tomcat4 nat server protocol tcp global 101.205.236.148 8314 inside 192.168.1.6 8314 nat server protocol tcp global 101.205.236.148 9000 inside 192.168.1.6 9000 description CMS4 nat server protocol tcp global 101.205.236.148 9090 inside 192.168.1.6 9090 description MGW4 nat server protocol tcp global 101.205.236.148 9100 inside 192.168.1.6 9100 description MTS4 nat server protocol tcp global 101.205.236.148 9200 inside 192.168.1.6 9200 description DMS4 nat server protocol tcp global 101.205.236.148 9320 inside 192.168.1.6 9320 description ARS4 nat server protocol tcp global 101.205.236.148 9500 inside 192.168.1.6 9500 description ADS4 nat server protocol tcp global 101.205.236.148 9700 inside 192.168.1.6 9700 description ASD4 nat server protocol tcp global 101.205.236.148 9800 inside 192.168.1.6 9800 description ADP4 nat server protocol tcp global 101.205.236.149 22 inside 192.168.1.7 22 description CRT5 nat server protocol tcp global 101.205.236.149 80 inside 192.168.1.7 80 description Tomcat5 nat server protocol tcp global 101.205.236.149 8314 inside 192.168.1.7 8314 nat server protocol tcp global 101.205.236.149 9000 inside 192.168.1.7 9000 description CMS5 nat server protocol tcp global 101.205.236.149 9090 inside 192.168.1.7 9090 description MGW5 nat server protocol tcp global 101.205.236.149 9100 inside 192.168.1.7 9100 description MTS5 nat server protocol tcp global 101.205.236.149 9200 inside 192.168.1.7 9200 description DMS5 nat server protocol tcp global 101.205.236.149 9320 inside 192.168.1.7 9320 description SS5 nat server protocol tcp global 101.205.236.149 9500 inside 192.168.1.7 9500 description ARS5 nat server protocol tcp global 101.205.236.149 9600 inside 192.168.1.7 9600 description ASC5 nat server protocol tcp global 101.205.236.149 9800 inside 192.168.1.7 9800 description ADP5

秃头鱼 发表时间:2021-01-08

编辑答案

你正在编辑答案

如果你要对问题或其他回答进行点评或询问,请使用评论功能。

分享扩散:

提出建议

    +

亲~登录后才可以操作哦!

确定

亲~检测到您登陆的账号未在http://hclhub.h3c.com进行注册

注册后可访问此模块

跳转hclhub

你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作

举报

×

侵犯我的权益 >
对根叔社区有害的内容 >
辱骂、歧视、挑衅等(不友善)

侵犯我的权益

×

泄露了我的隐私 >
侵犯了我企业的权益 >
抄袭了我的内容 >
诽谤我 >
辱骂、歧视、挑衅等(不友善)
骚扰我

泄露了我的隐私

×

您好,当您发现根叔知了上有泄漏您隐私的内容时,您可以向根叔知了进行举报。 请您把以下内容通过邮件发送到zhiliao@h3c.com 邮箱,我们会尽快处理。
  • 1. 您认为哪些内容泄露了您的隐私?(请在邮件中列出您举报的内容、链接地址,并给出简短的说明)
  • 2. 您是谁?(身份证明材料,可以是身份证或护照等证件)

侵犯了我企业的权益

×

您好,当您发现根叔知了上有关于您企业的造谣与诽谤、商业侵权等内容时,您可以向根叔知了进行举报。 请您把以下内容通过邮件发送到 zhiliao@h3c.com 邮箱,我们会在审核后尽快给您答复。
  • 1. 您举报的内容是什么?(请在邮件中列出您举报的内容和链接地址)
  • 2. 您是谁?(身份证明材料,可以是身份证或护照等证件)
  • 3. 是哪家企业?(营业执照,单位登记证明等证件)
  • 4. 您与该企业的关系是?(您是企业法人或被授权人,需提供企业委托授权书)
我们认为知名企业应该坦然接受公众讨论,对于答案中不准确的部分,我们欢迎您以正式或非正式身份在根叔知了上进行澄清。

抄袭了我的内容

×

原文链接或出处

诽谤我

×

您好,当您发现根叔知了上有诽谤您的内容时,您可以向根叔知了进行举报。 请您把以下内容通过邮件发送到zhiliao@h3c.com 邮箱,我们会尽快处理。
  • 1. 您举报的内容以及侵犯了您什么权益?(请在邮件中列出您举报的内容、链接地址,并给出简短的说明)
  • 2. 您是谁?(身份证明材料,可以是身份证或护照等证件)
我们认为知名企业应该坦然接受公众讨论,对于答案中不准确的部分,我们欢迎您以正式或非正式身份在根叔知了上进行澄清。

对根叔社区有害的内容

×

垃圾广告信息
色情、暴力、血腥等违反法律法规的内容
政治敏感
不规范转载 >
辱骂、歧视、挑衅等(不友善)
骚扰我
诱导投票

不规范转载

×

举报说明