Skip to main content
gradius85
New Member
November 5, 2019
Question

Find all IPv6 address in logs

  • November 5, 2019
  • 2 replies
  • 7181 views

I am not finding a way to find ALL IPv6 addresses. I do not really know what address I am looking for, I just want to see if a particular interface has had IPv6 traffic pass through it.

 

How do I create a filter to find ALL IPv6 address as source?

    2 replies

    Toshi_Esumi
    SuperUser
    SuperUser
    November 5, 2019

    To just list up all IPv6 addresses configure on a box, I would do:

      # config sys int  (interface) # show | grep ip6-address

     

    If you want to see what interface has what address, you can add '-f' option to grep.

    gradius85
    gradius85Author
    New Member
    November 5, 2019

    I need this in logs, not on the device. I am trying to figure out if traffic passed through the device anytime in the past 24 hours.

     

    hzhao_FTNT
    Staff
    Staff
    November 8, 2019

    Hi there,

     

    You can use filter family(srcip)=6 for ipv6 traffic.

    For example:

    select devid, sum(coalesce(sentbyte, 0)+coalesce(rcvdbyte, 0)) as bandwidth from $log where $filter and (logflag&1>0) and family(srcip)=6 group by devid order by bandwidth desc

     

    Regards,

    hz

    Toshi_Esumi
    SuperUser
    SuperUser
    November 5, 2019

    To just list up all IPv6 addresses configure on a box, I would do:

      # config sys int  (interface) # show | grep ip6-address

     

    If you want to see what interface has what address, you can add '-f' option to grep.