cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
82931
Views
10
Helpful
2
Replies

SNMP 161, 162, 1993 TCP or UDP

tony.h
Level 1
Level 1

As we know, port 161/162/1993 could be TCP or UDP and snmp traps are sent out in UDP. Could you please tell me when TCP 161/162/1993 will be used and how to identify it is TCP or UDP on a Cisco router? Thanks very much!

2 Replies 2

nhabib
Level 9
Level 9

As of version 11.x of IOS, Cisco no longer uses

port 1993. If you are on a version of IOS that

is below 11.x, you are not Y2K compliant.

By default, SNMP uses UDP, not TCP. Polling

(sent by servers) goes to port 161. Traps (sent

by agents) go to port 162.

velimirmkd
Level 1
Level 1

As I know UDP 161/162 are used for SNMP. On my network a monitor only these two ports concerning the SNMP. If you want to verify if it is udp or tcp you can do it very easily with an access list. For example:

access-list 166 permit icmp any any echo

access-list 166 permit icmp any any echo-reply

access-list 166 permit udp any any log

access-list 166 permit tcp x.x.x.x x.x.x.x any log

access-list 166 permit tcp any x.x.x.x x.x.x.x log

access-list 166 permit ip any x.x.x.x x.x.x.x

access-list 166 permit ip any any

You can even simplyfy this list by using any any for the tcp and fot the ip part.

This way you won't affect your regular communication and you'll be able to view the log messages on the console or terminal.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: