LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-15-2015, 11:28 AM   #1
harunaadoga
LQ Newbie
 
Registered: Sep 2014
Location: Hatfield, United Kingdom
Distribution: Centos
Posts: 24

Rep: Reputation: Disabled
CentOS 7 minimal install


After installing CentOS 7 using minimal install, running ifconfig to see network interfaces does not work gives the message:
-bash: ifconfig: command not found.
please what else do I need to do after the installation?
 
Old 08-15-2015, 11:44 AM   #2
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 6,004

Rep: Reputation: 1620Reputation: 1620Reputation: 1620Reputation: 1620Reputation: 1620Reputation: 1620Reputation: 1620Reputation: 1620Reputation: 1620Reputation: 1620Reputation: 1620
Have you tried running it as root?
 
Old 08-15-2015, 11:46 AM   #3
DavidMcCann
Senior Member
 
Registered: Jul 2006
Location: London
Distribution: CentOS, Salix
Posts: 4,164

Rep: Reputation: 1223Reputation: 1223Reputation: 1223Reputation: 1223Reputation: 1223Reputation: 1223Reputation: 1223Reputation: 1223Reputation: 1223
All good things come to an end, and that goes for ifconfig. The new tool is ip: see the man page.
 
Old 08-15-2015, 11:47 AM   #4
harunaadoga
LQ Newbie
 
Registered: Sep 2014
Location: Hatfield, United Kingdom
Distribution: Centos
Posts: 24

Original Poster
Rep: Reputation: Disabled
Yes I am running as root.
 
Old 08-15-2015, 11:50 AM   #5
ugjka
Member
 
Registered: May 2015
Location: Latvia
Distribution: Arch, CentOS, ChakraOS
Posts: 262
Blog Entries: 5

Rep: Reputation: 180Reputation: 180
Code:
yum install net-tools
 
Old 08-15-2015, 12:02 PM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 14,937

Rep: Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520
As stated ifconfig is deprecated and not installed by default. You can use the ip command or install the net-tools package. In addition /sbin is not in the users path. To run either command include the full path or run the command as root.

/sbin/ip addr show

Last edited by michaelk; 08-15-2015 at 12:05 PM.
 
Old 08-15-2015, 12:31 PM   #7
harunaadoga
LQ Newbie
 
Registered: Sep 2014
Location: Hatfield, United Kingdom
Distribution: Centos
Posts: 24

Original Poster
Rep: Reputation: Disabled
Yum install net-tools gives the error: Can not find a valid base url for repo:base/7/x86_64.
I think it's safe to say yum isn't working, please what do I need to do?
Attached Thumbnails
Click image for larger version

Name:	IMG_20150815_172549.jpg
Views:	8
Size:	260.2 KB
ID:	19167  
 
Old 08-15-2015, 12:42 PM   #8
ugjka
Member
 
Registered: May 2015
Location: Latvia
Distribution: Arch, CentOS, ChakraOS
Posts: 262
Blog Entries: 5

Rep: Reputation: 180Reputation: 180
Yum is not working because you are not connected to the internet
 
Old 08-15-2015, 12:43 PM   #9
harunaadoga
LQ Newbie
 
Registered: Sep 2014
Location: Hatfield, United Kingdom
Distribution: Centos
Posts: 24

Original Poster
Rep: Reputation: Disabled
I am connected... Ping to www.google.com is successful
 
Old 08-15-2015, 06:13 PM   #10
harunaadoga
LQ Newbie
 
Registered: Sep 2014
Location: Hatfield, United Kingdom
Distribution: Centos
Posts: 24

Original Poster
Rep: Reputation: Disabled
Thanks guys for all the help, everything working fine now.
 
  


Reply

Tags
centos7, ifconfig, network interface


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: How To Install a CentOS 7.1 Minimal Server LXer Syndicated Linux News 0 04-02-2015 01:51 PM
LXer: How to install a CentOS 7 minimal server LXer Syndicated Linux News 0 10-23-2014 10:51 PM
Enable remote SSH on clean CentOS 6.5 (minimal) install Deak Linux - Server 8 07-15-2014 04:38 AM
What packages can I remove from the Centos 6.4 Minimal install for a JeOS system? iletras Linux - Distributions 1 04-27-2013 02:53 AM
CentOS - Minimal Install harry edwards Linux - Server 4 01-22-2008 06:33 AM


All times are GMT -5. The time now is 02:59 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration