eth0
, eth1
대신 enp5s0f0
, ens3
등의 이름이 사용됩니다.eth0
과 같은 전통적인 이름으로 고정하는 방법을 소개합니다.eth0
, eth1
, wlan0
처럼 이름이 붙었지만, 장치가 추가되거나 PCI 순서가 변경되면 이름이 바뀌는 문제가 있었습니다.인터페이스 이름 | 의미 |
---|---|
enp5s0f0 | e thernet, n umbered p CI bus 5, slot 0, function 0 |
/etc/udev/rules.d/
에 저장하여 시스템 부팅 시 자동 적용됩니다.# ip link show enp5s0f0
출력 예시:
2: enp5s0f0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 1000
link/ether 00:25:90:e0:b6:0e brd ff:ff:ff:ff:ff:ff
# cat /sys/class/net/enp5s0f0/type
출력 예시:
1
값 | 의미 |
---|---|
1 | Ethernet 장치 |
512 | InfiniBand 등 특수 장치 |
# vi /etc/udev/rules.d/70-persistent-net.rules
설정 예시:
SUBSYSTEM=="net",ACTION=="add",ATTR{address}=="00:25:90:e0:b6:0e",ATTR{type}=="1",NAME="eth0"
initramfs
는 부팅 시 로딩되는 루트 파일시스템이며, udev 규칙이 반영되도록 갱신해야 합니다.# dracut -f
# nmcli -f device,name connection show
출력 예시:
DEVICE NAME
enp5s0f0 Wired connection 1
lo lo
-- enp5s0f1
# nmcli connection modify "Wired connection 1" connection.interface-name ""
# nmcli connection modify "Wired connection 1" match.interface-name "eth0 enp5s0f0"
# nmcli connection delete "Wired connection 1"
# reboot
# ip link show eth0
출력 예시:
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 1000
link/ether 00:25:90:e0:b6:0e brd ff:ff:ff:ff:ff:ff
altname enp5s0f0
1. 개요 본 글은 LVM의 스냅샷(snapshot) 기능으로 복구 지점 생성 → 파일 변경 → 스냅샷 병합(rollback) 과정을 실습합니다. 동일한…
https://youtu.be/ZcxB7akkDKs 1. 개요 두 개의 디스크(/dev/vdb, /dev/vdc)로 LVM을 구성하고, ext4·XFS 파일시스템 생성 → 마운트 → VG/LV 확장 → ext4 축소(오프라인)까지 전체…
https://youtu.be/XYBR1ZFrV9s 1. 개요 parted를 사용해 새 디스크에 GPT 라벨 생성 → 파티션 생성(ext4/XFS) → 포맷/마운트 →…
https://youtu.be/yYV8RQKCFzA 1. 개요 이 문서는 fdisk를 사용해 MBR(DOS) 디스크에 파티션을 생성하고, ext4/XFS 파일시스템을 포맷·마운트, /etc/fstab에 등록했다가, 안전하게 해제·삭제하는 전…
1. 개요 Linux에서 디스크 파티션 스타일은 MBR(Master Boot Record) 와 GPT(GUID Partition Table)에 대해 설명합니다. 2. MBR이란? 디스크…
https://youtu.be/CNd1bJV4wGY 1. 개요 Windows Server를 새로 설치할 때의 설치 과정을 단계별로 정리하였습니다. Windows Server 설치…