Bug #3281
closedIn certain cases, GRE interfaces are missing the "RUNNING" flag at bootup and will not function
100%
Description
Still trying to gather information but this has been directly observed on a customer system.
GRE tunnel configured and an interface assigned, with IP configured. The gre0 interface is marked "UP" at boot time but it does NOT have the "RUNNING" flag. In this state, the GRE tunnel will not accept nor initiate traffic over the tunnel. If you run "ifconfig gre0 up" it will then have the RUNNING flag and function as expected.
So far I have not been able to reproduce this in a VM, but it seems to only affect 2.1 and was not a problem on 2.0.
In the observed problem case, the GRE interface was configured, assigned with an IP set, gateway configured, and the GRE gateway was set as the default gateway. There was a static route set to reach the far-side GRE endpoint via a different local gateway. pf was disabled.
Workaround: Adding a shellcmd to "ifconfig gre0 up" at boot time allows it to function.