View previous topic :: View next topic |
Author |
Message |
MaxAir n00b

Joined: 07 Feb 2007 Posts: 2
|
Posted: Wed Feb 07, 2007 3:18 pm Post subject: not work dhcp |
|
|
Why not work ?? Help me! plz
/etc/init.d/dhcpd start
starting dhcp ...........[!!]
conf.d
Code: |
config_eth0=("192.168.0.10/24 brd 192.168.0.255")
config_eth1=(
"10.0.1.1/24"
"10.0.2.1/24"
}
config_eth2=(
"10.0.11.1/24"
"10.0.12.1/24"
"10.0.6.1/24"
"10.0.7.1/24"
)
routes_eth0=("default via 192.168.0.8")
|
dhcpd.conf
Code: |
default-lease-time 3600;
max-lease-time 7200;
log-facility local7;
ddns-update-style none;
subnet 10.0.11.0 netmask 255.255.255.0 {
range 10.0.11.2 10.0.11.250;
option routers 10.0.11.1;
option subnet-mask 255.255.255.0;
option broadcast-address 10.0.11.255;
option domain-name-servers 10.0.11.1;
authoritative;
host workst_11_01 {
hardware ethernet 00:80:AD:86:36:3A;
fixed-address 10.0.11.2;
}
host workst_11_02 {
hardware ethernet 00:80:AD:86:32:23;
fixed-address 10.0.11.3;
subnet 10.0.12.0 netmask 255.255.255.0 {
range 10.0.12.2 10.0.12.250;
option routers 10.0.12.1;
option subnet-mask 255.255.255.0;
option broadcast-address 10.0.12.255;
option domain-name-servers 10.0.12.1;
authoritative;
host workst_12_01 {
hardware ethernet 00:CC:DD:AA:EE:CC;
fixed-address 10.0.12.2;
}
}
subnet 10.0.6.0 netmask 255.255.255.0 {
range 10.0.6.2 10.0.6.250;
option routers 10.0.6.1;
option subnet-mask 255.255.255.0;
option broadcast-address 10.0.6.255;
option domain-name-servers 10.0.6.1;
authoritative;
host workst_6_01 {
hardware ethernet 00:1D:D5:C0:EE:CC;
fixed-address 10.0.6.2;
}
subnet 10.0.7.0 netmask 255.255.255.0 {
range 10.0.7.2 10.0.7.250;
option routers 10.0.7.1;
option subnet-mask 255.255.255.0;
option broadcast-address 10.0.7.255;
option domain-name-servers 10.0.7.1;
authoritative;
host workst_7_01 {
hardware ethernet 00:01:02:0A:DF:05;
fixed-address 10.0.7.2;
}
host workst_7_02 {
hardware ethernet 00:50:04:09:E0:F6;
fixed-address 10.0.7.3;
subnet 10.0.1.0 netmask 255.255.255.0 {
range 10.0.1.2 10.0.1.250;
option routers 10.0.1.1;
option subnet-mask 255.255.255.0;
option broadcast-address 10.0.1.255;
option domain-name-servers 10.0.1.1;
authoritative;
host workst_1_01 {
hardware ethernet 00:30:56:EA:56:1D;
fixed-address 10.0.1.2;
}
}
subnet 10.0.2.0 netmask 255.255.255.0 {
range 10.0.2.2 10.0.2.250;
option routers 10.0.2.1;
option subnet-mask 255.255.255.0;
option broadcast-address 10.0.2.255;
option domain-name-servers 10.0.2.1;
authoritative;
host workst_2_01 {
hardware ethernet 00:0F:EA:04:03:AD;
fixed-address 10.0.2.2;
}
}
|
|
|
Back to top |
|
 |
xevix Apprentice

Joined: 02 Oct 2004 Posts: 284 Location: Cali, USA
|
Posted: Wed Feb 07, 2007 8:34 pm Post subject: |
|
|
I think your first file was supposed to be /etc/conf.d/net ? Just leave that file blank and it will default to dhcp. Make sure you have dhcpcd installed too, it's difficult without that. _________________ AMD Athlon(tm) 64 X2 Dual Core Processor 4400+ AuthenticAMD GNU/Linux 2x2.2 ghz
nVidia GeForce 8800 GTS 320Mb
250 gb SATA hd
2gb pc-3200 DDR |
|
Back to top |
|
 |
jmbsvicetto Moderator


Joined: 27 Apr 2005 Posts: 4735 Location: Angra do Heroísmo (PT)
|
Posted: Wed Feb 07, 2007 8:37 pm Post subject: |
|
|
Hi.
Do you get any errors on the logs? Take a look at /var/log/messages or /var/log/dhcp* - if the latter exists. _________________ Jorge.
Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
|
|
Back to top |
|
 |
MaxAir n00b

Joined: 07 Feb 2007 Posts: 2
|
Posted: Thu Feb 08, 2007 12:58 pm Post subject: |
|
|
it's work :
subnet 10.0.0.0 netmask 255.255.0.0
options subnetmask 255.255.255.0
all thanks |
|
Back to top |
|
 |
|