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