On Wed, Nov 15, 2006 at 09:28:47AM +0500, Igor Goldenberg wrote: > Hello, > > is it possible to start dhcp on vlan interface using only netstart(8) > and hostname.if(5)? Or it's need to write custom commands (e.g. in > rc.local)? yes, you could write dhcp in a hostname.vlanX file and it will geht an ip. but you should also configure vlandev and vlanid in this file. > > Another question. myname(5) says "If any hostname.if(5) files contain > ``dhcp'' directives, IPv4 entries in /etc/mygate will be ignored." But > I need to get only IP & mask by DHCP, not gate. I will "request > subnet-mask, broadcast-address;" so my default gateway will not be > changed anyway. So, if I want to use dhcp for some interface and > static default gw on another one I must use !command syntax in > hostname.if(5) or rc.local? i think if you not request gateway then nothing is changed on your default route.
regards thomas