dhcpd configuration problem, i think

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I am trying to set up a Fedora-Linux box to serve as a dhcp server, dns
server, smb server and router for a small LAN. The first thing I am trying
to make work is the dhcp server. This server has two NIC's; eth0 is on the
LAN, eth1 is disconnected now. As I get the parts running I will connect
eth1 to the Internet via the DSL modem.

I installed Fedora Core 2 and have applied all the updates as of today.

On my test network there is a DSL router at 192.168.1.1. It works. If I set
a Windows 2000 client to a static IP in the range 192.168.1. and set the
gateway to the router I can access the Internet.

:::::: On the Fedora box I am trying to make the server:

cat dhcpd.conf----------------------------------------------------------
ddns-update-style interim;
ignore client-updates;
#       ...     Internet side - connects to DSL/Cable modem (disconnected)
subnet 192.168.2.0 netmask 255.255.255.0 { }
#       ...     LAN Side
subnet 192.168.1.0 netmask 255.255.255.0 {
        authoritive;
        option routers                  192.168.1.1;
        option subnet-mask              255.255.255.0;
        option nis-domain               "domain.org";
        option domain-name              "domain.org";
        option domain-name-servers      192.168.1.254, 204.60.7.2,
204.60.0.3;
        option time-offset              -18000;         #EST = GMT -5
        option ntp-servers              time-a.nist.gov;
        option netbios-name-servers     192.168.1.1;
        range                           192.168.1.64 192.168.1.128;
        option broadcast-address        192.168.1.255;
        default-lease-time              86400;
        max-lease-time                  86400;
        option ip-forwarding            off;
}

To try to get started:---------------------------------------------------
[root@homeserver sysconfig]# service iptables status
Firewall is stopped.

IfConfig:-----------------------------------------------------------------
eth0      Link encap:Ethernet  HWaddr 00:50:8B:2F:D0:5B
          inet addr:192.168.1.254  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::250:8bff:fe2f:d05b/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:28004 errors:0 dropped:0 overruns:0 frame:0
          TX packets:20415 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:32906966 (31.3 Mb)  TX bytes:1499943 (1.4 Mb)

eth1      Link encap:Ethernet  HWaddr 00:60:08:AE:C6:F6
          inet addr:192.168.2.1  Bcast:192.168.2.255  Mask:255.255.255.0
          inet6 addr: fe80::260:8ff:feae:c6f6/64 Scope:Link
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:2 carrier:2
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
          Interrupt:11 Base address:0x2080

Route:--------------------------------------------------------------------
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use
Iface
dhcp            *               255.255.255.255 UH    0      0        0 eth0
192.168.2.0     *               255.255.255.0   U     0      0        0 eth1
192.168.1.0     *               255.255.255.0   U     0      0        0 eth0
169.254.0.0     *               255.255.0.0     U     0      0        0 eth1
default         192.168.1.1     0.0.0.0         UG    0      0        0 eth0

:::::: My Windows 2000 box is now setup to get its IP/DNS/Gateway via dhcp.
I try---------------------------------------------------------------------
C:\Documents and Settings\Administrator>ipconfig /renew
Windows 2000 IP Configuration
The following error occurred when renewing adapter Local Area Connection 2:
DHCP
 Server unreachable

:::::: My Windows 2000 box, as configured here, resolves a DHCP server on
another LAN running Win2k server and dhcp

For reference on the Windows 2000 client:---------------------------------
C:\Documents and Settings\Administrator>ping 192.168.1.254
Pinging 192.168.1.254 with 32 bytes of data:
Reply from 192.168.1.254: bytes=32 time=20ms TTL=64
Reply from 192.168.1.254: bytes=32 time=10ms TTL=64
Reply from 192.168.1.254: bytes=32 time<10ms TTL=64
Ping statistics for 192.168.1.254:
    Packets: Sent = 3, Received = 3, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 0ms, Maximum =  20ms, Average =  10ms

The DHCP running session--------------------------------------------------
[root@homeserver etc]# dhcpd -d -f eth0
Internet Systems Consortium DHCP Server V3.0.1rc14
Copyright 2004 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/
Wrote 4 leases to leases file.
Listening on LPF/eth0/00:50:8b:2f:d0:5b/192.168.1.0/24
Sending on   LPF/eth0/00:50:8b:2f:d0:5b/192.168.1.0/24
Sending on   Socket/fallback/fallback-net

:::::: Any direction will be greatly appreicated!

Mike




[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux