LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Network not working after new install -- CentOS 6.5 (https://www.linuxquestions.org/questions/linux-server-73/network-not-working-after-new-install-centos-6-5-a-4175508318/)

jim.thornton 06-17-2014 10:23 PM

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).

evo2 06-17-2014 10:57 PM

Hi,

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

Evo2.

canussie 06-18-2014 06:29 AM

You might want to go and look in /etc/sysconfig/network-scripts/ifcfg-eth0...

jim.thornton 06-18-2014 07:59 AM

What would I be looking for.

canussie 06-18-2014 09:22 AM

Is the correct MAC address set? What protocol is configured? What about ONBOOT=?

jim.thornton 06-18-2014 09:23 AM

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?

canussie 06-18-2014 09:26 AM

$cat /etc/sysconfig/network-scripts/ifcfg-eth0

jim.thornton 06-18-2014 09:31 AM

1 Attachment(s)
Okay... I can't seem to copy/paste to/from the VNC client so here is a screenshot.

canussie 06-18-2014 09:37 AM

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

The NIC will try and get an ip from dhcp.

jim.thornton 06-18-2014 09:40 AM

Wow! That was easy. Now I feel stupid.

canussie 06-18-2014 09:49 AM

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


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