2006/11/15, Thomas Schoeller <[EMAIL PROTECTED]>:

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.

Thank you, line "dhcp vlan 4 vlandev em0" works well.

i think if you not request gateway then nothing is changed on your
default route.

dhclient will not change, but netstart doesn't want setup gateway if
interface with dhcp exists. This is gateway related code from
/etc/netstart:

# /etc/mygate, if it exists, contains the name of my gateway host
# that name must be in /etc/hosts.
[[ -z $dhcpif ]] && stripcom /etc/mygate | while read gw; do
               [[ $gw == @(*:*) ]] && continue
               route -qn delete default > /dev/null 2>&1
               route -qn add -host default $gw && break
done

Reply via email to