Some difficult problems in the configuration of Virtual machine network---met destination Host unreachable in the lab.

Source: Internet
Author: User
Tags domain name server
CSDN's new blog is fast.
In the afternoon, I was going to NFS the board, and found that the virtual machine could not be discovered.
Tested the network condition of the virtual machine: root@ubuntu:/nfsboot/etc# Ping 202.193.89.254 This gateway is not up.
PING 202.193.89.254 (202.193.89.254) bytes of data.
From 202.193.89.253 icmp_seq=1 destination Host unreachable
From 202.193.89.253 icmp_seq=2 destination Host unreachable
From 202.193.89.253 icmp_seq=3 destination Host unreachable
From 202.193.89.253 icmp_seq=4 destination Host unreachable
From 202.193.89.253 icmp_seq=5 destination Host unreachable

The domain name server is also not up. It's strange. root@ubuntu:/nfsboot/etc# Ping 202.193.80.33
PING 202.193.80.33 (202.193.80.33) bytes of data.
From 202.193.89.253 icmp_seq=1 destination Host unreachable
From 202.193.89.253 icmp_seq=2 destination Host unreachable
From 202.193.89.253 icmp_seq=3 destination Host unreachable
From 202.193.89.253 icmp_seq=4 destination Host unreachable
From 202.193.89.253 icmp_seq=5 destination Host unreachable
From 202.193.89.253 icmp_seq=6 destination Host unreachable


Modify interfaces, anyway can not auto networking. Reference to the following data, found that their way of networking is right.
http://bbs.sciencenet.cn/home.php?COLLCC=2420443621&mod=space&uid=230547&do=blog&id=250085

Http://www.phpweblog.net/fuyongjie/archive/2008/08/27/5670.aspx

http://www.howtogeek.com/howto/ubuntu/change-ubuntu-server-from-dhcp-to-a-static-ip-address/


But why does automatic DHCP not work ... root@ubuntu:/etc#/etc/init.d/networking Restart
* Reconfiguring network Interfaces ... Internet Systems Consortium DHCP Client


V3.1.3
Copyright 2004-2009 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/


Listening on Lpf/eth0/00:0c:29:da:ff:a7
Sending on Lpf/eth0/00:0c:29:da:ff:a7
Sending on Socket/fallback
DHCPDiscover on eth0 to 255.255.255.255 port interval 7
DHCPDiscover on eth0 to 255.255.255.255 port interval 17
DHCPDiscover on eth0 to 255.255.255.255 port interval 7
DHCPDiscover on eth0 to 255.255.255.255 port interval 7
DHCPDiscover on eth0 to 255.255.255.255 port interval 12
DHCPDiscover on eth0 to 255.255.255.255 port interval 11
No DHCPOFFERs received. The DHCP server could not be found. This requires me to specify No.
No working leases in persistent database-sleeping.
[OK]




root@ubuntu:/etc# ifconfig
Eth0 Link encap:ethernet hwaddr 00:0c:29:da:ff:a7
inet addr:202.193.89.249 bcast:202.193.89.255 mask:255.255.255.192
Inet6 ADDR:FE80::20C:29FF:FEDA:FFA7/64 Scope:link
Up broadcast RUNNING multicast mtu:1500 metric:1
RX packets:96 errors:0 dropped:0 overruns:0 frame:0
TX packets:822 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:12066 (12.0 kb) TX bytes:34956 (34.9 KB)
Interrupt:19 Base address:0x2024


Lo Link encap:local Loopback
inet addr:127.0.0.1 mask:255.0.0.0
Inet6 addr::: 1/128 scope:host
Up loopback RUNNING mtu:16436 metric:1
RX packets:841 errors:0 dropped:0 overruns:0 frame:0
TX packets:841 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:89396 (89.3 KB) TX bytes:89396 (89.3 KB)

248 is also required time out surprised to find 252, incredibly there:C:\Documents and Settings\administrator>ping 202.193.89.252


Pinging 202.193.89.252 with bytes of data:


Reply from 202.193.89.252:bytes=32 time<1ms ttl=64
Reply from 202.193.89.252:bytes=32 time<1ms ttl=64
Reply from 202.193.89.252:bytes=32 time<1ms ttl=64
Reply from 202.193.89.252:bytes=32 time<1ms ttl=64


Ping statistics for 202.193.89.252:
Packets:sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trips times in Milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms


C:\Documents and Settings\administrator>

is the IP is occupied.


If you ping on XP, it's required time out.

This IP does not exist.
C:\Documents and Settings\administrator>ping 202.193.89.192


Pinging 202.193.89.192 with bytes of data:


