Re: dhcpd with shared-network in OpenBSD

2008-06-16 Thread Dongsheng Song
Thanks, although you have some inaccuracy, my test passed base your advice. 1. create vlan export int_if="bnx1" # ifconfig vlan0 destroy ifconfig vlan0 create ifconfig vlan0 vlan 10 vlandev ${int_if} ifconfig vlan1 create ifconfig vlan1 vlan 11 vlandev ${int_if} ... /bin/echo "inet 192.168.0.20

Re: dhcpd with shared-network in OpenBSD

2008-06-16 Thread rivo nurges
On Mon, Jun 16, 2008 at 03:23:40PM +0800, Dongsheng Song wrote: Hi! > Host 00:c0:9f:6b:61:f1 should not get ip 192.168.1.101, should be in > subnet 192.168.4.0/24. > > subnet 192.168.0.0 netmask 255.255.255.0 { > subnet 192.168.1.0 netmask 255.255.255.0 { > subnet 192.168.2.0 netmask

Re: dhcpd with shared-network in OpenBSD

2008-06-16 Thread Dongsheng Song
My network use a switch, split into 10 vlan. >From some document, they said it's ok, but my test failed. 2008/6/16 Jussi Peltola <[EMAIL PROTECTED]>: > If the different subnets are on different physical interfaces, do not use > shared-network - just list the subnets at the top level config. > > I

Re: dhcpd with shared-network in OpenBSD

2008-06-16 Thread Jussi Peltola
If the different subnets are on different physical interfaces, do not use shared-network - just list the subnets at the top level config. If they are on the same subnet, you'll need to list the machines by MAC address or dhcpd can't know which machine you want in which subnet... -- Jussi Peltola