Jump to content

Linux Server Network (Ubuntu)

Go to solution Solved by Joveice,

ifconfig -a Showed all Devices Lo, em1 and p6p1

i then whent to /etc/network/interfaces

auto loiface lo inet loopbackauto eth0iface eth0 inet dhcp

Since in ifconfig -a there was no eth0 or eth1 but there was em1 and p6p1

i changed it to this

auto loiface lo inet loopbackauto p6p1iface p6p1 inet dhcp

and rebooted, that solved the problem

So when i boot my server it says "waiting for network configuration"

and when thats done the server doesent connect to the internet or LAN

if i do ping 8.8.8.8 it returns network is unreachable

if i do ping 192.168.0.1 it returns network is unreachable

How do i fix this?

iv been looking for a bit but nothing has fixed the problem yet.

Back-end developer, electronics "hacker"

Link to comment
https://linustechtips.com/topic/518094-linux-server-network-ubuntu/
Share on other sites

Link to post
Share on other sites

You may have to manually set up a network port. 

It will say in /etc/network/interfaces if you have a network set up (usually including Eth0 or Eth1). If you don't, this should help you. http://www.cyberciti.biz/faq/setting-up-an-network-interfaces-file/

Link to post
Share on other sites

You may have to manually set up a network port. 

It will say in /etc/network/interfaces if you have a network set up (usually including Eth0 or Eth1). If you don't, this should help you. http://www.cyberciti.biz/faq/setting-up-an-network-interfaces-file/

 

Have you looked at your /etc/network/interfaces to check that somethings not misconfigured?

All this was as it was supose to be when i checked diffrent places, tho the server worked before, just not now, nothing has been instaled since then.

Sorry for the bad english.

Back-end developer, electronics "hacker"

Link to post
Share on other sites

ifconfig -a Showed all Devices Lo, em1 and p6p1

i then whent to /etc/network/interfaces

auto loiface lo inet loopbackauto eth0iface eth0 inet dhcp

Since in ifconfig -a there was no eth0 or eth1 but there was em1 and p6p1

i changed it to this

auto loiface lo inet loopbackauto p6p1iface p6p1 inet dhcp

and rebooted, that solved the problem

Back-end developer, electronics "hacker"

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×