Network setup in RHCE6

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

In this article we would setup a test network for RHCE exam practice. RHCE is a practical base exam. Ideally you can set up as much as systems you need, for example you can set up a dedicated web server, a dedicate DHCP server, a dedicate DNS server, a dedicate client for testing of each service.
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.com192.168.1.1255.255.255.0
linuxclient.example.com192.168.1.10255.255.255.0
windowclient.example.com192.168.1.20255.255.255.0
outsider.example.org192.168.0.100255.255.255.0
  • Configure IP address and Hostname
  • Configure portmap daemon
  • Configure xinetd service
network

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
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 address
Run system-config-network command
system-config-network
Select Device configuration and press enter
server-device-configration
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.
server-select-ethernet
Fill the IP address which we have set for this system in above table and select OK and press enter
server-fill-ip-address
Select save and press enter
server-select-ethernet-save
Select Save & Quit and press enter to return to command prompt
server-device-configration-save
Restart the network adaptor to take the change in effect
server-restart-network
We have assigned IP address. Now open /etc/sysconfig-network file to set hostname
server-etc-sysconfig-network
Set NETWORKING to yes and HOSTNAME to server and save file.
server-hostname-entry
Restart the system to take the hostname change in effect
server-reboot-f
Check updated hostname
server-hostname-after-restart
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.
server-rpm-rpcbind
check rpcbind service is on in runlevel 3 and runlevel 5. on it if it is set to off.
server-chkconfig-rpcbind
check rpcbind service status. start if it is stop.
server-rpcbind-status
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
server-xinetd-rpm
check xinetd service is on in runlevel 3 and runlevel 5. on it if it is set to off
server-chkconfig-list-xinetd
check service status, start it if it is stopped
server-service-xinetd
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
linuxclient-system-config-network
Press enter on Device configuration
linuxclient-device-configuration
select network adaptor
linuxclient-ethernet
Assign the IP address and return back to command prompt
linuxclient-ipaddress
Restart the network adaptor to take the new IP address in effect
linuxclient-network-restart
Open hostname configuration file
linuxclient-etc-sysconfig-network
Change HOSTNAME to linuxclient and save the file
linuxclient-hostname
restart the system
linuxclient-reboot
check updated hostname
linuxclient-check-after-reboot
Check rpcbind rpm and service
linuxclient-rpcbind
Check xinetd rpm and service
linuxclient-xinetd
When you finished with configuration check connectivity with server.example.com
linuxclient-ping

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
outsider-system-config-network
Select Device configuration and press enter
outsider-device-configuration
select network adaptor
outsider-ethernet
Assign the IP address and return back to command prompt
outsider-ipaddress
Restart the network adaptor to take the new IP address in effect
#ifdown eth1
#ifup eth1
Open hostname configuration file
outsider-etc-sysconfing-network
Change HOSTNAME to outsider and save the file
outsider-hostname
restart the system and check the updated hostname
outsider-hostname-in-effect
Check rpcbind rpm and service
outsider-rpcbind
Check xinetd rpm and service
outsider-xinetd

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
windowclient-network-sharing-icon
click on change adaptor setting
windowclient-change-adpator-setting
select the network adaptor and do right click. click on properties from opened dialog box
windowclient-network-adaptor-properties
select Internet protocol version (TCP/IPv4) and click on properties
windowclient-ipv4
set the IP address and click on apply
windowclient-assinged-ipv4
To change computer name click on stat, right click on computer and click on properties
windowclient-computer-properties
click on change setting
windowclient-change
click on change
windowclient-change-button
assign new name windowclinet and change workgroup to MSHOME
change-computer-name
restart is required. Click on ok to restart the computer
windowclient-restart-message
After restart open command prompt and check IP address and hostname
windowclient-ipaddress-hostname
check connectivity with server.example.com
windowclient-ping

COMMENTS

Random Elites

Name

Common Linux Common Redhat Ip Address Redhat RHEL6 Ubuntu
false
ltr
item
Linux Elites: Network setup in RHCE6
Network setup in RHCE6
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg97gGlG1s1ZS0dRbDmI1L0a5kziR1hsoYaxV0uoP3R9wg_Qlq3MrM0dVkuBVxI1VR9y_CIHWf7vIEy3WOJ72PDvIQpniMw1BvwXqEYn_pK0j1fdCviJO01rxrnekQAI2UH7qTi0V_sZo0/s640/519470675_c_570_411.jpg
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg97gGlG1s1ZS0dRbDmI1L0a5kziR1hsoYaxV0uoP3R9wg_Qlq3MrM0dVkuBVxI1VR9y_CIHWf7vIEy3WOJ72PDvIQpniMw1BvwXqEYn_pK0j1fdCviJO01rxrnekQAI2UH7qTi0V_sZo0/s72-c/519470675_c_570_411.jpg
Linux Elites
https://linuxelites.blogspot.com/2016/03/network-setup-in-rhce6.html
https://linuxelites.blogspot.com/
http://linuxelites.blogspot.com/
http://linuxelites.blogspot.com/2016/03/network-setup-in-rhce6.html
true
7442208655518515278
UTF-8
Not found any posts VIEW ALL Readmore Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU LABEL ARCHIVE SEARCH ALL POSTS Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago Followers Follow THIS CONTENT IS PREMIUM Please share to unlock Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy