问题描述:虚拟机信息:VMware-workstation 10安装RHEL5.8操作系统.hostname:rhel201.com IP:192.168.1.201 物理机系统:windows 7主机名:rusky-PC IP: 192.168.1.123 两者能够互相ping通对方的IP地址,但是互ping对方主机名失败. 处理方法:1.虚拟机linux系统中编辑如下文件[root@rhel201 ~]# vi /etc/hosts # Do not remove the following
using System; using System.Collections.Generic; using System.Text; using System.IO; using System.Net.NetworkInformation; using System.Threading; namespace Manager.Common { public static class NetCommon{ /// <summary> /// 验证IP地址字符串的正确性 /// </summa