[newbie] DHCP...please help

2001-08-08 Per discussione Matt Buckley

Hello.  I am trying to stup/enable a DHCP client on my linux machine.  I am
running LM8.0 right now.
I have a book about setting up an internet server for linux, but all the
examples are based off of RH6.2  I could install that, but I would prefer to
stay w/ LM8.0.  (I have read the debate on ipchains/tables and deffinatly
like the way iptables sound.)

Now, the book shows the following examples of ipmasq, and DHCP, which is all
well and good...if I were using the CDrom from the book.  Can anyone tell me
where the DCHP and ipmasq files are located (by default) on LM8, and the
commands to initialize them?  If they're the same as RH, then I should be
able to get it w/out an example.  I could play around w/ them to figure it
out, but cannot find the DCHP files or ipmasq ones.

The book's example of installing the DCHP rpm file is this:

# rpm -i /mnt/cdrom/RedHat/RPMS/dhcp-2.ob1pl6-6.i386.rpm [enter]

When I installed Linux-mandrake, I selected the option that was for
firewall/router, so I'm pretty sure the DHCP client is already install.  If
it is not, where should I start looking?

-Thanks for all your help, folx.  It has been a great asset.

-Matt





[newbie] Help with IP Tables please.

2001-08-07 Per discussione Matt Buckley

hey folx.  I installed linux mandrake 8.0 a little over a week ago, and just 
not got it working perfectly (for me).  It took a while to figure out all the 
stuff I wanted, and didn't want, then to make it all look nice.  Couldn't 
decide between RH7.1 or LM 8.0.

Anyway, I asked my friend how to enable IP Masquerading, and the command he 
gave me was an ipchains command.  However, ipchains doesn't seem to work w/ 
LM8.0, and I'm pretty sure I need to use a similar command w/ iptables.

I currently have this soon to be server running on a cable modem line, and 
need to route ips to up to 3 more computers.

All computers will be windoze except 1 (not including this server).
From what i've gathered, sharing an internet connection is supposedly easy, 
and a standard thing to do, because it uses TCP/IP.  For now, I don't need to 
use samba because I don't care if the Linux computers can access the network 
neighborhood that M$ uses.  I just need to share the internet connection.

The Linux box i'm using has 2 NICs in it.  (One connected to the cable 
modem[eth0], and one to the LAN[eth1])  The one connected to the cable modem 
is using a DHCP connection, and the one for the LAN, eth1, was assigned a 
static IP of 192.168.1.1.  The windoze computer is set to get an IP 
automaticly, the gateway is set to 192.168.1.1.  Eth1 on the linux box goes 
into the uplink port on the HUB, the windoze computer is connected to port1.

Right now, i'm pretty sure that the linux box just doesn't have IP 
routing/masqing enabled.  Is there a DHCP client I need to install ( think i 
have one on here)? After it's installed, how do I set it up to run?

Any help would be appreciated.

-Matt