On Sun, Aug 03, 2008 at 11:07:42AM +0200, Chris Cohen wrote:
> Hi,
>
> I have a small openbsd router running in my network.
> I have vlan10 (my lan), vlan11 (w-lan) and tun0/1 (openvpn tap devices).
> I bridged them all toghether on bridge0. Only vlan10 has an ip address.
> (10.1.16.1)
> Now I want dhcpd to assign 10.1.16.0/24 on all four interfaces, but it just
> does on vlan10. All i get is Can't listen on vlan11/tap0/tap1. It has no IP
> Address.
> Also.. since all interfaces are bridged, shouldn requests on vlan11 or tun0
> reach vlan10 where dhcpd does listen? They do not...
>
> Here is what I have in dhcpd.conf:
> shared-network LOCAL-NET {
> option domain-name "example.org";
> option domain-name-servers 10.1.32.2;
> option netbios-name-servers 10.1.16.3;
> subnet 10.1.16.0 netmask 255.255.255.0 {
> option routers 10.1.16.1;
>
> range 10.1.16.128 10.1.16.254;
> }
> }
>
> and in dhcp.interfaces:
> vlan10
> vlan11
> tun0
> tun1
>
> is there something special I have to configure?
The file you wanted to create was /etc/dhcpd.interfaces. Note that as
of -current this has been deprecated for dhcpd_flags.
http://www.openbsd.org/faq/current.html#20080607
And just fyi, you should know that dhcpd(8) has never honored
dhcpd_flags or dhcpd.interfaces. Only /etc/rc does at boot. To start
dhcpd manually:
# dhcpd vlan10 vlan11 tun0 tun1
And the respective line in /etc/rc.conf.local:
dhcpd_flags="vlan10 vlan11 tun0 tun1"
--
Jason Dixon
DixonGroup Consulting
http://www.dixongroup.net/