Setting up network without NetworkManager in Redhat 7

Red Hat Enterprise Linux 7: Setting up network without NetworkManager.

This video tutorial is part of RHCSA Fast Track course.

1) Stop NetworkManager service and disable it from startup after reboot.
systemctl stop NetworkManager
systemctl disable NetworkManager
systemctl is-enabled NetworkManager

2) vi /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6

172.16.99.201 lxserv01 lxserv01.domain99.private.com

3) vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
HWADDR=52:54:00:81:33:a7
NM_CONTROLLED=no
BOOTPROTO=static
ONBOOT=yes
IPADDR=172.16.99.201
NETMASK=255.255.255.0
NETWORK=172.16.99.0
BROADCAST=172.16.99.255

4) vi /etc/sysconfig/network
NETWORKING=yes
GATEWAY=172.16.99.1

5) vi /etc/resolv.conf
search domain99.private.com
nameserver 8.8.8.8
nameserver 208.67.222.222

6) Restart network service and verify if it is enabled to start after reboot.
systemctl restart network
systemctl status network
systemctl is-enabled network

7) Verify networking.
ip a (or command: ip addr) (or command: ip address)
ip r (or command: ip route)

yum install net-tools
ifconfig -a
ifconfig eth0
netstat -r
netstat -rn

yum install bind-utils
nslookup redhat.com
dig redhat.com
dig @208.67.222.222 redhat.com
ping redhat.com

Related Video Tutorials:

Red Hat Enterprise Linux v7 networking

Calculate netmask, network and broadcast address – EASY!

Network Interface naming convention in Red Hat 7

Setting up network without NetworkManager in Redhat 7

Setting up network using NetworkManager and network scripts in Redhat 7

Setting up network using a NetworkManager text user interface (nmtui) in Red Hat 7 – EASY!!!

Setting up network in Red Hat 7 in less than a minute – QUICK & EASY!!!

Setting up network using a NetworkManager command line interface (nmcli) in Red Hat 7

nmcli cheat! Setting up network using nmcli in Red Hat 7 in less than a 30 seconds – QUICK & EASY!!!

Setting up network using a NetworkManager connection editor GUI tool in Red Hat 7 – EASY!!!

Complete Beginners Guide to Linux Network Configuration – GUI & Easy!

NetworkManager connection priority – manage network profile priority in Linux.