华为路由器nat配置,华为路由器1760的nat配置

华为路由器1760的nat配置 - 硬件外设 - 电脑教程网

华为路由器1760的nat配置

日期:2007-09-07   荐:

华为的这个路由器,在指定outside 和inside的端口有一点不一样,希望对大家有帮助,不走弯路!Quidway#show runNow create configuration...Current configuration!version 1.66 enable password ,Y@JM,UXNZL0XaLTV.U4*!!!access-list normal 100 permit ip 10.0.0.0 0.255.255.255 any!interface Aux0async mode interactiveencapsulation ppp!interface Ethernet0 #inside port#speed autoduplex autono loopbackip address 10.0.0.2 255.255.255.0!interface Ethernet1 #outside port#speed autoduplex autono loopbackip address 192.168.0.198 255.255.255.0nat inside 100 interface #通过这个命令帮定访问列表和地址池在外部端口上#!interface Serial0encapsulation ppp!exitip route 0.0.0.0 0.0.0.0 192.168.0.254 preference 60!endQuidway#

NAT的配置任务列表如下:1. 配置地址池2. 配置访问控制列表和地址池的关联3. 配置访问控制列表和接口的关联(EASY IP特性)4. 配置内部服务器增加一个内部服务器nat serverglobal global-addr [ global-port] inside inside-addr inside-port protocol例子: 202.38.160.101-103为公网IP设置内部FTP服务器Quidway(config-if-Serial0)# nat server global 202.38.160.101 inside 10.110.10.1 ftp tcp !设置内部WWW服务器1Quidway(config-if-Serial0)# nat server global 202.38.160.102 inside 10.110.10.2 www tcp!设置内部WWW服务器2Quidway(config-if-Serial0)# nat server global 202.38.160.102 8080 inside 10.110.10.3 www tcp!设置内部SNMP服务器Quidway(config-if-Serial0)# nat server global 202.38.160.103 inside 10.110.10.4 snmp udp5. 配置地址转换的有效时间

标签: