This is a discussion on dhcpd and two network interfaces within the Linux Networking forums, part of the Linux Forums category; Hi! I would like to set up dhcpd to use eth1 and eth2 (eth0 is in use for xdsl) the ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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? |
|
|||
|
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" <a@nottenkaemper.com> wrote in message news:1825ibhas42ks$.1mz7nge9d984t$.dlg@40tude.net. .. > 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? |
|
|||
|
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 |