Below are basic configuration instructions to setup static IP address on Redhat Enterprise Linux ( RHEL7 ). First, list your network interfaces with ip command:
# ip addr show
2: enp0s3:  mtu 1500 qdisc pfifo_fast state UP qlen 1000
    link/ether 08:00:27:15:38:b7 brd ff:ff:ff:ff:ff:ff
       valid_lft forever preferred_lft forever
    inet6 fe80::a00:27ff:fe15:38b7/64 scope link 
       valid_lft forever preferred_lft forever


Logrotate is a utility designed for administrators who manage servers producing a high volume of log files to help them save some disk space as well as to avoid a potential risk making a system unresponsive due to the lack of disk space. Normally, a solution to avoid this kind of problem is to setup a separate partition or logical volume for a /var mount point. However, logrotate may also be a viable solution to this problem especially if it is too late to move all logs under different partition. In this article we will talk about usage and configuration of logrotate on RedHat / CentOS Linux server.

What is Logrotate

Logrotate provides an ability for a system administrator to systematically rotate and archive any log files produced by the system and thus reducing a operating system's disk space requirement. By default logrotate is invoked once a day using a cron scheduler from location /etc/cron.daily/

# ls /etc/cron.daily/
cups logrotate makewhatis.cron mlocate.cron prelink readahead.cron rhsmd tmpwatch

If you have a missing default gateway on your Redhat system you can add new route as per network interface or globally. Defining default gateway using ifcfg files, that is, defining it as per network interface basis takes a precedence over global system wide default gateway configuration defined by /etc/sysconfig/network configuration file.

First, list our routing table with routel command:
[root@rhel7 ~]# routel
         target            gateway          source    proto    scope    dev tbl 8                 kernel     link enp0s3          broadcast   kernel     link enp0s3 local              local   kernel     host enp0s3 local          broadcast   kernel     link enp0s3 local          broadcast   kernel     link     lo local 8            local   kernel     host     lo local              local   kernel     host     lo local          broadcast   kernel     link     lo local

Apart of the regular local Redhat's installation, the Redhat system allows admin to modify boot options to temporarily setup network interface and instruct the installation program Anaconda to initiate installation via VNC. In this article we will modify default Redhat's boot options to initiate remote installation using VNC.

First insert installation image and boot into a Redhat's boot options screen as show below:
Redhat 7 boot screen - enter vnc and network options

On this screen we need to modify boot options to instruct the installation program Anaconda to provide us with VNC interface after the end of the boot sequence. Depending whether you use DHCP on your network you can either set static address or do not include any network options for dynamic IP address assignment. In the above screen we have included the following options after pressing "TAB" on the main ( first ) boot option:
ip= - optional
netmask= - optional
vnc - required


Most of the time as a system administrator you are managing your servers over the network. It is very rare that you will need to have a physical access to any of your managed servers. In most cases all you need is to SSH remotely to do your administration tasks. In this article we will configure a GUI alternative to a remote access to your RHEL server, which is VNC. VNC allows you to open a remote GUI session to your server and thus providing you with a full graphical interface accessible from any remote location.

Installation of VNC server

In order to enable an access to our Redhat Linux system using VNC we first need to install it. Make sure that you have your repository enabled and execute the command:

# yum install tigervnc-server

Submit your RESUME, create a JOB ALERT or subscribe to RSS feed on
Subscribe to NEWSLETTER and receive latest news, jobs, career advice and tutorials.
Get extra help by visiting our LINUX FORUM or simply use comments below.