06-25-2019 02:28 PM
Hello,
I have problem understanding this SNMP configuration. The commands are below:
ALS1(config)# access-list 1 permit 192.168.1.0 0.0.0.255
ALS1(config)# snmp-server community LEVEL1 ro 1 #Line 2
ALS1(config)# snmp-server enable traps vtp
ALS1(config)#snmp-server host 10.1.1.253 traps version 2c LEVEL1 vtp
To my understanding, the ALS1 is the monitored device and it will send SNMP messages related to VTP to host 10.1.1.253
The thing that I can't understand is line 2, some tutorials online do not use access-list. Their command is just like this :
ALS1(config)# snmp-server community LEVEL1 ro
However, in the book I am reading, the author creates access-list 1 and use it with community string like this.
ALS1(config)# snmp-server community LEVEL1 ro 1
I don't know the role of the subnet 192.168.1.0 0.0.0.255 in this configuration. Please help.
I appreciate your help!
Best,
Huyan.
06-25-2019 04:42 PM
The access list only allows snmp access from the /24 subnet you defined.
06-25-2019 05:11 PM
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide