In this article we would setup a test network for RHCE exam practice. RHCE is a practical base exam. Ideally you can set u...

However that is not practical required. You can complete all exercises with four systems. You can use four physical systems or can use virtual machines.
| server.example.com | 192.168.1.1 | 255.255.255.0 |
| linuxclient.example.com | 192.168.1.10 | 255.255.255.0 |
| windowclient.example.com | 192.168.1.20 | 255.255.255.0 |
| outsider.example.org | 192.168.0.100 | 255.255.255.0 |
- Configure IP address and Hostname
- Configure portmap daemon
- Configure xinetd service
Configure IP address and hostname
IP address is the unique address of computer in network. Computer use IP address to communicate with other computers of the network. Assign above IP addresses to the associated computers.Configure xinetd daemon
xinetd, the eXtended InterNET Daemon, is an open-source daemon. xinetd daemon provide access control for all the services based on the address of the remote host. It allows you to bind the specific services to the specific IP address of host system. xinetd daemon process listens on all service ports for the services listed in its configuration file. When a request comes in, xinetd starts the appropriate server. Each service has its own specific configuration file for Xinetd. These files are located in the /etc/xinetd.d directory.Configure portmap service
portmap service is required to map RPC (Remote Procedure Calls) requests to the correct services. In exam you have to configure services like NFS that rely on RPC. NFS uses RPC to route requests between clients and servers. portmap service must be enabled and active at the proper runlevels for NFS communication to happen. portmap service uses TCP wrappers' hosts access files (/etc/hosts.allow and /etc/hosts.deny) for access control.You will not find portmap service in RHEL 6. You will return with following error
portmap: unrecognized service
To support IPv6 portmap service is replaced by rpcbind in RHEL6. Use rpcbind instead of portmap.
server.example.com
This is designated system for server. We will use static IP address for server. Server related services will be configured on this system. Configure IP addressRun system-config-network command
Select Device configuration and press enter
Select the appropriate network adaptor. In real life you may see multiple network adaptors but in exam you will get only one network adaptor unless you have configured additional adaptor.
Fill the IP address which we have set for this system in above table and select OK and press enter
Select save and press enter
Select Save & Quit and press enter to return to command prompt
Restart the network adaptor to take the change in effect
We have assigned IP address. Now open /etc/sysconfig-network file to set hostname
Set NETWORKING to yes and HOSTNAME to server and save file.
Restart the system to take the hostname change in effect
We have updated hostname. Now it's time to configure portmap daemon. As I have said previously that portmap is replaced with rpcbind.
rpcbind-0.2.0-8.el6.x86_64 package is required for rpcbind daemon. Install package if it is not installed.
check rpcbind service is on in runlevel 3 and runlevel 5. on it if it is set to off.
check rpcbind service status. start if it is stop.
Now configure the xinetd service. xinetd-2.3.14-31.el6.x86_64 RPM is required for xinetd service. Install it if it is not available
check xinetd service is on in runlevel 3 and runlevel 5. on it if it is set to off
check service status, start it if it is stopped
We have configured server system for networking.
linuxclient.example.com
This system will be used to verify the configuration on the server.example.com system.For example if we have configured DHCP server we should be able to receive dynamic IP address on linuxclient.example.com system.
configuration for this system is same as we did for server.example.com system except the IP address and hostname.
Run system-config-network command
Press enter on Device configuration
select network adaptor
Assign the IP address and return back to command prompt
Restart the network adaptor to take the new IP address in effect
Open hostname configuration file
Change HOSTNAME to linuxclient and save the file
restart the system
check updated hostname
Check rpcbind rpm and service
Check xinetd rpm and service
When you finished with configuration check connectivity with server.example.com
outsider.example.org
outsider system is essentially a random system from an external network . During the exam you need to configure security on server. Appropriate security settings means that some services on server.example.com machine would not be accessible to outsider system.configuration for this system is same as we did for server.example.com system except the IP address and hostname.
Run system-config-network command
Select Device configuration and press enter
select network adaptor
Assign the IP address and return back to command prompt
Restart the network adaptor to take the new IP address in effect
#ifdown eth1 #ifup eth1
Change HOSTNAME to outsider and save the file
restart the system and check the updated hostname
Check rpcbind rpm and service
Check xinetd rpm and service
windowclient.example.com
Finally we will configure a window client for our network. Although it is not required to configure window client but if you have additional system you should. It would give us additional system for testing.Click on network icon and Click on open network sharing and center
click on change adaptor setting
select the network adaptor and do right click. click on properties from opened dialog box
select Internet protocol version (TCP/IPv4) and click on properties
set the IP address and click on apply
To change computer name click on stat, right click on computer and click on properties
click on change setting
click on change
assign new name windowclinet and change workgroup to MSHOME
restart is required. Click on ok to restart the computer
After restart open command prompt and check IP address and hostname
check connectivity with server.example.com