![SNR S2940-8G-v2 Скачать руководство пользователя страница 33](http://html1.mh-extra.com/html/snr/s2940-8g-v2/s2940-8g-v2_configuration-manual_1310630033.webp)
SNR S2940-8G-v2 Switch Configuration Guide
Basic Switch Configuration
Command
Explanation
Global Mode
snmp-server host { <host-ipv4-address> |
<host-ipv6-address> } { v1 | v2c | { v3 {
noauthnopriv | authnopriv | authpriv } } }
<user-string>
no snmp-server host { <host-ipv4-address>
| <host-ipv6-address> } {v1 | v2c | { v3 {
noauthnopriv | authnopriv | authpriv } } }
<user-string>
Set the host IPv4/IPv6 address which is used
to receive SNMP Trap information. For SNMP
v1/v2, this command also configures Trap com-
munity string; for SNMP v3, this command also
configures Trap user name and security level.
The
no
form of this command cancels this IPv4
or IPv6 address.
snmp-server trap-source { <ipv4-address> |
<ipv6-address> }
no
snmp-server
trap-source
{
<ipv4-
address> | <ipv6-address> }
Set the source IPv4 or IPv6 address which is
used to send trap packet, the no command
deletes the configuration.
9. Enable/Disable RMON
Command
Explanation
Global Mode
rmon enable
no rmon enable
Enable/disable RMON.
2.4.5
Typical SNMP Configuration Examples
The IP address of the NMS is
1.1.1.5
; the IP address of the switch (Agent) is
1.1.1.9
.
Scenario 1:
The NMS network administrative software uses SNMP protocol to obtain data
from the switch.
The configuration on the switch is listed below:
Switch(config)#snmp-server enable
Switch(config)#snmp-server community rw private
Switch(config)#snmp-server community ro public
Switch(config)#snmp-server securityip 1.1.1.5
The NMS can use private as the community string to access the switch with read-write permis-
sion, or use public as the community string to access the switch with read-only permission.
Scenario 2:
NMS will receive Trap messages from the switch (
Note:
NMS may have commu-
nity string verification for the Trap messages. In this scenario, the NMS uses a Trap verification
community string of usertrap).
The configuration on the switch is listed below:
Switch(config)#snmp-server enable
Switch(config)#snmp-server host 1.1.1.5 v1 usertrap
Switch(config)#snmp-server enable traps
Scenario 3:
NMS uses SNMP v3 to obtain information from the switch.
The configuration on the switch is listed below:
33
Содержание S2940-8G-v2
Страница 11: ...SNR S2940 8G v2 Switch Configuration Guide Part I Basic Management Configuration 11...
Страница 46: ...SNR S2940 8G v2 Switch Configuration Guide Part II Port Configuration 46...
Страница 123: ...SNR S2940 8G v2 Switch Configuration Guide Part III VLAN and MAC Table Configuration 123...
Страница 164: ...SNR S2940 8G v2 Switch Configuration Guide Part IV MSTP Configuration 164...
Страница 176: ...SNR S2940 8G v2 Switch Configuration Guide Part V QoS and Flow based Redirection Configuration 176...
Страница 198: ...SNR S2940 8G v2 Switch Configuration Guide Part VI L3 Forward and ARP Configuration 198...
Страница 218: ...SNR S2940 8G v2 Switch Configuration Guide Part VII DHCP Configuration 218...
Страница 257: ...SNR S2940 8G v2 Switch Configuration Guide Part VIII Multicast Protocol 257...
Страница 278: ...SNR S2940 8G v2 Switch Configuration Guide Part IX Security Function Configuration 278...
Страница 376: ...SNR S2940 8G v2 Switch Configuration Guide Part X Reliability Configuration 376...
Страница 395: ...SNR S2940 8G v2 Switch Configuration Guide Part XI Flow Monitor Configuration 395...
Страница 403: ...SNR S2940 8G v2 Switch Configuration Guide Part XII Network Time Management Configuration 403...
Страница 411: ...SNR S2940 8G v2 Switch Configuration Guide Part XIII Debugging and Diagnosis 411...