net-snmp 支持ipv6

发布时间:2020-07-30 07:13:27 作者:313119992
来源:网络 阅读:9349

net-snmp 支持ipv6

net-snmp 支持ipv6时,在/usr/local/share/snmp/snmpd.conf中添加一行

agentaddress udp6:161

但是启动的时候,有错误日志。

[root@localhost sbin]# ./snmpd -f -Le -C -c /usr/local/share/snmp/snmpd.conf
2018-08-20 16:05:44  Error opening specified endpoint "udp6:161"
2018-08-20 16:05:44  Server Exiting with code 1

查看configure文件后,发现net-snmp 有一个开启ipv6的选项。

--enable-ipv6                   Generate IPv6 ready version.

所以在net-snmp configure过程中,指定这个参数即可。

./configure --enable-ipv6
得到如下结果
---------------------------------------------------------
            Net-SNMP configuration summary:
---------------------------------------------------------

  SNMP Versions Supported:    1 2c 3
  Building for:               linux
  Net-SNMP Version:           5.7.3
  Network transport support:  Callback Unix Alias TCP UDP TCPIPv6 UDPIPv6 IPv4Base SocketBase TCPBase UDPIPv4Base UDPBase IPv6Base
  SNMPv3 Security Modules:     usm
  Agent MIB code:            default_modules =>  snmpv3mibs mibII ucd_snmp notification notification-log-mib target agent_mibs agentx disman/event disman/schedule utilities host
  MYSQL Trap Logging:         unavailable
  Embedded Perl support:      enabled
  SNMP Perl modules:          building -- embeddable
  SNMP Python modules:        disabled
  Crypto support from:        crypto
  Authentication support:     MD5 SHA1
  Encryption support:         DES AES
  Local DNSSEC validation:    disabled

---------------------------------------------------------
make
make install

这样net-snmp就支持ipv6了。


推荐阅读:
  1. SNMP相关基本概念是什么
  2. 服务器SNMP采集频繁导致服务停止该怎么办

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

snmp ipv6 nm

上一篇:使用Windows 自带防火墙拦截勒索病毒

下一篇:前端技术之:如何通过类的属性获取类名

相关阅读

您好,登录后才能下订单哦!

密码登录
登录注册
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》