Hi, issue solved...
When there is no dhcp option in any active hostname.if file the /etc/mygate file is read... and the already existing default route is removed. Without /etc/mygate and the following hostname.if configuration it works now... except that the ifconfig priority thing doesn't really work. # cat /etc/hostname.bge0 media autoselect priority 1 up dhcp NONE NONE NONE rtsol # cat /etc/hostname.iwi0 nwid wrap bssid aa:bb:cc:dd:ee:ff nwkey 0x00000000000000000000000000 media autoselect priority 2 up !/sbin/ifconfig ``\$if'' chan >/dev/null 2>&1 dhcp NONE NONE NONE rtsol Michael > Hi, > > I have the problem that, when dhclient is started for my wireless > interface iwi0 from /etc/netstart, no IPv4 default route is created. If > I call "dhclient iwi0" manually it works. > > > # cat /etc/hostname.bge0 > rtsol > media autoselect \ > priority 1 up > !/sbin/dhclient ``\$if'' > > For the wired connection it doesn't matter if I use dhcp or add the > !dhclient command, just trying out different things. Adding the default > route always works here. > > > # cat /etc/hostname.iwi0 > rtsol > media autoselect nwid XXXXXXXX \ > nwkey 0x00000000000000000000 \ > bssid aa:bb:cc:dd:ee:ff:gg \ > priority 2 up > !/sbin/ifconfig ``\$if'' chan >/dev/null 2>&1 > !/sbin/dhclient ``\$if'' > > For iwi0 I need the first ! line so it actually starts the connection to > the access point. Without that line I do not get associated and nothing > happens at all. > > When I add dhcp to the head of the file dhclient complains about no > link... and with the !dhclient line at the bottom I get an IP address > etc, just NO default route (even when I remove the hostname.bge0 file or > pull the cable). As said above, it works if I manually execute dhclient. > > > Any ideas?