Monday, November 3, 2014

CentOS Minimal Installation Network Configuration

# vi /etc/sysconfig/network-scripts/ifcfg-ens192
ONBOOT=yes

# sync; reboot

# ifconfig
-bash: ifconfig: command not found

To get the ifconfig command into our system , run the below given command:
# yum install net-tools

How I got to know net-tools package need to be installed

Using yum command with provides or whatprovides options help to give you list of package which is required for that particular command.

As per man page of yum :

provides or whatprovides
Is used to find out which package provides some feature or file. Just use a specific name or a file-glob-syntax wildcards to list the packages available or installed that provide that feature or file.

We have used the below given command to find which package provides the ifconfig command.

# yum provides ifconfig

# yum install tmux

http://sharadchhetri.com/2014/07/25/ifconfig-command-found-centos-7/

No comments: