Solved gif_interfaces outdated?

I did get some message at start-up about my IPv6 interface set-up. I am not sure what the message did say, but something in my IPv6 set-up is now outdated and needed to be replaced. I am not sure if it was gif0 or something else. I can't find anything about it in FreeBSD 10.0 Release announcements.

Thanks for the help.
 
Re: gif interface outdated?

This message is displayed after boot message. But is pushed up the screen faster then I can read it.
 
Re: gif interface outdated?

And commands above should "replay" those boot messages. You can eventually add | grep out to filter them for given string.
 
Re: gif interface outdated?

Can you post your /etc/rc.conf? Sanitise the IP addresses if you want. You probably have something like ipv6_enable in there, which has indeed been deprecated.
 
Re: gif interface outdated?

The message is probably something like "gif_interfaces is deprecated". The solution on FreeBSD 10 is to use cloned_interfaces instead. There's a bug in the handling of cloned_interfaces on FreeBSD 10 that I have reported (PR 185080) that causes the gifconfig_gifX settings to be ignored if cloned_interfaces is used. The workaround is to do the config like this:

Code:
cloned_interfaces="gif0"
ifconfig_gif0="tunnel my.ipv4.addr.ess their.ipv4.addr.ess"
ifconfig_gif0_ipv6="inet6 my.ipv6.addr.ess their.ipv6.addr.ess prefixlen 128"
 
Re: gif interface outdated?

I don't think this is an part of the boot message. It at least is not there from the looks of it. But since the message goes past me too quickly I can't read them. I also have just a small monitor at the moment for my FreeBSD server.
 
Re: gif interface outdated?

SirDice said:
Can you post your /etc/rc.conf? Sanitise the IP addresses if you want. You probably have something like ipv6_enable in there, which has indeed been deprecated.

Here is my rc.conf IPv6 set-up. I have removed all public IPs from the copy here.

Code:
ipv6_network_interfaces="bge0"
ipv6_activate_all_interfaces="YES"
ifconfig_bge0_ipv6="inet6 [removed] prefixlen 64"
ipv6_gateway_enable="YES"
radvd_enable="yes"

cloned_interfaces="vlan1 vlan2"
ifconfig_vlan1="inet 192.168.4.1 netmask 255.255.255.0 vlan 1 vlandev bge0"
ifconfig_vlan2="inet 192.168.5.1 netmask 255.255.255.0 vlan 2 vlandev bge0"
ifconfig_vlan2_ipv6="inet6 [removed] prefixlen 64"

gif_interfaces="gif0"
ifconfig_gif0_ipv6="inet6 [removed] [removed] prefixlen 128"
gifconfig_gif0="192.168.1.2 [removed]"
rtadvd_enable="YES"
ipv6_defaultrouter="-iface gif0"

Thanks for the help.
 
Re: gif interface outdated?

jonfr said:
Code:
gif_interfaces="gif0"
ifconfig_gif0_ipv6="inet6 [removed] [removed] prefixlen 128"
gifconfig_gif0="192.168.1.2 [removed]"
Change this to what @kpa said. Add the gif0 to your existing cloned_interfaces line.
 
Last edited by a moderator:
Re: gif interface outdated?

So my IPv6 settings should look something like this?

Code:
cloned_interfaces="gif0 vlan1 vlan2"

Do I comment out this part of my configuration?

Code:
gif_interfaces="gif0"

I always double or triple check my settings before I change them.

Thanks for the help.
 
Re: gif interface outdated?

jonfr said:
So my IPv6 settings should look something like this?

Code:
cloned_interfaces="gif0 vlan1 vlan2"
Yes.

Do I comment out this part of my configuration?

Code:
gif_interfaces="gif0"
Yes, it's not used any more.

Code:
gifconfig_gif0="192.168.1.2 [removed]"
Replace it with this:
Code:
ifconfig_gif0="tunnel 192.168.1.2 2.2.2.2"
Change the IP addresses to suit your configuration.
 
Re: gif interface outdated?

I have changed the configuration and everything is working properly. Thanks for the help.
 
Re: gif interface outdated?

The real syntax must be
Code:
ifconfig_gif0="inet INT_ip1 INT_ip2 netmask 0xffffffff tunnel EXT_IP1 EXT_IP2"
 
Back
Top