Specifications

Chapter 8
8-10
Use this command to make the agent list on the specified list of sockets
instead of the default port, which is port 161. Separate multiple ports by
commas. You can specify transports by prepending the port number with the
transport name (udp or tcp) followed by a colon.
To bind to a particular interface, you can specify the address you want it to
bind with. For example, you can specify the following command to make
the agent listen on UDP port 161 for any address, TCP port 161 for any
address, and UDP port 9161 on only the interface associated with the
localhost address.
snmpd -p 161,tcp:161,9161@localhost
Note
The -T flag changes the default transport mapping to use (in the previous
example, the default transport mapping is UDP).