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

相关推荐
Suckerbin1 小时前
pikachu靶场-敏感信息泄露
网络·学习·安全·网络安全
嘿嘿-g1 小时前
华为IP(5)
网络·华为
薯条不要番茄酱1 小时前
【网络原理】从零开始深入理解TCP的各项特性和机制.(二)
服务器·网络·tcp/ip
薯条不要番茄酱2 小时前
【网络原理】从零开始深入理解TCP的各项特性和机制.(三)
网络·网络协议·tcp/ip
专注API从业者3 小时前
反爬策略应对指南:淘宝 API 商品数据采集的 IP 代理与请求伪装技术
网络·网络协议·tcp/ip
狐凄5 小时前
Python实例题:使用Pvthon3编写系列实用脚本
java·网络·python
一颗星星辰12 小时前
路由交换网络专题 | 第八章 | GVRP配置 | 端口安全 | 端口隔离 | Mux-VLAN | Hybrid
网络·安全
自由鬼12 小时前
高性能的开源网络入侵检测和防御引擎:Suricata介绍
网络·安全·网络安全·开源·系统安全·入侵检测
老六ip加速器12 小时前
如何获取静态IP地址?完整教程
网络·网络协议·tcp/ip
小吃饱了14 小时前
LSA六种类型
网络·智能路由器