On Sat, 23 Oct 2004 23:31:25 -0400, Tommy M wrote:
> When setting up a dhcp server for a private network 192.168.foo what
> should the setting on the server ethernet card be. Do I set both the IP
> and the gateway to 192.168.0.1.
Yes...
Your firewall uses it's own gateway. This gateway has nothing to do with
either the LAN behind your firewall, or your dhcpd settings.
When giving out gateway information, your dhcp server should tell clients
that their gateway is the firewall's internal IP address, 192.168.0.1.
Your firewall is the gateway for the clients on your LAN.
From my firewall:
[root@crazy root]# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
80.213.224.0 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 80.213.224.0 0.0.0.0 UG 0 0 0 ppp0
eth0 Link encap:Ethernet HWaddr 48:41:43:4B:45:52
inet addr:192.168.1.254 Bcast:192.168.1.255 Mask:255.255.255.0
From one of my clients:
[root@delta root]# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 wlan0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 192.168.1.254 0.0.0.0 UG 0 0 0 wlan0
--
mvh/regards
Joachim Mæland
If everything seems under control, you're just not going fast enough.
-Mario Andretti
|