Can ping the virtual machine, but the SNMP message Destination Unreachable (host administratively prohibited

Source: Internet
Author: User
Tags snmp

For example, use the virtual box virtual machine. The virtual machine system is centos6.5, and the host system is win10.

The internal and external IP addresses can be pinged to each other after the same network segment. the SNMP service is enabled in the centos system,

The SNMP service is open-source on git and is not obtained through yum.PS-Ef | grep snmpd

Process can be found,ChkconfigWhen the command is run, the snmpd service is disabled, but this does not affect the fact that the snmpd has been started.

When Windows sends the SNMP. GET command to centos through the SNMP software, Wireshark packet capture shows that the network is not reachable.

Destination Unreachable (host administratively prohibited

You can solve this problem by setting the centos firewall configuration file:

Vim/etc/sysconfig/iptables

Enter the firewall configuration file, comment out the following two sentences with #, and restart centos:

#-A input-J reject -- reject-with ICMP-host-prohibited

#-A forward-J reject -- reject-with ICMP-host-prohibited

2. When using a virtual box virtual machine, it will always be unable to connect to the Internet after centos is restarted.

Solution: Set the virtual box network connection mode every time the network is unavailable.

Control> Settings> Network

Set"Bridging network card"To"Network Address Translation Nat", You should be able to connect to the network, and then switch back"Bridging network card", Then you can bridge the network card

Network Connection

Can ping the virtual machine, but the SNMP message Destination Unreachable (host administratively prohibited

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.