Bug 204568 - gif(4) interface remembers configuration after being destroyed
Summary: gif(4) interface remembers configuration after being destroyed
Status: Closed Feedback Timeout
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 10.2-RELEASE
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-net mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-11-15 20:00 UTC by Felicity Tarnell
Modified: 2019-05-16 13:01 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 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`.