리눅스 ip 설정중에 디바이스 질문이요!
DEVICE=ens192
BOOTPROTO
IPADDR
.
.
.
해서 설정하잖아요!
ifcfg-ens192 파일에서
DEVICE = ens192 이게 정확하게 무슨 의미인가요??ㅠㅠ
네트워크 어댑터 이름입니다
ens인걸 보니 아마도 RED HAT 계열인 모양입니다.
사람이든 사물이든 부르는 이름이 있어야죠.
ens192는 네트워크 어댑터의 이름입니다.
ens : 해당 이름이 네트워크 어댑터의 이름인 것을 쉽게 알기 위한 접두사. 다른 OS는 eth 라고 쓰는 것도 있습니다.
192 : 해당 네트워크 어댑터가 물고 있는 PCI slot No.
어댑터 이름인데 바꿔 붙이기 나름이에요
업체마다 규칙이 다르니 사수에게 물어보는게 가장 빠를거에요
https://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames/
1. Names incorporating Firmware/BIOS provided index numbers for on-board devices (example: eno1)
2. Names incorporating Firmware/BIOS provided PCI Express hotplug slot index numbers (example: ens1)
3. Names incorporating physical/geographical location of the connector of the hardware (example: enp2s0)
4. Names incorporating the interfaces's MAC address (example: enx78e7d1ea46da)
5. Classic, unpredictable kernel-native ethX naming (example: eth0)
By default, systemd v197 will now name interfaces following policy 1) if that information from the firmware is applicable and available, falling back to 2) if that information from the firmware is applicable and available, falling back to 3) if applicable, falling back to 5) in all other cases. Policy 4) is not used by default, but is available if the user chooses so.
읽어보시면 아시겠지만 systemd v197부터의 어댑터 네이밍 규칙이 이런 식이라고 합니다. 위의 5가지 방법 중 기본적으로 1, 2, 3, 5 순으로 적용합니다. (4는 기본적으로 미사용, 설정을 통해 순서 및 사용 여부 변경 가능)
cmt alert