TFTP Server 설정
Linux 2009. 2. 11. 13:49 |※ 이 글은 Fedora10을 기준으로 작성되었습니다.
Fedora10을 기준으로 작성되었지만,
다른 Fedora 배포판도 큰 차이는 없을 것이다.
우선 TFTP Server와 관련된 파일을 설치한다.
(이미 설치된 경우는 무시한다.)
정상적으로 진행되는 경우,
tftp, tftp-server, xinetd가 설치된다.
설치가 완료되면
TFTP 설정 파일을 변경한다.
원 파일 내용은 아래와 같다.
TFTP를 실행하기 위해서는
disable을 no로 변경해야한다.
또한 TFTP를 통해 전송될 파일들이 저장되는 위치는
server_args를 통해 지정되므로,
이 곳을 적당히 바꿔준다.
내 경우는 보통 /tftpboot 에 저장하므로
설정 파일은 아래와 같이 변경한다.
변경이 완료되면,
TFTP 서비스를 시작하기 위해서
xinetd를 재시작한다.
성공적으로 재시작되면,
TFTP가 동작하게 된다.
netstat 등을 이용하면
동작 여부를 확인할 수 있다.
Fedora10을 기준으로 작성되었지만,
다른 Fedora 배포판도 큰 차이는 없을 것이다.
우선 TFTP Server와 관련된 파일을 설치한다.
(이미 설치된 경우는 무시한다.)
> yum install tftp* |
정상적으로 진행되는 경우,
tftp, tftp-server, xinetd가 설치된다.
설치가 완료되면
TFTP 설정 파일을 변경한다.
> vi /etc/xinetd.d/tftp |
원 파일 내용은 아래와 같다.
# default: off # description: The tftp server serves files using the trivial file transfer \ # protocol. The tftp protocol is often used to boot diskless \ # workstations, download configuration files to network-aware printers, \ # and to start the installation process for some operating systems. service tftp { disable = yes socket_type = dgram protocol = udp wait = yes user = root server = /usr/sbin/in.tftpd server_args = -s /var/lib/tftpboot per_source = 11 cps = 100 2 flags = IPv4 } |
TFTP를 실행하기 위해서는
disable을 no로 변경해야한다.
또한 TFTP를 통해 전송될 파일들이 저장되는 위치는
server_args를 통해 지정되므로,
이 곳을 적당히 바꿔준다.
내 경우는 보통 /tftpboot 에 저장하므로
설정 파일은 아래와 같이 변경한다.
# default: off # description: The tftp server serves files using the trivial file transfer \ # protocol. The tftp protocol is often used to boot diskless \ # workstations, download configuration files to network-aware printers, \ # and to start the installation process for some operating systems. service tftp { disable = no socket_type = dgram protocol = udp wait = yes user = root server = /usr/sbin/in.tftpd server_args = -s /tftpboot/ per_source = 11 cps = 100 2 flags = IPv4 } |
변경이 완료되면,
TFTP 서비스를 시작하기 위해서
xinetd를 재시작한다.
> service xinetd restart |
성공적으로 재시작되면,
TFTP가 동작하게 된다.
netstat 등을 이용하면
동작 여부를 확인할 수 있다.
> netstat -a | grep tftp |