DHCP server with two NICs
I enabled a dhcp server with the following configuration:
subnet 10.0.0.0 netmask 255.0.0.0 { range 10.0.0.10 10.0.0.20; default-lease-time 600; max-lease-time 7200; option routers 10.0.0.1; option domain-name-servers 10.0.0.1; option broadcast-address 10.0.0.255; option ip-forwarding on; host three { hardware ethernet 00:09:6b:64:f6:d0; fixed-address 10.0.0.233; } } while it was starting it gave me that message: No subnet declaration for eth1 (20.0.0.1). ** Ignoring requests on eth1. If this is not what you want, please write a subnet declaration in your dhcpd.conf file for the network segment to which interface eth1 is attached. ** How can i let it know that i have two NICs so it will give addresses according to the subnet i match to each NIC? |
I believe from my attempt in using the DHCP server that declaring another subnet mathing the other nic will work just fine.
dhcpd already knows that you have multiple NICs, the message in the logs indicatest that. lemme know... |
Yep it knows...
It only requires to define the subnets which include the NICs For instance if eth0 is 10.0.0.1 and eth1 is 20.0.0.1 then the subnets definition will be subnet 10.0.0.0 netmask 255.0.0.0 { <all the options and ranges> } subnet 20.0.0.0 netmask 255.0.0.0 { <all the options and ranges> } and all the hosts that connect to the nics will get addresses in that subnet according to the nic. |
All times are GMT -5. The time now is 08:45 PM. |