Access lists using IPv4 and IPv6 for SNMPv2 queries
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2022 06:18 PM
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
- Labels:
-
Other Switching
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2022 12:19 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2022 03:26 AM
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.
