module 9 - networking. 1.network concepts and commands 2.network files 3.network services...
TRANSCRIPT
![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)](https://reader036.vdocument.in/reader036/viewer/2022082817/56649da15503460f94a8d0df/html5/thumbnails/1.jpg)
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)](https://reader036.vdocument.in/reader036/viewer/2022082817/56649da15503460f94a8d0df/html5/thumbnails/2.jpg)
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)](https://reader036.vdocument.in/reader036/viewer/2022082817/56649da15503460f94a8d0df/html5/thumbnails/3.jpg)
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)](https://reader036.vdocument.in/reader036/viewer/2022082817/56649da15503460f94a8d0df/html5/thumbnails/4.jpg)
•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)](https://reader036.vdocument.in/reader036/viewer/2022082817/56649da15503460f94a8d0df/html5/thumbnails/5.jpg)
• /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)](https://reader036.vdocument.in/reader036/viewer/2022082817/56649da15503460f94a8d0df/html5/thumbnails/6.jpg)
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)](https://reader036.vdocument.in/reader036/viewer/2022082817/56649da15503460f94a8d0df/html5/thumbnails/7.jpg)
• 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)](https://reader036.vdocument.in/reader036/viewer/2022082817/56649da15503460f94a8d0df/html5/thumbnails/8.jpg)
• 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)](https://reader036.vdocument.in/reader036/viewer/2022082817/56649da15503460f94a8d0df/html5/thumbnails/9.jpg)
• 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)](https://reader036.vdocument.in/reader036/viewer/2022082817/56649da15503460f94a8d0df/html5/thumbnails/10.jpg)
• 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)](https://reader036.vdocument.in/reader036/viewer/2022082817/56649da15503460f94a8d0df/html5/thumbnails/11.jpg)
• 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)](https://reader036.vdocument.in/reader036/viewer/2022082817/56649da15503460f94a8d0df/html5/thumbnails/12.jpg)
• 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)](https://reader036.vdocument.in/reader036/viewer/2022082817/56649da15503460f94a8d0df/html5/thumbnails/13.jpg)
• 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)](https://reader036.vdocument.in/reader036/viewer/2022082817/56649da15503460f94a8d0df/html5/thumbnails/14.jpg)
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)](https://reader036.vdocument.in/reader036/viewer/2022082817/56649da15503460f94a8d0df/html5/thumbnails/15.jpg)
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)](https://reader036.vdocument.in/reader036/viewer/2022082817/56649da15503460f94a8d0df/html5/thumbnails/16.jpg)
<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)](https://reader036.vdocument.in/reader036/viewer/2022082817/56649da15503460f94a8d0df/html5/thumbnails/17.jpg)