Destination specified is invalid.
Destination specified is invalid.
Destination specified is invalid.
Destination specified is invalid.







================================================= ICMP message, the meaning of destination Host unreachable is as follows: http://www.corenetworkz.com/2009/05/destination-host-unreachable-reason-and.html

The error message "Destination Host unreachable"Tells the ping request from our computer cannot find the route to the destination IP address destination network CE). It means the Packet send from your computer reached the destination network of successfully it but to find the failed tion host. Destination host can is any networking device (with one unique IP address) in the destination network. One major possibility for the ' is there ' no route for the ' packet send from your to computer host. If There is no route available, it's impossible to find the destination host and your would get a error message "Destination host unreachable" instead of replies. So the issue can is due to faulty routing table. If The destination host is down in the time of the packet send, it may result destination host unreachable an error message. I conclude all possible reasons for destination host unreachable the error message with possible troubleshooting .


The POSSIBLE reasons for the ERROR destination HOST unreachable


1. The ping packet find the destination network but failed into find the destination computer.

2.Packet Routing issue.

3. Destination host might is down


it means to the other side of the network, but the router can not forward the message to the destination host. That means knowing that the IP is on the network, but not sending the data. It's so weird.

=================

XP on Ping, I use the virtual machine before the 253. Yesterday was this available. This time ping, is another address. It's so weird. And it's not in this network.

The school gateway should have been used for a long time. and is the extranet IP.




My actual IP is this. But I was 254 assigned to the IP is 203, very strange ah. This is how to access the external network method.



This IP is present.



========================

I really don't know the school network.


Set up network on virtual machine, DHCP not. I'm a bridge. DHCP, is not also related to the problem of VMware network card.


Setting to static IP is still possible. Methods can refer to several links above.


1 # The Primary network interface
2 Auto Eth0
3 iface eth0 inet static
4 Address 202.193.89.249
5 netmask 255.255.255.192
6 Gateway 202.193.89.254
7 #iface eth0 inet DHCP This is the way DHCP. The above is the way of the static IP.
8 Auto Lo
9 iface Lo inet loopback
Ten #auto Eth0
One #iface eth0 inet DHCP
~

===================

Destination host unreachable The target host cannot reach the "Destination host unreachable" message stating that the other host does not exist or has not established a connection with the other.
The network cable is not connected properly, or the NIC is problematic.   
Check the physical connection, restart the machine in general to determine your TCP/IP network properties set correctly, check your cable or network card is not plugged well I think it should be physical connection has not been picked up ...

  
The machine has been used for several years, n more dust ...
The routing table does not even have a route to reach the destination, and the destination Host unreachable appears. Mainly in the following three scenarios: 1, the LAN use DHCP dynamic allocation of IP address, DHCP failure or failure of DHCP failure or failure, the client can not be assigned to the IP address, the system only has its own IP address,the automatic setting of IP addresses is often assigned to different subnets., "Destination Host unreachable" appears.

2, subnet mask set error This situation is generally relatively rare, if the subnet mask is not automatically generated by the system, the calculation must be careful. 3. The routing table returns an error messageThis is typically preceded by a "destination host unreachable" with an IP address that indicates that the local computer has no problem with the external network connection, but there is a problem connecting to a host. The "Destination Net unreachable" message indicates that the other host does not exist or has not established a connection with the other. Here is a description of the difference between "destination host unreachable" and "Time Out", which occurs when the routing table of the routed router has a route to the destination, and the target is unreachable for other reasons.If the routing table does not even have a route to reach the destination, there will be "destination host unreachable". Turn the ICMP security policy off TCP/IP properties-Advanced-Option--IP Security Properties-Select "Do not use IPSec" OK, OK, all normal ping out of request time out and destination is unreachable req Uest time out means that after an ICMP packet is emitted, there is no response for a long period, so request times out is generated.typically ping a host that does not exist on a network. The destination is unreachable or destination port unreachable generally receivesport or target host unreachable ICMP packet for target host or intermediate router response。 
If you ping a host with a iptables ICMP packet and use the-j REJECT will appear destination port unreachable information, this is the target host response. The main difference between the two is to see whether the target host or intermediate router has given ICMP unreachable response. Send an IP datagram to the target host, if the protocol item is wrong, or the protocol item is not available. The target returns the ICMP message for the destination is unreachable. If there is a firewall, may filter out the IP datagram, received no response message. If the IP header protocol is set to a particularly large number (at least not yet used today), the host must return the unreachable ICMP message. Otherwise there must be a firewall. It is also possible to change protocol entries in IP to detect which protocols are used by the host, or to return unreachable ICMP messages if they are not used.
============================================

After you install the virtual machine, the following three problems are summarized:

