One Server, two interfaces
Paul Bertain
paul at bertain.net
Thu Mar 13 16:37:10 UTC 2008
I think my message got messed up in translation!
The DHCPARGS section did not come out right:
DHCPDARGS=dc0 rl0
should have an equals sign then dc then 0 (like below but without
spaces on either side of the equals sign):
DHCPDARGS = dc0 rl0
Paul
On Mar 13, 2008, at 9:23 AM, Paul Bertain wrote:
> Hi Alan,
> dhcpd is not listening on rl0, which is why it is not sending
> responses to that domain.
>
> One solution is to setup a helper-address on the router that services
> the 192.168.1.0/24 network that points to the dc0 address. In Cisco-
> ese:
>
> int vlan<VLAN of 192.168.1.0)
> ip helper-address <ip of dc0>
>
> This would forward DHCP requests for the 192.168.1.0/24 network to the
> dc0 interface. Another alternative is to add the rl0 interface to the
> startup scripts. Depending on your OS, it may be something like this
> (for Fedora):
>
> DHCPDARGSÜ0
>
> and change it to
>
> DHCPDARGSÜ0 rl0
>
> Paul
>
> On Mar 13, 2008, at 7:47 AM, Alan Neville wrote:
>
>> Jeff:
>> Apologies for the delay in getting back to you, but I have attempted
>> adding another scope as suggested to my /usr/local/etc/dhcpd.conf,
>> but to no avail. The following is a copy of my configuration file;
>>
>> #option domain-name "example.com";
>> option domain-name-servers 213.94.190.194, 213.94.190.236;
>> option subnet-mask 255.255.255.0;
>>
>> default-lease-time 3600;
>> max-lease-time 86400;
>> ddns-update-style none;
>>
>> # rl0 (unhealthy)
>> subnet 192.168.1.0 netmask 255.255.255.0 {
>> range 192.168.1.10 192.168.1.200;
>> option routers 192.168.1.1;
>> }
>>
>> # dc0 (healthy)
>> subnet 192.168.100.0 netmask 255.255.255.0 {
>> range 192.168.100.10 192.168.100.200;
>> option routers 192.168.100.1;
>> }
>>
>> When I plug a system into the "healthy" side, i get a .100 address.
>> This is working fine. However, I never get a .1 address when plugged
>> into the "unhealthy" side. I have added teh scope and restarted teh
>> dhcpd service by issuing /usr/local/etc/rc.d/isc-dhcpd restart. The
>> following is a copy of the output;
>>
>> # /usr/local/etc/rc.d/isc-dhcpd restart
>> Stopping dhcpd.
>> Starting dhcpd.
>> Internet Systems Consortium DHCP Server V3.0.5
>> Copyright 2004-2006 Internet Systems Consortium.
>> All rights reserved.
>> For info, please visit http://www.isc.org/sw/dhcp/
>> Wrote 2 leases to leases file.
>> Listening on BPF/dc0/00:04:e2:5c:91:dc/192.168.100/24
>> Sending on BPF/dc0/00:04:e2:5c:91:dc/192.168.100/24
>> Sending on Socket/fallback/fallback-net.
>>
>> I don't see any problems? Any suggestions?
>>
>> Many Thanks,
>>
>> A
>>
>> On 8 Mar 2008, at 04:39, Jeff Sadowski wrote:
>>
>>> yes just add another subnet block you will see dhcpd say the
>>> interfaces it is starting on.
>>> you can start it in a number of ways.
>>>
>>> one way is just to add another scope. another is to have a
>>> completely
>>> different config file and have another instance of dhcpd for each
>>> nic.
>>> If you don't have an address that falls in any of the scopes dhcpd
>>> will complain and tell you
>>>
>>> with a different config file you will need to pass dhcpd the config
>>> file option look in the man page.
>>> There are plenty of examples in the man page
>>>
>>> I think you put the nic at the end of the command line
>>>
>>> On Fri, Mar 7, 2008 at 4:47 PM, Alan Neville
>>> <neville.alan at gmail.com> wrote:
>>>> Jeff:
>>>> I don't quite understand. How does it "figure it out"? Currently, I
>>>> have dhcpd working for one of the interfaces. The following is a
>>>> copy
>>>> of my dhcpd.conf. Should I just add another subnet declaration
>>>> block?
>>>>
>>>> --- snip, snip ---
>>>>
>>>> option domain-name-servers 213.94.190.194, 213.94.190.236;
>>>> option subnet-mask 255.255.255.0;
>>>>
>>>> default-lease-time 3600;
>>>> max-lease-time 86400;
>>>> ddns-update-style none;
>>>>
>>>> # dc0 interface
>>>> subnet 192.168.100.0 netmask 255.255.255.0 {
>>>> range 192.168.100.10 192.168.100.200;
>>>> option routers 192.168.100.1;
>>>> }
>>>>
>>>> --- snip, snip ---
>>>>
>>>> Thanks,
>>>>
>>>> A
>>>>
>>>>
>>>> On 7 Mar 2008, at 21:31, Jeff Sadowski wrote:
>>>>
>>>>> dhcpd figures it out based on the ip addresses assigned to those
>>>>> nodes.
>>>>>
>>>>> On 3/7/08, Alan Neville <neville.alan at gmail.com> wrote:
>>>>>> Hello,
>>>>>>
>>>>>> I'm currently setting up a FreeBSD server for a project which
>>>>>> has two
>>>>>> interfaces (rl0 and dc0) both connected to different VLANs
>>>>>> (192.168.1.0/24 and 192.168.100.0/24, respectively). I have been
>>>>>> reading through the server installation instructions as per the
>>>>>> FreeBSD Handbook (http://www.freebsd.org/doc/en_US.ISO8859-1/
>>>>>> books/
>>>>>> handbook/network-dhcp.html), however, I can't seem to find much
>>>>>> re
>>>>>> configuring the server to hand out 192.168.1.0/24 addresses
>>>>>> through
>>>>>> the rl0 interface and 192.168.100.0/24 through the dc0 from the
>>>>>> one
>>>>>> set up. Could someone provide me with a sample dhcp.conf which
>>>>>> covers
>>>>>> this type of installation?
>>>>>>
>>>>>> Many Thanks,
>>>>>>
>>>>>>
>>>>>>
>>>>>> ---
>>>>>> Alan Neville
>>>>>> alan.neville3 at mail.dcu.ie
>>>>>> CAIS3 / 55626234
>>>>>> ---
>>>>>> "Shúil do bothar, scríobh do scéal.."
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>>
>>>> ---
>>>> Alan Neville
>>>> alan.neville3 at mail.dcu.ie
>>>> CAIS3 / 55626234
>>>> ---
>>>> "Shúil do bothar, scríobh do scéal.."
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>
>>
>>
>>
>>
>> ---
>> Alan Neville
>> alan.neville3 at mail.dcu.ie
>> CAIS3 / 55626234
>> ---
>> "Siúl do bhóthar, scríobh do scéal"
>>
>>
>>
>>
>>
>>
>
>
>
More information about the dhcp-hackers
mailing list