Network interface name: Difference between revisions
(Created page with "The Linux kernel assigns names to network interfaces, nowaday there are multiple network interface naming scheme is available and each has pros and cons. == Simple scheme == <code>eth0</code>, <code>eth1</code>, etc were simply assigned by the kernel. There are many possible way to use this scheme, * . reboot with the kernel parameter <code>net.ifnames=0</code>, or made persistent by editing <code>/etc/default/grub</code> and running <code>update-grub</code> * ove...") |
(Fix: remove --- horizontal lines (7 removed)) |
||
| (9 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
{{Status | |||
|status=Draft | |||
|owner=Knowledge Agent | |||
|last_update=2026-07-16 | |||
|review=Pending | |||
}} | |||
== | {{TOC}} | ||
== Overview == | |||
Network interface name에 대한 기술 문서입니다. | |||
=== Summary === | |||
* 무엇인가? - Network interface name | |||
* 왜 필요한가? - HPC 및 서버 환경에서 필수 개념 | |||
* 언제 사용하는가? - 서버 구성, 성능 튜닝, 문제 해결 시 | |||
== Purpose == | |||
이 문서가 존재하는 이유 | |||
* Goal: Network interface name에 대한 기술 정보 제공 | |||
* Scope: Network interface name의 개념, 사용법, 설정 | |||
* Non-goals: 다른 주제로의 확장 | |||
== Key Concepts == | |||
{| class="wikitable" | |||
! Concept | |||
! Description | |||
! Related | |||
|- | |||
| Network interface name | |||
| HPC/서버 환경에서 중요한 기술 개념 | |||
| [[Linux]], [[Server]] | |||
|} | |||
== Detailed Explanation == | |||
== | * [[Network]] | ||
The [[Linux]] [[kernel]] assigns names to network interfaces, nowaday there are multiple network interface naming scheme is available and each has pros and cons. | |||
<code>eth0</code>, <code>eth1</code>, etc were simply assigned by the kernel. | |||
Following step would be the simplest way among [https://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames/ many possible way] , <syntaxhighlight lang="bash"> | |||
Step 1, Add this to the line below "net.ifnames=0 biosdevname=0" | |||
GRUB_CMDLINE_LINUX="net.ifnames=0 biosdevname=0" | |||
Step 2, Update GRUB, depends on your OS. | |||
Debian based Ubuntu/Mint: | |||
update-grub | |||
Centos/RHEL | |||
grub2-mkconfig -o /boot/grub2/grub.cfg | |||
Step 3, Reboot and check | |||
</syntaxhighlight> | |||
<code>udev</code> to identify interfaces by MAC address and assign a fixed interface number to any interface by writing the rules to <code>/etc/udev/rules.d/xxx.rules</code> | <code>udev</code> to identify interfaces by MAC address and assign a fixed interface number to any interface by writing the rules to <code>/etc/udev/rules.d/xxx.rules</code> | ||
for example, <syntaxhighlight lang="bash"> | for example, <syntaxhighlight lang="bash"> | ||
#/etc/udev/rules.d/70-persistent-net.rules | #/etc/udev/rules.d/70-persistent-net.rules | ||
| Line 18: | Line 62: | ||
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="aa:bb:cc:dd:ee:ff", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0" | SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="aa:bb:cc:dd:ee:ff", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0" | ||
</syntaxhighlight> | </syntaxhighlight> | ||
[https://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames/ Predictable Network Interface naming] and is part of systemd, to which Ubuntu has been transitioning as of version 15.04. the idea is to set interface name depends on physical location of hardware and can be predicted/guessed by looking at <code>lspci</code> or <code>lshw</code> output. | |||
== Best Practices == | |||
* 최신 버전 사용 권장 | |||
* 공식 문서 참고 | |||
* 테스트 환경에서 먼저 검증 | |||
== References == | |||
* [https://wiki.hpcmate.com Network interface name] | |||
== | == Related Pages == | ||
* [[Linux]] | |||
* [[Server]] | |||
* [[Hardware]] | |||
[ | * [[Network]] | ||
[[Category:Network]] | |||
== Knowledge Graph == | |||
Related | |||
→ [[Network performance test]] | |||
→ [[RDMA]] | |||
→ [[NIC Bonding]] | |||
→ [[Network]] | |||
→ [[IPMI]] | |||
→ [[SDN]] | |||
→ [[NFS]] | |||
[[Category:Configuration]] | |||
Latest revision as of 11:29, 17 July 2026
Overview
Network interface name에 대한 기술 문서입니다.
Summary
- 무엇인가? - Network interface name
- 왜 필요한가? - HPC 및 서버 환경에서 필수 개념
- 언제 사용하는가? - 서버 구성, 성능 튜닝, 문제 해결 시
Purpose
이 문서가 존재하는 이유
- Goal: Network interface name에 대한 기술 정보 제공
- Scope: Network interface name의 개념, 사용법, 설정
- Non-goals: 다른 주제로의 확장
Key Concepts
| Concept | Description | Related |
|---|---|---|
| Network interface name | HPC/서버 환경에서 중요한 기술 개념 | Linux, Server |
Detailed Explanation
The Linux kernel assigns names to network interfaces, nowaday there are multiple network interface naming scheme is available and each has pros and cons.
eth0, eth1, etc were simply assigned by the kernel.
Following step would be the simplest way among many possible way ,
Step 1, Add this to the line below "net.ifnames=0 biosdevname=0"
GRUB_CMDLINE_LINUX="net.ifnames=0 biosdevname=0"
Step 2, Update GRUB, depends on your OS.
Debian based Ubuntu/Mint:
update-grub
Centos/RHEL
grub2-mkconfig -o /boot/grub2/grub.cfg
Step 3, Reboot and check
udev to identify interfaces by MAC address and assign a fixed interface number to any interface by writing the rules to /etc/udev/rules.d/xxx.rules
for example,
#/etc/udev/rules.d/70-persistent-net.rules
# PCI device 0x8086:0x100e (e1000e)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="aa:bb:cc:dd:ee:ff", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
Predictable Network Interface naming and is part of systemd, to which Ubuntu has been transitioning as of version 15.04. the idea is to set interface name depends on physical location of hardware and can be predicted/guessed by looking at lspci or lshw output.
Best Practices
- 최신 버전 사용 권장
- 공식 문서 참고
- 테스트 환경에서 먼저 검증
References
Related Pages
Knowledge Graph
Related
→ Network performance test → RDMA → NIC Bonding → Network → IPMI → SDN → NFS