Moxa ioPAC 8020-9-M12-C-T [39/69] Enabling the telnet ftp server

Moxa ioPAC 8020-5-M12-C-T [39/69] Enabling the telnet ftp server
Moxa C Programmable RTU Controllers Managing Communications
4-2
Telnet/FTP
The Telnet and FTP Server service is enabled by default on the RTU controller. To enable or disable the
Telnet/ftp server, users need to edit the file /etc/inetd.conf.
Enabling the Telnet/FTP Server
The following example shows the default content of the file /etc/inetd.conf.
telnet stream tcp nowait root /bin/telnetd
ftp stream tcp nowait root /bin/ftpd -l
Disabling the Telnet/FTP Server
Disable the daemon by typing ‘#’ in front of the first character of the row to comment out the line.
DNS
To set up DNS client for the RTU controller, users need to edit three configuration files: /etc/hosts,
/etc/resolv.conf, and /etc/nsswitch.conf.
/etc/hosts
The hosts is the first file that the RTU controller system reads to resolve the host name of the remote IP
address.
/etc/resolv.conf
The resolv.conf contains the remote DNS servers address in it. Ask the network administrator or service
provider which DNS server address should be configured to this file. The DNS server’s IP address is specified
with the “nameserver” command. For example, add the following line to /etc/resolv.conf if the DNS server’s IP
address is 168.95.1.1:
nameserver 168.95.1.1
10.120.53.100 - PuTTY
root@Moxa:/etc# cat resolv.conf
#
# resolv.conf This file is the resolver configuration file
# See resolver(5).
#
#nameserver 192.168.1.16
nameserver 168.95.1.1
nameserver 140.115.1.31
nameserver 140.115.236.10
root@Moxa:/etc#
/etc/nsswitch.conf
This file defines the sequence to resolve the IP address by using /etc/hosts file or /etc/resolv.conf.

Содержание

Скачать