Module 9 - Networking. 1.Network Concepts and Commands 2.Network Files 3.Network Services...

17
Module 9 - Networking

Transcript of Module 9 - Networking. 1.Network Concepts and Commands 2.Network Files 3.Network Services...

Page 1: Module 9 - Networking. 1.Network Concepts and Commands 2.Network Files 3.Network Services 4.Configure a network device 5.Network File-System (NFS & CIFS)

Module 9 - Networking

Page 2: Module 9 - Networking. 1.Network Concepts and Commands 2.Network Files 3.Network Services 4.Configure a network device 5.Network File-System (NFS & CIFS)

1. Network Concepts and Commands

2. Network Files

3. Network Services

4. Configure a network device

5. Network File-System (NFS & CIFS)

6. Network Communication (ssh & vnc)

7. Network X-clients (xming and nomachine-nx)

Networking

Page 3: Module 9 - Networking. 1.Network Concepts and Commands 2.Network Files 3.Network Services 4.Configure a network device 5.Network File-System (NFS & CIFS)

Network Concepts

• tcp/ip• IP Address• MAC Address• Default Gateway• DNS & Host Name resolving• DHCP and Static IP • Firewall, ports and the services file

Page 4: Module 9 - Networking. 1.Network Concepts and Commands 2.Network Files 3.Network Services 4.Configure a network device 5.Network File-System (NFS & CIFS)

•mii-tool• ipconfig•nslookup & dig•route & netstat•ping•nmap

Network Commands

Page 5: Module 9 - Networking. 1.Network Concepts and Commands 2.Network Files 3.Network Services 4.Configure a network device 5.Network File-System (NFS & CIFS)

• /etc/hosts• /etc/resolv.conf• /etc/sysconfig/network• /etc/sysconfig/network-scripts/ifcfg-eth0

Network Files

Page 6: Module 9 - Networking. 1.Network Concepts and Commands 2.Network Files 3.Network Services 4.Configure a network device 5.Network File-System (NFS & CIFS)

Controlling the Network Service:• /etc/init.d/network• /etc/init.d/NetworkManager

Controlling a Network Device:• ifup and ifdown scripts

Network Services

Page 7: Module 9 - Networking. 1.Network Concepts and Commands 2.Network Files 3.Network Services 4.Configure a network device 5.Network File-System (NFS & CIFS)

• SETUP STATIC IP:

Edit /etc/sysconfig/network-scripts/ifcfg-eth0 

DEVICE=eth0HWADDR=96:1D:56:92:C9:28 ONBOOT=yesBOOTPROTO=noneIPADDR=192.168.1.20NETMASK=255.255.255.0GATEWAY=192.168.1.1TYPE=Ethernet

Configure a network device

Page 8: Module 9 - Networking. 1.Network Concepts and Commands 2.Network Files 3.Network Services 4.Configure a network device 5.Network File-System (NFS & CIFS)

• SETUP DHCP• In order to setup DHCP for the network interface card,

Edit the /etc/sysconfig/network-scripts/ifcfg-eth0 file:

DEVICE=eth0HWADDR=96:1D:56:92:C9:28 ONBOOT=yesBOOTPROTO=dhcp

Configure a network device

Page 9: Module 9 - Networking. 1.Network Concepts and Commands 2.Network Files 3.Network Services 4.Configure a network device 5.Network File-System (NFS & CIFS)

• A native UNIX Network File-System to share data on the network.

• Required package nfs-utils • /etc/init.d/nfs• /etc/exports

/ort *(rw,no_root_squash)

• Mount the shared nfs file-system:

# mount 192.168.10.1:/ort /public

### Can permanently go into /etc/fstab ###

Linux NFS Service

Page 10: Module 9 - Networking. 1.Network Concepts and Commands 2.Network Files 3.Network Services 4.Configure a network device 5.Network File-System (NFS & CIFS)

• The Linux samba service can offer native windows CIFS network file-system to both Linux and Windows nodes.

• Requires package samba.x86_64• /etc/samba/smb.conf is the main configuration file• /etc/init.d/smb is the samba server service

Linux CIFS

Page 11: Module 9 - Networking. 1.Network Concepts and Commands 2.Network Files 3.Network Services 4.Configure a network device 5.Network File-System (NFS & CIFS)

• CLI client which enable us to open a remote shell.• Encrypted Communication• Can use encryption keys• By default uses port 22• main configuration directory is /etc/ssh• Under each user home directory resides a

hidden .ssh directory with the user specific files

Linux SSH

Page 12: Module 9 - Networking. 1.Network Concepts and Commands 2.Network Files 3.Network Services 4.Configure a network device 5.Network File-System (NFS & CIFS)

• A simple and easy way to connect remotely to a Linux node using a network light GUI protocol.

• The user configuration files reside under a hidden .vnc directory in the user home folder.

• The server configuration file is in:

# /etc/sysconfig/vnc• the service is under /etc/init.d/vncserver

Linux vnc

Page 13: Module 9 - Networking. 1.Network Concepts and Commands 2.Network Files 3.Network Services 4.Configure a network device 5.Network File-System (NFS & CIFS)

• xming (Open Source)

• NoMachine NX Client and Server (Proprietary, Free for 3 users)

Linux Remote X-Clients

Page 14: Module 9 - Networking. 1.Network Concepts and Commands 2.Network Files 3.Network Services 4.Configure a network device 5.Network File-System (NFS & CIFS)

1. Document your IP Address

2. Document your Default Route

3. Document your DNS Servers

4. Change your hostname to [your-name-01]

5. Fix a permanent IP Address using the address you got from the DHCP Server.

6. Disable selinux

7. Shutdown and disable Firewall

Exercise

Page 15: Module 9 - Networking. 1.Network Concepts and Commands 2.Network Files 3.Network Services 4.Configure a network device 5.Network File-System (NFS & CIFS)

8. Connect to your Linux node from the windows node using putty and ssh protocol.

9. Set up vnc server on the Linux node and connect to the vnc server using a vnc client from windows.

10. Set up Xming to connect to the Linux node via X-server .

Exercise

Page 16: Module 9 - Networking. 1.Network Concepts and Commands 2.Network Files 3.Network Services 4.Configure a network device 5.Network File-System (NFS & CIFS)

<Insert Picture Here>

Page 17: Module 9 - Networking. 1.Network Concepts and Commands 2.Network Files 3.Network Services 4.Configure a network device 5.Network File-System (NFS & CIFS)