FTP Server Configuration Part 1HARDWARE NETWORKING LINUX SOFTWAREIt Tech Technology

It Tech Technology

COMPUTER HARDWARE NETWORKING

Breaking

Home Top Ad

Post Top Ad

Wednesday, February 24, 2016

FTP Server Configuration Part 1


FTP Server Configuration on RHEL5

The File Transfer Protocol (FTP) is one of the most common means of copying files between servers over the Internet. Most Web-based download sites use the built-in FTP capabilities of Web browsers, and, therefore, most server oriented operating systems usually include an FTP server application as part of the software suite. Linux is one of them.



Step-1:  Check FTP server package is installed or not

[root@ftp ~]# rpm -qa | grep –i vsftpd*  or

[root@ftp ~]#  rpm –qa vsftpd*

            If not installed, then installed the packages using Yum command:

[root@ftp ~]# Yum Install vsftpd*


Step-2: Check and Configure the Network Card:


[root@ftp ~]# vi /etc/sysconfig/network-scripts/ifcfg-eth0

(Modified File):

#Broadcom Corporation Net link BCM57875 Gigabyte Ethernet PCI Express
DEVICE=eth0
BOOTPROTO=static
HWADDR=00:0C:29: EB: B2: CA
ONBOOT=yes
TYPE=Ethernet

PEERDNS=no

USERCTL=no

IPV6INIT=no

IPADDR=210.207.201.7

NETMASK=255.255.255.0

NETWORK=210.207.201.0

BROADCAST=210.207.201.255

Step-3: Change the host name by following this command:

[root@ftp ~]# vi /etc/sysconfig/network

(Modified File):

NETWORKING=yes
NETWORKING_IPV6=no
HOSTNAME=ftp

Step-4: Now Edit the hosts file for locally host name resolution by following this command:

[root@ftp ~]# vi /etc/hosts

(Modified File):

# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1       localhost.localdomain localhost

210.207.201.7   ftp.alphabd.net      ftp

Step-5:  Edit the resolv.conf file by following this command

[root@ftp ~]# vi /etc/resolv.conf

search alphabd.net
nameserver 210.207.201.1

nameserver 210.207.201.2

After changing the above configuration you have to reload/restart the NIC(eth0) card by following command:

[root@ftp ~]# ifdown eth0

[root@ftp ~]# ifup eth0

[root@ftp ~]# service network restart

Change In Primary DNS Server:

Post Bottom Ad