eth0 未配置

eth0 未配置

我还没有配置 eth0;我该怎么做?

enp63s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
    inet 192.168.1.3  netmask 255.255.255.0  broadcast 192.168.1.255
    inet6 fe80::21a:4bff:fe48:fc4c  prefixlen 64  scopeid 0x20<link>
    ether 00:1a:4b:48:fc:4c  txqueuelen 1000  (Ethernet)
    RX packets 61753  bytes 81875136 (81.8 MB)
    RX errors 0  dropped 0  overruns 0  frame 0
    TX packets 30912  bytes 3167436 (3.1 MB)
    TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
    device interrupt 19  

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
    inet 127.0.0.1  netmask 255.0.0.0
    inet6 ::1  prefixlen 128  scopeid 0x10<host>
    loop  txqueuelen 1000  (Local Loopback)
    RX packets 2052  bytes 251314 (251.3 KB)
    RX errors 0  dropped 0  overruns 0  frame 0
    TX packets 2052  bytes 251314 (251.3 KB)
    TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

接口:

auto lo
iface lo inet loopback

allow-hotplug eth0
iface eth0 inet dhcp


nameserver 127.0.11
nameserver 8.8.8.8

答案1

这就是所谓的可预测的网络接口命名并属于systemd,Ubuntu 从 15.04 版本开始已开始向该版本过渡。

如果您决定恢复其他版本的命名:

如何在 15.10 中重命名网络接口?

相关内容