我们可以在SRX设备上先使用如下命令,你应该可以看到以下输出的这些信息:
root@srx> show security flow status
Flow forwarding mode:
Inet forwarding mode: flow based
Inet6 forwarding mode: drop
MPLS forwarding mode: drop
ISO forwarding mode: drop
Flow trace status
Flow tracing status: off
Flow session distribution
Distribution mode: RR-based
从上面输出的信息,我们可以知道Inet6默认是drop的,如果要启用inet6的,我们可以使用这个命令:
#set security forwarding-options family inet6 mode flow-based
执行完上面的命令后,对配置进行commit一下,设备会要求你“重启”,重启后,再使用这条命令查看,就可以看到Inet6已经启用了,是基于流模式。
root@srx> show security flow status
Flow forwarding mode:
Inet forwarding mode: flow based
Inet6 forwarding mode: flow based
MPLS forwarding mode: drop
ISO forwarding mode: drop
Flow trace status
Flow tracing status: off
Flow session distribution
Distribution mode: RR-based
PS:如果你的SRX不是流模式而是数据包模式,可以使用如下命令进行启用IPv6
set security forwarding-options family inet6 mode packet-based