LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-17-2014, 10:23 PM   #1
jim.thornton
Member
 
Registered: May 2007
Posts: 414

Rep: Reputation: 19
Network not working after new install -- CentOS 6.5


I just installed CentOS 6.5 on my new VPS and I have no connectivity. I wanted to run my own setup so I could change the partition structure. I didn't want to use the 100% / like the vps provider's template is.

I ran # ifconfig and there is only lo listed. No eth0.

How can I get this working now that the OS is installed?

Can someone please help me step by step? I have very little networking experience in the command line (having to setup the network from scratch).
 
Old 06-17-2014, 10:57 PM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,037

Rep: Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407
Hi,

depends on how you want to do it. Static? DHCP? Etc. See https://access.redhat.com/site/docum...nterfaces.html

Evo2.
 
Old 06-18-2014, 06:29 AM   #3
canussie
Member
 
Registered: Jun 2014
Location: Calgary
Posts: 50

Rep: Reputation: 7
You might want to go and look in /etc/sysconfig/network-scripts/ifcfg-eth0...
 
Old 06-18-2014, 07:59 AM   #4
jim.thornton
Member
 
Registered: May 2007
Posts: 414

Original Poster
Rep: Reputation: 19
What would I be looking for.
 
Old 06-18-2014, 09:22 AM   #5
canussie
Member
 
Registered: Jun 2014
Location: Calgary
Posts: 50

Rep: Reputation: 7
Is the correct MAC address set? What protocol is configured? What about ONBOOT=?
 
Old 06-18-2014, 09:23 AM   #6
jim.thornton
Member
 
Registered: May 2007
Posts: 414

Original Poster
Rep: Reputation: 19
I don't know. I've never configured a network in the command line and I don't know where to go to figure this stuff out. Can you give me some commands to run to find out?
 
Old 06-18-2014, 09:26 AM   #7
canussie
Member
 
Registered: Jun 2014
Location: Calgary
Posts: 50

Rep: Reputation: 7
$cat /etc/sysconfig/network-scripts/ifcfg-eth0
 
Old 06-18-2014, 09:31 AM   #8
jim.thornton
Member
 
Registered: May 2007
Posts: 414

Original Poster
Rep: Reputation: 19
Okay... I can't seem to copy/paste to/from the VNC client so here is a screenshot.
Attached Thumbnails
Click image for larger version

Name:	ifcfg-eth0.png
Views:	16
Size:	19.6 KB
ID:	15744  
 
Old 06-18-2014, 09:37 AM   #9
canussie
Member
 
Registered: Jun 2014
Location: Calgary
Posts: 50

Rep: Reputation: 7
Ok so change ONBOOT=no to ONBOOT=yes. Then run:
$ifup eth0

The NIC will try and get an ip from dhcp.
 
Old 06-18-2014, 09:40 AM   #10
jim.thornton
Member
 
Registered: May 2007
Posts: 414

Original Poster
Rep: Reputation: 19
Wow! That was easy. Now I feel stupid.
 
Old 06-18-2014, 09:49 AM   #11
canussie
Member
 
Registered: Jun 2014
Location: Calgary
Posts: 50

Rep: Reputation: 7
Don't feel stupid, it's a learning curve we have all been through. Just make a note of it for next time .
 
  


Reply


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
[SOLVED] Editing network settings in a fresh CentOS 6.2 install kevinamygrayson Linux - Newbie 20 05-02-2012 01:20 PM
'invalid or corrupt kernel image' when doing HTTP network install - CentOS 5.4 kapshure Linux - Server 5 07-23-2010 02:35 AM
Problems with 'pxeos' utility in CentOS 5.5 - HTTP network install setup kapshure Linux - Server 0 07-16-2010 11:51 AM
Centos 4.2: network is not working if eth1 if activated PeterOnTheWall Linux - Networking 0 07-16-2008 08:55 PM
Network install not working TomaCzar Slackware 11 07-04-2004 06:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:05 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