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

相关推荐
本贾尼几秒前
Linux系统下的终端,会话,shell,bash,进程组这几个概念的关系。
linux·服务器·网络·ubuntu·bash
虎头金猫5 分钟前
我的远程开发革命:从环境配置噩梦到一键共享的蜕变
网络·python·网络协议·tcp/ip·beautifulsoup·负载均衡·pandas
zx_zx_12342 分钟前
传输层协议 UDP
网络·网络协议·udp
程序员莫小特2 小时前
网络管理员从零到一|数据通信基础
计算机网络·网络管理员
asdfg125896310 小时前
如何判断一个地址是否可以用作主机 IP 地址?
服务器·网络·tcp/ip
爱吃甜品的糯米团子10 小时前
Linux 学习笔记之进程管理、网络基础与常用软件安装
linux·网络·学习
迷枫71212 小时前
19.1 TCP 和 UDP 有什么区别?
网络·tcp/ip·udp
取酒鱼食--【余九】12 小时前
深度学习经典网络解析:ResNet
网络·人工智能·深度学习·神经网络·resnet·卷积神经网络·残差神经网络
风清再凯12 小时前
05-k8s网络
网络·容器·kubernetes
LJ-SEU13 小时前
win-ubuntu网络转发
linux·网络·ubuntu