you can tell
dhcpd to only listen on
eth0 by specifying at runtime:
the configuration for dhcpd is done in
/etc/dhcpd.conf...
remember that:
DHCPD = dhcp daemon
DHCPCD = dhcp client daemon
DHCPD is what will serve IPs to your LAN... DHCPCD is what will request an IP for eth0 from your ISP's DHCP server...
as for the IPs, it's simple... configure eth0 to use DHCP (how you do this depends on your distro) and make eth1 have a static IP...
Code:
ifconfig eth1 inet 192.168.0.1 netmask 255.255.255.0
of course you should use your NIC's configuration file instead of running ifconfig directly, although the effect is the same if you don't reboot...
to make your box act as a gateway, you need to activate forwarding:
Code:
echo "1" > /proc/sys/net/ipv4/ip_forward
but you should really study iptables before you do any forwarding:
http://iptables-tutorial.frozentux.n...-tutorial.html
read-up on SNAT and
MASQUERADE....
just my
...