Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

备稿计划: eno1 和 eth0 有什么区别? #133

Open
iugo opened this issue Dec 20, 2023 · 0 comments
Open

备稿计划: eno1 和 eth0 有什么区别? #133

iugo opened this issue Dec 20, 2023 · 0 comments

Comments

@iugo
Copy link
Member

iugo commented Dec 20, 2023

eno1eth0 都是网络接口的名称,但它们的来源不同。eno1 是 Linux 内核中使用的新接口名称,而 eth0 是传统的接口名称。

在过去,Linux 内核使用 eth0 作为第一个以太网接口的名称,eth1 作为第二个以太网接口的名称,依此类推。随着 Linux 内核的发展,这种命名方式变得越来越不灵活,因此 Linux 内核开发人员决定采用新的命名方式。

新的命名方式使用 eno 作为接口名称的前缀,后面跟着一个数字或字母序列。例如,如果您的系统上有两个以太网接口,它们的名称可能分别是 eno1eno2

eno1eth0 之间的具体区别如下:

特性 eno1 eth0
来源 Linux 内核新接口名称 传统接口名称
灵活性 更灵活 不太灵活
兼容性 兼容新旧版本的 Linux 内核 仅兼容旧版本的 Linux 内核

如果您使用的是最新版本的 Linux 内核,则 eno1 是推荐使用的接口名称。如果您使用的是旧版本的 Linux 内核,则 eth0 仍然可以使用。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant