计算机网络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 上网

相关推荐
江畔何人初1 天前
iptables 和 IPVS 代理模式 Service 的区别
linux·运维·服务器·网络·云原生·kubernetes·代理模式
123过去1 天前
nfc-list使用教程
linux·网络·测试工具·安全
攻城狮在此1 天前
华三交换机链路聚合配置(三层聚合)
网络·华为
evo-master1 天前
网络故障排除方法
linux·服务器·网络
Johnstons1 天前
网络流量监控工具怎么选
运维·网络·网络故障排除·网络流量分析·网络性能监控
jiankeljx1 天前
Java实战:Spring Boot application.yml配置文件详解
java·网络·spring boot
三三有猫1 天前
代理IP:按流量还是按IP/时长计费更划算?
网络·网络协议·tcp/ip
A.A呐1 天前
【Linux第十九章】网络基础
linux·网络
程序猿追1 天前
HarmonyOS 6.0 网络请求深度解析:从基础调用到生产级封装
网络·华为·harmonyos
桌面运维家1 天前
BGP路由优化实战:加速收敛,提升网络稳定性
网络·windows·php