Networking Forums

Networking Forums > Computer Networking > Linux Networking > eth card setting for dhcp server

Reply
Thread Tools Display Modes

eth card setting for dhcp server

 
 
Tommy M
Guest
Posts: n/a

 
      10-24-2004, 03:31 AM
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. The server has two cards one connected to
the net the other to a hub. The dhcp server is also the firewall, so
internet traffic will flow through it. I am not sure what the setting on
the private network card should be. Thanks for any input.
 
Reply With Quote
 
 
 
 
=?iso-8859-1?q?Joachim_M=E6land?=
Guest
Posts: n/a

 
      10-24-2004, 05:02 AM
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

 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can ethernet card get multiple IP from DHCP server ? mojomad@gmail.com Linux Networking 7 09-01-2007 04:44 PM
How to limit DHCP server address assignment to a single network card? Eric Long Windows Networking 3 04-19-2007 03:23 PM
Setting "DNS Suffix for this connection" field via DHCP Server? Jay Windows Networking 1 09-22-2006 08:42 AM
DHCP Server Lease setting lost after restart Danny Windows Networking 2 08-28-2006 08:07 PM
Help: Mandriva 2005: Ethernet card won't get IP address from DHCP server Michael Badt Linux Networking 0 05-08-2005 02:56 PM



1 2 3 4 5 6 7 8 9 10 11