Print this page
want to add link-local routes first
*** 82,91 ****
--- 82,101 ----
# 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,228 ****
/usr/sbin/route add $line
done
fi
#
! # Read /etc/inet/static_routes.vmadm and add each 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/sbin/route add $line
done
fi
#
--- 224,238 ----
/usr/sbin/route add $line
done
fi
#
! # 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 | /usr/bin/egrep -v -e "-interface " | while read line; do
/usr/sbin/route add $line
done
fi
#