Moxa DA-685-LX [22/76] Enabling the telnet tftp server

Moxa DA-685-LX [22/76] Enabling the telnet tftp server
DA-685 Linux Managing Communications
3-4
2. Type # cd /etc to change the directory.
3. Type # vi inetd.conf to edit the configuration file.
Enabling the Telnet/TFTP Server
The following example shows the default content of the file /etc/inetd.conf. The default is to “enable the
Telnet/tftp server:”
Disabling the Telnet/TFTP Server
Disable the daemon by typing “#” in front of the first character of the row to comment out the line. For example,
to disable the TFTP server, use the following commands:
After you finish writing or modifying the code, remember to execute “umount /” to change the root directory
back to Read-only mode.
DNS Client
The DA-685-LX supports DNS client (but not DNS server). To set up DNS client, you need to edit three
configuration files: /etc/hostname, /etc/resolv.conf, and /etc/nsswitch.conf.
/etc/hostname
1. Mount the root file system with write permission.
2.
Edit /etc/hostname:
3. After you finish writing or modifying the code, remember to execute “umount /” to change the root directory
back to Read-only mode.
MOXA:~# umount /
MOXA:~# vi /etc/hostname
MOXA
MOXA:~# mount -o remount,rw /
MOXA:~# umount /
telnet stream tcp nowait telnetd /usr/sbin/tcpd
/usr/sbin/in.telnetd
#tftp dgram udp wait nobody /usr/sbin/tcpd /usr/sbin/in.tftpd
/srv/tftp
telnet stream tcp nowait telnetd /usr/sbin/tcpd
/usr/sbin/in.telnetd
tftp dgram udp wait nobody /usr/sbin/tcpd /usr/sbin/in.tftpd
/srv/tftp
MOXA:/etc# vi inetd.conf
MOXA:~# cd /etc

Содержание

Скачать