KEMBAR78
Presentation Linux Server setup Advance Networking | PPTX
Welcome to our
Presentation
Linux Networking
SERVER:RHEL 7.1
Xubisoft.Ltd
Content Creator
Tariqul Islam ----------IT specialist
Introduction to Linux & UNIX
Linux file permission
Network Management
Yum Server Configure
SSH Server configure
FTP server Configure
DHCP server configure
DNS server configure
Mail Server configure
CONTENT
YUM SERVER CONFIGURE
 YUM - RPM Installation:
 -----------------
 => Manually (rpm command)
 => Automatically (YUM Server)
 Yum Server Configure:
 ---------------------
 => Requirments:
 ------------
 => DVD (centos/redhat)
 => 5GB Free Space in "/var"
 => Default FTP Dir: "/var/ftp/pub"
 => Packages:
 1) createrepo - server (already installed)
 2) vsftpd (for yum client)
 Step 01: Check free space "/var"
 ======= ------------------------
 [root@desktopX ~]# df -HT
 Filesystem Type Size Used Avail Use%
Mounted on
 /dev/sda6 ext4 16G 7.1G 7.7G 48% /
 Note: By default "/var location under "/"
partition"
 Step 02: Mount DVD under "/mnt"
 ======= -------------------------
 [root@desktopX ~]# mount /dev/sr0 /mnt ; here
"sr0" is dvd device
 mount: block dvice /dev/sr0 is write-protected,
monting read-only
 [root@desktopX ~]# cd /mnt
 [root@desktopX mnt]# ls
 [root@desktopX mnt]# cd Packages
 [root@desktopX Packages]# ls
ISO Mount:
----------
[root@desktopX ~]# mount -t
iso9660 /root/Desktop/C(Tab-
.iso) /mnt
[root@desktopX ~]# cd /mnt
[root@desktopX mnt]# ls
[root@desktopX mnt]# cd
Packages
[root@desktopX Packages]# ls
Step 03: Dependency Install
======= -------------------
[root@desktopX Packages]#
rpm -ivh vsftpd-
(Press...Tab....from keyboard
[root@desktopX Packages]#
systemctl restart vsftpd.service
[root@desktopX Packages]#
systemctl enable vsftpd.service
 [root@desktopX Packages]# setenforce 0
 [root@desktopX Packages]# systemctl stop firewalld
 [root@desktopX Packages]# systemctl disable firewalld
 Step 04: RPM copy to "/var/ftp/pub"
 ======= ---------------------------
 [root@desktopX Packages]# cd /var/ftp/pub
 [root@desktopX pub]# ls
 [root@desktopX pub]# rm -rf *
 [root@desktopX pub]# ls
 [root@desktopX pub]# cd /mnt
 [root@desktopX mnt]# cp -rv Packages /var/ftp/pub
 Note: All "Packages" will be copy to "/var/ftp/pub". If old
 rpm exist, please delete first.
 Step 05: yum server confiugraiton file
 ======= ------------------------------
 [root@desktopX mnt]# cd /etc/yum.repos.d
 [root@desktopX yum.repos.d]# ls
 [root@desktopX yum.repos.d]# mkdir old
[root@desktopX yum.repos.d]# ls
[root@desktopX yum.repos.d]# mv * old
[root@desktopX yum.repos.d]# ls
old
[root@desktopX yum.repos.d]# vim
server.repo
[server]
name = yum server
baseurl = file:///var/ftp/pub/Packages
enabled = 1
gpgcheck = 0
:x (save and exit)
[root@desktopX yum.repos.d]# createrepo
-v /var/ftp/pub/Packages
[root@desktopX yum.repos.d]# yum clean
all ; Previous yum server cache clear
[root@desktopX yum.repos.d]# yum list all
; list of available rpm current repo
SSH SERVER CONFIGURE
 Step 01: RPM Query, install
 ---------------------------------
 [root@ssh-serverX ~]# rpm -qa | grep openssh-server
 openssh-server-6.4p1-8.el7.x86_64
 [root@ssh-serverX ~]# yum install openssh* -y [if not
found]
 [root@ssh-serverX ~]# systemctl restart sshd.service
 [root@ssh-serverX ~]# systemctl enable sshd.service
 [root@ssh-serverX ~]# systemctl status sshd.service
 [root@ssh-serverX ~]# ifconfig
 (Optional): Temporary IP Configure:
 ----------------------------------
 ifconfig eth0 172.25.11.200+X netmask 255.255.255.0
 SSH Client:
 -----------
 => Linux Client (defautl installed)
 => Windows Client (putty, ssh client)
 > putty > ssh > ip > port (22)
