hk22
asked on
dhcpd.conf
Hi,
I'm maintaining a linux server which servers more than 100 peoples. I'd like to add dhcpd service to all users.
The server has 3 nic, the ip address is:
1. private IP: 109.10.X.X
2. private IP: 192.168.1.1
3. public IP: 202.X.X.X
I'd like to provide the following dhcpd services:
1. dhcpd on 1 and 2 nic, but not on 3.
2. fixed ip for 109.10 network by host name and workgroup name, the host name may be same for different workgroup
3. dynamic ip for 192.168.1, this is for customers' laptop so they can access internet.
I'm new to dhcpd and linux, would you like to give me a sample dhcpd.conf so I do not need to try by myself? or at least a sample for the 3 conditions.
Best Regards
How can I config the dhcpd.conf?
I'm maintaining a linux server which servers more than 100 peoples. I'd like to add dhcpd service to all users.
The server has 3 nic, the ip address is:
1. private IP: 109.10.X.X
2. private IP: 192.168.1.1
3. public IP: 202.X.X.X
I'd like to provide the following dhcpd services:
1. dhcpd on 1 and 2 nic, but not on 3.
2. fixed ip for 109.10 network by host name and workgroup name, the host name may be same for different workgroup
3. dynamic ip for 192.168.1, this is for customers' laptop so they can access internet.
I'm new to dhcpd and linux, would you like to give me a sample dhcpd.conf so I do not need to try by myself? or at least a sample for the 3 conditions.
Best Regards
How can I config the dhcpd.conf?
ASKER
Hi,
Thanks for your comments.
And I'd like to get more from your sample. Can you show me how can I config to asign fixed ip address for hosts that in specified domain?
BR
Thanks for your comments.
And I'd like to get more from your sample. Can you show me how can I config to asign fixed ip address for hosts that in specified domain?
BR
got this from the net. this should assign the IP to a hostname..
> Can I use the following configuration:
>
> host host_name
> {
> client-hostname "host_name";
> fixed-address 206.246.50.2;
> }
No, but you can, in v3, do this:
class "host-name-foo" {
match if option host-name = "foo";
}
pool {
range 206.246.50.2;
allow members of "host-name-foo";
}
> Can I use the following configuration:
>
> host host_name
> {
> client-hostname "host_name";
> fixed-address 206.246.50.2;
> }
No, but you can, in v3, do this:
class "host-name-foo" {
match if option host-name = "foo";
}
pool {
range 206.246.50.2;
allow members of "host-name-foo";
}
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
# Global parameters
server-name "servername.domain.com";
# Interface parameters for private net
subnet 10.0.0.0 netmask 255.0.0.0 {
range 10.0.0.1 10.0.0.254;
default-lease-time 2592000;
max-lease-time 2592000;
option subnet-mask 255.0.0.0;
option broadcast-address 10.255.255.255;
option routers 10.0.0.x;
option domain-name "domain.com";
option domain-name-servers 192.x.x.x, 202.x.x.x, 202.x.x.x;
option netbios-node-type 8;
option netbios-name-servers 10.0.0.x;
}
# Interface parameters for public net
subnet 202.x.x.0 netmask 255.255.255.0 {
option broadcast-address 202.x.x.255;
}
Cheers!