Networking Forums

Networking Forums > Computer Networking > Linux Networking > DHCP server on a Red Had Linux machine

Reply
Thread Tools Display Modes

DHCP server on a Red Had Linux machine

 
 
KAL
Guest
Posts: n/a

 
      12-14-2006, 05:45 PM
Hi,

I have the DHCP setup and working on my Red Hat Linux box. Here is the
initial setup -

subnet 10.10.10.0/24
10.10.10.1 is the option router
dhcp client range is between 10.10.10.15 and 10.10.10.200

This interface has only one NIC and I assigned 10.10.10.16 IP to it. It
was able to hand out DHCP addresses to the clients and all was well.

Later I assigned some VLANs to that NIC on the same machine. Here is
how the output of "ifconfig" command:


eth0 Link encap:Ethernet HWaddr 00:15:C5:4E:C3:36
inet addr:10.10.10.16 Bcast:10.10.10.255 Mask:255.255.255.0
inet6 addr: fe80::215:c5ff:fe4e:c336/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:46 errors:0 dropped:0 overruns:0 frame:0
TX packets:168 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:5616 (5.4 KiB) TX bytes:10752 (10.5 KiB)
Interrupt:193

eth0.2 Link encap:Ethernet HWaddr 00:15:C5:4E:C3:36
inet addr:172.16.84.1 Bcast:172.16.84.255
Mask:255.255.255.0
inet6 addr: fe80::215:c5ff:fe4e:c336/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

eth0.3 Link encap:Ethernet HWaddr 00:15:C5:4E:C3:36
inet addr:172.16.229.1 Bcast:172.16.229.255
Mask:255.255.255.0
inet6 addr: fe80::215:c5ff:fe4e:c336/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:8357 errors:0 dropped:0 overruns:0 frame:0
TX packets:8357 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:4662052 (4.4 MiB) TX bytes:4662052 (4.4 MiB)


As listed "eth0" has the same IP assigned as before. On top of that I
assigned two subinterfaces that belong to 2 different networks.

Since then my DHCP server stopped working. I haven't changed anything
in the dhcpd.conf file except adding two additional lines at the
bottom. Here is the file in its entirity -


dddns-update-style interim;
ignore client-updates;

subnet 10.10.10.0 netmask 255.255.255.0 {

# --- default gateway
option routers 10.10.10.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.1;

# option time-offset -18000;# Eastern Standard Time
# option ntp-servers 192.168.1.1;
# option netbios-name-servers 192.168.1.1;

# --- Selects point-to-point node (default is hybrid). Don't change
this unless
# -- you understand Netbios very well
# option netbios-node-type 2;

range dynamic-bootp 10.10.10.15 10.10.10.200;
default-lease-time 21600;
max-lease-time 43200;


# we want the nameserver to appear at a fixed address
# host ns {
# next-server marvin.redhat.com;
# hardware ethernet 12:34:56:78:AB:CD;
# fixed-address 207.175.42.254;
# }
}


subnet 172.16.229.0 netmask 255.255.255.0 {
}

subnet 172.16.84.0 netmask 255.255.255.0 {
}


Some body please help!

Thanks.

 
Reply With Quote
 
 
 
 
Allen McIntosh
Guest
Posts: n/a

 
      12-15-2006, 12:42 AM
KAL wrote:
> I have the DHCP setup and working on my Red Hat Linux box.
> This interface has only one NIC and I assigned 10.10.10.16 IP to it. It
> was able to hand out DHCP addresses to the clients and all was well.
>
> Later I assigned some VLANs to that NIC on the same machine.
>
> As listed "eth0" has the same IP assigned as before. On top of that I
> assigned two subinterfaces that belong to 2 different networks.
>
> Since then my DHCP server stopped working. I haven't changed anything
> in the dhcpd.conf file except adding two additional lines at the
> bottom.


Is the server running? Try restarting it manually and see if it complains.
 
Reply With Quote
 
KAL
Guest
Posts: n/a

 
      12-15-2006, 03:37 PM
Hi Allen,

The DHCP server starts without any compalints. But it doesn't issue any
IP addresses to the DHCP clients (10.10.10.x) network.

Thanks.

Allen McIntosh wrote:
> KAL wrote:
> > I have the DHCP setup and working on my Red Hat Linux box.
> > This interface has only one NIC and I assigned 10.10.10.16 IP to it. It
> > was able to hand out DHCP addresses to the clients and all was well.
> >
> > Later I assigned some VLANs to that NIC on the same machine.
> >
> > As listed "eth0" has the same IP assigned as before. On top of that I
> > assigned two subinterfaces that belong to 2 different networks.
> >
> > Since then my DHCP server stopped working. I haven't changed anything
> > in the dhcpd.conf file except adding two additional lines at the
> > bottom.

>
> Is the server running? Try restarting it manually and see if it complains.


 
Reply With Quote
 
KAL
Guest
Posts: n/a

 
      12-15-2006, 04:09 PM
Hi Allen,

The server starts without complaints. But it doesn't issue IP addresses
(10.10.10.x network).

Thanks.

Allen McIntosh wrote:
> KAL wrote:
> > I have the DHCP setup and working on my Red Hat Linux box.
> > This interface has only one NIC and I assigned 10.10.10.16 IP to it. It
> > was able to hand out DHCP addresses to the clients and all was well.
> >
> > Later I assigned some VLANs to that NIC on the same machine.
> >
> > As listed "eth0" has the same IP assigned as before. On top of that I
> > assigned two subinterfaces that belong to 2 different networks.
> >
> > Since then my DHCP server stopped working. I haven't changed anything
> > in the dhcpd.conf file except adding two additional lines at the
> > bottom.

>
> Is the server running? Try restarting it manually and see if it complains.


 
Reply With Quote
 
