Trích:
Nguyên văn bởi hellonewday
Nếu bạn chắc DNS đúng, bạn gừi file config DHCP nha
|
mình cấp phát IP thành công.chắc mình cấu hình DNS sai gì rồi.để mình up file cấu hình DNS và DHCP lên cho bạn coi nhé.
DNS:
Trích:
acl mynet {
192.168.2.0/24;
};
options {
directory "/var/named";
notify no;
auth-nxdomain yes;
// multiple-cnames yes;
listen-on {
any;
};
// forward first;
// forwarders {203.162.4.1;};
};
zone "giangsan.com" {
type master;
file "giangsan.com.zone";
allow-query {
any;
};
allow-transfer {
none;
};
allow-update {
none;
};
};
zone "2.168.192.in-addr.arpa" {
type master;
file "2.168.192.in-addr.arpa.zone";
allow-query {
any;
};
allow-transfer {
none;
};
allow-update {
none;
};
};
|
DHCP:
Trích:
ddns-update-style interim;
ignore client-updates;
subnet 192.168.2.0 netmask 255.255.255.0 {
# --- default gateway
option routers 192.168.2.100;
option subnet-mask 255.255.255.0;
option nis-domain "giangsan.com";
option domain-name "giangsan.com";
option domain-name-servers 192.168.2.100;
option time-offset -18000; # Eastern Standard Time
# option ntp-servers 192.168.2.100;
# option netbios-name-servers 192.168.2.100;
# --- Selects point-to-point node (default is hybrid). Don't change this unless
# -- you understand Netbios very well
# option netbios-node-type 2;
range dynamic-bootp 192.168.2.101 192.168.2.254;
default-lease-time 21600;
max-lease-time 43200;
# we want the nameserver to appear at a fixed address
host ns {
next-server marvin.redhat.com;
hardware ethernet 12:34:56:78:AB:CD;
fixed-address 207.175.42.254;
}
}
|
máy server có IP là : 192.168.2.100
máy client có IP là :192.168.2.254 (cấp range từ 101-254 mà nó cấp 254 luôn ??)
disable FW,SElinux