tqsheng

go.....
随笔 - 366, 文章 - 18, 评论 - 101, 引用 - 0
数据加载中……

win7 vmware ifconfig只有IPV6的解决办法

win7 vmware ifconfig只有IPV6的解决办法 samba

7 vmware  ifconfig只有IPV6,没有XP环境下的IPV4,如何  samba呢?或者如何与windows共享文件呢?以下提供一种解决办法。


问题一:只有IPV6

 

  1. [root@localhost ~]# ifconfig  
  2. eth0      Link encap:Ethernet  HWaddr 00:0C:29:E1:98:55    
  3.           inet6 addr: 2001:250:3000:5a06:20c:29ff:fee1:9855/64 Scope:Global  
  4.           inet6 addr: fe80::20c:29ff:fee1:9855/64 Scope:Link  
  5.           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1  
  6.           RX packets:412806 errors:5 dropped:38 overruns:0 frame:0  
  7.           TX packets:38 errors:0 dropped:0 overruns:0 carrier:0  
  8.           collisions:0 txqueuelen:1000   
  9.           RX bytes:41496217 (39.5 MiB)  TX bytes:7915 (7.7 KiB)  
  10.           Interrupt:193 Base address:0x2000   
  11.   
  12. lo        Link encap:Local Loopback    
  13.           inet addr:127.0.0.1  Mask:255.0.0.0  
  14.           inet6 addr: ::1/128 Scope:Host  
  15.           UP LOOPBACK RUNNING  MTU:16436  Metric:1  
  16.           RX packets:3217 errors:0 dropped:0 overruns:0 frame:0  
  17.           TX packets:3217 errors:0 dropped:0 overruns:0 carrier:0  
  18.           collisions:0 txqueuelen:0   
  19.           RX bytes:4593565 (4.3 MiB)  TX bytes:4593565 (4.3 MiB)  
解决办法:

 

步骤1:将网络连接方式从桥接改为NAT连接


步骤2:在终端运行

/etc/init.d/network restart

 

  1. [root@localhost ~]# /etc/init.d/network restart  
  2. Shutting down interface eth0:                              [  OK  ]  
  3. Shutting down loopback interface:                          [  OK  ]  
  4. Bringing up loopback interface:                            [  OK  ]  
  5. Bringing up interface eth0:    
  6. Determining IP information for eth0... done.  
  7.                                                            [  OK  ]  
步骤3:运行ifconfig

 

 

  1. [root@localhost ~]# ifconfig  
  2. eth0      Link encap:Ethernet  HWaddr 00:0C:29:E1:98:55    
  3.           inet addr:192.168.119.129  Bcast:192.168.119.255  Mask:255.255.255.0  
  4.           inet6 addr: fe80::20c:29ff:fee1:9855/64 Scope:Link  
  5.           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1  
  6.           RX packets:412815 errors:5 dropped:0 overruns:0 frame:0  
  7.           TX packets:68 errors:0 dropped:0 overruns:0 carrier:0  
  8.           collisions:0 txqueuelen:1000   
  9.           RX bytes:41497420 (39.5 MiB)  TX bytes:16351 (15.9 KiB)  
  10.           Interrupt:193 Base address:0x2000   
  11.   
  12. lo        Link encap:Local Loopback    
  13.           inet addr:127.0.0.1  Mask:255.0.0.0  
  14.           inet6 addr: ::1/128 Scope:Host  
  15.           UP LOOPBACK RUNNING  MTU:16436  Metric:1  
  16.           RX packets:3217 errors:0 dropped:0 overruns:0 frame:0  
  17.           TX packets:3217 errors:0 dropped:0 overruns:0 carrier:0  
  18.           collisions:0 txqueuelen:0   
  19.           RX bytes:4593565 (4.3 MiB)  TX bytes:4593565 (4.3 MiB)  

成功!

二、与windows共享文件夹


 

呵呵,特别感谢汉斌的祥细指导!

posted on 2012-02-14 16:19 tqsheng 阅读(664) 评论(0)  编辑 收藏 引用


只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理