Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
compensation for assistance
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
remix
l33t
l33t


Joined: 28 Apr 2004
Posts: 797
Location: hawaii

PostPosted: Mon May 31, 2004 12:39 pm    Post subject: compensation for assistance Reply with quote

this is kind of an emergency, and i'm willing to compensate in any small way to anyone who can help me find the answer to this problem.

i'm unable to reach my own router through my gentoo box.
i used to be able to, and it worked fine when i dhcpcd eth0.
my ethernet module driver is loaded fine.
dhcpcd does not work anymore, it just hangs. then after a long while, it won't show eth0 in ifconfig

#ifconfig eth0 192.168.2.55 broadcast 192.168.2.255 netmask 255.255.255.0 up
lets me see eth0 when i type ifconfig

when i try to ping my router
#ping 192.168.2.1
From 192.168.2.55 icmp_seq=1 Destination Host Unreachable

#route -n
Kernel IP routing table
Designation Gateway Genmask Iface
192.168.2.0 0.0.0.0 255.255.255.0 eth0
127.0.0.1 127.0.0.1 255.0.0.0 lo

#arp -a
? (192.168.2.1) at <incomplete> on eth0


i promised my friend that i would give her 1gb of space on this computer for $100 to help me with my rent, which is due on the first (tommorow). the server was up and running fine for weeks, then i relocated it to the next room, now eth0 won't connect to the router. she's been complaining all day and wants her money back. i have resetted it many times, dhcp is enabled. I'll be homeless in a few days if i can't come through. I am a designer, and if you want, i'll design you anything (personal, not commercial), i don't get paid until middle of june. or i can send you some cash if you prefer. or some space on the server when its up :)
any help is truly appreciated. i'm really desperate.
Back to top
View user's profile Send private message
adaptr
Watchman
Watchman


Joined: 06 Oct 2002
Posts: 6730
Location: Rotterdam, Netherlands

PostPosted: Mon May 31, 2004 12:50 pm    Post subject: Reply with quote

You will need at least
Code:
route add default gw 192.168.2.1

to get your network up at all.

But the missing arp entry suggests a problem with your NIC.

Reset the router and check its dhcp config.

If you can't get dhcp to work you will need at least the following:
- an IP address and netmask
- a default route
- a nameserver or two

As an aside - offering paid network services when you don't actually have a clue how networking works is questionable to say the least ;-)
_________________
>>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen
Back to top
View user's profile Send private message
remix
l33t
l33t


Joined: 28 Apr 2004
Posts: 797
Location: hawaii

PostPosted: Mon May 31, 2004 1:00 pm    Post subject: Reply with quote

how do i check its dhcp config? i know its working by the simple fact that two other computers are on using dhcp through the microsoft router (DAMN MICROSOFT!)

so what would i do with these?
- an IP address and netmask
- a default route
- a nameserver or two

and what would my nameserver be? 192.168.2.1 my router?
or 24.25.227.66 the DNS server that my router connects to.. wait heres my router config
Quote:

WAN setting Dynamic
Broadband connection: Connected
WAN IP address: 66.xx.xx.xxx
Subnet mask: 255.255.248.0
Default gateway: 66.xx.xx.xxx
Primary Domain Name Service (DNS): 24.25.227.66
Secondary DNS: 24.25.227.33



Local Area Network (LAN) settings
Local IP address: 192.168.2.1
Subnet mask: 255.255.255.0
DHCP server: Enabled

DHCP client list
IP address Host name MAC address
192.168.2.95 RemixDT 00-10-18-09-61-17
192.168.2.55 192.168.2.55 00-E0-18-5E-3A-61



and as a side note, my network was pretty solid at the time of my offering, i mean, it worked great, was fast, stable, perfect. but somehow i knew that if i turned it off, i would have to set some settings all over again. so yah, not perfect, but good.
Back to top
View user's profile Send private message
remix
l33t
l33t


