电脑技术学习

华为R2610/2611型号的路由器做NAT设置上网

dn001

  现在为大家介绍华为R2610/2611型号的路由器NAT上网设置方法,我们举例如下:

  某公司10兆光纤接入,通过光纤收器把光纤转换成RJ45网线接到服务器上网,公网IP是 218.128.2.82/30 ,公网网关是219.128.2.86/30,内部局域网使用网段是192.168.0.0,局域网想指定网关是192.168.0.1,DNS218.96.128.143和218.96.134.133,局域网有一个www网站(192.168.0.250)想映射出来,让因特网用户可以访问,想通过华为R2610/2611型号的路由器做NAT设置上网,应该怎么设置完成以上功能,应该怎么操作?

  方法如下:

[Router] acl 1 match-order auto
[Router-acl1] rule normal permit source 192.168.0.0 0.0.0.255
[Router-acl1] rule normal deny source any

[Router] interface Ethernet1
[Router-Ethernet1] ip address 192.168.0.1 255.255.255.0

[Router] interface Ethernet0
[Router-Ethernet0] ip address 219.128.2.86 255.255.255.252
[Router-Ethernet0] nat outbound 1 interface

[Router] ip route-static 0.0.0.0 0.0.0.0 218.128.2.82 preference 60

[Router-Ethernet1]nat server global 218.128.2.82 www inside 192.168.0.250 www tcp