【华为】配置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
相关推荐
fat house cat_1 小时前
记一次网络io学习流水账
网络·学习
杨云龙UP2 小时前
小工具大体验:rlwrap加持下的Oracle/MySQL/SQL Server命令行交互
运维·服务器·数据库·sql·mysql·oracle·sqlserver
阿巴~阿巴~2 小时前
使用 C 语言连接 MySQL 客户端(重点)
服务器·数据库·sql·mysql·ubuntu
白水先森2 小时前
Python 字符串与布尔值详解
java·服务器·前端
is08152 小时前
全志 H3 armbian 备份
linux·服务器·网络
bst@微胖子3 小时前
鸿蒙实现滴滴出行项目之侧边抽屉栏以及权限以及搜索定位功能
android·华为·harmonyos
国科安芯3 小时前
ASP4644芯片低功耗设计思路解析
网络·单片机·嵌入式硬件·安全
艾菜籽3 小时前
网络原理-HTTPS
网络·网络协议·https
努力学习的小廉4 小时前
深入了解linux网络—— TCP网络通信(下)
linux·网络·tcp/ip
Bruce_Liuxiaowei6 小时前
MQTT协议在物联网环境中的安全风险与防范指南
运维·网络·物联网·安全·网络安全