/etc/network/interfaces 中的关键字是什么意思?

nux*_*nux 3 networking

我的 etc/network/interfaces 文件包含:

auto eth0
iface eth0 inet dhcp
Run Code Online (Sandbox Code Playgroud)

auto、iface、inet 是什么意思

nux*_*nux 5

不同关键字的含义如下:

auto:应在启动时配置接口。

iface:接口

inet:接口使用 TCP/IP 网络。

这意味着应该在启动时配置接口eth0 ,并且接口名称为eth0

使用 TCP/IP 协议,可以通过 Dhcp 进行配置。