SSH链接虚拟机中LINUX的问题

wh62592855 2010-02-03 12:18:29
以前连接都挺正常的 有段时间没用 最近又需要使用LINUX 可是从外面WINDOWS的SSH连虚拟机中的LINUX发现连不上了
IP地址输入好像没有错误呀
下面是两张截图 请各位帮忙看看


...全文
1349 15 打赏 收藏 转发到动态 举报
写回复
用AI写文章
15 条回复
切换为时间正序
请发表友善的回复…
发表回复
lover321123 2011-08-31
  • 打赏
  • 举报
回复
连接成功,本地必须和虚拟机在同一个网段中,可以修改虚拟机的ip。
ghost1225100 2011-05-26
  • 打赏
  • 举报
回复
桥接模式下 都在同一个网段不能连接的解决办法 网卡属性 硬件校验和 设置为 关闭 就可以了
try__again 2010-02-04
  • 打赏
  • 举报
回复
虚拟机的1号和8号网卡,肯定不能在同一个网段

而且,我建议你修改虚拟机的IP,而虚拟的VMnet1,VMnet8不要动
-无-为- 2010-02-04
  • 打赏
  • 举报
回复
这是俺的
C:\>ipconfig

Windows IP Configuration


Ethernet adapter VMware Network Adapter VMnet8:

Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . : 192.168.200.1
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . :

Ethernet adapter VMware Network Adapter VMnet1:

Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . : 192.168.0.1
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . :

Ethernet adapter 本地连接:

Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . : 192.168.110.120
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.110.1
-无-为- 2010-02-04
  • 打赏
  • 举报
回复
虚拟机选择 host-only 方式
Ethernet adapter VMware Network Adapter VMnet1的ip:192.168.0.0

linux的ip:192.168.0.XXX
linux网关是:192.168.0.1(默认就是物理主机)


最后在物理主机中,将本地连接的“高级”选项中的“internet连接共享”上的钩钩打上,并选择“VMware Network Adapter VMnet1” 这样你就可以在虚拟机中上网了,
w_attana 2010-02-04
  • 打赏
  • 举报
回复
显然。。是因为你虚拟机的ip和物理机的ip不属于同一个网段造成的。。

修改下虚拟机的ip,修改成和外面的网段一样即可。
tyqhang 2010-02-03
  • 打赏
  • 举报
回复
ip段不同,肯定不能ping通,除非用3层中转。

steptodream 2010-02-03
  • 打赏
  • 举报
回复
The host 198.168.198.199 is unreachable
明显是两个系统之间的网络不通哦
不知道你本机的IP是怎么样的 看你发的那个图片里的2个IP都不是一个段的
try__again 2010-02-03
  • 打赏
  • 举报
回复
我觉得可能和你选的虚拟机联网模式有关系,
再者检查是不是虚拟机固定了IP

我以前用NAT没有问题,而且NAT情况下,虚拟机的地址和VMNet8在同一个网段的
wh62592855 2010-02-03
  • 打赏
  • 举报
回复
我在想会不会是网络连接配置的问题
我看了下我的所有网络连接 里面有两个虚拟机相关的网络配置
我分别打开查看了它们的IP 好像都没有198.168.198.XXX
截图如下


wh62592855 2010-02-03
  • 打赏
  • 举报
回复
我把本地IP改为不是自动获取 手动输入了192.168.198.7
把那两个虚拟网卡的地址也改为192.168.198.XXX了
可是仍然连不上去
请各位帮帮忙

如下所示
C:\Documents and Settings\Admin>ipconfig

Windows IP Configuration


Ethernet adapter VMware Network Adapter VMnet8:

Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . : 192.168.198.1
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . :

Ethernet adapter VMware Network Adapter VMnet1:

Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . : 192.168.198.5
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . :

Ethernet adapter 本地连接 3:

Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . : 192.168.198.7
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . :

Ethernet adapter 无线网络连接:

Media State . . . . . . . . . . . : Media disconnected

PPP adapter hwang:

Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . : 222.91.237.29
Subnet Mask . . . . . . . . . . . : 255.255.255.255
Default Gateway . . . . . . . . . : 222.91.237.29

C:\Documents and Settings\Admin>
wh62592855 2010-02-03
  • 打赏
  • 举报
回复
我现在在家里用的是有线

我上个月在学校用SSH还是可以连到虚拟机里的LINUX的
不过那个时候的IP好像是192.168.XXX.XXX

现在好像是169.254.122.25了

那请问一下怎么改呢?我现在本地连接使用的是自动获取IP
wh62592855 2010-02-03
  • 打赏
  • 举报
回复
Microsoft Windows XP [版本 5.1.2600]
(C) 版权所有 1985-2001 Microsoft Corp.

C:\Documents and Settings\Admin>ipconfig

Windows IP Configuration


Ethernet adapter VMware Network Adapter VMnet8:

Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . : 192.168.201.1
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . :

Ethernet adapter VMware Network Adapter VMnet1:

Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . : 192.168.80.1
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . :

Ethernet adapter 本地连接 3:

Connection-specific DNS Suffix . :
Autoconfiguration IP Address. . . : 169.254.122.25
Subnet Mask . . . . . . . . . . . : 255.255.0.0
Default Gateway . . . . . . . . . :

Ethernet adapter 无线网络连接:

Media State . . . . . . . . . . . : Media disconnected

PPP adapter hwang:

Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . : 222.91.237.29
Subnet Mask . . . . . . . . . . . : 255.255.255.255
Default Gateway . . . . . . . . . : 222.91.237.29

C:\Documents and Settings\Admin>
FoxMessire 2010-02-03
  • 打赏
  • 举报
回复
检查下ip,呵呵,上面打错字了
FoxMessire 2010-02-03
  • 打赏
  • 举报
回复
楼上说的很正确,所以楼主最好坚持下IP,看看改成同一段的ip是不是可以连接上。

19,612

社区成员

发帖
与我相关
我的任务
社区描述
系统使用、管理、维护问题。可以是Ubuntu, Fedora, Unix等等
社区管理员
  • 系统维护与使用区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