自学内容网 自学内容网

【华为】配置NAT访问互联网

1.AR1:
int g0/0/0
ip ad 64.1.1.2 255.255.255.0
int g0/0/1
ip ad 110.242.68.1 255.255.255.0

2.AR2:
(1)配置端口ip:

int g0/0/1
ip ad 10.3.1.2 255.255.255.0
int g0/0/0
ip ad 64.1.1.1 255.255.255.0

(2)配置默认路由:
ip route-static 0.0.0.0 0.0.0.0 64.1.1.2
ip route-static 192.168.0.0 255.255.0.0 10.3.1.1

(3)配置nat:
acl 2000
rule permit ip source 192.168.0.0 0.0.255.255
int g0/0/0
nat outbound 2000

3.LSW5
vlan 27
int vlan 27
ip ad 10.3.1.1 255.255.255.0
in g0/0/24
port link-type ac
port default vlan 27

3.在LSW2、LSW4、LSW5配置默认路由:
LSW2:
ip route-static 0.0.0.0 0.0.0.0 10.1.1.2

LSW4:
ip route-static 0.0.0.0 0.0.0.0 10.2.1.2

LSW5:
ip route-static 0.0.0.0 0.0.0.0 10.3.1.2


原文地址:https://blog.csdn.net/weixin_51302020/article/details/142827699

免责声明:本站文章内容转载自网络资源,如本站内容侵犯了原著者的合法权益,可联系本站删除。更多内容请关注自学内容网(zxcms.com)!