Date: Tue, 10 Oct 2006 18:49:32 +0200 From: John Hay <jhay@meraka.org.za> To: freebsd-net@freebsd.org Subject: ifconfig tunnel and /etc/network.subr mismatch Message-ID: <20061010164932.GB87412@zibbi.meraka.csir.co.za>
next in thread | raw e-mail | index | archive | help
Hi, While trying to configure a IPv4-over-IPv6 tunnel, I found that the old way of "ifconfig gif0 tunnel inet6 <my_ipv6_addr> <dest_ipv6_addr>" does not work anymore. It gives an unhelpful error message: ###### ifconfig gif0 tunnel fd9c:6829:597c::1 fd9c:6829:597c:9:2c0:dfff:fef7:82eb ifconfig: SIOCSIFPHYADDR: Address family not supported by protocol family ###### You have to swap inet6 and tunnel, so it should look like this "ifconfig gif0 inet6 tunnel <my_ipv6_addr> <dest_ipv6_addr>" The problem with that is that you cannot do that with the current /etc/network.subr and rc.conf scripts because /etc/network.subr do it this way: ###### ifconfig $i create >/dev/null 2>&1 ifconfig $i tunnel ${peers} ifconfig $i up ###### The printfs in ifconfig also still show that one can have the "tunnel inet6" syntax: ###### grep tunnel * | grep printf af_inet.c: printf("\ttunnel inet %s --> %s\n", src, dst); af_inet6.c: printf("\ttunnel inet6 %s --> %s\n", src, dst); ###### PR 97014 also mentioned the problem. So what should we do? Should ifconfig be fixed or should network.subr be fixed? John -- John Hay -- John.Hay@meraka.csir.co.za / jhay@FreeBSD.org
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20061010164932.GB87412>