The route command of FreeBSD doesn't accept parameters like "gw", "metric", or "dev" While "dev" can be changed and, maybe, used like -iface I don't think it's gonna work everywhere it is used.
Created attachment 84594 [details, diff] proposed patch for freebsd-baselayout. fixes route commands.
One more, to have net.lo0 start without any error messages (there is one regarding 'route add 127.0.0.0/8'): --- net.lo0.orig 2006-04-13 20:33:24 -0300 +++ net.lo0 2006-04-13 18:27:16 -0300 @@ -732,7 +732,7 @@ if [[ ${iface} == lo* ]] ; then eval metric_${iface}'="0"' eval config_${iface}'=( "127.0.0.1/8 brd 127.255.255.255" "${config_lo[@]}" )' - eval routes_${iface}'=( "127.0.0.0/8" "${routes_lo[@]}" )' + eval routes_${iface}'=( "127.0.0.0/8 -iface lo0" "${routes_lo[@]}" )' fi # We may not have a loaded module for ${iface}
Fixed in CVS, I'm going to release a new freebsd-baselayout now. Thanks for the patches! :)
*** Bug 129602 has been marked as a duplicate of this bug. ***
Created attachment 84740 [details, diff] replaces -iface for -ifp and "route del" for "route delete" My mistake, I misunderstood the "-iface" parameter of FreeBSD's route command. It seems it is not used to choose a specific interface but it is used just to tell route that the address is accesible directly through any iterface. I'm not sure yet but the correct parameters seems to be "-ifp". Also there where a few "route del" commands left, FBSD route uses the full word "delete" I'm not sure what's preferred, to replace del for delete in every command or to replace it in the function route() of the wrapper. But I added the replacement to route() function this time.
Reopened with new attachment.
Committed to SVN.