net-snmp支持ipv6

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了。

文章名称:net-snmp支持ipv6
标题路径:https://www.cdcxhl.com/article34/jssspe.html

成都网站建设公司_创新互联,为您提供网页设计公司微信小程序云服务器手机网站建设微信公众号

广告

声明:本网站发布的内容(图片、视频和文字)以用户投稿、用户转载内容为主,如果涉及侵权请尽快告知,我们将会在第一时间删除。文章观点不代表本网站立场,如需处理请联系客服。电话:028-86922220;邮箱:631063699@qq.com。内容未经允许不得转载,或转载时需注明来源: 创新互联

外贸网站建设