(NAT64)IPv6网络用户访问IPv4网络服务器(动态映射方式)

1.实验拓扑

2.配置

[FW1]dis cu
2025-05-29 10:44:44.030 
!Software Version V500R005C10SPC300
#
sysname FW1
#
ipv6
#
 nat64 prefix 3001:: 96
#
interface GigabitEthernet1/0/0
 undo shutdown
 ip address 1.1.1.1 255.255.255.0
#
interface GigabitEthernet1/0/1
 undo shutdown
 ipv6 enable
 ipv6 address 2001::1/64
 nat64 enable
#
firewall zone trust
 set priority 85
 add interface GigabitEthernet0/0/0
 add interface GigabitEthernet1/0/0
#
firewall zone untrust
 set priority 5
 add interface GigabitEthernet1/0/1
#
nat address-group 1 0
 mode pat
 section 0 1.1.1.6 1.1.1.10
#
security-policy
 rule name untrust->trust
  source-zone untrust
  destination-zone trust
  source-address 2001:: 64
  action permit
#
nat-policy
 rule name nat64
  source-zone untrust
  destination-zone trust
  source-address 2001:: 64
  nat-type nat64
  action source-nat address-group 1
#

3.重点配置

[FW1]int g1/0/1

[FW1-GigabitEthernet1/0/1]ipv6  enable 

[FW1-GigabitEthernet1/0/1]ipv6  add 2001::1 64

[FW1-GigabitEthernet1/0/1]nat64 enable 

[FW1]nat64 prefix  3001:: 96

[FW1-policy-security]di th
2025-05-29 10:54:31.080 
#
security-policy
 rule name untrust->trust
  source-zone untrust
  destination-zone trust
  source-address 2001:: 64
  action permit

[FW1]nat address-group  1
[FW1-address-group-1]mode  pat 
[FW1-address-group-1]section  1.1.1.6 1.1.1.10

[FW1-policy-nat]di th
2025-05-29 10:55:32.270 
#
nat-policy
 rule name nat64
  source-zone untrust
  destination-zone trust
  source-address 2001:: 64
  nat-type nat64
  action source-nat address-group 1

4.实验验证

5.重点

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值