Saturday, November 22, 2014

static ip configuration in centos 7

Leave a Comment
in this articles, step-by-step static ip configuration in centos 7. default ifconfig command not found in centos 7 minimal as picture below:

static ip configuration


Solve problem:


Step1: create Local Yum repository on centos 7 using DVD:
# mkdir /cdrom
# mount /dev/cdrom /cdrom
# vi /etc/yum.repos.d/local.repo
static ip configuration 02


Add follow bellow to local.repo file:
[LocalRepo]
name=Local Repository
baseurl=file:///cdrom
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

Step 2: use provides command or whatprovides command:
#yum provides ifconfig
or
#yum whatprovides ifconfig

static ip configuration 03

Step 3: install net-tools found as picture above: 
#yum install net-tools
#ifconfig –a
Step 4: static ip configuration in centos 7 as picture below:

static ip configuration 04


Static ip configuration in centos 7, output:

static ip configuration 06

Restart network
service network restart
I hope will this help you!
Copyright by: www.linuxoperatingsystem.info http://goo.gl/kMscJ4

0 comments:

Post a Comment