KAL
Guest
Posts: n/a

 
      12-15-2006, 04:13 PM
Hi Allen,

The server starts without complaints. But it doesn't issue IP
addresses.

Thanks.

Allen McIntosh wrote:
> KAL wrote:
> > I have the DHCP setup and working on my Red Hat Linux box.
> > This interface has only one NIC and I assigned 10.10.10.16 IP to it. It
> > was able to hand out DHCP addresses to the clients and all was well.
> >
> > Later I assigned some VLANs to that NIC on the same machine.
> >
> > As listed "eth0" has the same IP assigned as before. On top of that I
> > assigned two subinterfaces that belong to 2 different networks.
> >
> > Since then my DHCP server stopped working. I haven't changed anything
> > in the dhcpd.conf file except adding two additional lines at the
> > bottom.

>
> Is the server running? Try restarting it manually and see if it complains.


 
Reply With Quote
 
Robert
Guest
Posts: n/a

 
      12-16-2006, 05:00 AM
On Thu, 14 Dec 2006 10:45:26 -0800, KAL wrote:

> Hi,
>
> I have the DHCP setup and working on my Red Hat Linux box. Here is the
> initial setup -
>
> subnet 10.10.10.0/24
> 10.10.10.1 is the option router
> dhcp client range is between 10.10.10.15 and 10.10.10.200
>
> This interface has only one NIC and I assigned 10.10.10.16 IP to it. It
> was able to hand out DHCP addresses to the clients and all was well.
>
> Later I assigned some VLANs to that NIC on the same machine. Here is
> how the output of "ifconfig" command:
>
>
> eth0 Link encap:Ethernet HWaddr 00:15:C5:4E:C3:36
> inet addr:10.10.10.16 Bcast:10.10.10.255 Mask:255.255.255.0
> inet6 addr: fe80::215:c5ff:fe4e:c336/64 Scope:Link
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:46 errors:0 dropped:0 overruns:0 frame:0
> TX packets:168 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:1000
> RX bytes:5616 (5.4 KiB) TX bytes:10752 (10.5 KiB)
> Interrupt:193
>
> eth0.2 Link encap:Ethernet HWaddr 00:15:C5:4E:C3:36
> inet addr:172.16.84.1 Bcast:172.16.84.255
> Mask:255.255.255.0
> inet6 addr: fe80::215:c5ff:fe4e:c336/64 Scope:Link
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:0 errors:0 dropped:0 overruns:0 frame:0
> TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:0
> RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
>
> eth0.3 Link encap:Ethernet HWaddr 00:15:C5:4E:C3:36
> inet addr:172.16.229.1 Bcast:172.16.229.255
> Mask:255.255.255.0
> inet6 addr: fe80::215:c5ff:fe4e:c336/64 Scope:Link
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:0 errors:0 dropped:0 overruns:0 frame:0
> TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:0
> RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
>
> lo Link encap:Local Loopback
> inet addr:127.0.0.1 Mask:255.0.0.0
> inet6 addr: ::1/128 Scope:Host
> UP LOOPBACK RUNNING MTU:16436 Metric:1
> RX packets:8357 errors:0 dropped:0 overruns:0 frame:0
> TX packets:8357 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:0
> RX bytes:4662052 (4.4 MiB) TX bytes:4662052 (4.4 MiB)
>
>
> As listed "eth0" has the same IP assigned as before. On top of that I
> assigned two subinterfaces that belong to 2 different networks.
>
> Since then my DHCP server stopped working. I haven't changed anything
> in the dhcpd.conf file except adding two additional lines at the
> bottom. Here is the file in its entirity -


So why did you add these subnets to the config file?

> dddns-update-style interim;
> ignore client-updates;
>
> subnet 10.10.10.0 netmask 255.255.255.0 {
>
> # --- default gateway
> option routers 10.10.10.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.1;


Why aren't you providing a name server to the client?
How do they know to resolve names?

> # option time-offset -18000;# Eastern Standard Time
> # option ntp-servers 192.168.1.1;
> # option netbios-name-servers 192.168.1.1;
>
> # --- Selects point-to-point node (default is hybrid). Don't change
> this unless
> # -- you understand Netbios very well
> # option netbios-node-type 2;
>
> range dynamic-bootp 10.10.10.15 10.10.10.200;


Seeing how your eth0 is 10.10.10.16 you should either exclude this ip
address from your range or change your range altogether so 10.10.10.16
isn't included.

> default-lease-time 21600;
> max-lease-time 43200;
>
>
> # we want the nameserver to appear at a fixed address
> # host ns {
> # next-server marvin.redhat.com;
> # hardware ethernet 12:34:56:78:AB:CD;
> # fixed-address 207.175.42.254;
> # }
> }
>
>
> subnet 172.16.229.0 netmask 255.255.255.0 {
> }
>
> subnet 172.16.84.0 netmask 255.255.255.0 {
> }


Again, why did you add these?


--

Regards
Robert

Smile... it increases your face value!


----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
 
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
router and server on one linux machine, need help. Tamer Higazi Linux Networking 4 11-11-2009 06:12 PM
How to remotely login into a pure IPv6 Linux machine from a DualStack windows machine chaitan Linux Networking 1 11-21-2007 05:37 PM
Simple client/server socket program works on one Linux machine, it doesnot work on other machine GS Linux Networking 2 05-09-2006 12:55 PM
Problem with Linux Machine's Request for Time from an XP Machine W. Watson Linux Networking 68 01-15-2005 10:01 PM
Windows can't see Apache on Linux machine when in one location, can in other. Linux PC can see server in both locations. Agent X Linux Networking 9 07-12-2004 05:17 PM



1 2 3 4 5 6 7 8 9 10 11