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). |
Hi,
depends on how you want to do it. Static? DHCP? Etc. See https://access.redhat.com/site/docum...nterfaces.html Evo2. |
You might want to go and look in /etc/sysconfig/network-scripts/ifcfg-eth0...
|
What would I be looking for.
|
Is the correct MAC address set? What protocol is configured? What about ONBOOT=?
|
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?
|
$cat /etc/sysconfig/network-scripts/ifcfg-eth0
|
1 Attachment(s)
Okay... I can't seem to copy/paste to/from the VNC client so here is a screenshot.
|
Ok so change ONBOOT=no to ONBOOT=yes. Then run:
$ifup eth0 The NIC will try and get an ip from dhcp. |
Wow! That was easy. Now I feel stupid.
|
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. |