CentOS 5.6 에 Atheros AR8151 랜카드 설치
메인보드 : ASRoCK H61DE/S3
랜카드 : Gigabit LAN 10/100/1000Mb/s Atheros AR8151
1.증상
CentOS 5.6을 설치하였지만 랜카드를 인식하지 못함.
# ip link show
화면에 나타난 장치명중에서 eth0, eth1 등이 있어야 함
# ifconfig
eth0 나 eth1 등의 내용은 없음.
# lspci | grep Ethernet
04:00.0 Ethernet contoller: Atheros Communications Inc.
AR8151 v2.0 Gigabit Ethernet (rev c0)
랜카드가 인식이 되므로 리눅스에서 랜카드가 있음은 감지되고 있다.
2.시스템의 환경
랜카드를 설치하기전에 centOS 버젼을 확인한다.
# vi /etc/redhat-release
CentOS release 5.8 (Final)
커널버젼을 확인한다.
# uname -r
2.6.18-308.24.1.el5xen
3.드라이버 다운로드
다운로드 사이트
http://elrepo.org/linux/elrepo/
위링크에서 centOS 버젼이 5인 경우는 el5, 6인 경우는 el6디렉토리를 찾는다.
32비트 버젼은 i386, 64비트 버젼은 i686디렉토리이다.
http://elrepo.org/linux/elrepo/el5/i386/RPMS/
아래의 파일을 다운 받는다.
kmod-atl1e-1.0.1.14-1.el5.elrepo.i686.rpm 28-Jun-2011 10:18 55K
단, 커널이 xen 버젼이면 아래 파일응 다운로드 받는다.
kmod-atl1e-xen-1.0.1.14-1.el5.elrepo.i686.rpm 28-Jun-2011 10:18 56K
4.드라이버 설치
자료를 다운로드한 디렉토리로 이동한다.
현재 이 컴퓨터로는 인터넷이 안되므로 다른 컴퓨터에서 다운로드한 자료를 usb로 옮겨 사용한다.
# cd /media/disk/lan
다운로드 받은 파일을 설치한다.
# rpm -ivh kmod-atl1e-xen-1.0.1.14-1.el5.elrepo.i686.rpm
모듈을 커널에 적재한다.
# modprobe atl1e
모듈적재 상태 확인
# lsmod |grep atl1e
atl1e 74528 0
5.작동 진행상태 확인
랜카드를 확인해 본다.
[root@localhost lan]# ifconfig eth0
eth0 Link encap:Ethernet HWaddr BC:5F:F4:1A:7E:61
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:18
eth0가 설정되지 않았으므로
[root@localhost lan]# vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=dhcp
onBOOT=yes
위 내용을 저장한다.
# service network restart
인터페이스 eth0 (을)를 종료 중: [ OK ]
loopback 인터페이스를 종료 중: [ OK ]
loopback 인터페이스를 활성화 중: [ OK ]
eth0 인터페이스 활성화 중:
eth0에 관한 IP 정보를 얻고 있음... 완료. [ OK ]
6.최종확인과 인터넷 연결
[root@localhost lan]# ifconfig
eth0 Link encap:Ethernet HWaddr BC:5F:F4:1A:7E:61
inet addr:192.168.0.2 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:590 errors:0 dropped:0 overruns:0 frame:0
TX packets:18 errors:0 dropped:0 overruns:0 carrier:1
collisions:0 txqueuelen:1000
RX bytes:37773 (36.8 KiB) TX bytes:3990 (3.8 KiB)
Interrupt:18
이제부터는 정상적으로 네트워크 연결이나 인터넷이 작동된다.
'강좌 > 웹서버 설치와 설정' 카테고리의 다른 글
웹서버 구축을 위한 centOS 기본 설정과 유틸리티 (0) | 2013.05.01 |
---|---|
웹서버 구축을 위한 centOS 5.6 설치와 설정 (0) | 2013.05.01 |
설치된 centOS 의 현재버젼 확인 (0) | 2012.11.25 |
grub 를 복구했으나 윈도우즈로 부팅이 되지 않을 때 (0) | 2011.11.05 |
아파치의 httpd.conf 환경 설정 (0) | 2011.07.11 |