Embedded Linux

tftp 서버 설치 및 설정

작성자 임베디드코리아 작성일22-10-15 23:10 조회971회 댓글0건
1. tftp 서버 설치하기
    $ sudo apt install  tftpd

2. tftp client 설치하기
    $ sudo apt install  tftp

3. xinetd 설치하기
    $ sudo apt install xinetd

4.  tftp 서버 설정하기
  $  sudo vi /etc/xinetd.d/tftp
      service tftp
    {
          socket_type = dgram
          protocol = udp
          wait = yes
          user = root
          server = /usr/sbin/in.tftpd
          server_args = -s /tftpboot
          disable = no
          per_source = 11
          cps = 100 2
          flags = IPv4
    }
5. 디렉토리 생성과 속성 변경하기
    $ sudo mkdir /tftpboot
    $ sudo chmod 777 /tftpboot

6. xinetd 재실행하기
  $ sudo /etc/init.d/xinetd restart
---------------< 점속 및 테스트 > -------------
1. 저속하기
  $ sudo tftp localhost
    tftp> get hello          <---- hello 파일 가져오기
    tftp> quit        <---- 나가기