One, the problem one: virtual machine and host each other ping impassability

Installed the virtual machine, Ethernet selected is the default bridge, can be installed after the host can not ping, and can not ping through the gateway 192.168.1.1, display "Destination host unreachable"

In VMware Workstation, click menu to edit-> virtual network settings (S) to open Virtual Network editor, and on the Summary tab, you can see:
Virtual Network Summary
VMnet0 (bridging) bridge to ADMtek AN983 10/100 PCI Adapter-Packet Scheduler Miniport
VMnet1 (host only) a private network connected to the host
VMnet8 (NAT) is used to share the host's IP address

Because we selected "bridging" in Ethernet "network connection", we switched to "host virtual network mapping" and saw that the value after "VMnet0" was: Bridge to an automatically selected adapter, and we modified it to:
ADMtek AN983 10/100 PCI Adapter-Packet Scheduler Mini port
Then "Apply"-> "OK"

Results: The host can ping the virtual machine, while the virtual machine ping does not pass the host, but the host and virtual machine can ping the other computers on the local area network.
Later, by disabling the VMware network Adapter VMnet1, VMware Network Adapter VMNET8 in the Host network connection, the virtual machine can ping the host.
This time, finally seriously learned the virtual machine in these three kinds of connections are different:

1.Bridge mode (bridging mode)
This mode is a new virtual machine when the default selection, is the virtual host of the virtual network card bridge to a host host physical network card above , is actually the host of the physical network card set to promiscuous mode, so that the ability to listen to multiple IP. In this mode, the virtual host of the virtual network card directly connected to the host's physical network card, can be understood as a virtual machine and host hosts in a peer status, in the network relationship is equal, no one who is the Lord who, who before the points.

2.NAT mode
In this mode, a virtual NIC VMnet8 (by default) appears in the network connection of the host host. If you have done 2000/2003 of NAT server experiment will understand: Hosthost VMNET8 virtual network card is equivalent to connect to the intranet network card, host host physical network card is equivalent to connect to the external network network card, and the virtual machine itself is equivalent to running the computer online, virtual machine network card is independent of virtual Ethernet Switch (VMnet8). In this way, VMware's own DHCP service is loaded by default to virtual Ethernet Switch (VMNET8) so that the virtual machine can use the DHCP service.

3.host-only mode
This pattern is a closed way, suitable for various network experiments in an independent environment. In this way a virtual network card VMnet1(by default) appears in Network Connections for host hosts. and NAT The only difference is: in this way, there is no address translation service. So in this case, the virtual machine can only access the host, which is also the meaning of Host-only's name.

Second, the question two: the virtual machine cannot use the keypad the numeric key?

First in the host to turn off the use of the keypad (press the NumLock key, so that the LED is not lit), and then press the NumLock key in the virtual machine, so that the indicator light can be lightened.

Third, host and virtual machine shared files

Method 1: Install the VMware tools,vmware workstation-> menu "virtual machine"-> "Install VMware Tool (I)" to the virtual machine, then install VMware Tools automatically, You can drag files directly to the virtual machine in the host.

Method 2: Host and virtual machine share. You can also copy files through ipc$ connection by accessing another computer directly.

This article from Csdn Blog, reproduced please indicate the source: http://blog.csdn.net/nellson/archive/2010/07/04/5711620.aspx

==========================================================

After seeing this article, I understand that bridge does not need to vmnet8, also do not need to vmnet1, so disabled 8 and 1, there is a VirtualBox network connection, right away.




changed back to 253.

root@ubuntu:/etc/init.d#./networking
Usage:/etc/init.d/networking {start|stop|restart|force-reload}
root@ubuntu:/etc/init.d#./networking restart
* Reconfiguring network Interfaces ...




Board NFS started successfully. Eth0:link down
Ip-config:complete:
Device=eth0, addr=202.193.89.251, mask=255.255.255.192, gw=202.193.89.254,
host=202.193.89.251, domain=, nis-domain= (None),
bootserver=202.193.89.253, rootserver=202.193.89.253, rootpath=
Looking up port of RPC 100003/2 on 202.193.89.253
Eth0:link up, 100Mbps, Full-duplex, LPA 0x41e1
Looking up port of RPC 100005/1 on 202.193.89.253
vfs:mounted Root (NFS filesystem).
Freeing Init memory:152k
Endrcs--call-mkfsauto-imount SD card begin ....
Mount SD card End ....
Call-fortry to bring eth0 interface up......use/etc/eth0-setting as default. D
/etc/init.d/ifconfig-eth0:line 32:telnetd:not found
Ifconfigetho-done
Please press Enter to activate this console.
[Root@real6410/]#


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.