|
 |
|
 |
11-08-2003, 05:01 PM
|
#1 (permalink)
|
|
Moderator
Join Date: May 2002
Location: us.ca
Posts: 4,470
|
setting up static addresses
hey all,
i just installed debian and i'm not sure what's wrong with the network.
i use a linksys router. i can ping the gateway, but i can not get out.
i did an ipconfig /all on my xp pro box to detect the name servers, and i entered the same nameservers into my resolv.conf
still, i can not ping external addresses.
the /etc/network/interfaces is setup as follows:
Code:
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.1.101
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1
any insight would be greatly appreciated.
thanks!
__________________
Mike
|
|
|
11-08-2003, 06:55 PM
|
#2 (permalink)
|
|
Code Monkey
Join Date: Jan 2003
Posts: 57
|
Do you use dhcp for your windows box? if so then you can set linux up for dhcp.
|
|
|
11-09-2003, 08:15 AM
|
#3 (permalink)
|
|
Moderator
Join Date: May 2002
Location: us.ca
Posts: 4,470
|
i want to set everything up static though.
__________________
Mike
|
|
|
11-09-2003, 09:39 AM
|
#4 (permalink)
|
|
Java fanboy
Join Date: Aug 2003
Posts: 1,148
|
Honestly, it's easier to setup everything though DHCP. Just assign an address to the MAC for the computer in DHCP, and it will act just like a static address, only with central management.
But, assuming you still want to do everything static, I'd guess the problem is in the network translation occuring in the Linksys as opposed to on the Linux box.
|
|
|
11-10-2003, 11:14 AM
|
#5 (permalink)
|
|
Code Monkey
Join Date: Jul 2002
Location: Michigan
Posts: 85
|
Have you tried pinging IP's directly or are you specifically trying to resolve by name?
There is nothing wrong with your config that I can see (though I may be missing something). While I don't think DHCP should make a difference, enable it and see what happens. If it starts magically working then there is something different between your static and DHCP configured addresses.
Is it possible that you have another machine already assigned the .101 IP? What is the IP for your XP box?
__________________
Scott
B4 09 BA 09 01 CD 21 CD 20 53 63 6F 74 74 24
|
|
|
11-11-2003, 04:45 PM
|
#6 (permalink)
|
|
Moderator
Join Date: May 2002
Location: us.ca
Posts: 4,470
|
well it still isn't working for me.
i spent about an hour last night trying dhcp, and messing with my nameservers a bit.
i can ping the xp pro box, and they are in fact on different ips.
could it have to do with my /etc/hosts file?
__________________
Mike
|
|
|
11-12-2003, 06:38 AM
|
#7 (permalink)
|
|
Java fanboy
Join Date: Aug 2003
Posts: 1,148
|
It could, but you don't need to touch it.
Can you ping external IP's, or is it that you can't get to www.google.com?
|
|
|
11-12-2003, 06:54 AM
|
#8 (permalink)
|
|
Moderator
Join Date: May 2002
Location: us.ca
Posts: 4,470
|
no external ips or domain names work.
__________________
Mike
|
|
|
11-12-2003, 09:01 AM
|
#9 (permalink)
|
|
Java fanboy
Join Date: Aug 2003
Posts: 1,148
|
What does your resolve.conf look like? And for that matter, your hosts file
|
|
|
11-12-2003, 09:15 AM
|
#10 (permalink)
|
|
Moderator
Join Date: May 2002
Location: us.ca
Posts: 4,470
|
resolv.conf looks something like this:
Code:
nameserver 24.24.24.24
nameserver 24.24.24.25
and i'll have to copy the hosts file when i get home tonight.
__________________
Mike
|
|
|
11-13-2003, 05:49 PM
|
#11 (permalink)
|
|
Senior Contributor
Join Date: May 2002
Location: vta.ca.usa
Posts: 555
|
From what you're saying, your /etc/resolv.conf or /etc/hosts file don't come into play; they would only help in looking up domain names, not pinging valid IP addresses.
At this point I would check your router config; go to http://192.168.1.1 and check to make sure that you don't have a MAC address filter or something else that would block your .101 address from going outside the router.
|
|
|
11-15-2003, 04:35 PM
|
#12 (permalink)
|
|
Moderator
Join Date: May 2002
Location: us.ca
Posts: 4,470
|
i am stumped! lol .. i got my mac back up and running and it can connect with the ip i was using for the debian box, so i don't think it's in the router.
heh, so lost. think i need a n00b distro.
__________________
Mike
|
|
|
11-15-2003, 06:47 PM
|
#13 (permalink)
|
|
Moderator
Join Date: May 2002
Location: us.ca
Posts: 4,470
|
here is my latest progress ..
when i ping www.codenewbie.com,
it is obviously resolving the ip because the lines after that say:
[shell]# ping www.codenewbie.com
PING www.codenewbie.com(199.236.4.162): 56 data bytes[/shell]and then it just hangs.
__________________
Mike
|
|
|
11-16-2003, 08:21 AM
|
#14 (permalink)
|
|
Code Monkey
Join Date: Jan 2003
Posts: 57
|
have you tried pinging your gateway? to see if you can even reach that?
|
|
|
11-16-2003, 08:37 AM
|
#15 (permalink)
|
|
Moderator
Join Date: May 2002
Location: us.ca
Posts: 4,470
|
yeah i ping the gateway just fine.
things got stranger. i installed Suse, to see if i could get it going last night.
since suse installs x-windows so nicely, it booted up in graphical mode. i open up my browser, and bam, i'm at the suse website.
so i open up the shell, and i got the same results. i can only ping the gateway.
stupid me should of thought earlier to try pinging outside from my xp pro box, which i am not able to do. so there must be a setting in my router not allowing packets to return.
i thought it was Block WAN Request, but apparently i'm wrong.
anyone know the linksys router well?
__________________
Mike
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -8. The time now is 07:57 PM.
|
Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting
|
 |
|