Skip to content

CentOS 6 x86_64 시스템으로 서버로 쓰던 PC에 문제가 생겨서 하드디스크를 다른 PC로 옮겼다.

같은 계열의 CPU와 칩셋으로 부팅에 무난히 성공했으나,

같은 계열인 r8169 랜카드가 eth1 으로 잡힌다.

dmesg 에 읽어보니

udev: renamed network interface eth0 to eth1

문구가 나온다.

해결책은,

/etc/udev/rules.d/70-persistent-net.rules 파일을 변경한다.

# This file was automatically generated by the /lib/udev/write_net_rules
# program, run by the persistent-net-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single
# line, and change only the value of the NAME= key. 네임 키 부분만 변경 가능

# PCI device 0x10ec:0x8168 (r8169) (custom name provided by external tool)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:25:22:xx:xx:xx", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"

# PCI device 0x10ec:0x8167 (r8169)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:1b:b9:xx:xx:xx", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"

====>

# PCI device 0x10ec:0x8168 (r8169) (custom name provided by external tool)
#(주석처리)SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:25:22:xx:xx:xx", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"

# PCI device 0x10ec:0x8167 (r8169)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:1b:b9:xx:xx:xx", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0(번호변경)"

 
profile

일요일은 짜빠게뤼~ 먹는날~^^

엮인글 :
http://adminplay.com/100902/778/trackback
List of Articles
번호 제목 글쓴이 날짜 조회 수sort
367 linux daemon (리눅스 데몬 설명) ADMINPLAY 2014-02-26 648194
366 대용량 HDD 파티셔닝(Mass storage Partitioning) (GPT 파... ADMINPLAY 2010-04-14 74607
365 FFMPEG를 가장쉽게 설치하는 방법(ffmpeg-php 등) ADMINPLAY 2010-05-03 67378
364 rrdtool 컴파일시 에러 configure: error: Please fix the... ADMINPLAY 2009-08-08 65735
363 커널 2.6으로 업그레이드!「A to Z」 ADMINPLAY 2009-08-08 65382
362 e2fsck - 파일 시스템 복구 및 검사. - fsck file ADMINPLAY 2010-09-12 60906
361 Maskrading ADMIN 2008-11-11 59755
360 시스템 백업과 응급 복구 ADMINPLAY 2009-05-11 59713
359 배치파일을 이용한 백업방법 l2zeo 2010-03-31 59535
358 리눅스 전원부터 부팅이 되기까지의 과정이해 ADMIN 2008-11-11 58590
357 리눅스 디렉토리 구조와 파티션 관리의 기본 ADMINPLAY 2009-05-22 58538
356 hdparm 세부옵션 ADMINPLAY 2012-01-16 56104
355 CentOS 설치 - VMware 상에서 CentOS 설치하기 file l2zeo 2010-02-24 52103
354 Red Hat Linux 9 ADMINPLAY 2009-09-24 51552
353 Dell OMSA 설치 및 이용방법 ADMINPLAY 2014-08-13 50795
352 2TB이상의 Disk를 사용한 Raid6 구성 ADMINPLAY 2015-08-08 47209
351 sulinux 1.0. 서버 패키지 리스트 ADMINPLAY 2011-04-30 46481
350 ORA-01031: insufficient privileges 오류 ADMINPLAY 2010-02-24 41015
349 [APM] 리눅스에서 Apache, PHP, MySQL 등 제거 방법 ADMINPLAY 2009-06-29 39390
348 AIX 필수 명령어 ADMINPLAY 2009-12-10 39133

Copyright ADMINPLAY corp. All rights reserved.

abcXYZ, 세종대왕,1234

abcXYZ, 세종대왕,1234