我这边有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需要做端口映射,怎么配置
(0)
最佳答案
写多条普通映射就行了
看链接的:https://www.h3c.com/cn/d_202007/1314229_30005_0.htm#_Toc45125489
(0)
那我端口只写一个固定IP??
您好,请知:
由于是有5个连续的外网IP,因此需要拿一个配置在外网口上,剩下的进行NAT地址转换及映射。其他的就是路由的发布或指向了。
以下是nat server映射的配置举例,请参考:
https://www.h3c.com/cn/d_202007/1314229_30005_0.htm#_Toc45125489
(0)
是不去直接在外网端口配置一个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
是不去直接在外网端口配置一个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
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
那我端口只写一个固定IP??