Does local and vmware ping different ip addresses from each other? Rescue all heroes

Source: Internet
Author: User
Does local and vmware ping different ip addresses from each other? Find all the heroes to save-Linux general technology-Linux technology and application information. The following is a detailed description. At first, I installed linux5.1 on the virtual machine, and firewall was disabled. however, the local SSH client cannot connect to the VM (of course, the ip address 192.168.92.20 of the VM is located in the VMWARE Network Adapter VMware1 ip 192.168.92.1 ). The Truncation field is as follows:
[Root @ leejack ~] #/Etc/rc. d/init. d/iptables status
Firewall is stopped.

1. I use local ssh to connect to the virtual machine. An error will be reported in ssh. The error message is as follows:
The host '1970. 168.92.20 'is unreachable.
The host may be down, or there may be a problem wih the network connection.
Sometime such problems can also be caused by a misconfigured firewall.

2. I checked the content of iptables on the Internet. I set iptables as follows:
[Root @ leejack ~] # Iptables-L-n
Chain INPUT (policy ACCEPT)
Target prot opt source destination
ACCEPT icmp -- 0.0.0.0/0 0.0.0.0/0
ACCEPT tcp -- 192.168.92.1 0.0.0.0/0 tcp dpt: 22

Chain FORWARD (policy ACCEPT)
Target prot opt source destination
ACCEPT all -- 0.0.0.0/0 0.0.0.0/0 state RELATED, ESTABLISHED
ACCEPT all -- 0.0.0.0/0 0.0.0.0/0
ACCEPT all-f 0.0.0.0/0 0.0.0.0/0 limit: avg 100/sec burst 100
ACCEPT icmp -- 0.0.0.0/0 0.0.0.0/0 limit: avg 1/sec burst 10

Chain OUTPUT (policy ACCEPT)
Target prot opt source destination
ACCEPT icmp -- 0.0.0.0/0 0.0.0.0/0
DROP tcp -- 0.0.0.0/0 0.0.0.0/0 tcp spt: 31337
ACCEPT tcp -- 192.168.92.1 0.0.0.0/0 tcp dpt: 22

3. After I ping the VMWARE Network Adapter VMware1 IP address in the VM, an error will be reported:
[Root @ leejack ~] # Ping-c 3 192.168.92.1
PING 192.168.92.1 (192.168.92.1) 56 (84) bytes of data.
From 192.168.92.20 icmp_seq = 1 Destination Host Unreachable
From 192.168.92.20 icmp_seq = 2 Destination Host Unreachable
From 192.168.92.20 icmp_seq = 3 Destination Host Unreachable

--- 192.168.92.1 ping statistics ---
3 packets transmitted, 0 received, + 3 errors, 100% packet loss, time 2007 ms
, Pipe 3

4. However, you can PING the Virtual Machine IP address 192.168.92.20 on the virtual machine.
5. I can ping VMWARE Network Adapter VMware1 (192.168.92.1) on a local computer,
However, you cannot ping the VM 192.168.92.20.
Please look at the heroes and heroes. Thank you first.

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.