Ubuntu 网络接口

Ubuntu 网络接口

因此,在我的笔记本电脑上,我有两个接口 enp1s0 和 wlp2s0,如果我想使用其中任何一个,就必须ifconfig x down在另一个上运行。例如,如果我不对 enp1s0 执行此操作,它会显示我已连接到 wifi 网络,但无法访问互联网。这是我的 /etc/network/interfaces,希望对您有帮助。

auto lo
auto lo iface lo inet
auto enp1s0
iface enp1s0 inet dhcp
allow-hotplug wlp2s0
iface wlp2s0 inet dhcp

我一直使用 Ubuntu 18.04,直到最近升级到 20.04

相关内容