Testing:
=======
Move to DesktopX
----------------
> ping 172.25.11.200+X (ssh
server)
SSH Login with Root User
--------------------------------
-
[root@desktopX ~]# ssh
root@172.25.11.200+X
Are you sure you want to
continue connecting (yes/no)?
yes
root@172.25.11.200+X's password:
****** (remote PC)
[root@ssh-serverX ~]# who
[root@ssh-serverX ~]# useradd
user1
[root@ssh-serverX ~]# passwd
user1
: 123
: 123
[root@ssh-serverX ~]# exit
FTP SERVER CONFIGURE
 FTP Server:
 ============
 FTP - File Transfer Protocol
 Port: 20 (Data),21 (Control)
 Protocol: TCP
 Packages: vsftpd
 Daemon: vsftpd
 Configuration file:
/etc/vsftpd/vsftpd.conf
 Directory location:
/var/ftp/pub/*
FTP user:
--------------
1) Anononymous user:
guest user (no password)
2) Authentication FTP user:
FTP group user
3) local user (local user of
server crated by root)
 FTP Access:
 -------------
 1) Web Based:
ftp://ftp.example.com
or ftp://192.168.11.X
 2) Command Based: #
ftp 172.25.11.200+x
 3) Software Based:
Filezilla, FTPPRO
 username:xxxxs
 passwword: ****
 port: 21
Command Mode: Anonymous Login
(Client)
-------------------------------------
[root@desktopX ~]# yum install ftp -y
[root@desktopX ~]# ftp
172.25.11.200+x ; X is server IP
Connected to 172.25.11.200+x
(172.25.11.200+x).
220 (vsFTPd 2.2.2)
Name (172.25.11.200+x:root):
anonymous
password: ***** (any)
ftp> help
ftp> dir
ftp> cd pub
ftp> ls
ftp> bye
THANK YOU ALL
THE
END

Presentation Linux Server setup Advance Networking

  • 1.
  • 2.
  • 3.
    Content Creator Tariqul Islam----------IT specialist
  • 4.
    Introduction to Linux& UNIX Linux file permission Network Management Yum Server Configure SSH Server configure FTP server Configure DHCP server configure DNS server configure Mail Server configure CONTENT
  • 5.
  • 6.
     YUM -RPM Installation:  -----------------  => Manually (rpm command)  => Automatically (YUM Server)  Yum Server Configure:  ---------------------  => Requirments:  ------------  => DVD (centos/redhat)  => 5GB Free Space in "/var"  => Default FTP Dir: "/var/ftp/pub"  => Packages:  1) createrepo - server (already installed)  2) vsftpd (for yum client)
  • 7.
     Step 01:Check free space "/var"  ======= ------------------------  [root@desktopX ~]# df -HT  Filesystem Type Size Used Avail Use% Mounted on  /dev/sda6 ext4 16G 7.1G 7.7G 48% /  Note: By default "/var location under "/" partition"  Step 02: Mount DVD under "/mnt"  ======= -------------------------  [root@desktopX ~]# mount /dev/sr0 /mnt ; here "sr0" is dvd device  mount: block dvice /dev/sr0 is write-protected, monting read-only  [root@desktopX ~]# cd /mnt  [root@desktopX mnt]# ls  [root@desktopX mnt]# cd Packages  [root@desktopX Packages]# ls ISO Mount: ---------- [root@desktopX ~]# mount -t iso9660 /root/Desktop/C(Tab- .iso) /mnt [root@desktopX ~]# cd /mnt [root@desktopX mnt]# ls [root@desktopX mnt]# cd Packages [root@desktopX Packages]# ls Step 03: Dependency Install ======= ------------------- [root@desktopX Packages]# rpm -ivh vsftpd- (Press...Tab....from keyboard [root@desktopX Packages]# systemctl restart vsftpd.service [root@desktopX Packages]# systemctl enable vsftpd.service
  • 8.
     [root@desktopX Packages]#setenforce 0  [root@desktopX Packages]# systemctl stop firewalld  [root@desktopX Packages]# systemctl disable firewalld  Step 04: RPM copy to "/var/ftp/pub"  ======= ---------------------------  [root@desktopX Packages]# cd /var/ftp/pub  [root@desktopX pub]# ls  [root@desktopX pub]# rm -rf *  [root@desktopX pub]# ls  [root@desktopX pub]# cd /mnt  [root@desktopX mnt]# cp -rv Packages /var/ftp/pub  Note: All "Packages" will be copy to "/var/ftp/pub". If old  rpm exist, please delete first.  Step 05: yum server confiugraiton file  ======= ------------------------------  [root@desktopX mnt]# cd /etc/yum.repos.d  [root@desktopX yum.repos.d]# ls  [root@desktopX yum.repos.d]# mkdir old [root@desktopX yum.repos.d]# ls [root@desktopX yum.repos.d]# mv * old [root@desktopX yum.repos.d]# ls old [root@desktopX yum.repos.d]# vim server.repo [server] name = yum server baseurl = file:///var/ftp/pub/Packages enabled = 1 gpgcheck = 0 :x (save and exit) [root@desktopX yum.repos.d]# createrepo -v /var/ftp/pub/Packages [root@desktopX yum.repos.d]# yum clean all ; Previous yum server cache clear [root@desktopX yum.repos.d]# yum list all ; list of available rpm current repo
  • 9.
  • 10.
     Step 01:RPM Query, install  ---------------------------------  [root@ssh-serverX ~]# rpm -qa | grep openssh-server  openssh-server-6.4p1-8.el7.x86_64  [root@ssh-serverX ~]# yum install openssh* -y [if not found]  [root@ssh-serverX ~]# systemctl restart sshd.service  [root@ssh-serverX ~]# systemctl enable sshd.service  [root@ssh-serverX ~]# systemctl status sshd.service  [root@ssh-serverX ~]# ifconfig  (Optional): Temporary IP Configure:  ----------------------------------  ifconfig eth0 172.25.11.200+X netmask 255.255.255.0  SSH Client:  -----------  => Linux Client (defautl installed)  => Windows Client (putty, ssh client)  > putty > ssh > ip > port (22) Testing: ======= Move to DesktopX ---------------- > ping 172.25.11.200+X (ssh server) SSH Login with Root User -------------------------------- - [root@desktopX ~]# ssh root@172.25.11.200+X Are you sure you want to continue connecting (yes/no)? yes root@172.25.11.200+X's password: ****** (remote PC) [root@ssh-serverX ~]# who [root@ssh-serverX ~]# useradd user1 [root@ssh-serverX ~]# passwd user1 : 123 : 123 [root@ssh-serverX ~]# exit
  • 11.
  • 12.
     FTP Server: ============  FTP - File Transfer Protocol  Port: 20 (Data),21 (Control)  Protocol: TCP  Packages: vsftpd  Daemon: vsftpd  Configuration file: /etc/vsftpd/vsftpd.conf  Directory location: /var/ftp/pub/* FTP user: -------------- 1) Anononymous user: guest user (no password) 2) Authentication FTP user: FTP group user 3) local user (local user of server crated by root)
  • 13.
     FTP Access: -------------  1) Web Based: ftp://ftp.example.com or ftp://192.168.11.X  2) Command Based: # ftp 172.25.11.200+x  3) Software Based: Filezilla, FTPPRO  username:xxxxs  passwword: ****  port: 21 Command Mode: Anonymous Login (Client) ------------------------------------- [root@desktopX ~]# yum install ftp -y [root@desktopX ~]# ftp 172.25.11.200+x ; X is server IP Connected to 172.25.11.200+x (172.25.11.200+x). 220 (vsFTPd 2.2.2) Name (172.25.11.200+x:root): anonymous password: ***** (any) ftp> help ftp> dir ftp> cd pub ftp> ls ftp> bye
  • 14.
  • 15.