Joined: 28 Apr 2004
Posts: 797
Location: hawaii

PostPosted: Mon May 31, 2004 1:02 pm    Post subject: Reply with quote

oh yah, my ethernet adapter is internal, not pci or anything, the only thing i changed from when it was working, then when i shut it down, i removed the cd-rom drive, an AGP vid card, and a PCI video capturing device. i figured i didn't need those and it would be better served on a computer that actually has a monitor.
Back to top
View user's profile Send private message
adaptr
Watchman
Watchman


Joined: 06 Oct 2002
Posts: 6730
Location: Rotterdam, Netherlands

PostPosted: Mon May 31, 2004 6:16 pm    Post subject: Reply with quote

If the AGP card you removed was the only video in the box then it shouldn't even start up!

But to address your concerns:

- you configure the ethernet interface (eth0 in your case) either by hand or with the initscript in /etc/conf.d/net
Just enter the correct info there and you're set.
- you add the nameservers to /etc/resolv.conf; which ones you use hardly matters, as long as they work.
You do know what a nameserver is for?
- the default gateway can also be set in /etc/conf.d/net

This is very very basic network knowledge that you obviously didn't have, after all.

But the router's dhcp client list gives you the answer (or me, actually).
Rremove the .55 entry, because you cannot assign another machine that IP as long as it has the MAC in its arp table.
_________________
>>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen
Back to top
View user's profile Send private message
remix
l33t
l33t


Joined: 28 Apr 2004
Posts: 797
Location: hawaii

PostPosted: Mon May 31, 2004 9:47 pm    Post subject: Reply with quote

yes i agree, it is very basic, and i have gone over them many times before. all the configs seem to be correct, also seeing as how they are the same as when it was functional. also there is an onboard video card that i attached the monitor to.

there is no way in my router settings to remove a dhcp client, besides resetting the router. and again, the .55 entry shows up. i'm thinking its from conf.d/net, if i change that, do you think it will solve the problem? i'm trying it right now.
Back to top
View user's profile Send private message
Chris W
l33t
l33t


Joined: 25 Jun 2002
Posts: 972
Location: Brisbane, Australia

PostPosted: Mon May 31, 2004 10:32 pm    Post subject: Re: compensation for assistance Reply with quote

remix wrote:
i used to be able to, and it worked fine when i dhcpcd eth0.

The quick solution is to move the machine back to where it was and think about what happened under less pressure. What did you change in between? This is likely to be the cause. Is the cable you used in the new location the same as the old?
Quote:
my ethernet module driver is loaded fine.
dhcpcd does not work anymore, it just hangs. then after a long while, it won't show eth0 in ifconfig

So, either there's no network or no DHCP server on it. Have you checked the LINK light on the network card? Is it lit, indicating a valid peer on the other end? If not, then this is the problem. You either have a faulty cable, or faulty hub/router/switch port. You might be using a crossover cable where a straight cable is required.
Quote:
#ifconfig eth0 192.168.2.55 broadcast 192.168.2.255 netmask 255.255.255.0 up
lets me see eth0 when i type ifconfig

Yes, you have manually set the parameters that would often be set by DHCP.
Quote:
when i try to ping my router
#ping 192.168.2.1
From 192.168.2.55 icmp_seq=1 Destination Host Unreachable

This is usually symptomatic of a routing table problem.
Quote:
#route -n
Kernel IP routing table
Designation Gateway Genmask Iface
192.168.2.0 0.0.0.0 255.255.255.0 eth0
127.0.0.1 127.0.0.1 255.0.0.0 lo

Hmm, nothing too out of place here. Without at least one more route you won't see past the router, but you cannot see the router on your local segment. First problem first.
Quote:
#arp -a
? (192.168.2.1) at <incomplete> on eth0
Can't see the other devices on the local network. Not a good sign and a lower level than DHCP. Check your cables etc.

Quote:
i'm really desperate.

