Crazy knowledge base

华为AR2811路由配置

选择一个lan口做公网出口,另一个lan口做子网
命令如下
int eth0/0
ip address 192.168.138.219 255.255.255.248
q(退出)

int eth0/1
ip address 192.168.1.1 255.255.255.0
q

ip route-static 0.0.0.0 0.0.0.0 192.168.138.217

acl number 2001
rule 0 permit source 192.168.1.0 0.0.0.255
rule deny
q

nat address-group 1 192.168.138.219 192.168.138.219

int eth0/0
nat outbound 2001 address-group 1

save

q

reboot重启路由,DNS在你的机器上打入就行了

lan0口接外网,lan1口接内网

华为AR2811路由配置
滚动到顶部