端口映射,NAT地址转换
22 inside 192.168.1.96 22
[H3C]nat server protocol udp global 218.206.191.49 snmp inside 192.168.1.96 snmp
[H3C]nat server protocol udp global 218.206.191.49 snmptrap inside 192.168.1.96 snmptrap <--(一看就大白tcp/udp是以及谈,www是80,snmp以及snmptrap是161.162端口)
[H3C]dis thellos
interface Ethernet1/0
ip address 218.206.191.49 255.255.255.248
firewall packet-filter 3000 inbound
nat outbound 3001 <--(这是客户上彀用的地址池不消管,其它的就是端口照射了)
nat server protocol tcp global 61.178.77.9 www inside 192.168.1.96 www
nat server protocol tcp global 61.178.77.9 22 inside 192.168.1.96 22
nat server protocol udp global 61.178.77.9 snmp inside 192.168.1.96 snmp
nat server protocol udp global 61.178.77.9 snmptrap inside 192.168.1.96 snmptrap
思科网络的端口照射原理是同样的命令不一样,这搭只给出配备布置。
CISCO>en
CISCO#config t
CISCO(config)Ip nat inside source static tcp 192.168.1.96 80 218.206.191.49 80
CISCO(config)Ip nat inside source static tcp 192.168.1.96 22 218.206.191.49 22
CISCO(config)Ip nat inside source static tcp 192.168.1.96 161 218.206.191.49 161
CISCO(config)Ip nat inside source static tcp 192.168.1.96 162 218.206.191.49 162
**********
2011年04月18日 13时27分 发布 百度空间:http://hi.baidu.com/sys0/
评论
发表评论