Yes, that shows ;-)
_________________
Cheers,
Chris W
"Common sense: The collection of prejudices acquired by age 18." -- Einstein
Back to top
View user's profile Send private message
remix
l33t
l33t


Joined: 28 Apr 2004
Posts: 797
Location: hawaii

PostPosted: Tue Jun 01, 2004 1:06 pm    Post subject: Reply with quote

thank God! :D

i don't know what happened but, is there a difference between straight through and crossover cables? i'm a networking major now, and i failed my first intro to networking, and had to take it over again, where they taught about these kind of situations, and i was on www.addictinggames.com all i rememember is what a straight through and crossover cable looks like, and how to make them, but i don't remember if it matters and how so? i don't think there is a speed differnece, but maybe, do you think that could have been the problem this whole time?

if memory serves from modem to router it should be straight through, and from router to NIC it should be crossover, am i right?

damn i feel stupid, but hey, thanks to everyone who helped me through this, at least i know alot more about networking than i did before this incident, i can troubleshoot a little better and with at least some confidence.
Back to top
View user's profile Send private message
adaptr
Watchman
Watchman


Joined: 06 Oct 2002
Posts: 6730
Location: Rotterdam, Netherlands

PostPosted: Tue Jun 01, 2004 6:53 pm    Post subject: Reply with quote

remix wrote:
thank God! :D

Now, now- let's not be too hasty ;-)

remix wrote:
i don't know what happened but, is there a difference between straight through and crossover cables?

There is.
If a straight cable works then I can guarantee you that a crossover won't.

remix wrote:
i'm a networking major now, and i failed my first intro to networking, and had to take it over again, where they taught about these kind of situations,

I'm not quite sure if I should take this seriously...
If you take networking classes and you don't know the difference between the two - what's the point ?

remix wrote:
and i was on www.addictinggames.com

Relevance ?

remix wrote:
all i rememember is what a straight through and crossover cable looks like,

You do ? They look exactly the same to me.
The connectors are wired differently, but there is absolutely nothing in the cable to distinguish them...

remix wrote:
and how to make them, but i don't remember if it matters and how so?

Oh please - see above.

remix wrote:
i don't think there is a speed differnece,

There isn't; there is a functionality difference, i.e. one works and the other - doesn't.

remix wrote:
but maybe, do you think that could have been the problem this whole time?

I stopped thinking the first time you mentioned this.
It did not occur to you to check whether the LAN light on the NIC was actually ON ?

remix wrote:
if memory serves from modem to router it should be straight through, and from router to NIC it should be crossover, am i right?

No, you are not - which has stopped surprising me to any great amount.
Any passive networking device - a hub or a switch - connects to an active device via a straight cable, but two active or passive devices have to use a crossover.
That means from a switch to a hub or antother switch, or one PC to another.

remix wrote:
damn i feel stupid,

No comment...

remix wrote:
but hey, thanks to everyone who helped me through this, at least i know alot more about networking than i did before this incident, i can troubleshoot a little better and with at least some confidence.


Confidence - now I know you must be joking!

Oh I don't mind, really - I like a good laugh as much as the next guy.
_________________
>>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen
Back to top
View user's profile Send private message
remix
l33t
l33t


Joined: 28 Apr 2004
Posts: 797
Location: hawaii

PostPosted: Wed Jun 02, 2004 12:02 am    Post subject: Reply with quote

the lan light on the NIC was on. i'm not that dense. and yes you can distinguish crossovers and straight throughs just by looking at them. the RJ-45 connectors are clear, you can match the color patterns.
and i'm glad i made you laugh :D
Back to top
View user's profile Send private message
adaptr
Watchman
Watchman


Joined: 06 Oct 2002
Posts: 6730
Location: Rotterdam, Netherlands

PostPosted: Thu Jun 03, 2004 2:46 pm    Post subject: Reply with quote

Oh well, water, bridge, thingy...

That must have been one of my bad days.
_________________
>>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum