端口重定向--端口映射

原创
2016-06-07 15:04:24 2098浏览

端口 重 定向 -- 端口 映射 *******************************全部采用 端口 ************************ ??ISP分配的IP202.99.160.129 ?? ??interface fastethernet0/0 ??ip address 192.168.1.1 255.255.255.0 ??duplex auto ??speed auto ??in nat inside ??

端口定向--端口映射

*******************************全部采用端口************************
??ISP分配的IP202.99.160.129
??
??interface fastethernet0/0
??ip address 192.168.1.1 255.255.255.0
??duplex auto
??speed auto
??in nat inside
??no shutdown
??
??interface fastethernet0/1
??ip address 192.168.2..1 255.255.255.0
??duplex auto
??speed auto
??in nat outside
??no shutdown
??
??ip nat pool OnlyYou 202.99.160.130 202.99.160.130 netmask 255.255.255.252
??//OnlyYou代表地址池的名称。 2个202.99.160.130是代表只用一个ip做转换后ip.
??access-list 1 permit 192.168.1.0 0.0.0.255
??access-list 1 permit 192.168.2.0 0.0.0.255
??ip nat inside source list1 pool OnlyYou overload
??
??
??
??
??***********************动态地址转换+端口***********************
??ISP分配的IP 有:202.99.160.130~190 255.255.255.192
??
??Interface fastethernet0/1
??Ip address 192.168.1.1 255.255.255.0
??Ip address 192.168.2.1 255.255.255.0 secondary
??Duplex auto
??Speed auto
??Ip nat inside
??No shutdown
??
??Interface serial 0/0
??Ip address 202.99.160.129 255.255.255.192
??Duplex auto
??Speed auto
??Ip nat outside
??No shutdwon
??
??Ip nat pool OutPort 202.99.160.190 202.99.160.190 netmask 255.255.255.192
??Ip nat pool OutPool 202.99.160.130 202.99.160.190 netmask 255.255.255.192
??Ip nat inside source list1 pool OutPort //192.168.1.0段主机全部转成202.99.160.190
??Ip nat inside source list2 pool OutPool
??//出于访问ftp站点等考虑:192.168.2.0和192.168.3.0段主机全部
??//转成202.99.160.130到202.99.160.189中的所有地址。
??Access-list1 permit 192.168.1.0 0.0.0.255
??Access-list2 permit 192.168.2.0 0.0.0.255
??Access-list2 permit 192.168.3.0 0.0.0.255
??
??
??
??***********************静态地址转换***********************
??
??
??ISP分配的IP地址是:211.82.220.80~211.82.220.87
??211.82.220.81 255.255.255.248
??要求Intranet上的Web.E-mail.Ftp.Media可以被外部访问.
??Interface fastethernet0/0
??Ip address 192.168.1.1 255.255.255.0
??Duplex auto
??Speed auto
??Ip nat inside
??No shutdown
??
??Interface fastethernet0/1
??Ip address 211.82.220.81 255.255.255.248
??Speed auto
??Duplex auto
??Ip nat outside
??No shutdown
??
??Ip nat pool Outpool 211.82.220.86 211.82.20.86 netmask 255.255.255.248
??Access-list 1 permit 192.168.1.2 0.0.0.255
??Access-list 1 permit 192.168.1.3 0.0.0.255
??Access-list 1 permit 192.168.1.4 0.0.0.255
??Access-list 1 permit 192.168.1.5 0.0.0.255
??Ip nat inside source list1 pool Outpool overload
??Ip nat inside source static 192.168.1.2 211.82.220.82
??Ip nat inside source static 192.168.1.3 211.82.220.83
??Ip nat inside source static 192.168.1.4 211.82.220.84
??Ip nat inside source static 192.168.1.5 211.82.220.85
??
??
??
??
??******************NAT影射****************************
??如果ISP提供的IP地址比较多还可以,但如果不是的时候(如就两个时),一个用于内网地址转换,另一个用于对外网提供服务.
??ISP提供的内网上网IP
??
??Interface ethernet0
??Ip address 192.168.1.1 255.255.255.0
??Duplex auto
??Speed auto
??Ip nat inside
??No shutdown
?

阅读(827) | 评论(0) | 转发(0) |

0

上一篇:子网划分

下一篇:路由表 CISCO技术

相关热门文章

  • HTTP协议中POST、GET、HEAD、P...
  • &1"含义' target='blank' >linuxshell中"2>&1"含义
  • Apache自定义日志格式
  • 第一资讯:谷歌提议使用http://...
  • SAP Sybase IQ 16 新特性介绍(...
  • OpenBSD系统的文件布局[转]...
  • [原创]OpenBSD Current版本更...
  • [原创]OpenBSD Current版本更...
  • nginx支持泛域名支持的方法...
  • [FreeBSD] 因缺少/etc/termcap...
  • FreeBSD9.1升级为9-stable
  • FreeBSD下获得coredump
  • 《UNIX技术内幕》勘误及问题解...
  • FreeBSD内核变量中的几个RFC...
  • BSD 文件属性 ll

声明:本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn核实处理。