内核IP路由表为空[已关闭]

问题描述 投票:0回答:0

您好,我正在尝试通过连接到我的主机的以太网电缆在我的 DE10 nano 板上(运行 debian)连接到互联网。目前,我正在尝试使用命令

route -ne
查找我的默认网关 IP,但它返回一个空表。有谁知道为什么会这样?

谢谢

ifconfig
输出:

eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet6 fe80::4c0:3fff:fe00:d85f  prefixlen 64  scopeid 0x20<link>
        ether 06:c0:3f:00:d8:5f  txqueuelen 1000  (Ethernet)
        RX packets 178  bytes 32996 (32.2 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 47  bytes 12362 (12.0 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 39  base 0xe000

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 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

/etc/network/interfaces 的当前内容

# interfaces(5) file used by ifup(8) and ifdown(8)
# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d
auto lo eth0
iface lo inet loopback

allow-hotplug eth0
iface eth0 inet dhcp
dhcp
© www.soinside.com 2019 - 2024. All rights reserved.