LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-25-2011, 05:52 AM   #1
dale12kk
LQ Newbie
 
Registered: Sep 2011
Posts: 3

Rep: Reputation: Disabled
ISC DHCP - problem assigning static ips


Hello

I have a problem with assigning static ips with the isc-dhcp-server-4.1.1-P1.

There are over 300 host in the network that require static ip.

I have 3 subnet's:

192.168.0.0/23
192.168.2.0/24
10.0.0.0/22

The static ip should be assigned from the first two subnets and the last one should be assigned to everything else.

The problem is that when I add the host declaration to get a static ip the ip is still assigned from the 10.0.0.0/22 subnet

My dhcpd.conf:

Code:
option domain-name-servers 8.8.8.8, 156.17.80.9;

default-lease-time 600;
max-lease-time 7200;

authoritative;

shared-network LAN {
        subnet 192.168.0.0 netmask 255.255.254.0 {
                option routers 192.168.0.1;
        }
        subnet 192.168.2.0 netmask 255.255.255.0 {
                option routers 192.168.2.1;
        }
        subnet 10.0.0.0 netmask 255.255.252.0 {
                range 10.0.0.20 10.0.3.254;
        }

host r_429_n_1 {
         hardware ethernet 00:1e:33:dc:0d:8b;
         fixed-address 192.168.1.168;
}

host r_429_n_2 {
         hardware ethernet 78:ca:39:34:cd:74;
         fixed-address 192.168.0.169;
}
...
interface is configured like this:
Code:
auto eth0
auto eth0:0
iface eth0 inet static
        address 192.168.0.20
        netmask 255.255.254.0
        network 192.168.0.0
        gateway 192.168.0.1
        dns-nameservers 8.8.8.8
iface eth0:0 inet static
        address 10.0.0.1
        netmask 255.255.252.0
Did anyone else have this issue?

/Chris

Last edited by dale12kk; 09-25-2011 at 05:54 AM.
 
Old 09-25-2011, 07:34 AM   #2
dale12kk
LQ Newbie
 
Registered: Sep 2011
Posts: 3

Original Poster
Rep: Reputation: Disabled
I found one more thing.

The problem is only with the subnet 192.168.2.0

If the host has an ip assigned from that subnet it recieves the one from the 10.0.0.0

Tried to add an ip address from that subnet to the server but nothing changed.

Anyone has any idea how to fix this?

Last edited by dale12kk; 09-25-2011 at 07:39 AM.
 
Old 09-25-2011, 07:56 AM   #3
dale12kk
LQ Newbie
 
Registered: Sep 2011
Posts: 3

Original Poster
Rep: Reputation: Disabled
Ok found the solution.

The problem was that I had a typo in the network declaraion in the dhcpd.conf file.

Corrected that and worked fine.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenVPN assigning public & static IPs to pcs/devices behind an OpenVPN client dgonzalezh Linux - Networking 6 07-18-2010 09:50 AM
static IPs from a dhcp router? tramni1980 Slackware 10 07-08-2010 01:32 AM
[SOLVED] Problem on assigning static ip address.. RHEL 5 as guest OS on Virtualbox odessy Linux - Newbie 4 08-28-2009 11:51 AM
Assigning Static IP Problem canuck_barlow Linux - Newbie 5 01-06-2006 02:54 PM
Suse Linux 9.2 ISC DHCP Server Problem mikfig Linux - Networking 2 12-22-2004 11:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:05 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration