SNMPv2c/v3の設定と取得確認5 / 7
SNMP communityのviewとアクセス制限
設定例:
access-list 5 permit 198.18.19.100 0.0.0.0
snmp-server view BLOCKED_VIEW internet excluded
snmp-server view BLOCKED_VIEW ospfIfEntry included
snmp-server view BLOCKED_VIEW ospfNbrEntry included
snmp-server community c1sc0 view BLOCKED_VIEW RO 5
snmp ifmib ifindex persist
Viewは読めるOID、ROは読み取り権限、末尾の5はアクセス元ACLを指定する。上位のinternetを除外し、必要な二つのentryを個別に含める。