LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-07-2005, 07:58 PM   #1
korenje
LQ Newbie
 
Registered: Sep 2005
Posts: 4

Rep: Reputation: 0
Dhcpd


Hello...

Why this won't work? I am trying to assign 10.38.111.111 ip to my stb, but
eth1 is 192.168.0/24.
So the question is, how can I do this?

Code:
subnet 192.168.0.0 netmask 255.255.255.0 {
 option broadcast-address 192.168.0.255;
 option routers 192.168.0.1;
 option domain-name-servers 10.253.1.11, 193.189.160.11, 10.253.1.12, 
193.189.160.12;
 option domain-name "the-nox.com";
 option subnet-mask 255.255.255.0;
 allow unknown-clients;
 host amino {
  hardware ethernet 00:02:02:00:32:B2;
  fixed-address 10.38.111.111;
  option domain-name-servers 10.253.1.11, 10.253.1.12;
  option domain-name "the-nox.com";
  option subnet-mask 255.255.0.0;
 }
 range 192.168.0.20 192.168.0.49;
}

Sep  8 02:07:20 skum dhcpd: DHCPREQUEST for 10.38.17.104 (10.254.0.5) from 00:02:02:00:32:b2 via eth1: wrong network.
Sep  8 02:07:20 skum dhcpd: DHCPNAK on 10.38.17.104 to 00:02:02:00:32:b2 via eth1
Sep  8 02:07:20 skum dhcpd: DHCPREQUEST for 10.38.17.104 (10.254.0.5) from 00:02:02:00:32:b2 via eth1: wrong network.
Sep  8 02:07:20 skum dhcpd: DHCPNAK on 10.38.17.104 to 00:02:02:00:32:b2 via eth1
Sep  8 02:07:21 skum dhcpd: DHCPOFFER on 192.168.0.45 to 00:02:02:00:32:b2 via eth1
Sep  8 02:07:21 skum dhcpd: DHCPDISCOVER from 00:02:02:00:32:b2 via eth1
Sep  8 02:07:21 skum dhcpd: DHCPOFFER on 192.168.0.45 to 00:02:02:00:32:b2 via eth1
Sep  8 02:07:21 skum dhcpd: DHCPREQUEST for 192.168.0.45 (192.168.0.1) from 00:02:02:00:32:b2 via eth1
Sep  8 02:07:21 skum dhcpd: DHCPACK on 192.168.0.45 to 00:02:02:00:32:b2 via eth1
 
Old 09-07-2005, 10:29 PM   #2
Half_Elf
LQ Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Rep: Reputation: 46
Is your dhcpcd eth1 interface is on the 10.38.111.x network range as well? If not, the server will refuse to give away the 10.38.111.111 adress, as it is illegal on that interface.
 
Old 09-08-2005, 03:48 AM   #3
sin
LQ Newbie
 
Registered: Jun 2005
Location: UK
Distribution: Slackware
Posts: 28

Rep: Reputation: 15

ddns-update-style ad-hoc;
option domain-name "the-nox.com";
option subnet-mask 255.255.255.0;

shared-network FOO {
subnet 192.168.0.0 netmask 255.255.255.0 {
range 192.168.0.20 192.168.0.49;
option broadcast-address 192.168.0.255;
option routers 192.168.0.1;
option domain-name-servers 10.253.1.11, 193.189.160.11, 10.253.1.12, 193.189.160.12;
}
}

host amino {
hardware ethernet 00:02:02:00:32:B2;
fixed-address 10.38.111.111;
option domain-name-servers 10.253.1.11, 10.253.1.12;
}

when you load the dhcpd specify the ethernet adpater you want it to run on e.g. 'dhcpd eth1'


Last edited by sin; 09-08-2005 at 04:16 AM.
 
Old 09-08-2005, 11:27 AM   #4
korenje
LQ Newbie
 
Registered: Sep 2005
Posts: 4

Original Poster
Rep: Reputation: 0
I had to set another ip for the interface. I had the routes set already, but I guess it wasn't enough.
 
  


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
dhcpd subnet declaration problems in dhcpd.conf vcrispo Linux - Networking 6 07-15-2005 10:32 AM
dhcpd blackzone Linux - Networking 1 12-21-2004 09:41 AM
DHCPD startup failure, mdk 9.2, dhcpd v3.0.1rc11 fuzzyworm Linux - Networking 1 02-14-2004 03:58 AM
Dhcpd??? eXor Linux - Networking 6 10-18-2002 04:17 AM
dhcpd.master or dhcpd.conf rickg Linux - Networking 0 04-11-2002 03:34 PM

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

All times are GMT -5. The time now is 08:00 PM.

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