You are not logged in.
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
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
Yeah, that's right. /etc/resolv.conf is where you put your DNS servers, and your broadcast address is also correct.
Offline
Thank you for your answers, they were helpful.
i've done the settings, but network restart seems not to work 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
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
[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
gunshot wrote:[root@arch rc.d]# network restart
-bash: network: command not foundThat'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