Module 9 - Networking. 1.Network Concepts and Commands 2.Network Files 3.Network Services...
Transcript of Module 9 - Networking. 1.Network Concepts and Commands 2.Network Files 3.Network Services...
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)
6. Network Communication (ssh & vnc)
7. Network X-clients (xming and nomachine-nx)
Networking
Network Concepts
• tcp/ip• IP Address• MAC Address• Default Gateway• DNS & Host Name resolving• DHCP and Static IP • Firewall, ports and the services file
•mii-tool• ipconfig•nslookup & dig•route & netstat•ping•nmap
Network Commands
• /etc/hosts• /etc/resolv.conf• /etc/sysconfig/network• /etc/sysconfig/network-scripts/ifcfg-eth0
Network Files
Controlling the Network Service:• /etc/init.d/network• /etc/init.d/NetworkManager
Controlling a Network Device:• ifup and ifdown scripts
Network Services
• 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
• 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
• 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
• 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
• 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
• 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
• xming (Open Source)
• NoMachine NX Client and Server (Proprietary, Free for 3 users)
Linux Remote X-Clients
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
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
<Insert Picture Here>