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

Re: dhcp and masquerade



Charles Lewis wrote:

OK, here is my dhcpd.conf. (You will notice that I changed my IPs...easier
to remember) I'm using the university's dns servers, until I can get up to
speed to set my own up.

option domain-name "";
option domain-name-servers 205.165.192.254,205.165.193.254;

option subnet-mask 255.255.255.0;
default-lease-time 600;
max-lease-time 7200;

subnet 10.0.0.0 netmask 255.255.255.0 {
 range 10.0.0.4 10.0.0.254;
 option broadcast-address 10.0.0.255;
 option routers 10.0.0.1;
}

As I said: put the host specifications BEFORE the closing bracket for subnet. IOW, remove this } and add it ->


host lewisc2 {
 hardware ethernet 00:01:03:E7:48:1F;
 fixed-address 10.0.0.2;
}

host lewisc3 {
 hardware ethernet 00:00:39:F0:9A:C5;
 fixed-address 10.0.0.3;
}

-> here:
}
This way you say that hosts lewisc2 and 3 are part of the subnet. Thus, the dhcp server knows not to give these addresses to any other interfaces than the ones specified.


For some reason your notes regarding the }'s generated errors. Perhaps I
misunderstood. Anyway, the only error I get now is the following.

socket: Protocol not available - make sure CONFIG_PACKET and CONFIG_FILTER
are defined in your kernel configuration!

These should mostly be enabled... you _need_ them. Try recompiling. I've never heard of this problem, but I hope that solves it.


The weird thing about this, is that my .config has CONFIG_PACKET=y and
CONFIG_FILTER=y. The only thing that I can think of is that perhaps it does
not reflect my current kernel, and I need to recompile. I have a hard time
believing that, but I guess it doesn't cost anything to recompile. Maybe,
I'll go ahead and move to 2.4.18 while I'm at it.

chas

Tell me if you got things working, and good luck!






Reply to: