Network configuration in Linux
In
this article we will discuss all those necessary steps which you need
to perform before solving networking related questions in RHCE exam.
Don't skip this tutorial, giving few minutes to this could save you from
huge problems in exam. All steps are given in a sequences don't skip
them .
Select network configuration from list
If you see LAN card here mean you have LAN driver
if you don't see here anything and Linux drop you back on list manu means you don't have LAN driver. Install is first.
set computer name as shown in table.
#vi /etc/sysconfig/network
On server system set it to Server and in client system set it Client1
To disable firewall run setup commands
Now select firewall configuration from list and click on run tool
Select disable and click on ok and quit to return on command prompt.
System reboot require to take effect so reboot system with reboot -f commands
If you have rpm then check there status via setup commands
Now select system service from menu
put a star in front the portmap service
Now put star in front the xinetd service
Click on ok and select quit to come back on command prompt
Now restart these two service.
To keep on these services after reboot on then via chkconfig command
After reboot verify their status. It must be in running condition
Once you have successfully completed these steps you are ready to configure the Linux server .
Check LAN card driver is installed or not.
LAN driver is the top most part for network. To check it run setup commandSelect network configuration from list
If you see LAN card here mean you have LAN driver
if you don't see here anything and Linux drop you back on list manu means you don't have LAN driver. Install is first.
Check proper IP configuration
All systems on RHCE exam should have an properly configured IP address. During this entire practical we are using three systems. There description is given below Check these systems for properly configured IP address.Node | Operating system | Name | IP |
PC1 | Linux RHEL | Server | 192.168.0.254 |
PC2 | Linux RHEL | Client1 | 192.168.0.1 |
PC3 | Windows XP | Client2 | 192.168.0.2 |
Change host name
If you have skipped hostname during installation then it would be localhost.localdomain. You can change hostname with hostname command but this change would be temporary. To change hostname permanently do editing in /etc/sysconfig/network.set computer name as shown in table.
#vi /etc/sysconfig/network
On server system set it to Server and in client system set it Client1
Check /etc/hosts files for name resolution
Several Linux server depend name resolution. This file should have entry of all network systems. It will save you from naming related problem. In our network it should look like this on both Linux system Server and Client1Check firewall status
Firewall is the necessary security part of Linux system which is connected to Internet. But in exam we are not going to use Internet so it’s good practice to disable it.To disable firewall run setup commands
Now select firewall configuration from list and click on run tool
Select disable and click on ok and quit to return on command prompt.
System reboot require to take effect so reboot system with reboot -f commands
Check portmap and xinetd package status
Almost every Linux server needs these two rpm to function properly. First check that these rpm are install or not. If no rpm is install then install them via rpm commands.If you have rpm then check there status via setup commands
Now select system service from menu
put a star in front the portmap service
Now put star in front the xinetd service
Click on ok and select quit to come back on command prompt
Now restart these two service.
To keep on these services after reboot on then via chkconfig command
After reboot verify their status. It must be in running condition
Once you have successfully completed these steps you are ready to configure the Linux server .
No comments:
Post a Comment