# Tftp SUSE 15 SP4

**URL:** <https://forums.suse.com/t/tftp-suse-15-sp4/39790>\
**Category:** SLES Configure-Administer\
**Created:** [January 5, 2023, 7:19pm UTC](https://forums.suse.com/t/tftp-suse-15-sp4/39790 "2023-01-05T19:19:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jimbrown719](https://avatars.discourse-cdn.com/v4/letter/j/b9bd4f/32.png) [@jimbrown719](https://forums.suse.com/u/jimbrown719)\
**Post date:** [January 5, 2023, 7:19pm UTC](https://forums.suse.com/t/tftp-suse-15-sp4/39790/1 "2023-01-05T19:19:09Z")

</div>

I am trying to move to Suse 15 SP4 and the only thing I need to configure is tftp. My vm will have 3 distinct IP addresses and will run 3 distinct tftp servers. I did this before under centos using xinetd.d with the tftp configuration file.

But Suse 15 is using /etc/sysconfig/tftp and I am just trying to figure out how I can bind 3 different tftp servers each to its own ip address and each gets a different directory to root from.

When I go into yast from what I see I can only configure one instance of a tftp server and I have not been able to figure out how to bind it to a specific ip address only.

Any help would be much appreciated as the system we pxe boot is rather odd and needs at least 2 instances of tftp which are chained together via menu choices. It is an odd design with no chances of being changed.

Thanks  
Jim

---

<div class="post-metadata">

**Author:** ![jimbrown719](https://avatars.discourse-cdn.com/v4/letter/j/b9bd4f/32.png) [@jimbrown719](https://forums.suse.com/u/jimbrown719)\
**Post date:** [January 6, 2023, 5:03pm UTC](https://forums.suse.com/t/tftp-suse-15-sp4/39790/2 "2023-01-06T17:03:36Z")

</div>

OK so no replies and after thinking and digging at this and understanding how this all works under systemd. I decided to just create 3 new services and modify /etc/sysconfig/tftp to have entries for the 3 services. Some advantages it can wait till the tftpboot directory is mounted before starting the services so that is a plus. Under xinetd sometimes tftpd would get started before the mount was established.

durga:/usr/lib/systemd/system # cat tftp1.service  
[Unit]  
Description=Tftp1 Server  
Requires=tftp1.socket  
Wants=network.target  
After=srv-tftpboot.mount

[Service]  
EnvironmentFile=/etc/sysconfig/tftp  
ExecStart=/usr/sbin/in.tftpd -u $TFTP\_USER1 -s $TFTP\_DIRECTORY1 $TFTP\_OPTIONS1  
StandardInput=socket  
PrivateDevices=yes

[Install]  
WantedBy=multi-user.target

Jim
