Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
07-03-2004, 12:07 AM
|
#1
|
LQ Newbie
Registered: Jul 2004
Posts: 7
Rep:
|
Linux network "Not Connected" Need network help
Im a total linux newb... Just installed it today... Seems pretty much like windows. Im using mandrake linux 10, And Im trying to set up my network. I have a 4 port dlink cable ethernet router with 2 windows xp compuers and an xbox, with my new linux computer. I ran the new connection wizards, tried everything on lan, and cable settings, I set my network ip adress to 192.168.0.154, my networks ip range is 192.168.0.0 - 192.168.0.255, and I have all the subnet masks to 255.255.255.0, and my DHCP server on the 2 windows computers are 192.168.0.1, and my gateway is 192.168.0.1 to connect all 3 computers through the router. I set my DNS servers on my linux box to 207.69.188.185 and 207.69.188.185 < The same as my windows DNS Servers.
Im not sure if any of that means anything to this situation, in all the internet settings is says "Not connected"... How do I make it "Connected" ? I plugged it in to the router... the green lights are solid on the pci ethernet card, everything is plugged in, I cannot ping the windows computers, and the windows computers come back with "request timed out."
I thought linux was supposed to be easy to network, you just plug it in and it goes, but I just cant seem to get it working, Can anybody help me?
Last edited by skatardude10; 07-03-2004 at 04:07 AM.
|
|
|
07-03-2004, 12:48 AM
|
#2
|
Member
Registered: Nov 2003
Location: Ohio
Distribution: Debian Unstable
Posts: 460
Rep:
|
you probably want to configure mandrake to use dhcp to get the ip address and dns info for your linux system. i haven't used mandrake in a while, but go back to where you set up the ip address and dns and select dhcp instead.
dhcp is a protocol that routers use to assign ip addresses and other network settings automatically.
to make sure everything is working, open a shell (equivilent of windows command prompt) and type "ifconfig" (roughly equivilent to windows ipconfig). that should list your ip address. and other info.
if that doesn't help, ur network card driver may not be loaded. this is getting complicated. type "lsmod" as root (type "su" and enter the root/administrator password you set up during install to switch to the root user)...that lists the driver modules that are currently being used by the linux kernel. you may need to do a google search to figure out what your network card module would be called. if it is in that list, the driver is loaded. if not, do "modprobe <network driver module name that you found on google>" as root. if that works, you need to add the network card driver name as a new line in "/etc/modules" for the network to start on boot automatically from now on (you need to be root to edit this file, type
su -c "gedit /etc/modules"
good luck.
Last edited by zero79; 07-03-2004 at 01:13 AM.
|
|
|
07-03-2004, 01:56 AM
|
#3
|
LQ Newbie
Registered: Jul 2004
Posts: 7
Original Poster
Rep:
|
Okie, No success. I reset my IP settings, tried the broser, no luck. The shell also does not have the command "ipconfig". I then assumed that my network card was not loaded, and I guess it was not, because I went into the hardware profile, and it had my network card module name as "Fealnx". So I looked in the lsmod, and It was not there. So I "modprobe fealnx"ed. Then I added fealnx to the modules file. I tried browser, no luck. Tried ping 192.168.0.1 "Network unreachable". So I tried ping www.aol.com "unknown host www.aol.com". Quadroople Quadroople check the connections... Check, everything is plugged in. So I restarted my system... tried the browser, no luck, redid the ping, no luck.
Are problems like this common?
Do I need to download any drivers and put them somewhere on my linux box?
Dont have a clue what to do. Please help
Last edited by skatardude10; 07-03-2004 at 04:06 AM.
|
|
|
07-03-2004, 04:08 AM
|
#4
|
LQ Newbie
Registered: Jul 2004
Posts: 7
Original Poster
Rep:
|
still cant figure it out.
|
|
|
07-03-2004, 10:06 AM
|
#5
|
Member
Registered: Nov 2003
Location: Ohio
Distribution: Debian Unstable
Posts: 460
Rep:
|
the interface info command in linux is "ifconfig" (yes that is if, not ip).
this kind of sux, but i don't know what else to tell you. read through these howtos about linux networking (or go to the mandrake site and see if you can find docs on setting up the network properly using the mandrake tools).
http://www.ibiblio.org/pub/Linux/doc...Net-HOWTO.html
i think sections 4,5, and 6 will be helpful
http://www.ibiblio.org/pub/Linux/doc...iew-HOWTO.html
this may not be as helpful, but there is some good info
Last edited by zero79; 07-03-2004 at 10:08 AM.
|
|
|
07-03-2004, 05:15 PM
|
#6
|
LQ Newbie
Registered: Jul 2004
Posts: 7
Original Poster
Rep:
|
Oh my god. Thank you soo much for the first link. It helped alot. I got it working. I just scrolled down the page, looking for some routing config commands, and I found this.
root# ifconfig eth0 192.168.1.10 netmask 255.255.255.0 up
root# route add -net 192.168.1.0 netmask 255.255.255.0 eth0
root# route add default gw 192.168.1.1 eth0
So I added that into the command prompt with the 192.168." 1 ".X taken out, so its like 192.168.0.X and It worked. Im now connected to the internet. Thanks for the help.
|
|
|
07-03-2004, 06:21 PM
|
#7
|
LQ Newbie
Registered: Jul 2004
Posts: 7
Original Poster
Rep:
|
Ok, So I just restarted, how do I add those commands, so they execute every time I restart? So it is always on?
|
|
|
07-03-2004, 09:01 PM
|
#8
|
LQ Newbie
Registered: Jul 2004
Posts: 7
Original Poster
Rep:
|
Command to enter commands
Ok, I decided to google it, and not demand answers from you guys. Here is what I have found. The profile script in the /etc folder boots on startup for any user. Since im trying to transfer to linux, from windows, I am baffled by all this code. I can almost understand it, but am fairly new to code, and scripts too. I could not figure i out. So, I am guessing I have to add my 3 lines of code to etc/profile
Code:
ifconfig eth0 192.168.0.10 netmask 255.255.255.0 up
route add -net 192.168.0.0 netmask 255.255.255.0 eth0
route add default gw 192.168.0.1 eth0
I have the code that I want to input to the startup sequence, And I want to add it to etc/profile. I still cannot find out how to add it? I tried editing it in KWrite, and It says I cannot save cause I dont have access to this file. I know I have to enter it through the terminal/shell. I just cannot find the command to add that code to that particular file under #root.
|
|
|
07-03-2004, 10:18 PM
|
#9
|
LQ Newbie
Registered: Jul 2004
Posts: 7
Original Poster
Rep:
|
Heh... What do you know, I re ran the administer my computer, and re-inputed some info, and badda bing- badda- boom. I restarted to see if it realy took affect, and Under verbose, it did not say eth0 failed, it said eth0 ok. Login, and everything is working great. Thanks for the links, As I read through them, I realy learned alot about networking and linux. Thanks lots.
|
|
|
07-03-2004, 11:03 PM
|
#10
|
Member
Registered: Nov 2003
Location: Ohio
Distribution: Debian Unstable
Posts: 460
Rep:
|
glad i could help.
have fun with ur new os ;-)
when u get a bit more comfortable with the shell, consider switching to debian testing. it's much nicer in terms of getting updates and is known for tight and fast security updates. i have to say that i wish i switched to debian a long time ago. the debian forum here is always very helpful too.
|
|
|
All times are GMT -5. The time now is 01:50 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|