summaryrefslogtreecommitdiff
blob: d6ba47a2192df142e6377d0f3128de7bc972702d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- lib/rcscripts/net.modules.d/ifconfig	(revision 276)
+++ lib/rcscripts/net.modules.d/ifconfig	(revision 278)
@@ -278,9 +278,9 @@ ifconfig_post_start() {
 		ebegin "${x}"
 		# Support adding IPv6 addresses easily
 		if [[ ${x} == *:* && ${x} != *'-A inet6'* ]]; then
-			/sbin/route add -A inet6 ${x} &>${devnull}
+			/sbin/route add -A inet6 ${x} dev ${iface} &>${devnull}
 		else
-			/sbin/route add ${x} &>${devnull}
+			/sbin/route add ${x} dev ${iface} &>${devnull}
 		fi
 		eend $?
 	done