Networking Forums

Networking Forums > Computer Networking > Linux Networking > dhcpd and two network interfaces

Reply
Thread Tools Display Modes

dhcpd and two network interfaces

 
 
Andre Nottenkaemper
Guest
Posts: n/a

 
      10-18-2003, 12:15 PM
Hi!
I would like to set up dhcpd to use eth1 and eth2 (eth0 is in use for xdsl)

the config(s) should looks liks this:
#eth1 config
ddns-update-style ad-hoc;
default-lease-time 1200;
max-lease-time 9200;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.1.255;
option routers 192.168.1.1;
option domain-name-servers 192.168.1.1, 1.2.3.4ISPDNSSERVER;
option domain-name "workgroup.local";
option netbios-name-servers 192.168.1.1;
subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.100 192.168.1.199;
}

#eth2 config
ddns-update-style ad-hoc;
default-lease-time 1200;
max-lease-time 9200;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.2.255;
option routers 192.168.2.1;
option domain-name-servers 192.168.2.1, 1.2.3.4ISPDNSSERVER;
option domain-name "workgroup.local";
option netbios-name-servers 192.168.2.1;
subnet 192.168.2.0 netmask 255.255.255.0 {
range 192.168.2.100 192.168.2.199;
}

but i dont know how to set it up properly
i couldnt find anything on google or so either...
has anyone tried to use dhcpd with 2 nics yet? any tutorials, guides or
howtos?
 
Reply With Quote
 
 
 
 
W Cardwell
Guest
Posts: n/a

 
      10-21-2003, 06:55 PM
the best doc I know of is just the man page for dhcpd.conf

Try putting the global options (that are the same for both subnets) first,
and moving your subnet specific options inside the brackets for each subnet:

ddns-update-style
default-lease-time
max-lease-time
etc....

subnet 192.168.1.0 netmask 255.255.255.0 {
option routers 192.168.1.1;
etc...
}

subnet 192.168.2.0 netmask 255.255.255.0 {
option routers 192.168.2.1;
etc...
}



--

wcardwell at nc dot rr dot com


"Andre Nottenkaemper" <(E-Mail Removed)> wrote in message
news:1825ibhas42ks$.1mz7nge9d984t$.(E-Mail Removed). ..
> Hi!
> I would like to set up dhcpd to use eth1 and eth2 (eth0 is in use for

xdsl)
>
> the config(s) should looks liks this:
> #eth1 config
> ddns-update-style ad-hoc;
> default-lease-time 1200;
> max-lease-time 9200;
> option subnet-mask 255.255.255.0;
> option broadcast-address 192.168.1.255;
> option routers 192.168.1.1;
> option domain-name-servers 192.168.1.1, 1.2.3.4ISPDNSSERVER;
> option domain-name "workgroup.local";
> option netbios-name-servers 192.168.1.1;
> subnet 192.168.1.0 netmask 255.255.255.0 {
> range 192.168.1.100 192.168.1.199;
> }
>
> #eth2 config
> ddns-update-style ad-hoc;
> default-lease-time 1200;
> max-lease-time 9200;
> option subnet-mask 255.255.255.0;
> option broadcast-address 192.168.2.255;
> option routers 192.168.2.1;
> option domain-name-servers 192.168.2.1, 1.2.3.4ISPDNSSERVER;
> option domain-name "workgroup.local";
> option netbios-name-servers 192.168.2.1;
> subnet 192.168.2.0 netmask 255.255.255.0 {
> range 192.168.2.100 192.168.2.199;
> }
>
> but i dont know how to set it up properly
> i couldnt find anything on google or so either...
> has anyone tried to use dhcpd with 2 nics yet? any tutorials, guides or
> howtos?



 
Reply With Quote
 
Raqueeb Hassan
Guest
Posts: n/a

 
      10-22-2003, 08:22 PM
thats a real trouble ..... even if you run dhcpd with 2 interfaces ...


#/etc/rc.d/init.d/dhcpd eth1
it will run ....

then ....
#/etc/rc.d/init.d/dhcpd eth2
it will complain that there's another dhcpd running ... there's
something missing/should be done in pid file handling .... i guess.

raqueeb hassan
bunia, DRC
 
Reply With Quote
 
Sachin
Guest
Posts: n/a

 
      10-23-2003, 07:24 AM
Try to make one nic as fixed ip address and make one as dhcp client
that will get the ip address from the the

eg. Make eth0 as dhcp nic that will listen to dhcpd.

and make eth1 will take ip lease from eth0
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
interfaces on network switch Mark Linux Networking 13 12-17-2009 10:11 PM
[/etc/network/interfaces]Syntax somewhere?? universalbitmapper Linux Networking 8 04-25-2006 06:32 AM
how can i bridge 2 network interfaces? Christos Panagiotakis Linux Networking 2 07-20-2004 10:02 AM
nis server with 2 network interfaces IVANYI Ivan Linux Networking 0 07-17-2003 09:01 AM
Help with dhcpd and virtual interfaces noc Linux Networking 1 07-10-2003 04:59 PM



1 2 3 4 5 6 7 8 9 10 11