From cd752a39f8b0b36378800740c0e5915beabfb56d Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Wed, 15 Aug 2018 21:39:30 +0200 Subject: ipv6 autoconfiguration on ethernet for ip autoconfiguration, setup ipv6 link local addresses and do SLAAC in parallel to DHCP. --- rc/bin/termrc | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'rc/bin/termrc') diff --git a/rc/bin/termrc b/rc/bin/termrc index f160915e6..656b6a77f 100755 --- a/rc/bin/termrc +++ b/rc/bin/termrc @@ -63,9 +63,13 @@ if(test -r /net/ipselftab){ addr=`{cat $ether/addr} switch($addr){ case $addrs - # try /lib/ndb first, then do dhcp - ip/ipconfig -N ether $ether >[2]/dev/null \ - || ip/ipconfig -h $sysname ether $ether + # try /lib/ndb first, then do dhcp/slaac + ip/ipconfig -6 ether $ether + ip/ipconfig -N ether $ether >[2]/dev/null || @{ + ip/ipconfig ether $ether ra6 recvra 1 & + ip/ipconfig -h $sysname ether $ether & + wait + } } } } -- cgit v1.2.3