动态NAT(单一地址池)

[Gw]acl 2000
#创建简单ACL 编号2000

[Gw-acl-basic-2000]rule permit source 192.168.0.0 0.0.255.255 
#创建规则 允许匹配 地址 192.168.0.0/16

[Gw]nat address-group 1 202.1.1.100 202.1.1.100 
#创建nat地址池 编号1 池内地址为202.1.1.100到202.1.1.100 共一个

[Gw-GigabitEthernet0/0/0]nat outbound 2000 address-group 1 no-pat
 #在出口设置动态NAT ACL编号2000 地址池编号为1 不启用端口映射
因为一共只启用了一个地址,所以Ensp模拟的PC ping包只能有一个可以Ping通

猜你喜欢

转载自www.cnblogs.com/qiaotingbo/p/10408559.html
今日推荐