- 论坛徽章:
- 0
|
请教一个关于dhcp的问题
[quote]原帖由 "chendang"]就是搞一个小的培训教室,而且我的ip网段已经写出来了。不是192的[/quote 发表:
If you setup dhcp for training class, it is correct. You sould have a subnet because you only have a router is connected to the internet directly.You can decide your internal IP for your subnet, such as 192.168.1.x. So, your machines on the subnet can go to internet through the router.I give you my dhcpd.con just as an example. It is on Openbsd, but it sould have the same idea. OK? Can you read me?
# $OpenBSD: dhcpd.conf,v 1.1 1998/08/19 04:25:45 form Exp $
#
# DHCP server options.
# See dhcpd.conf(5) and dhcpd( for more information.
#
# Network: 192.168.1.0/255.255.255.0
# Domain name: my.domain
# Name servers: 192.168.1.3 and 192.168.1.5
# Default router: 192.168.1.1
# Addresses: 192.168.1.32 - 192.168.1.127
#
shared-network LOCAL-NET {
option domain-name "my.domain";
option domain-name-servers xxx.xxx.xxx.xxx;
subnet 192.168.1.0 netmask 255.255.255.0 {
option routers 192.168.1.1;
range 192.168.1.32 192.168.1.127;
}
} |
|