Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums

Go Back   Code Forums > Systems > Linux / BSD / OS X

Reply
 
LinkBack Thread Tools Display Modes
Old 11-08-2003, 05:01 PM   #1 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,489
sde is on a distinguished road
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
sde is offline   Reply With Quote
Old 11-08-2003, 06:55 PM   #2 (permalink)
palin
Code Monkey
 
palin's Avatar
 
Join Date: Jan 2003
Posts: 57
palin is on a distinguished road
Do you use dhcp for your windows box? if so then you can set linux up for dhcp.
palin is offline   Reply With Quote
Old 11-09-2003, 08:15 AM   #3 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,489
sde is on a distinguished road
i want to set everything up static though.
__________________
Mike
sde is offline   Reply With Quote
Old 11-09-2003, 09:39 AM   #4 (permalink)
Belisarius
Java fanboy
 
Belisarius's Avatar
 
Join Date: Aug 2003
Posts: 1,161
Belisarius is on a distinguished road
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.
__________________
GitS
Belisarius is offline   Reply With Quote
Old 11-10-2003, 11:14 AM   #5 (permalink)
sdeming
Code Monkey
 
Join Date: Jul 2002
Location: Michigan
Posts: 85
sdeming is on a distinguished road
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
sdeming is offline   Reply With Quote
Old 11-11-2003, 04:45 PM   #6 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,489
sde is on a distinguished road
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
sde is offline   Reply With Quote
Old 11-12-2003, 06:38 AM   #7 (permalink)
Belisarius
Java fanboy
 
Belisarius's Avatar
 
Join Date: Aug 2003
Posts: 1,161
Belisarius is on a distinguished road
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?
__________________
GitS
Belisarius is offline   Reply With Quote
Old 11-12-2003, 06:54 AM   #8 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,489
sde is on a distinguished road
no external ips or domain names work.
__________________
Mike
sde is offline   Reply With Quote
Old 11-12-2003, 09:01 AM   #9 (permalink)
Belisarius
Java fanboy
 
Belisarius's Avatar
 
Join Date: Aug 2003
Posts: 1,161
Belisarius is on a distinguished road
What does your resolve.conf look like? And for that matter, your hosts file
__________________
GitS
Belisarius is offline   Reply With Quote
Old 11-12-2003, 09:15 AM   #10 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,489
sde is on a distinguished road
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
sde is offline   Reply With Quote
Old 11-13-2003, 05:49 PM   #11 (permalink)
bdl
Senior Contributor
 
Join Date: May 2002
Location: vta.ca.usa
Posts: 555
bdl is on a distinguished road
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.
bdl is offline   Reply With Quote
Old 11-15-2003, 04:35 PM   #12 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,489
sde is on a distinguished road
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
sde is offline   Reply With Quote
Old 11-15-2003, 06:47 PM   #13 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,489
sde is on a distinguished road
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
sde is offline   Reply With Quote
Old 11-16-2003, 08:21 AM   #14 (permalink)
palin
Code Monkey
 
palin's Avatar
 
Join Date: Jan 2003
Posts: 57
palin is on a distinguished road
have you tried pinging your gateway? to see if you can even reach that?
palin is offline   Reply With Quote
Old 11-16-2003, 08:37 AM   #15 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,489
sde is on a distinguished road
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
sde is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting the path for python scripting Intensegutwound All Other Coding Languages 7 11-23-2004 06:32 AM
IP Configuration for Static IP sde Linux / BSD / OS X 4 06-03-2002 05:12 PM


All times are GMT -8. The time now is 08:10 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting