华为路由器开启nat功能

阅读:0 来源: 发表时间:2023-02-05 18:48

今天给各位分享华为路由器开启nat的知识,其中也会对华为路由器开启nat功能进行解释,如果能碰巧解决你现在面临的问题,别忘了关注本站,现在开始吧!

本文目录一览:

1、华为路由器的NAT配置?

2、华为路由器NAT

3、华为路由器nat怎么设置

华为路由器的NAT配置?

华为路由器 NAT及DHCP配置实例

sysname HUAWEI-AR28-11

#

nat address-group 1 125.95.190.3 125.95.190.3

nat static 192.168.100.254 125.95.190.6

nat static 192.168.100.252 125.95.190.5

nat aging-time tcp 360

#

radius scheme system

#

domain system

#

local-user admin

password cipher .]@USE=B,53Q=^Q`MAF41!!

service-type telnet terminal

level 3

service-type ftp

#

dhcp server ip-pool 1

network 192.168.1.0 mask 255.255.255.0

gateway-list 192.168.1.1

dns-list 202.96.128.86 202.96.128.166 202.96.128.143

#

dhcp server ip-pool 2

network 192.168.2.0 mask 255.255.255.0

gateway-list 192.168.2.1

dns-list 202.96.128.86 202.96.128.166 202.96.128.143

#

dhcp server ip-pool 3

network 192.168.3.0 mask 255.255.255.0

gateway-list 192.168.3.1

dns-list 202.96.128.86 202.96.128.166 202.96.128.143

#

dhcp server ip-pool 4

network 192.168.4.0 mask 255.255.255.0

gateway-list 192.168.4.1

dns-list 202.96.128.86 202.96.128.166 202.96.128.143

#

dhcp server ip-pool 5

network 192.168.5.0 mask 255.255.255.0

gateway-list 192.168.5.1

dns-list 202.96.128.86 202.96.128.166 202.96.128.143

#

dhcp server ip-pool 6

network 192.168.6.0 mask 255.255.255.0

gateway-list 192.168.6.1

dns-list 202.96.128.86 202.96.128.166 202.96.128.143

#

dhcp server ip-pool 7

network 192.168.7.0 mask 255.255.255.0

gateway-list 192.168.7.1

dns-list 202.96.128.86 202.96.128.166 202.96.128.143

#

acl number 2500

rule 0 permit source 192.168.0.0 0.0.255.255

#

acl number 3900

rule 0 deny tcp destination-port eq 8

rule 1 deny tcp destination-port eq 135

rule 2 deny tcp destination-port eq 139

rule 3 deny tcp destination-port eq 445

rule 4 deny tcp destination-port eq exec

rule 5 deny tcp destination-port eq 64444

rule 6 deny tcp destination-port eq 8080

rule 7 deny udp destination-port eq 135

rule 8 deny udp destination-port eq 445

rule 9 deny udp destination-port eq 3500

#

interface Aux0

async mode flow

#

interface Ethernet0/0

ip address 125.95.190.2 255.255.255.248

nat outbound static

nat outbound 2500 address-group 1

#

interface Ethernet0/1

description line to HUAWEI-S3928

ip address 192.168.8.2 255.255.255.0

#

interface Serial0/0

clock DTECLK1

link-protocol ppp

ip address dhcp-alloc

#

interface NULL0

#

dhcp server forbidden-ip 192.168.100.252

dhcp server forbidden-ip 192.168.100.254

#

ip route-static 0.0.0.0 0.0.0.0 125.95.190.1 preference 60

ip route-static 192.168.1.0 255.255.255.0 192.168.8.1 preference 60

ip route-static 192.168.2.0 255.255.255.0 192.168.8.1 preference 60

ip route-static 192.168.3.0 255.255.255.0 192.168.8.1 preference 60

ip route-static 192.168.4.0 255.255.255.0 192.168.8.1 preference 60

ip route-static 192.168.5.0 255.255.255.0 192.168.8.1 preference 60

ip route-static 192.168.6.0 255.255.255.0 192.168.8.1 preference 60

ip route-static 192.168.7.0 255.255.255.0 192.168.8.1 preference 60

ip route-static 192.168.100.0 255.255.255.0 192.168.8.1 preference 60

#

user-interface con 0

user-interface aux 0

set authentication password cipher V_$D$4N:*#F/$ATR*`+,;!!!

idle-timeout 2 0

user-interface vty 0 4

user privilege level 3

set authentication password cipher V_$D$4N:*#F/$ATR*`+,;!!!

idle-timeout 2 0

#

return

具体最好咨询厂家

华为路由器开启nat功能

华为路由器NAT

R1做好nat后,要有默认路由0.0.0.0 0.0.0.0 10.10.10.2,内部网段走指定目的地址路由例如,192.168.0.0 255.255.0.0 172.168.1.254

交换机默认路由0.0.0.0 0.0.0.0 172.168.1.1

R0不需要回程路由只要有到10.1.1.1的路由就行

2,因为是模拟外网,外网是没有路由到你内部的

华为路由器nat怎么设置

先配置访问列表

#acl number 2000

#rule 0 permit source 192.168.1.0 0.0.0.255

#rule 1 deny

2.配置内网ip

#interface e0/0

#ip address 192.168.10.1 255.255.255.0

3.配置外网ip

#interface e0/1

#ip address 192.168.20.2 255.255.255.0

#gateway-list 192.168.20.1

4.设置路由

#ip route 0.0.0.0 0.0.0.0 192.168.20.1 preference 60

5.配置DHCP

#dhcp enable

#dhcp server ip-pool Huawei

#network 192.168.10.0 255.255.255.0

#gateway-list 192.168.10.1

#expired day 24

#dns-list *.*.*.*(你们本地的DNS)

6. 配置NAT

#interface e0/1

#nat outbound 2000

全部过程配置完毕。通过以上配置,已经能实现最基本的访问互联网的功能。

华为路由器开启nat的介绍就聊到这里吧,感谢你花时间阅读本站内容,更多关于华为路由器开启nat功能、华为路由器开启nat的信息别忘了在本站进行查找喔。

    声明

    删帖请联系zhiyihome@qq.com;