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.
I am a student trying to set a static IP for 4 computers in a university laboratory. These computers have been assigned host names (i.e. owl.ceas.wmich.edu) and I need to change the IPs to the static IPs assigned to each of the host names.
I'm having some trouble getting this accomplished, as I have zero experience with this sort of thing. I am using both CentOS 5.5 and Ubuntu 10.04.
The Ubuntu computer has the static IP address: 184.108.40.206
I put question marks next to the lines that I am not sure of. I was given only the new IPs in an email. I got the net mask from
'ifconfig eth0'. I tried to look up the broadcast IP, network ID and gateway online, and this is what I came up with.
The next step is to go to /etc/resolv.conf
I am supposed to change my name server, but I don't know what to change it to.
I'm rather lost in this. Any help would be much appreciated.
Distribution: Ubuntu 10.04 (I'd rather use Gentoo)
Actually, that's almost all right.
The netmask is the code to "cover up" part of your address to determine what constitutes a "local" (no router needed) network block. The network is the specification of that same block, and the broadcast is the inverse of the network. The gateway is the address used to connect to anything that is not on the local network block.
In your case, you have a slight problem in that the gateway is set to a IP address outside of your local network, which consists of all 254 addresses starting with 141.218.148. I'm guessing that might be a typo, but if not, it really ought to either be 220.127.116.11, or you need to modify all the other values to give access to the gateway address.
Note that this is the entire address block assigned to Western Michigan (or at least one of them), so unless the whole campus is running on a single LAN/VLAN, it's probably a suboptimal solution.
Unfortunately, all that I can tell you about your nameserver is what's in the public record for wmich.edu, which lists only one nameserver at 18.104.22.168. This should at least give you access to the rest of the internet and most of the campus machines -- I can't really say if it's the one that you're supposed to use.
So are we, because we don't know fully what you're trying to do. The broadcast line above looks ok, the last 2 you might not need. Beware that red hat (Centos) offers /etc/rc.d/init.d/network as a network connection script which they don't support, and /etc/rc.d/init.d/NetworkManager which they theoretically do support, and each uses different files.
How are you connecting - dhcp? pppoe?
Your provider will supply a dns 1 & 2 for resolv.conf unless you're running your own dns server. If you're going live on the internet, get a serious IT guy to sort the details. It's good to get everything behind a firewall, use NAT, etc. because the internet is a nasty place. My misconfigured router allowed access to port 22 while dhcp had assigned me one particular IP address. My logs began to fill up with hack attempts as scripts tried to log in. My son with a Bsce had a port open also and his vista box was rootkitted :-/.
With the third line for "just in case." And Ryan10 is right, as far as the CentOS machines are concerned. You still need all the right addresses, but if you use netconfig, it will ask you for them and save them in the appropriate places.
Come to think of it, you could the NetworkManager applet for the same thing in Ubuntu, if you have it running. It should be the little icon somewhere in the upper right of the screen that says "Network connection" when you mouse-over. Just click on it, click "Configure" and, again, enter the same data.
I agree with netmar. Fixing the netmask might fix the issue. Are these server headless (no desktop) If you have the gnome desktop you can go to System > Preferences > Network Connections and configure it there with out touching the command line. Easy way out. But your IPs still have to sync up with each other
Here are some definitions of the address to help you understand
IP: The physical IP of the machine
subnet mask: determines the range of your network or class of the network
broadcast: max IP of the network
network: the start of the network.
Gateway: The IP of the machine that the computer connects through
Somebody feel free to correct me if I wrong or make my terms more simple.