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

html 复制代码
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
相关推荐
是Dream呀1 小时前
Python从0到100(八十六):神经网络-ShuffleNet通道混合轻量级网络的深入介绍
网络·python·神经网络
明 庭1 小时前
通过 Docker 部署 pSQL 服务器的教程
服务器·docker·容器
山楂树の2 小时前
计算机网络 性能指标相关
网络·计算机网络
泪不是Web妳而流3 小时前
【HTML入门】Sublime Text 4与 Phpstorm
网络·经验分享·编辑器·html·学习方法·sublime text·phpstorm
star010-3 小时前
一文学会HTML编程之视频+图文详解详析
前端·网络·网络安全·html·html5
身在江湖的郭大侠3 小时前
Linux内核
linux·服务器
RZer5 小时前
HarmonyOS应用开发快速入门
华为·harmonyos
破-风5 小时前
linux的用法
linux·运维·服务器
__雨夜星辰__8 小时前
Linux 学习笔记__Day2
linux·服务器·笔记·学习·centos 7
学问小小谢8 小时前
第26节课:内容安全策略(CSP)—构建安全网页的防御盾
运维·服务器·前端·网络·学习·安全