我在 Cisco 路由器上配置访问列表,并且 SNMP 不显示此信息。
第 2 步:我使用 CISCO-ACL-MIB 和“iReasoning MIB 浏览器”我已连接到设备,但没有从访问列表中获取输出。
*我使用 GNS3 和我的配置:
R1#show running-config
Building configuration...
Current configuration : 1684 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R1
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
no ip icmp rate-limit unreachable
!
ip cef
no ip domain lookup
!
!
ip tcp synwait-time 5
!
interface FastEthernet0/0
!
interface FastEthernet0/1
!
serial restart-delay 0
!
interface Vlan1
ip address 172.16.98.63 255.255.255.0
!
router ospf 1
log-adjacency-changes
network 10.0.0.0 0.255.255.255 area 1
!
no ip http server
no ip http secure-server
!
access-list 10 deny 10.0.0.0 0.255.255.255
access-list 122 deny icmp 10.0.0.0 0.255.255.255 host 1.1.1.24 echo-reply
snmp-server community public RW
no cdp log mismatch duplex
!
control-plane
!
line con 0
exec-timeout 0 0
privilege level 15
logging synchronous
line aux 0
exec-timeout 0 0
privilege level 15
logging synchronous
line vty 0 4
login
!
!
end