计算机网络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 $h$60XD4lCsmqgrjN2mpfhTRFdSBPC1f+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 上网

相关推荐
ZachOn1y2 小时前
计算机网络:应用层 —— 域名系统 DNS
网络·计算机网络·应用层·408考研·知识积累·域名系统dns
给生活加糖!3 小时前
智能交通系统(Intelligent Transportation Systems):智慧城市中的交通革新
网络·人工智能·智慧城市
人间打气筒(Ada)3 小时前
ubuntu网络及软件包管理
网络·ubuntu·php
明达技术4 小时前
工控自动化领域:数字量信号与模拟量信号的差异解析
网络
网安Ruler4 小时前
靶场之路-Kioptix Level-1 mod_ssl 缓冲区溢出漏洞
网络·网络协议·网络安全·ssl
深耕云原生5 小时前
浅谈网络 | 容器网络之Cilium
网络·ebpf·cilium
DKPT5 小时前
计算机网络之路由协议(自治系统)
开发语言·笔记·学习·计算机网络·算法
漫谈网络5 小时前
Ryu:轻量开源,开启 SDN 新程
网络·开源·信息与通信
+7205 小时前
如何使用HttpClinet实现RPC返回对象类型
网络·网络协议·rpc
lisanndesu6 小时前
IP协议
网络