Linux - NetworkingThis 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.
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.
I am a fairly new user to the world of UNIX in general. I have a Red Hat 8.0 server that I have built to give my self an e-mail, name, file server, etc. A friend of mine helped me build it, and did most of the configuration. I am learning more and more every day, but I'm still fairly green. Here's the story:
This server (hostname goliath) runs the e-mail server (sendmail), Samba, and DNS, among others. All the other machines in the house are Windows based. Everythin has been working fine, but yesterday, I rebooted goliath because I was playing with some things, and well, I just decided to reboot it. When it was shutting down and it came to "stopping named", it did NOT say "ok" on the right. It did not say "failed" either, it was just blank. When the system came back up, it DID start named ok. I also notice that when I use the "service named stop" command, it does the same thing as when the machine shuts down, nothing. If I then run "service named start, however, it comes right back up. To tell you the truth, I do not believe it is a problem with DNS, but with something else that integrates with DNS. Everything else on the entire network is running great: e-mail, DHCP, everything. What is happening, however, is that none of my Windows machines have access to the internet. The IP addresses are not being resolved to hostnames. I have checked everything I can think of, and called my buddy, but he doesn't have the time to help out right now. I NEED internet access asap. I do recall that this happened once before when I did a restart, and he came in through SSH, started something, and it worked fine. I do not know what he did, but he said that "whatever it was" (like I said, I can't remember) was not set to start. Do you have any ideas what I might need to do? I'm really stuck without internet access, and I need to get this running. Could anyone please help me? I'd appreciate it. Oh, it would also help if you all treated me like a 5 year old on this one. Step-by-step troubleshooting, commands and all would be infinitely helpful. Thanks you all in advance!
Cheers!
Chris
PS. Obviously, I am on the web now to make this posting. I am on the server directly. That works fine.
How's it going, David?! Damned if you don't just know everything, hehehee. Um, ok. "ipchains -L and "route -n". I'm assuming those are commands I run at the command line? Will they affect my server in any way? I'm kind of paranoid about that, don't want to screw anything up, because I do not yet have a backup! If so, do you just want me to post what their output is, and what do you mean by code brackets? Thanks, if anyone can solve my mystery, I know it's you. How's the weather over there, HA!
Of course, only, the "0" is there. Another question... To be on the web, I am in run level 5. To do the commands you are requesting, I am switching to run level 3, performing the command, then switching back to 5. Anyway to do this all without switching run levels? I no nothing about the Red Hat desktop. Thanks!
Chris
PS. What time is it there? I hope I am not keeping you up!
Ok, that worked! I figured it was something simple, I just don't have the experience yet. Thanks! As stated earlier, I'n getting less dumb every day! HA! Ok, time for you to go to bed, man, hehehee, but when you get up tomorrow, could you answer me one more thing? Obviously, the IP packet forwarding did not start when I rebooted the server, so how would I get this to start at boot time like everything else? Basically, how would I get it so that I do not have to manually run the echo command everytime I decide to reboot my server(which won't be often, granted, but I'd like to know anyway). Thanks
I don't think it wouldn't start. It is more likely a firewall script that disables it so that your server can't be used as a relay.
Try:
cd /etc/init.d
grep ip_forward *
Hopefully that will throw up the name of a script that contains a line like:
echo 0 > /proc/sys/net/ipv4/ip_forward
just change th 0 to a 1
echo 1 > /proc/sys/net/ipv4/ip_forward
Like you say - I'm off to bed - good luck - I'll check back in the morning.
If the grep doesn't return anything leave it running overnight or something with:
grep -r ip_forward /* | less
I found a file called "network" in /etc/init.d that contains all that info and will change it all as soon as I do a little reading to learn fully what that'll do. Thanks again for all your help! See you in cyberspace (and maybe on the links, too)!!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.