Bug 204568

Summary: gif(4) interface remembers configuration after being destroyed
Product: Base System Reporter: Felicity Tarnell <felicity>
Component: kernAssignee: freebsd-net (Nobody) <net>
Status: Closed Feedback Timeout    
Severity: Affects Only Me CC: ae, arrowd, crest
Priority: ---    
Version: 10.2-RELEASE   
Hardware: amd64   
OS: Any   

Description Felicity Tarnell 2015-11-15 20:00:31 UTC
FreeBSD mayflower.choxf.torchbox.net 10.2-RELEASE-p7 FreeBSD 10.2-RELEASE-p7 #5 r290741: Sat Nov 14 16:56:58 GMT 2015     root@mayflower.choxf.torchbox.net:/usr/src/sys/amd64/compile/MAYFLOWER  amd64

    mayflower:/root# ifconfig gif1
    gif1: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> metric 0 mtu 1480
        tunnel inet 78.32.251.196 --> 193.227.244.121
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
    mayflower:/root# ifconfig gif1 destroy
    mayflower:/root# ifconfig gif1
    ifconfig: interface gif1 does not exist
    mayflower:/root# ifconfig gif1 create
    mayflower:/root# ifconfig gif1
    gif1: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> metric 0 mtu 1480
        tunnel inet 78.32.251.196 --> 193.227.244.121
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
    mayflower:/root#
Comment 1 Andrey V. Elsukov freebsd_committer freebsd_triage 2015-11-16 15:38:56 UTC
This is because you have configured it in rc.conf.
Comment 2 crest 2015-11-16 15:57:04 UTC
Creating the gif1 interface triggers a LINK_UP event on /dev/devctl and the default devd configuration reacts to this event by running /etc/rc.d/netif start $interface.  

Please provide the output of `grep gif1 /etc/rc.conf`.