Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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 continuing/reopening this thread beause it deals with ip routinng file configuration issues...but not mine so far as I can tell, I'm a relative neophyte in networking and linux networking configuration so be gentle.
I'm supporting a Centos machine and I have just been through a configuration effort with my router tech rep. He ascertained that this particular router/machine needed a default gateway set up in the Centos machine. Together we worked out an "ip route add default" command that solves the default gateway problem. However, I need to set up configuration files (ifcfg-eth0?) to contain this info. Yet I cannot find documentation for a default gateway in configuration files. Is it in ifcfg-eth0 or somewhere else? and what would be the format for such a line in the file?
Well, not so good results:
I have been working this machine through a VPN tunnel and using putty to get a text window into the machine. I logged in as root.
First I went to the configuration files directory:
Next I was following instructions in the answer above on this linux forum:
The answer, above, seemed reasonable based on other research I'd done so yesterday I was following the answer to create the route-eth0 file. Starting with:
idefault via 10.10.10.1<esc>
I then needed to save and exit vi so I used ZZ based on this from a vi tutorial (Its been a long time since I've used vi). To quote the tutorial: ?The easiest way to save your changes and exit out of vi is the ZZ command. When you are in command mode, type ZZ and it will do the equivalent of :wq."
Getting out of vi should have written the route-eth0 file with the appropriate default route (according to the answer above). As soon as I typed in ZZ the window froze/system hung and nothing could get into 10.10.10.50 or receive answers to queries. I wonder if I mistyped the content and the file was read by the networking daemon(s) immediately?
Anyway, the system is not reachable and I'll have to go to it and reboot but what to do next? Delete the route-eth0 before rebooting? Where did I go wrong?
but... just saving the route-eth0 file shouldn't have that effect. The new settings would only kick in after a service network restart command or a reboot.
I can't tell about your mentioned ZZ command in vi since I'm not using vi that much, but if it was just saving and closing the file as you wrote it shouldn't have that effect either.
The computer is quite a way away from where my associate and I normally hang out so we try to work via VPN. My associate went to the computer and found a spelling error in the content of the file, fixed it, rebooted but still didn't get it available on the network. Later I went out to the computer, deleted the new file, rebooted and it worked. In fact, curiously, it appeared to have the correct set up that I was trying to accomodate on reboot in the first place. Go figure???