先編輯xinet中的tftp設定
# vi /etc/xinetd.d/tftp
修改如下:
# default: off
# description: tftp service is provided primarily for booting or when a \
# router need an upgrade. Most sites run this only on machines acting as
# "boot servers".
service tftp
{
socket_type = dgram
protocol = udp
wait = yes
flags = IPv6 IPv4
user = root
server = /usr/sbin/in.tftpd
server_args = -s /home/myhome/tftpboot
# disable = yes
}
修改兩個地方,一個是server_args的路徑,改到自已家裡面去,
另一個是把disable = yes給註解掉
改好後,要到自已的家目錄下加上資料夾:
# mkdir tftpboot
再修改權限
# chmod o+x tftpboot
如果要從router,switch上傳檔過來,也要先產生好檔案
# touch test-config
最後,再重開xinetd即可:
# rcxinetd restart
Ps. Firewall要打開69port讓tftp傳送
沒有留言:
張貼留言