LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   little help needed (https://www.linuxquestions.org/questions/linux-newbie-8/little-help-needed-150914/)

nifenbak 02-26-2004 05:10 PM

little help needed
 
Hey Guys
I'm a bit new to Linux...well as far as having it here at home goes..I"ve done some configuration work at school...setting up DHCP Samba..dNS,...stuff like that....but I just formatted a box and threw linux 6 on it basically to have a linux system here to mess around with....went out and grabbed a D-link NIC card DFE-538TX to go on the net and i'm having a tuff time getting it all configured....the instructions are a bit much and I was hoping somebody could offer some more basic instgructions...I did a search but didnt really come up with waht I needed.
thanks

bigjohn 02-26-2004 06:21 PM

You'll probably have to be a little more specific i.e. what probs are you having etc etc

Oh, and what's "linux 6" when it's at home ??? Again, you'll have to specify which distro it is, and what's going wrong.

regards

John

p.s. erm, one or two of the mod's might also mention about using subject specific thread titles, that way, you're more likely to get some assistance promptly - lot's of people ignore "generic" titles like "little help needed.

SciYro 02-26-2004 06:27 PM

http://www.dysan.net/linux/howto/@ho...ion-HOWTO.html

mybe that might help

nifenbak 02-26-2004 06:41 PM

Sorry to have confused you
At home means I have a pc at home with Linux installed on it.
My problem is, I want to connect to the internet via a new NIC card I just bought to do so and I am not familiar with setting it up.
My setup is as follows
I have three pc's
1 running windows XP which is what I"m on now
1 running windows 95 for my daughter
and now this Linux box...I run my cable internet through a hub and it splits off to all three pc's....problem I'm having is if Linux wants an IP addy ....do I use the one that my XP machine comes up with in ipconfig?....furthermore...I'm not really sure how to activate the NIC card to actually connect to the internet....
And thanks SciYro...I"ll check that link out and see if it can help...much appreciated

SiriusAB 02-26-2004 07:50 PM

I think he wanted to know what you meant by "Linux 6".

As far as the card goes, what happens when you boot up the Linux box with the NIC installed? Is your network employing a true "hub" or a router? If a router, is DHCP enabled?

What is the result of ifconfig?

BTW, in my travels, D-Link = misery, Linux aside :D.

nifenbak 02-26-2004 08:14 PM

ifconfig returns:

link encap:local loopback
inet addr: 127.0.0.1 mask:255.0.0.0
UP LOOPBACK RUNNING MTU: 16436 Metric.1
RX packets:120 errors:0dropped:0 overruns :0 frame:0
TX packets:120 erros:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueluein: 0
RX bytes:8208 TX bytes:8208


Linux 6 I meant version 6.x

when I boot up it says that there is a problem starting eth 0

SciYro 02-26-2004 09:46 PM

i think what they ment by "what is linux 6" is what distro are you using, or are you refering to the kernel verson (it doesent amtter what verson you got for this tho)

also can ya show us the output up "route" ifconfig and route are the programs used to enable internet conections in linux, i find that "route" is usualy more usful to see why its not working as itll show you what conections there are

nifenbak 02-27-2004 06:14 AM

route returns:
KErnel IP Routing Table
Destination gateway genmask FlagsMetric Ref Use Iface
127.0.0.0 * 255.0.0.0 U 0 0 0 lo

bigjohn 02-27-2004 03:04 PM

erm, yes SciYro was correct, I don't really know if the different distro's need/use different way's of setting things up.

As far as using the system set up's, although my service is a DSL one, it's got a static IP - so I just use the same IP address that my windows install uses(this is because I can - due to dual boot i.e. more than one OS in the same pc), to talk to the hub/router/modem (seperate hub from router modem device). so if nifenbak uses for example, 192.168.0.1 for the gateway connection i.e from the router, to the modem (internally if it's an dual device i.e. modem/router), then the IP for the LAN connection to the gateway would be something like 192.168.0.anything from 2 to 254

But as I'm presuming his system is

pc1--->
pc2--->hub---router/modem (or possibly router--->modem)--->cable service
pc3--->

then I should guess that it's something like pc1, 2 and three, and using for example IP range 10.0.0.x the pc's would be 10.0.0.2 10.0.0.3 and 10.0.0.4 (again presuming a gateway address of 10.0.0.1 with would be the internal IP of either the hub or router/modem). Also bearing in mind that there are a couple of different internal IP ranges(sorry I don't know if they are equipment specific, so my examples are the two that came to mind) - I would have thought that he could see which is used from his windows pc setup.

And I'm then presuming that it would be the modem/router (possibly the hub - I don't use cable) is the device that has to have the dhcp facility set up for dynamic or static IP address - as in the external one.

Sorry if this isn't much help - I'm sort of having to picture it as box diagram's in my head. Hence it may seem a little vague.

regards

John

p.s. My question/comment about the "linux 6" thing is that as SciYro say's, we're all using linux here - the "6" thing would be probably related to whoever produced the distro. And presuming that he's in the US (well anywhere really), I can't recall anyone whose got a current version 6. redhat was at 9? before fedora, SuSE is at 9, Mandrake at 9.2 (+10 beta 2), Debian - well they've got woody, sarge and sid (probably got numbers), erm, gentoo that I'm typing this with is at 1.4 etc etc you get the picture?? version "6" would be quite old (well, I suspect so).

So if he knows what the actual distro name is, then he may also find something pertinent to his problem at the relevant distro forum here at LQ.

OK, I'll go and stand back in "pedant's corner" now :D

nifenbak 02-27-2004 04:58 PM

Thanks BIgJohn..I kinda get the picture as to where youre going...
My set up is fairly simple...cable coming in to a hub and out of the 4 port hub to my XP box to my win 98 box an dnow to the linux box....
On the XP box my IP table is as follows:
Ip 24.150.103.38
subent is 255.255.240.0
default gateway is 24.150.96.1
DHCP 24.226.1.121
DNS 24.226.1.93
24.226.10.93
24.226.1.94
24.226.10.94

NOt sure if this helps or not....after installing the nic card i figured i'd reinstall linux to see if it would recognize the card but it didnt...also got an error message on bootup that eth0 failed....I do know whow to activate that if need be but i would need the ip addy and thats where i'm running into difficulties...not sure what to put in...

t3___ 02-27-2004 05:14 PM

return the d-link card - I hate to break it to you but they are complete crap. go up on ebay and get a 3com 3c905x card (or paypal me $5 and I'll send you one).

some friendly advice too... it you want detailed answers to you questions, give a detailed explanation. GIVE AS MANY DETAILS AS POSSIBLE - it furstrated the hell out of these guys that are trying to help you... many will just ignore you.

good luck!

nifenbak 02-27-2004 06:04 PM

my apologies..I wasnt sure exactly what info to give....

bigjohn 02-27-2004 07:02 PM

Quote:

On the XP box my IP table is as follows:
Ip 24.150.103.38
subent is 255.255.240.0
default gateway is 24.150.96.1
DHCP 24.226.1.121
DNS 24.226.1.93
24.226.10.93
24.226.1.94
24.226.10.94
Now I can't say about the DHCP (I'm not sure how widely it's used here in the UK - I'm sure that someone will tell me!) but, in my case I have a static IP (I'm presuming that your's is dynamic, hence the DHCP facility), but that goes into my modem/router (which only has one port) which in turn plugs to my hub (a clever "splitter"), which plugs to my PC (plus my network printer - but we'll leave that for the moment).

Now, my ISP provides the IP address that terminates at the modem router - inside that, it set's it to the internal LAN ip for the default gateway address, which would be for example the 10.0.0.1 that I mentioned earlier. Now ignoring the fact that I have a seperate hub from the modem router, I would then use an internal IP address that is in the same range as the default gateway for the PC, as that is what the modem router is looking for i.e. I'd use 10.0.0.2 -now as I dual boot, I can use the same IP address for the windows install as well as the Mandrake (I changed it between your answers, because the gentoo I had earlier is considered a "power user" distro - hence, well over my head).

But, because you have more than one pc connected, logic would dictate that you would use 10.0.0.2 10.0.0.3 and 10.0.0.4 (I just find that the sequential numbering makes life a little easier). Also, because I don't run any servers or stuff like that, I use the external IP of my service provider for my DNS

I'm guessing, but what you're refering to as a hub is probably the cable modem with a hub built in (though I could easily be wrong). As the two pairs of IP's are

Quote:

DNS 24.226.1.93
24.226.10.93
24.226.1.94
24.226.10.94
it looks like 1 is your's and 1 is her's. If you see the only difference between the pairs of numbers, is the 3rd number i.e. 1 and 10, I'm guessing that these are main and alternative/secondary.

So if you tried 24.226.1 95 and if your "LAN set up" enables you, also put in 24.226.10.95 you may get what you are after (you may only need the .1.95 number, but you might need both, you also might have to access the "hub" to tell it that the extra plug/access point has been used and what IP you have allocated to it - my router/modem has a web based access).

It looks like your cable comes in, plugs to the modem/router/hub - the numbers look as if the device takes the original IP, then changes that to the default gateway, which in turn is changed to the DHCP IP address which see's the LAN address's - so it sort of works in a similar way to my system.

Now, also, as you haven't identified which distro you're actually using, and getting the impression that you're in the states - it feel's like you're using redhat 6, if so, that's pretty ancient. even if you did manage to connect , you'd probably have a small mountain of updates, security patches and bugfixes to install,and as I haven't got a clue about the various comments in respect of your d-link card (though this thread isn't the only one that i've seen them criticised in) I'm gonna suggest that you get down to your local big computer store, (and if necessary bullshit them that it isn't working) and replace it with either a 3com or something like that (mine is a netgear model) and at the same time, get the most up to date linux distro they have - if they dont stock linux disc's get them off the net.

The cheap ones you see advertised like 5 to 20 $$$'s a set will be burned copy's of the download version (which you could do yourself if you have a cd burner - even with windows). Personally, I have mainly gone for "original boxed set's" (mandrake powerpack's), because they often have a few extra bit's that aren't available in the download version (and as for distro, I'd recommend Mandrake being the easiet for "the newbie", the hardware detection is good, the set up is straight forward, and there's absolutely loads of help here).

Sorry if my post is a little long winded - I've tried to make it as if I'm standing over your shoulder. Id say my recommend is good and my suggestion to get your system connected is best guess.

Hope this helps, if not, sorry to have wasted your time!

regards

John

p.s. Oh, I'd read any documentation for your hub/cable modem device, and see if it has any firewall capability. If any of the IP address are public network one's, most people ***** them out as a security measure, internal ones don't matter too much, they can usually be changed - just a thought!

SiriusAB 02-28-2004 12:05 AM

@ nifenbak:

Please identify the make/model of your networking equipment.

Knowledge of your PC NIC is helpful, but only in informing the question of whether your *Nix box "sees" the hardware. That's what ifconfig was about...to see whether there was anything beyond a loopback interface entry (there wasn't). In one of my unpatched kernels, I get the same output. In my case, there's no driver to identify the NIC to the system.

To determine whether it's a TCP/IP configuration problem, it would extremely helpful to learn whether you're using a DHCP enabled router. That's a *yes* or *no* question. DHCP assigns an IP address to the client, as opposed to being set (usually) by the client. It would possibly render the IP discussion irrelevant, despite being very interesting.

If you answer these questions, we may be able to isolate whether the problem is software-based (drivers) or config-based (IP designation).

Perhaps in contrast to bigjohn (but I don't want to speak for you, john), I speculate that it's the former, especially if you're using Red Hat 6.x, as john thought. But I hate to guess, so, instead, please tell us:

what distro are you using?

Thanks.

nifenbak 02-28-2004 06:50 PM

I'm not 100% sure which distro I'm using....its a copied version from our school that we used in the labs to set up LInux servers...so it is a linux server i'm setting up...I do not go through a router...just a 4 port hub....
If there's a way to tell which version or distro i'm using...let me know and I'll do it....I know i'm using kernel 1-2.4 18-3 if that helps any...


All times are GMT -5. The time now is 07:29 PM.