《eNSP - NAT 实验》

eNSP

NAT实验

NAT(Network Address Translator,网络地址转换)是用于在本地网络中使用私有地址,在连接互联网时转而使用全局 IP 地址的技术。NAT实际上是为解决IPv4地址短缺而开发的技术。

 

 

NAT配置

实验6.2

FW1:

system-view

sysname USG6330-1

interface GigabitEthernet 1/0/1

ip address 10.1.2.1 255.255.255.0

quit

interface GigabitEthernet 1/0/4

ip address 40.1.1.1 255.255.255.0

quit

firewall zone trust

add interface GigabitEthernet 1/0/1

quit

firewall zone untrust

add interface GigabitEthernet 1/0/4

quit

security-policy

rule name policy_sec

source-zone trust

destination-zone untrust

action permit

quit

quit

nat address-group natpool

section 2.2.2.2 2.2.2.5

quit

nat-policy

rule name source_nat

destination-zone untrust

source-zone trust

action nat address-group natpool

quit

quit

-------------------------------------------

FW1:

security-policy

rule name bidectinal_nat

source-zone untrust

destination-zone dmz

action permit

service ftp

quit

quit

nat server ftpserver protocol tcp global 40.1.1.2 ftp inside 10.1.1.100 ftp

nat address-group natpool2

section 10.1.1.10 10.1.1.20

quit

firewall interzone dmz untrust

detect ftp

quit

nat-policy

rule name biderectinal_nat

destination-zone dmz

source-zone untrust

source-address 40.1.1.0 24

action nat address-group natpool2

quit

quit

——————————————————

 

交换机 VLAN配置

SW1:

undo ter mo

sys

sys SW1

vlan 10

vlan 20

display vlan

quit

interface Ethernet 0/0/1

port link-type access

port default vlan 10

quit

interface Ethernet 0/0/2

port link-type access

port default vlan 10

quit

interface Ethernet 0/0/4

port link-type access

port default vlan 20

display vlan

SW2:

undo ter mo

sys

sys SW2

vlan batch 10 20

display vlan

interface Ethernet 0/0/2

port link-type access

port default vlan 10

quit

interface Ethernet 0/0/3

port link-type access

port default vlan 10

quit

interface Ethernet 0/0/5

port link-type access

port default vlan 20

display vlan

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

你可知这世上再难遇我

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值