Jump to content

CentOS 6 No internet connection after reboot


jens4626

Recommended Posts

6 minutes ago, jens4626 said:

So basicly I rebooted my VPS and now I don't have internet acces anymore. I fixed this before but I forgot how I did it. 

I tried adding port 80 to firewall but didn't work. 

Could really use some help, thanks :) 

Internet access to what exactly?

The http (or whatever) service running on your CentOS machine or the machine itself?

Link to comment
Share on other sites

Just now, Charlotte said:

Check if your network is disabled?
Perhaps you have no ip from the dhcp server?

Or you can try the following manually.

chkconfig NetworkManager off
chkconfig network on

service NetworkManager stop
service network start

Very very likely that his firewall isn't setup to permanently allow certain ports, hence stopped working after reboot

Link to comment
Share on other sites

2 minutes ago, Charlotte said:

Check if your network is disabled?
Perhaps you have no ip from the dhcp server?

Or you can try the following manually.

chkconfig NetworkManager off
chkconfig network on

service NetworkManager stop
service network start

Didn't work, I believe it might be an issue with no IPv4 adress but not sure if it is that or how to enable it

Link to comment
Share on other sites

9 minutes ago, Orlando Bloom said:

Why 6th and not 7th?  Also go with Debian, centos is legit af but requires tons of care. 

Install VNC, Desktop enviroment and Java, what is there to care for? :xboge:

Also its typically is always better to go with the 2nd most up to date release as newest are sometimes wacky

Edited by Vap0r
Link to comment
Share on other sites

38 minutes ago, Vap0r said:

What happens when attempting to ping 8.8.8.8?

What happens when you attempt /etc/init.d/networking restart

 

Check your static IP information located here:  /etc/sysconfig/network-scripts/ifcfg-eth0:

 

pinging 8.8.8.8 works fine.

When doing /etc/init.d/networking restart it says no such file or directory

When I'm doing the this /etc/sysconfig/network-scripts/ifcfg-eth0 I get permission denied

Link to comment
Share on other sites

7 minutes ago, jens4626 said:

pinging 8.8.8.8 works fine.

When doing /etc/init.d/networking restart it says no such file or directory

When I'm doing the this /etc/sysconfig/network-scripts/ifcfg-eth0 I get permission denied

If pinging 8.8.8.8 works fine you have a DNS issue.

First do these 2 commands:

chkconfig NetworkManager off; service NetworkManager stop 

If you type: nano /etc/resolv.conf

You Should see something like

nameserver 202.169.33.220
nameserver 202.169.33.222

I typically use google's DNS which is
8.8.8.8
8.8.4.4

Save changes and reboot VPS, you should be able to access web now. Let me know if still an issue

 

Edited by Vap0r
Link to comment
Share on other sites

20 minutes ago, Vap0r said:

If pinging 8.8.8.8 works fine you have a DNS issue.

First do these 2 commands:


chkconfig NetworkManager off; service NetworkManager stop 

If you type: nano /etc/resolv.conf

You Should see something like

nameserver 202.169.33.220
nameserver 202.169.33.222

I typically use google's DNS which is
8.8.8.8
8.8.4.4

Save changes and reboot VPS, you should be able to access web now. Let me know if still an issue

 

When I'm trying to stop networkmanger it says failed.

This is my resolv.conf

_5Wd9UaVQMOydLw1RX0FEA.png

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...