You are not logged in.

#1 2006-09-01 22:09:24

gunshot
Member
From: Bulgaria
Registered: 2006-09-01
Posts: 35

Cannot configure netrork [SOLVED]

Hello. I'm new to linux. I installed the distribution fairly easy and now I want to install X, so I need to configure my network.

I use LAN connection via my home gateway with wingate. My settings are:
IP: 192.168.0.68 (this will be the IP address of my new linux machine)
MASK: 255.255.255.0
GW: 192.168.0.1 (this is my home gateway's IP address)

DNS:192.168.0.1

What exacly should I change in my rc.conf? I wonder how to enter my DNS address. Now I have ping to the router, but no addresses resolved. I have left the broadcast 192.168.0.255 - is that correct?

Thank you very much!

Edit:
I've edited: /etc/resolv.conf and added:
    nameserver 192.168.0.1
Is it correct that way?

Offline

#2 2006-09-01 22:57:25

ndlarsen
Member
From: Denmark
Registered: 2005-11-02
Posts: 157

Re: Cannot configure netrork [SOLVED]

In /etc/rc.conf:

eth0="eth0 192.168.0.68 netmask 255.255.255.0 broadcast 192.168.0.255"
INTERFACES=(lo eth0)
gateway="default gw 192.168.0.1"
ROUTES=(gateway)

to test it do following as root

/etc/rc.d/network restart

and hit google.

And yes, the dns part seems right to me.


I made it long
as I lacked the time to make it short...

Offline

#3 2006-09-01 22:59:08

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Cannot configure netrork [SOLVED]

Yeah, that's right. /etc/resolv.conf is where you put your DNS servers, and your broadcast address is also correct.

Offline

#4 2006-09-02 07:34:15

gunshot
Member
From: Bulgaria
Registered: 2006-09-01
Posts: 35

Re: Cannot configure netrork [SOLVED]

Thank you for your answers, they were helpful.

i've done the settings, but network restart seems not to work sad I have such file in the rc.d directory and tried to change permissions to 777, but it still doest'n work. i'm logged in as root. i get the error:

[root@arch rc.d]# network restart
-bash: network: command not found

I've editer the etc/hosts file:
127.0.0.1     localhost.localdomain    arch

I've restarted the machine but i stll have no internet connectivity.
ifconfig says:
eth0
...addr 192.168.0.68 bcast: 192.168.0.255 mask: 255.255.255.0 ...
(which seems correct)

Offline

#5 2006-09-02 07:53:35

Blayder
Member
Registered: 2006-07-29
Posts: 43

Re: Cannot configure netrork [SOLVED]

try pinging not hostname, but IP address... gateway for example..
And could you post your resolv.conf? might be that you inputed DNS incorrectly if you'll get some respons from pinging GW...

Offline

#6 2006-09-02 08:11:29

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Cannot configure netrork [SOLVED]

gunshot wrote:

[root@arch rc.d]# network restart
-bash: network: command not found

That's not going to work, because /etc/rc.d is not in your PATH. If you're in /etc/rc.d, use ./network restart - if you're anywhere else, /etc/rc.d/network restart .

Offline

#7 2006-09-02 08:59:14

gunshot
Member
From: Bulgaria
Registered: 2006-09-01
Posts: 35

Re: Cannot configure netrork [SOLVED]

tomk wrote:
gunshot wrote:

[root@arch rc.d]# network restart
-bash: network: command not found

That's not going to work, because /etc/rc.d is not in your PATH. If you're in /etc/rc.d, use ./network restart - if you're anywhere else, /etc/rc.d/network restart .

Thank you, that worked! Now I have internet!
10x to everybody!

Offline

Board footer

Powered by FluxBB