cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
761
Views
0
Helpful
2
Replies

Access lists using IPv4 and IPv6 for SNMPv2 queries

ICANG
Level 1
Level 1

Hi all,

 

I have a couple of Nexus 9k devices and. I’ve been using standard access lists for IPv4 filtering of my snmp queries as  below:

snmp-server community tazmania use-ipv4acl snmp-access

 

When I create IPV6 ACL and try to apply it as below as well, only 1 of the acl is shows and the other one is removing. Is there any way to use both acl for snmp ?

snmp-server community tazmania use-ipv6acl ipv6_snmp-access

 

2 Replies 2

balaji.bandi
Hall of Fame
Hall of Fame

I do not have a dual-stack environment, either we do ipv6 or ipv4,  But good question. it is possible as per the thread below, to check if this works for you.

 

https://community.cisco.com/t5/switching/can-not-apply-ipv4-and-ipv6-acl-concurrently-to-control-snmp/td-p/2505298

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Hi

According to Cisco doc for 9K, you can not have both:

 

snmp-server community name [use-ipv4acl acl-name | use-ipv6acl acl-name]
Example:

switch(config)# snmp-server community public use-ipv4acl myacl

 

Assigns an IPv4 or IPv6 ACL to an SNMPv2 community to filter SNMP requests.

 

This is also true for SNMPv3:


snmp-server user username [use-ipv4acl acl-name | use-ipv6acl acl-name]
Example:

switch(config)# snmp-server user user1 use-ipv4acl myacl

 

Assigns an IPv4 or IPv6 ACL to an SNMPv3 user to filter SNMP requests.

Review Cisco Networking for a $25 gift card