【华为】配置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
相关推荐
眷蓝天1 小时前
OSI七层模型
网络
QC班长3 小时前
Maven公司私库配置踩坑点
java·服务器·maven·intellij-idea
云安全助手4 小时前
弹性云服务器+高防IP:让DDoS攻击不再是业务“生死劫”
运维·网络·安全
jiejiejiejie_5 小时前
Flutter 三方库 pull_to_refresh 的鸿蒙化适配指南
flutter·华为·harmonyos
Hello_Embed6 小时前
嵌入式上位机开发入门(二十六):将 MQTT 测试程序加入 APP 任务
网络·笔记·网络协议·tcp/ip·嵌入式
mfxcyh7 小时前
使用MobaXterm配置nginx
java·服务器·nginx
亚空间仓鼠7 小时前
网络学习实例:网络理论知识
网络·学习·智能路由器
上海合宙LuatOS7 小时前
LuatOS扩展库API——【libfota2】远程升级
网络·物联网·junit·luatos
pengyi8710158 小时前
动态IP池快速更换实操方案,5分钟完成IP替换
服务器·网络·tcp/ip
不做无法实现的梦~8 小时前
Linux 上使用 CLion 开发嵌入式,并用 Codex CLI
linux·运维·服务器