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

相关推荐
Blossom.11830 分钟前
基于区块链技术的供应链溯源系统:重塑信任与透明度
服务器·网络·人工智能·目标检测·机器学习·计算机视觉·区块链
冷崖42 分钟前
网络编程-select(二)
网络·学习
AORO_BEIDOU2 小时前
遨游科普:三防平板是什么?有什么功能?
网络·5g·安全·智能手机·电脑·信息与通信
比奥利奥还傲.3 小时前
如何利用内网穿透实现Cursor对私有化部署大模型的跨网络访问实践
网络
tyatyatya3 小时前
MATLAB中进行深度学习网络训练的模型评估步骤
网络·深度学习·matlab
Johny_Zhao4 小时前
Vmware workstation安装部署微软WSUS服务应用系统
网络·人工智能·网络安全·信息安全·云计算·系统运维·wsus
DjangoJason5 小时前
计算机网络 : Socket编程
linux·服务器·开发语言·笔记·计算机网络
眠りたいです5 小时前
从数据包到可靠性:UDP/TCP协议的工作原理分析
linux·网络·网络协议·tcp/ip·udp·传输层
每次的天空5 小时前
Android第三次面试总结之网络篇补充
android·网络·面试
shykevin11 小时前
python开发Streamable HTTP MCP应用
开发语言·网络·python·网络协议·http