ID : 1208129 Networking Technologies RHEL 7 Network Configuration Scenario: we have a RHEL 7 server where no ip configured. We need to configure ip and name resolution. Solution: Configuring IP Network: 1. At first we need to know network interface names and device status 2. Then we need to create new connections
3. Our connection is up automatically if connection is not up
automatically we need to input this command Nmcli connection up connection name 4. Now we can see the active connection
5. Now ping from the other server
Configuring Host names To set Host name we need to enter hostnamectl command
Now view the hostname
Configuring Name Resolution 1. To configure name resolution we need to edit /etc/hosts file
2. Then we need to write IP addresses and host names in
/etc/hosts file and save 3. Now ping other server using host name
Note: 1. we need to dns server name resolution for large amount of
server and client. For small amount of server and client name resolution we can use /etc/hosts method. Copy Files with SCP The scp command transfers files from a remote host to the local system or from the local system to a remote host. It utilizes the ssh server for authentication and encrypted data transfer. 1. At first we need to generate ssh key 2. Then we need to copy ssh key for remote hosts user
3. Now we need to copy soft folder using scp
Transfer Files with sftp 1. At First we need to generate ssh key and copy ssh key to remote hosts user for sftp.we do it before. Now connect to the other server using sftp 2. Now download the remote file named initramfs from the remote host .