Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
not work dhcp
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
MaxAir
n00b
n00b


Joined: 07 Feb 2007
Posts: 2

PostPosted: Wed Feb 07, 2007 3:18 pm    Post subject: not work dhcp Reply with quote

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
View user's profile Send private message
xevix
Apprentice
Apprentice


Joined: 02 Oct 2004
Posts: 284
Location: Cali, USA

PostPosted: Wed Feb 07, 2007 8:34 pm    Post subject: Reply with quote

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
View user's profile Send private message
jmbsvicetto
Moderator
Moderator


Joined: 27 Apr 2005
Posts: 4735
Location: Angra do Heroísmo (PT)

PostPosted: Wed Feb 07, 2007 8:37 pm    Post subject: Reply with quote

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
View user's profile Send private message
MaxAir
n00b
n00b


Joined: 07 Feb 2007
Posts: 2

PostPosted: Thu Feb 08, 2007 12:58 pm    Post subject: Reply with quote

it's work :
subnet 10.0.0.0 netmask 255.255.0.0
options subnetmask 255.255.255.0

all thanks
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum