hongleimi 发表于 2018-7-27 09:59:42

华为1760路由器的NAT配置介绍

  本文通过华为1760为例向读者介绍了NAT如何进行配置,并且给出了配置的步骤和操作流程,最后给出了配置的结果,相信看过此文会对博友没有所帮助!!
  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服务器1
  Quidway(config-if-Serial0)# nat server global 202.38.160.102 inside 10.110.10.2 www tcp
  !设置内部WWW服务器2
  Quidway(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 udp
  5. 配置地址转换的有效时间
  Quidway#show run
  Now 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 Aux0
  async mode interactive
  encapsulation ppp
  !
  interface Ethernet0 #inside port#
  speed auto
  duplex auto
  no loopback
  ip address 10.0.0.2 255.255.255.0
  !
  interface Ethernet1 #outside port#
  speed auto
  duplex auto
  no loopback
  ip address 192.168.0.198 255.255.255.0
  nat inside 100 interface #通过这个命令帮定访问列表和地址池在外部端口上#
  !
  interface Serial0
  encapsulation ppp
  !
  exit
  ip route 0.0.0.0 0.0.0.0 192.168.0.254 preference 60
  !
  end
  Quidway#
页: [1]
查看完整版本: 华为1760路由器的NAT配置介绍