Print this page
want to add link-local routes first

@@ -82,10 +82,20 @@
 # from a DHCP server.  Our policy is to always trust DHCP over local
 # administration.
 #
 smf_netstrategy
 
+#
+# Read /etc/inet/static_routes.vmadm and add each route.
+#
+if [ -f /etc/inet/static_routes.vmadm ]; then
+        echo "Adding vmadm persistent link-local routes:"
+        /usr/bin/egrep -v "^(#|$)"  /etc/inet/static_routes.vmadm | /usr/bin/egrep -e "-interface " | while read line; do
+                /usr/sbin/route add $line
+        done
+fi
+
 if [ "$_INIT_NET_STRATEGY" = "dhcp" ] && \
     [ -n "`/sbin/dhcpinfo Router`" ]; then
         defrouters=`/sbin/dhcpinfo Router`
 elif [ -f /etc/defaultrouter ]; then
         defrouters=`/usr/bin/grep -v \^\# /etc/defaultrouter | \

@@ -214,15 +224,15 @@
                 /usr/sbin/route add $line
         done
 fi
 
 #
-# Read /etc/inet/static_routes.vmadm and add each route.
+# Read /etc/inet/static_routes.vmadm and add each non-link-local route.
 #
 if [ -f /etc/inet/static_routes.vmadm ]; then
         echo "Adding vmadm persistent routes:"
-        /usr/bin/egrep -v "^(#|$)" /etc/inet/static_routes.vmadm | while read line; do
+        /usr/bin/egrep -v "^(#|$)" /etc/inet/static_routes.vmadm | /usr/bin/egrep -v -e "-interface " | while read line; do
                 /usr/sbin/route add $line
         done
 fi
 
 #