You are not logged in.
Hi, Im new to ArchLinux, I've been trying to install it since yesterday ..the instalation was easy.
However, when I tried to configure network, it didn't work out that well, I've got way too much trouble, everytime I try to ping any site i.e. www.google.com I get unkown host. I've tried so many different configurations, dhcp , static ip, etc.
I have a D-Link DI604 router sharing my internet connection, which I found out as the source of my problem. It receives the signal directly from the ISP and redistributes to my 2 pc's. Seems like my router is causing the troubles while setting up a network configuration.
If anyone uses the same router and has the answer to my issue, please answer; or if someone knows how to solve it .
Since now , Thanks.
Offline
try to configure a static ip. Say your router IP is at 192.168.0.1, edit your /etc/rc.conf as follow:
lo="lo 127.0.0.1"
eth0="eth0 192.168.0.10 netmask 255.255.255.0 broadcast 192.168.0.255"
INTERFACES=(lo eth0)
#
# Routes to start at boot-up (in this order)
# Declare each route then list in ROUTES
# - prefix an entry in ROUTES with a ! to disable it
#
gateway="default gw 192.168.0.1"
ROUTES=(gateway)
Note: you need to remove the ! (exclamation mark) in the ROUTES statement.
Then open /etc/resolv.conf
remove everything in it and add your router's IP:
nameserver 192.168.0.1
open /etc/hosts:
127.0.0.1 localhost.localdomain localhost YOUR-HOST-NAME
192.168.0.10 YOUR-HOST-NAME
replace YOUR-HOST-NAME with... doh... your host name
hope this helps
Last edited by Matt3o (2007-10-15 16:51:28)
Offline
I had same problem when I bought D-Link router. My router could not obtain DNS address from the ISP. So I had manually enter DNS address in the router.
Offline
For starters, try dhcp'ing manually. First "sudo /etc/rc.d/network ifdown eth0" to bring the interface down, then "sudo dhcpcd -dd eth0" to try to get a lease, and spit out debugging information. Post the output of the second command so we can see what's going on.
Offline
you need to install in set up sudo if you want to use that command. your alternative is to do "su -" and type your root password. then issue the commands he gave you without "sudo" in front. "su -" will put you in a prompt as a root user so be sure that you "exit" out after you issue the commands he gave.
archlinux - please read this and this — twice — then ask questions.
--
http://rsontech.net | http://github.com/rson
Offline
Ok, I'm trying that, thanks!!
Offline
How do I do such thing?
You can also enter your ISP DNS address to the /etc/resolv.conf -file.
Like this:
nameserver YOUR.ISP.DNS.ADDRESS
Offline
MarinvHs wrote:How do I do such thing?
You can also enter your ISP DNS address to the /etc/resolv.conf -file.
Like this:
nameserver YOUR.ISP.DNS.ADDRESS
I did that already at resolv.conf... didn't work
About sudo commands, I used su - as suggested and then "dhcpcd -dd eth0"
I got some debug stuff
mainly it was
Sending DHCP_DISCOVER ....
Sending APP probe#1
Sending APP probe#2
Sending APP probe#3
Sending APP claim#1
Sending APP claim#2
Then it showed my ip
then "no dns info to write"..the loop restarts..sending dhcp_discover . etc
Offline
trilog wrote:MarinvHs wrote:How do I do such thing?
You can also enter your ISP DNS address to the /etc/resolv.conf -file.
Like this:
nameserver YOUR.ISP.DNS.ADDRESS
I did that already at resolv.conf... didn't work
But you entered your modem DNS address, if modem could not obtain DNS address then your PC also obtain wrong address. You should ask your ISP what is your ISP's DNS address and enter it to the /etc/resolv.conf (or find it ISP's website).
Offline
I saw my DNS address at "Network Connection"
There are 2 there :
200.250.77.87
200.250.77.85
I added both on resolv.conf
If I do ipconfig(at windows) I get "specific DNS connection sufix "ctb.virtua.com.br"
I've tried this one there also and it didnt work
Sorry if I didnt get your question or if I wasnt clear enough, but that's what I've done.
Offline
Sorry if I didnt get your question or if I wasnt clear enough, but that's what I've done.
Maybe I understand wrong, but it's clear now. I'm sorry, I don't know any more solutions.
Offline
Damn Thanks tho
Can't wait to use linux
Offline
up
Offline
What's the IP address of the other PC connected to the D-Link router?
Offline
you dont have to use your isp's dns addresses either, there are tons of public dns servers available. just do a quick google search and youll find all you could ever want.
archlinux - please read this and this — twice — then ask questions.
--
http://rsontech.net | http://github.com/rson
Offline
What's the IP address of the other PC connected to the D-Link router?
192.168.0.176
this one's is 192.168.0.198
Offline
marinvhs can you ping via ip address but cannot resolve hostnames? if you can ping by ip then its definitely a dns issue else its a network setup issue.
archlinux - please read this and this — twice — then ask questions.
--
http://rsontech.net | http://github.com/rson
Offline
I can only ping 192.168.0.198
If I ping the gateway 192.168.0.1 I get destination host something
and no I can't ping hostnames
Last edited by MarinvHs (2007-10-15 22:43:39)
Offline
Slow down, everybody. We've got twelve different paths of advice going here and the OP is getting nowhere.
MarinvHs, what happens when you attempt to ping an IP address from the machine that isn't working? That is, try this:
$ ping -c 5 209.85.165.104
[ Edit: It sounds like something is broken in the configuration of the D-Link box. I can't help ya there. ]
Last edited by tam1138 (2007-10-15 22:49:08)
Offline
I get Destination Host Unreachable, I tried it many different ways
do you want me to post my rc.conf and resolv.conf?
Here is my router status
Device Information
Firmware Version : V3.14, Thu, Dec 15 2005
LAN
MAC Address 00-19-5B-B5-D8-9D
IP Address 192.168.0.1
Subnet Mask 255.255.255.0
DHCP Server Enabled
WAN
MAC Address 00-08-54-22-47-C4
Connection DHCP Connected
Remaining Lease Time 01:46:09
IP Address 201.21.157.25
Subnet Mask 255.255.240.0
Gateway 201.21.144.1
Domain Name Server 200.250.77.87, 200.250.77.85
Last edited by MarinvHs (2007-10-15 23:16:13)
Offline
what happens when you do this (as root):
# route add default gw 192.168.0.1
# ping -c 5 64.233.169.99
Offline
let's step back a second. what's the result of:
lspci |grep Eth
and
ifconfig -a
plus, post your rc.conf, resolv.conf and hosts.
Last edited by Matt3o (2007-10-16 05:57:12)
Offline
Hi,
It seems that you have two network cards.
First, you need to know which one is connected to the router.
For that, try the following (as root):
ifconfig eth1 down
ifconfig eth0 192.168.0.2
ping 192.168.0.1
If the router responds, then it is eth0.
If not, try:
ifconfig eth0 down
ifconfig eth1 192.168.0.2
ping 192.168.0.1
When you are sure which one is the right one, add the default gateway:
route add default gw 192.168.0.1
Try to ping 72.14.207.99 (google.com):
ping 72.14.207.99
If that works well, configure your /etc/resolv.conf:
#
# /etc/resolv.conf
##search <yourdomain.tld>
nameserver 200.250.77.87
nameserver 200.250.77.85# End of file
Finally, try ping google.com:
ping google.com
If that succeeds, all you have to do is configure your /etc/rc.conf accordingly.
DkSoul
Offline
Thanks a lot that worked, ping to google succeeded
I used this
ifconfig eth0 down
ifconfig eth1 192.168.0.2
ping 192.168.0.1
and it responded
then
router add default gw 192.168.0.1
ping www.google.com
its eth1 then, right?
What should I do in rc.conf?
mine is like this can you change what should be changed and reforce it please?
LOCALE="en_US.utf8"
HARDWARECLOCK="localtime"
TIMEZONE="Brazil/East"
KEYMAP="br-abnt"
CONSOLEFONT="default8x16"
USECOLOR="yes"
MOD_AUTOLOAD="yes"
MOD_BLACKLIST=()
MODULES=(forcedeth sc92031 slhc ac97_bus snd-mixer-oss snd-pcm-oss snd-seq-oss snd-seq-device snd-seq-midi-event
snd-seq snd-page-alloc snd-pcm snd-rawmidi snd-timer snd snd-mpu401-uart snd-mpu401 snd-ac97-codec snd-intel8x0
snd-soundcore)
HOSTNAME="myhost"
lo="lo 127.0.0.1"
eth0="eth0 192.168.0.10 netmask 255.255.255.0 broadcast 192.168.0.255"
INTERFACES=(lo eth0)
gateway="default gw 192.168.0.1"
ROUTES=(gateway)
DAEMONS=(syslog-ng network netfs crond)
Last edited by MarinvHs (2007-10-16 22:25:28)
Offline
Glad to hear that.
Here goes the modified /etc/rc.conf:
LOCALE="en_US.utf8"
HARDWARECLOCK="localtime"
TIMEZONE="Brazil/East"
KEYMAP="br-abnt"
CONSOLEFONT="default8x16"
USECOLOR="yes"
MOD_AUTOLOAD="yes"
MOD_BLACKLIST=()MODULES=(forcedeth sc92031 slhc ac97_bus snd-mixer-oss snd-pcm-oss snd-seq-oss snd-seq-device snd-seq-midi-event
snd-seq snd-page-alloc snd-pcm snd-rawmidi snd-timer snd snd-mpu401-uart snd-mpu401 snd-ac97-codec snd-intel8x0
snd-soundcore)HOSTNAME="myhost"
lo="lo 127.0.0.1"
eth0="eth0 192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.255"
eth1="eth1 192.168.0.10 netmask 255.255.255.0 broadcast 192.168.0.255"
INTERFACES=(lo !eth0 eth1)
gateway="default gw 192.168.0.1"
ROUTES=(gateway)
DAEMONS=(syslog-ng network netfs crond)
Don't forget to edit your /etc/hosts:
#
# /etc/hosts: static lookup table for host names
#
#<ip-address> <hostname.domain.org> <hostname>
127.0.0.1 localhost.localdomain localhost
127.0.0.1 myhost.localdomain myhost
# End of file
DkSoul
Last edited by DkSoul (2007-10-16 22:32:13)
Offline