Linux Explorers

Exploring the wonderful world of Linux

This guide will demonstrate how to create a NIC team in an attempt to address the following RHEL 7 objective:

 

  • Use network teaming or bonding to configure aggregated network links between two Red Hat Enterprise Linux systems

In this example a virtual machine was created with two NICs which are ETH0 and ETh1.  These NICs will be used to create the team and the device name for  the team will be “team0″

 

1) Create the configuration files for the NIC cards.

Navigate to “/etc/sysconfig/network-scripts” and create a file named “ifcfg-eth0″ with the contents below.  If a default file already exists delete it or rename it.

DEVICE=eth0
DEVICETYPE=TeamPort
ONBOOT=yes
BOOTPROTO=none
TEAM_MASTER=team0

 

2) Create a file named “ifcfg-eth1″ in the same directory with the below contents. If a default file already exists delete it or rename it.

DEVICE=eth1
DEVICETYPE=TeamPort
ONBOOT=yes
BOOTPROTO=none
TEAM_MASTER=team0

 

3) Create a file named “ifcfg-team0″ with the below contents.  This file contains the configuration for your NIC team virtual device

DEVICE=team0
DEVICETYPE=Team
ONBOOT=yes
BOOTPROTO=none
NETMASK=255.255.255.0
IPADDR=192.168.1.200
GATEWAY=192.168.1.254
TEAM_CONFIG='{"runner": {"name": "roundrobin"}}'

 

4) Configure the /etc/resolv.conf with the IP of the name / DNS server.    for this example the IP for the DNS server is 192.168.1.254

nameserver 192.168.1.254

5) Restart the network service or reboot the system and you should now have a functioning NIC team.

systemctl restart network

or

reboot

Here is output of the command   “ifconfig team0″

This guide explains how to configure a basic Apache web server on Red Hat Enterprise Linux 7.  This is also on of the objectives on the RHCSA 7 exam and a fundamental skill required for the RHCE 7 exam.

1 ) The first thing that you will need to do is install the httpd service if it is not already installed.  Below are a few options for accomplishing this.

Also this guide assumes all commands are entered as the “root” user.

 yum -y groupinstall “Basic Web Server”

or

yum -y install httpd httpd-manual

 Note: The package httpd-manual has the apache documentation which may be helpful with configuration.

 

 

2) Enable the httpd service with the following command.   This will cause the service  to start when the system is booted.

systemctl enable httpd.service

3) Open the firewall to allow access to the web server.

firewall-cmd --add-service=http --permanent --zone=public

Note:  the –add-service statement is “http” and NOT “httpd”

 

 

4) Reload the configuration changes to the firewall

systemctl reload firewalld.service

 

 

5) Start the httpd service

systemctl start httpd.service

 

 

6) You can test the functionality by opening a browser for a computer on the same network and entering the IP in the address field.  You will see the apache test page if successful.

The default directory for the Apache server is “/var/www/html/”

 

July 19th, 2014

CentOS 7 Released July 7, 2014

No Comments, RHEL 7, by programr101.

Incase you are not aware CentOS 7 was released on July 7th 2014.  CentOS is a rebuild distribution of Red Hat Enterprise Linux 7 and is functionally identical to RHEL7.  The only difference is that all of the Red Hat branding has been removed, and CentOS is not supported as is the case with Red Hat.  CentOS is free alternative  and a great choice of operating system for your personal server or for testing.  I specifically use it to help study and prepare for the RHCSA and RHCE exams as stated before it behaves identical to RHEL.