本人ubuntu又连上了网
 说明: 开始 为了让虚拟机中得ubuntu能用串口连接上ARM 板,本人对虚拟机添加串口,设为自动使用物理机串口,设置完后vm提示没有多余的串口之类的,接着ubuntu就不能联网了,
        后来,把添加的串口删除掉仍然不能上网,
        最后 折腾很久vm中得fedora可以上但ubuntu就是不能上 ,
        没办法 把vm重装了一遍 ,然后
    1.vm中vm-》setting -》network adapter-》nat
    2.vm中edit-》virturenetworkeditor把vmnet0设置为host only  并且勾选最下方的两个 确定
              同时把 vmnet8 设置成nat同时勾选最下方的两列 确认 
    3.打开ubunu     ifconfig 可见  

eth0      Link encap:Ethernet  HWaddr 00:0c:29:05:48:93 
          inet addr:192.168.188.128  Bcast:192.168.188.255  Mask:255.255.255.0
          inet6 addr: fe80::20c:29ff:fe05:4893/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:18 errors:0 dropped:0 overruns:0 frame:0
          TX packets:69 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:2134 (2.1 KB)  TX bytes:10542 (10.5 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:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

 
联网成功
  由上可见etho联网成功 
    但是lo并没有 在、etc/network/interfaces 里面可见
    auto lo
    iface lo inet loopback 
     原来  lo是本地回环地址   在ping127.0.0.1 时被使用到

posted on 2012-04-18 08:54 姚先进 阅读(848) 评论(1)  编辑  收藏
Comments
  • # re: 虚拟机ubuntu 联网
    erer
    Posted @ 2012-05-22 18:44
    为什么又重装了呢 ,有点蠢!!  回复  更多评论   

只有注册用户登录后才能发表评论。


网站导航: