计算机网络nat 映射案列

1 拓扑案列

2 配置

pc 访问外网

interface LoopBack192

ip address 192.168.1.1 255.255.255.0

interface Vlan-interface1

ip address 10.1.1.1 255.255.255.0

ip route-static 0.0.0.0 0 10.1.1.2

local-user admin class manage

password hash h60XD4lCsmqgrjN2mpfhTRFdSBPC1f+xRBOO4ObIthqLLv15lHRVcY8+n+ro3I3cDSY5B3OQOEok8RLumfHa2AVdOq26ETN3gS2DCv2A==

service-type ftp

authorization-attribute user-role level-15

authorization-attribute user-role network-admin

authorization-attribute user-role network-operator

ftp server enable

nat

interface GigabitEthernet0/0

port link-mode route

combo enable copper

ip address 10.1.1.2 255.255.255.0

interface GigabitEthernet0/1

port link-mode route

combo enable copper

ip address 100.1.1.1 255.255.255.0

nat outbound 2000 address-group 1

nat static enable

interface GigabitEthernet0/0

port link-mode route

combo enable copper

ip address 10.1.1.2 255.255.255.0

interface GigabitEthernet0/1

port link-mode route

combo enable copper

ip address 100.1.1.1 255.255.255.0

nat outbound 2000 address-group 1

nat static enable

user-group system

nat static outbound 192.168.1.1 100.1.1.4

nat address-group 1

address 100.1.1.4 100.1.1.4

===================================================

isp

interface LoopBack1

ip address 8.8.8.8 255.255.255.255

interface Vlan-interface1

ip address 100.1.1.2 255.255.255.0

测试

pc 上网

相关推荐
机器学习之心11 分钟前
基于贝叶斯优化超参数的图卷积网络(BO-GCN)分类预测模型(附实验文档+Matlab代码)
网络·matlab·分类·分类预测模型·bo-gcn
上海云盾-小余17 分钟前
内网终端安全管控:筑牢企业内部网络入侵防火墙
服务器·网络·安全
思茂信息18 分钟前
CST案例:可调谐全硅手性超表面在太赫兹频段
网络·人工智能·算法·重构·cst·电磁仿真
Bat U1 小时前
JavaEE|网络原理TCP/IP
网络·网络协议·tcp/ip
智慧光迅AINOPOL1 小时前
OLT有哪些形态:框式、盒式,模块型,分别应用哪些场景?
网络·智能路由器
不仙5201 小时前
Rocky Linux 8.10 TigerVNC 安装配置指南
linux·服务器·网络
冰冰的米咖1 小时前
20260521网络配置-NAT Server实现外网访问内网服务
网络·网络协议·智能路由器
HMS工业网络1 小时前
Cosy通过USB连接PLC时如何排查USB over IP故障
网络·网络协议·tcp/ip
小船跨境1 小时前
如何验证代理IP纯净度?2026年IP检测与优化指南
网络·网络协议·tcp/ip
minji...2 小时前
Linux 网络基础之网络IP层(十)IP 协议,网段划分,IP地址相关问题
linux·运维·服务器·网络·tcp/ip·智能路由器·php