You are not logged in.

#1 2012-09-09 21:35:32

Roberth
Member
From: The Pale Blue Dot
Registered: 2007-01-12
Posts: 894

Server has ethernet but not internet

I have server, I have tried full static and only static ip for the computer and everything else is handled by dhcp. The problem is the same, no internet.

I can ssh and control mpd on it from my desktop without any problems.

[root@C3PO AUR]# ping vg.no
ping: unknown host vg.no

/etc/rc.conf:

......

interface=eth0
address=192.168.1.10
netmask=
gateway=

What is the problem? It is connected to a gigabit switch is there again connected to an airport express which delivers the ipadresses. My desktop is connected the same way with dhcp.


Use the Source, Luke!

Offline

#2 2012-09-09 23:09:09

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,237
Website

Re: Server has ethernet but not internet

You need to add a DNS server to /etc/resolv.conf

EDIT: You also need a default gateway, which according to your rc.conf is not currently configured.

Last edited by fukawi2 (2012-09-09 23:09:44)

Offline

#3 2012-09-10 00:04:32

Roberth
Member
From: The Pale Blue Dot
Registered: 2007-01-12
Posts: 894

Re: Server has ethernet but not internet

How do I find out which DNS servers I need to use?

Isn't gateway handled by dhcp when leaved blank?


Use the Source, Luke!

Offline

#4 2012-09-10 00:19:50

lilsirecho
Veteran
Registered: 2003-10-24
Posts: 5,000

Re: Server has ethernet but not internet

Perhaps the entry of the ip in the dhcp example should be removed.  Normal dhcp installs via eth0 only have eth0 entered.


Prediction...This year will be a very odd year!
Hard work does not kill people but why risk it: Charlie Mccarthy
A man is not complete until he is married..then..he is finished.
When ALL is lost, what can be found? Even bytes get lonely for a little bit!     X-ray confirms Iam spineless!

Offline

#5 2012-09-10 00:26:43

Roberth
Member
From: The Pale Blue Dot
Registered: 2007-01-12
Posts: 894

Re: Server has ethernet but not internet

Now, after a new try and no sucess:

[root@C3PO ~]# ping vg.no
connect: Network is unreachable

ip adresses:
address=192.168.1.10
netmask=255.255.255.0
gateway=192.168.0.0
broadcast=192.168.0.255

/etc/resolv.conf:

nameserver 192.168.1.1

This is the same config my desktop which I am using now has.


Use the Source, Luke!

Offline

#6 2012-09-10 00:43:04

Roberth
Member
From: The Pale Blue Dot
Registered: 2007-01-12
Posts: 894

Re: Server has ethernet but not internet

Found the problem:

gateway=192.168.0.0

Changed it to:

gateway=192.168.1.1

Computer stuff is nothing for me when im tired obviously.


Use the Source, Luke!

Offline

Board footer

Powered by FluxBB