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.
Is there an easy way to set up a DHCP server and configure IP Masquerading when installing Redhat 7.2 in order to share an internet connection with a computer running Windows 98 SE? I know it's possible to do it after installation, but I need to be able to have the network setup and the internet connection shared ASAP after having Redhat installed because the other computer depends on the internet connection from my computer. Thanks in advance for any info.
I know the hard way, its pretty quick, but its a ton of command line stuff...
Go to the RedHat (lack of) knowledge database and look for "simple IP masq iptables". You might try google.com/linux too. You'll eventually find one that's pretty quick and has enough for full Masq and at least a minimum of protection.
Learn IPtables when you have time. I have to stress this... learn IPtables...
Okay, enough security brainwashing, You'll copy that file into /etc/rc.d, calling it something like rc.firewall. Using the text editor of your choice add the line /etc/rc.d/rc.firewall to the end of /etc/rc.d/rc.local This will bring up the firewall, and all the forwarding associated with it at boot.
option time-offset -5; # Eastern Standard Time
# option ntp-servers 192.168.1.1;
# option netbios-name-servers 192.168.1.1;
range dynamic-bootp 192.168.0.10 192.168.0.240;
# default-lease-time 21600;
# max-lease-time 43200;
uncomment out what you need, change it to your LAN's internal setup. I assume you're going by 192.168.0.1 for your RH machine. This one is also cool because it assigns the dynamics to above 192.168.0.10 so that if you drop more linux boxes on the LAN, you give them .2-.9. Change the xxx's to your nameserver's IPs. What are they? cat /etc/resolv.conf
copy that as /etc/dhcpd.conf
to invoke the dhcp daemon (bad pun), /sbin/dhcpd ethX -cf /etc/dhcpd.conf
Actually, if you are using eth0 as your connection to the LAN, just type dhcpd as /sbin should be in root's path, /etc/dhcpd.conf is the default location for the file, and eth0 is assumed as the default card. However, its always best to tell it exactly. You can stick that same thing in rc.local too, above the firewall line would be best.
More or less I just want to play with DHCP and learn to configure and use it as opposed to just manually configuring the NIC's in the different machines. I know it's easier that way, but what's the fun in that? :