The physical machine and the virtual machine IP ping each other, and the mutual ping host name does not pass

Source: Internet
Author: User

Problem Description:
Virtual Machine Information:
Vmware-workstation 10
Install the RHEL5.8 operating system, hostname:rhel201.com ip:192.168.1.201

Physical machine System: windows 7
Host Name: RUSKY-PC ip:192.168.1.123

The two can ping each other's IP address, but ping each other's host name fails.

Processing method:
1. Edit the following files in the virtual machine Linux system
[Email protected] ~]# vi/etc/hosts

# don't remove the following line, or various programs
# that require network functionality would fail.
127.0.0.1 localhost.localdomain localhost
192.168.1.201 rhel201.com rhel201
#加上物理机的IP和主机名对应关系
192.168.1.123 rusky-pc
----------------------------
[Email protected] ~]# cat/etc/resolv.conf--The file is as follows and should not be affected by this file.
Search Localdomain

2, Windows7 system Modify the following file (add the host name of the Linux system and IP corresponding relationship)
C:\Windows\System32\drivers\etc
192.168.1.201rhel201.com


Test results:
To ping the physical IP and hostname from the virtual machine:

[[email protected] ~]# Ping192.168.1.123PING192.168.1.123(192.168.1.123) About( -) bytes of data. -bytes from 192.168.1.123: icmp_seq=1Ttl= -Time=0.213Ms -bytes from 192.168.1.123: icmp_seq=2Ttl= -Time=0.138Ms---192.168.1.123Ping Statistics---2Packets Transmitted,2Received0%packet loss, time 1001msrtt min/avg/max/mdev =0.138/0.175/0.213/0.039Ms[[email protected]~]# Ping rusky-pcping Rusky-PC (192.168.1.123) About( -) bytes of data. -bytes fromRUSKY-PC (192.168.1.123): icmp_seq=1Ttl= -Time=0.125Ms -bytes fromRUSKY-PC (192.168.1.123): icmp_seq=2Ttl= -Time=0.107Ms^c^h64 bytes fromRUSKY-PC (192.168.1.123): icmp_seq=3Ttl= -Time=0.122Ms---rusky-pc ping statistics---3Packets Transmitted,3Received0%packet loss, time 2000msrtt min/avg/max/mdev =0.107/0.118/0.125/0.007Ms

The IP and hostname of the virtual machine can be pieced from the physical machine

C:\users\administrator>Ping rhel201.com is pinging rhel201.com [192.168.1.201] has +bytes of data: from192.168.1.201The reply: byte = +Time <1ms ttl= -from192.168.1.201The reply: byte = +Time <1ms ttl= -192.168.1.201Ping Statistics: packets: Sent=2, received =2, missing =0(0%lost), estimated time to round trip (in milliseconds): Shortest= 0ms, maximum = 0ms, average =0msc:\users\administrator>ping192.168.1.201is pinging192.168.1.201Has +bytes of data: from192.168.1.201The reply: byte = +Time <1ms ttl= -from192.168.1.201The reply: byte = +Time <1ms ttl= -from192.168.1.201The reply: byte = +Time <1ms ttl= -from192.168.1.201The reply: byte = +Time <1ms ttl= -192.168.1.201Ping Statistics: packets: Sent=4, received =4, missing =0(0%lost), estimated time to round trip (in milliseconds): Shortest= 0ms, maximum = 0ms, average = 0ms

==================================
Impact on the above issues:
Install the ORACLE11G database under the server vmware-linux system, install the oracle11g client under Windows, but use Sqlplus from the client to connect to the server.
1. Remote client port Sqlplus cannot connect to the database
The remote client (refers to the Windows7 system), under the cmd tnsping 201instanceName does not pass, tnsping rhel201.com,tnsping 192.168.1.201 also does not pass. Sqlplus also cannot connect to the DB instance.

2. The remote airliner cannot access the EM manager from the browser
Using your own Firefox browser in a Linux system will normally access the EM manager, but on the client side: https://192.168.1.201
1158/em or Https://rhel201.com:1158/em both of these methods indicate that the page cannot be displayed.
Client: Telnet 192.168.1.201 1158 does not pass.

When the host name is ping to each other, the EM and Sqlplul connections are normal.

It is also recommended to access em using the Firefox browser because it often crashes in the process of using IE or 360 to access em.

The physical machine and the virtual machine IP ping each other, and the mutual ping host name does not pass

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.