【华为】配置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
相关推荐
茶杯梦轩5 天前
从零起步学习RabbitMQ || 第二章:RabbitMQ 深入理解概念 Producer、Consumer、Exchange、Queue 与企业实战案例
服务器·后端·消息队列
YuMiao7 天前
gstatic连接问题导致Google Gemini / Studio页面乱码或图标缺失问题
服务器·网络协议
Sinclair10 天前
简单几步,安卓手机秒变服务器,安装 CMS 程序
android·服务器
Rockbean11 天前
用40行代码搭建自己的无服务器OCR
服务器·python·deepseek
茶杯梦轩11 天前
CompletableFuture 在 项目实战 中 创建异步任务 的核心优势及使用场景
服务器·后端·面试
海天鹰12 天前
【免费】PHP主机=域名+解析+主机
服务器
DianSan_ERP12 天前
电商API接口全链路监控:构建坚不可摧的线上运维防线
大数据·运维·网络·人工智能·git·servlet
呉師傅12 天前
火狐浏览器报错配置文件缺失如何解决#操作技巧#
运维·网络·windows·电脑
不是二师兄的八戒12 天前
Linux服务器挂载OSS存储的完整实践指南
linux·运维·服务器
芝士雪豹只抽瑞克五12 天前
Nginx 高性能Web服务器笔记
服务器·nginx