Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
If the output of ifconfig indicated that eth0 was already up, and you can ping individual ip addresses (which I assume from your post #9) then it is almost certainly due to either the dns or gateway not being configured, rather than dhcp.
You may need to set the netmask and gateway ips, i.e.
If you have rebooted, you may need to check that eth0 is still up (use ifconfig, as root). If eth0 is up, the default gateway and netmask are set, and you have an ip address, then I would check, carefully, that you do in fact have the correct nameserver listed in /etc/resolve.conf !
eth0 Link encap:Ethernet HWaddr 00:03:0D:0B:76:56
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Rx Pactkets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
RX ytes:0 (0.0 b) TX bytes: (0.0 b)
Interrupt: 3 Base address:0x20000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask 255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
(some more junk) but no ip addresses are listed with ifconfig?
Edit: I was able to assign an ip address to it and ping my router, but i still cant ping yahoo. I tried to change the route agian, but it said host not found.
Edit2: How do you change the gateway?, I was looking under ifconfig --help. I changed the ip like you had above, but i left out ip before the ip address. Maybe im putting things in wrong, not being able to change the gateway.
However this may just be due to distro differences (try ifconfig -a to be sure). Otherwise, you'll probably have to run dhclient to set the ip dynamically. Just a thought, but there is often a gui to set this automatically - you may want to have a poke around to check for something along the lines of Network Card Config on your menu. And yes, I know I derided Gui's earlier on
EDIT: If you can ping your router, then try pinging the ip address (as the number) of, say google. If that's successful, then your dns entries are pretty likely to be wrong (or temporarily down).
i tried that, it didnt work. I figured if i could ping my router i must have part of it right, i just need to tell it to use my router as a gateway. The default ip for my router is 192.168.1.1, thats the one i use as a gateway right, or do i use the ip assigned by the school dhcp server to the router?
Umm, Well i got it to work (you did), i was putting # ifconfig route add default 192.168.1.1 in instead of the other way. Thats awsome! My next project is to get my wireless card to work next. I have already tried ndiswrapper, but i wont bother you with that right now. Thanks for the help, it was greatly appreciated.