Bug 31366

Summary: rc.network6: Order of operations for ipv6_ifconfig_X_alias# wrong
Product: Base System Reporter: gshapiro+FreeBSD-gnats <gshapiro+FreeBSD-gnats>
Component: confAssignee: Hajimu UMEMOTO <ume>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.4-STABLE   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description gshapiro+FreeBSD-gnats 2001-10-19 08:20:00 UTC
In order to use IPv6 autoconfiguration (i.e., rtsol) as well as additional
IPv6 addresses for an interface (for virtual hosting), I put the following
in /etc/rc.conf:

ipv6_enable="YES"
ipv6_ifconfig_fxp0_alias0="3ffe:0507:018b:0001:d1dc:f7bc:0000:0001"

Since there is no "ipv6_ifconfig_fxp0" setting, the interface will be
autoconfigured.  However, /etc/rc.network6 (in network6_interface_setup())
adds alias entries before calling rtsol.  rtsol doesn't autoconfigure
the the interface address if it already has one.

Fix: I believe the rtsol must be done before the alias processing.  I've tested
this in my setup and it works.
Comment 1 Gregory Neil Shapiro freebsd_committer freebsd_triage 2001-11-20 03:54:32 UTC
Responsible Changed
From-To: freebsd-bugs->ume

This appears to be the person who manages rc.network6.  If not, let me know 
and I'll look at committing the patch myself.
Comment 2 Hajimu UMEMOTO freebsd_committer freebsd_triage 2001-11-20 12:54:37 UTC
State Changed
From-To: open->closed

Thanks!  I just committed it.