因此,我使用VirtualBox(默认设置)-简单的ISO映像启动安装了Ubuntu盒。安装Ubuntu之后,我继续测试多个程序,并且一切正常。我可以在主机和虚拟机内部完全访问Internet,但是,即使使用以太网连接,我也仍然没有eth0-而是enp0s3,这很奇怪。
这是'ifconfig -a'命令的结果:
enp0s3    Link encap:Ethernet  HWaddr 08:00:27:36:5f:f2  
          inet addr:10.0.2.15  Bcast:10.0.2.255  Mask:255.255.255.0
          inet6 addr: fe80::a00:27ff:fe36:5ff2/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:484 errors:0 dropped:0 overruns:0 frame:0
          TX packets:370 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:294211 (294.2 KB)  TX bytes:44269 (44.2 KB)
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:65536  Metric:1
          RX packets:274 errors:0 dropped:0 overruns:0 frame:0
          TX packets:274 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:24496 (24.4 KB)  TX bytes:24496 (24.4 KB)
为什么会发生这种情况?我该如何用eth0替换enp0s3而不将“ 10.0.2.15”作为inet地址,显然不应该如此。
                
                2
              
                  这在15.10中更改。您可以在此处阅读有关如何进行更改的信息。askubuntu.com/questions/689501/…   基本上是您所提问题的重复,但是系统不允许我将其标记为此类问题。
                
                
                  
                    —
                    有机大理石
                    
                  
                
              
                  @OrganicMarble您需要添加答案之一,否则它不会让您将其标记为欺骗。
                
                
                  
                    —
                    mchid 2015年
                    
                  
                
              
                  本质上是重复的,相隔几天的时间:askubuntu.com/q/704361/295286
                
                
                  
                    —
                    Sergiy Kolodyazhnyy