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.
The debian way is to edit the /etc/network/interfaces file.
In this file, it may look like:
iface lo inet loopback
iface eth0 inet dhcp
The above defines the loopback and the first ethernet device. It will use dhcp to assign the ip address. If you need a static ipaddress, then try the following for the eth0 device. Changing to an appropriate ip address.
iface eth0 inet static
address 192.168.0.2 <----- change address to reflect your network
netmask 255.255.255.0 <----- once again change appropriately
gateway 192.168.0.1 <----- put in the default gateway here, perhaps router address
If you always have the same IP number it does not means it is static. You could be using DHCP and it just that the server always assigns you the same IP. Try to check that on your Windows configuration (can't help you there, too long since the last time I was on Windows).
Next, I would try to make it work using ifconfig/ifup before editing /etc/network/interfaces. Doing so, you'll learn which is the problem, solve it and then to edit the file will be simple.
Also, since eth1 seems to work fine: Have you tried to use that one to connect to the internet? My guess is that you are using it to share the internet connection, but if not then it wouldn't hurt you to connect thru that one. (At least it may help you to isolate problems.)