Setting up network using NetworkManager and network scripts in Redhat 7

Published: 08 May 2016
on channel: Business Server Solutions
10,408
58

Red Hat Enterprise Linux 7: Setting up network using NetworkManager and network scripts.

This video tutorial is part of RHCSA Fast Track course.

Here is step by step cookbook to set-up RHEL 7 network using NetworkManager and network scripts:

1) Verify that NetworkManager is running and enabled to start after reboot
systemctl status NetworkManager
systemctl is-enabled NetworkManager

2) Update /etc/hosts file with IP address, hostname and FQDN of your server
vi /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6

172.16.99.202 lxserv02 lxserv02.domain99.private.com

3) Configure network scripts - network adapter config file
vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
NM_CONTROLLED=yes
BOOTPROTO=static
ONBOOT=yes
IPADDR=172.16.99.202
NETMASK=255.255.255.0
NETWORK=172.16.99.0
BROADCAST=172.16.99.255
GATEWAY=172.16.99.1
DNS1=8.8.8.8
DNS2=208.67.220.220

4) Restart network service
systemctl restart network

5) Verify resolv.conf configuration file if it contains DNS servers configured in previous step. NetworkManager should update /etc/resolv.conf file automatically
cat /etc/resolv.conf

6) Verify networking
ip a (ip addr) (ip address)
ip r (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.220.220 redhat.com

ping redhat.com

Related Video Tutorials:
RHCSA Fast Track course:
Reset forgotten root password in Redhat 7:
   • Reset forgotten root password in Redhat 7  

Network Interface naming convention in Red Hat 7:
   • Network Interface naming convention in Red...  

Setting up network without NetworkManager in Redhat 7:
   • Setting up network without NetworkManager ...  

Setting up network using NetworkManager and network scripts in Redhat 7:
   • Setting up network using NetworkManager an...  

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

Setting up network in Red Hat 7 in less than a minute - QUICK & EASY!!!
   • Setting up network in Red Hat 7 in less th...  

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

nmcli cheat! Setting up network using nmcli in Red Hat 7 in less than a 30 seconds - QUICK & EASY!!!
   • nmcli cheat! Setting up network using nmcl...  

The Complete Beginners Guide to Linux Network Configuration - GUI & Easy!
   • Complete Beginners Guide to Linux Network ...  

Shrink ext2 ext3 and ext4 file system and reduce the size of a logical volume with only one command.
   • Shrink ext2 ext3 and ext4 file system and ...  

Complete guide to file system shrinking and reducing the size of the underlying logical volume.
   • Complete guide to file system shrinking an...  

Other related video tutorials:
Calculate netmask, network and broadcast address - EASY!:
   • Calculate netmask, network and broadcast a...  

NetworkManager connection priority - manage network profile priority in Linux:
   • NetworkManager connection priority - manag...  


On this page of the site you can watch the video online Setting up network using NetworkManager and network scripts in Redhat 7 with a duration of hours minute second in good quality, which was uploaded by the user Business Server Solutions 08 May 2016, share the link with friends and acquaintances, this video has already been watched 10,408 times on youtube and it was liked by 58 viewers. Enjoy your viewing!