net-snmp支持ipv6-创新互联

net-snmp 支持ipv6

创新互联公司是一家专注于成都做网站、网站建设、外贸营销网站建设与策划设计,青川网站建设哪家好?创新互联公司做网站,专注于网站建设10多年,网设计领域的专业建站公司;建站业务涵盖:青川等地区。青川做网站价格咨询:13518219792

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

另外有需要云服务器可以了解下创新互联cdcxhl.cn,海内外云服务器15元起步,三天无理由+7*72小时售后在线,公司持有idc许可证,提供“云服务器、裸金属服务器、高防服务器、香港服务器、美国服务器、虚拟主机、免备案服务器”等云主机租用服务以及企业上云的综合解决方案,具有“安全稳定、简单易用、服务可用性高、性价比高”等特点与优势,专为企业上云打造定制,能够满足用户丰富、多元化的应用场景需求。


网页题目:net-snmp支持ipv6-创新互联
文章URL:http://scjbc.cn/article/jgjes.html

其他资讯