ç®±ããåãåºãã¦é»æºãå ¥ããã¨ããã§ä½æ¥ãçµãã£ã¦ããã®ã§Webã¤ã³ã¿ã¼ãã§ã¤ã¹ã«ã¢ã¯ã»ã¹ããã¦ã¹ã¤ããã®è¨å®ããã¦ã¿ãã ä»å±ã®ããã¥ã¢ã«ãæ¥æ¬èªããã¦ããªãã£ãã®ã§ãã£ã±ãã¨ããããWebã¤ã³ã¿ã¼ãã§ã¤ã¹ã®ãã«ããªã©ãæ¥æ¬èªåããã¦ãç¡ãã®ãã¡ãã£ã¨æ®å¿µã»ã»ã» ãã ãããªã«é£ãããã¨ã¯æ¸ãã¦ããªãããWebã¤ã³ã¿ã¼ãã§ã¤ã¹ã¯ããããããã®ã§ãåºæ¬çãªãããã¯ã¼ã¯ã®ç¥èãããã°å¥ã«æ¥æ¬èªåããã¦ãªãã¦ãOKã ã¨æãã ã¨ãããããåã®ã¹ã¤ããã®è¨å®ãå¼ãç¶ãã§ãä¸è¨ã®å³ã®ããã«VLANã¨TRUNKã®è¨å®ãããã ãããã¯ã¼ã¯ã¤ã³ã¿ãã§ã¤ã¹ã§ããããã¨ãã¦ã¹ã®ãã¿ã³ãæ¼ãã¦ããã«è¨å®ãçµããã¨æã£ã¦ããããVLANã®è¨å®ããä¹ ãã¶ãã«ããã®ã§ããã£ããè¨å®æ¹æ³ãå¿ãã¦ãã¦ãå°ä¸æéã»ã©ã¯ã¾ã£ãã PCãã¤ãªãå´ã®ãã¼ãã¯ãVLANã¿ã°ãã¤ããªãã§ã¹ã¤ããéã®éä¿¡ãããTrunkã®è¨å®ããã
ãã¾èªå® ã§ä½¿ã£ã¦ããL2 Switchï¼GS908Mï¼ãéå½¹ãããããã«ãHP 1810-8G v2ãè³¼å ¥ããã è²·ãæãããã¨æã£ãçç±ã¯ã大ä½æ¬¡ã®ãããªæãã 触ãã¨ç±ãã¨æããããçºç±ããã¦ãä¸ã«ç½®ãã¦ããã«ã¼ã¿ã¼ã«ç±ã§ãã¡ã¼ã¸ãä¸ã¦ãããããªæ°ãããã çºç±ãããã¨ãããã¨ã¯ããããé»æ°ã使ã£ã¦ããã®ã§é»æ°ä»£ããã£ãããªãã æ°å¹´åã®è£½åã ãæè¿èª¿åãè¯ããªãã®ã§è²·ãæãããã¨æã£ã¦ãã ç®±ãéãã¦åãã¦è£½åãè¦ãã¨ãçä½ã«æ¸ãã¦ãã製ååã«ããv2ããæ¸ãã¦ããªãã£ãã®ã§æ§è£½åãéããã¦ããã®ãã¨æã£ã¦åçªã®J9802Aãæ¤ç´¢ãã¦ãã¾ã£ãã ã±ã¼ã¹ã¯ãéå±è£½ã§ãªããã©ã¹ããã¯è£½ã ã£ããã¡ãã£ã¨å®ã£ã½ãããæ§è½ã«ã¯é¢ä¿ããªãããã¾ãããã¨ããã ã¡ãã£ã¨ãã¤ãã¹ãªç¹ã¨ãã¦ãæ¥æ¬åãã®è£½åãªã®ã«ç®±ã®ä¸ã«ãæ¥æ¬èªã®ã¯ã¤ãã¯ã¹ã¿ã¼ãã¬ã¤ããå ¥ã£ã¦ããªãã£ãã ã¾ã翻訳ãããããªé£ãããã¨
â ãSNMPv3ã使ç¨ããè¨å®ä¾ SNMP v3ã使ç¨ãã¦ãèªè¨¼ã¨éä¿¡ã®æå·åãããããã§ããã¼ã«ã«ãã¹ãã¨192.168.0.0/24ããããã¹ã¦ã®MIBã®æ å ±ã«å¯¾ãã¦ãèªã¿è¾¼ã¿ã®æ¨©éãä¸ããå ´åã®è¨å®ä¾ã§ãã # vi /etc/snmp/snmpd.conf ## # ãµã¼ãã¼ã®è¨ç½®æ å ± ## syslocation somewhere syscontact example ## # ã»ãã¥ãªãã£ãã¼ã ã«å¯¾å¿ãããIPã¢ãã¬ã¹ã®ç¯å²ã¨ã³ãã¥ããã£ã®è¨å® ## com2sec local_network 127.0.0.0/8 priv-net com2sec local_network 192.168.0.0/24 priv-net ## # ã°ã«ã¼ããã¼ã ã«å¯¾å¿ãããSNMPã®ãã¼ã¸ã§ã³ã¨ã»ãã¥ãªãã£ãã¼ã ã®è¨å® ## group local_group usm local_net
SNMP v2cã«ç¶ãã¦ãSNMP v3ã§è¨å®ããå ´åã®è¨å®æ¹æ³ãã¾ã¨ãã¦ã¿ããè¨å®ã«ä½¿ç¨ããOSã¯ãCentOS 6ã§ããå¥ã®OSã ã¨è¨å®ãã¡ã¤ã«ã®å ´æãå¤ãã£ããããããã â ãSNMPã®èªè¨¼ç¨ã®ä½æ ã/var/lib/net-snmp/snmpd.confãã«è¨å®ãããããã®ãã¡ã¤ã«ã¯ãsnmpdãæ¢ã¾ã£ã¦ããªãã¨åèµ·åããã¨ãã«ä¸èº«ãåæåããã¦ãã¾ãã®ã§ãä¸èº«ãå¤æ´ããã¨ãã¯ãsnmpdãæ¢ããã [æ¸å¼] createUser ã¦ã¼ã¶ã¼åãèªè¨¼ç¨®å¥ãèªè¨¼ãã¹ã¯ã¼ããæå·å種å¥ãæå·åãã¹ã¯ã¼ã * ã¦ã¼ã¶ã¼åã¯ãèªè¨¼ã«ä½¿ç¨ããã¦ã¼ã¶ã¼ã®åå * èªè¨¼è¨å®ã¯ããã¹ã¯ã¼ããããã·ã¥ããæ¹å¼ã§MD5ã¨SHAãè¨å®ã§ããã * èªè¨¼ãã¹ã¯ã¼ãã¯ãèªè¨¼ã«ä½¿ç¨ããã¦ã¼ã¶ã¼ã®ãã¹ã¯ã¼ã * æå·å種å¥ã¯ãSNMPã®éä¿¡ã®æå·åã«ä½¿ãããæ¹å¼ã§ãDESã¨AESãè¨å®ã§ããã * æå·åãã¹ã¯
â ãã°ã«ã¼ãã«å¯¾ããã¢ã¯ã»ã¹è¨±å¯ã®è¨å® ã°ã«ã¼ãã«å¯¾ãããMIBã®ã¢ã¯ã»ã¹ç¯å²ãèªè¨¼ãèªã¿æ¸ãã®è¨±å¯ã®è¨å®ãããã [æ¸å¼] access ã°ã«ã¼ãå Context ã»ãã¥ãªãã£ã¢ãã« èªè¨¼è¨å® Contextãããã®æ¹æ³ãRead権é Write権é Trapéç¥ ã»ãã¥ãªãã£ã¢ãã«ã¯ããv1ãã¨ãv2cãã¨ãusmãã¨ãanyããè¨å®ãããã¨ãã§ããã Contextã¯ãé常ã®ä½¿ç¨æ¹æ³ã§ã¯ä½¿ããªãããã§ãã èªè¨¼æ¹æ³ã¯ããnoauthãã¨ãauthãã¨ãprivããã¨ããã¨ãã§ããã ãnoauthãã¯ãèªè¨¼ãªãã§ãSNMPãv1ãã¨ãv2cãã使ç¨ããå ´åã«ãããè¨å®ããå¿ è¦ãããã ãauthãã¯ãèªè¨¼ãããéä¿¡ã®æå·åãªãã§ãSNMPãv3ãã使ç¨ããå ´åã«ãããè¨å®ããå¿ è¦ãããã ãprivãã¯ãèªè¨¼ãããéä¿¡ã®æå·åããã§ãSNMPãv3ãã使ç¨ããå ´åã«ãããè¨å®ããå¿
ä¸åè¨å®ããããè¨å®ãã³ãããã¦ä½¿ãã¾ããã ãã§ãªããªãè¨å®ããããã¨ããªãã®ã§ããããªã«ããªãç¶æ ããè¨å®ããããã¨ã«ãªã£ãæã«ãè¨å®ã®æ¹æ³ãè¦ãã¦ããªãã®ã§ããµã¼ãã¼ã®CPU使ç¨çããããã¯ã¼ã¯ã®ãã©ãã£ãã¯ãªã©ãSNMPã使ç¨ãã¦ç£è¦ããããã®è¨å®ãã¾ã¨ãã¦ã¿ãã â ãã¤ã³ãã©ã¡ã¼ã·ã§ã³ ãµã¼ãã¼ã®è¨ç½®å ´æããé£çµ¡å ã®ã¡ã¼ã«ã¢ãã¬ã¹ã®è¨å®ãããã syslocation å ´æã®åå syscontact åå â ãã³ãã¥ããã£ã®è¨å® ã³ãã¥ããã£ã¯ãSNMPã®æ å ±ãå ¬éãããããã¯ã¼ã¯ã®ç¯å²ã§ãcom2secã使ç¨ãã¦è¨å®ããããæ¸å¼ã¯ä¸è¨ã®ããã«ãªãã [æ¸å¼] com2sec ã»ãã¥ãªãã£ãã¼ã IPã¢ãã¬ã¹ã®ç¯å² ã³ãã¥ããã£ãã¼ã ã»ãã¥ãªãã£ãã¼ã ã¯ãã³ãã¥ããã£ã«å¯¾ããã¢ã¯ã»ã¹å¶å¾¡ã«ä½¿ç¨ãããã ã³ãã¥ããã£ãã¼ã ã¯ãã»ãã¥ãªãã£ã®è¦³ç¹ãããpublic以å¤ã®ååã«ããã
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}