sven falempin <[email protected]> writes:

>>Synopsis:      interface description field disappear when configured
>>Category:      system
>>Environment:
>         System      : OpenBSD 5.5
>         Details     : OpenBSD 5.5-current (GENERIC) #65: Mon Apr 14
> 10:43:19 MDT 2014
>
> [email protected]:/usr/src/sys/arch/amd64/compile/GENERIC
>
>         Architecture: OpenBSD.amd64
>         Machine     : amd64
>>Description:
>         After using ifconfig to set a description on an interface,
> using a ifconfig to configure the interface will remove the
> description.

It is a known (documented) problem, specific to tun(4) when changing
operation mode.  It's not just the interface description that gets
discarded.  No one fixed it yet. ;)

>>How-To-Repeat:
>         ~[130] 11:53:23 -ksh
>         root@bsd-snap-test # ifconfig tun0 create
>         ~[OK] 11:53:30 -ksh
>         root@bsd-snap-test # ifconfig tun0 description "happy easter"
>         ~[OK] 11:53:45 -ksh
>         root@bsd-snap-test # ifconfig tun0
>         tun0: flags=10<POINTOPOINT> mtu 1500
>                 description: happy easter
>                 priority: 0
>                 groups: tun
>                 status: down
>         ~[OK] 11:53:53 -ksh
>         root@bsd-snap-test # ifconfig tun0 link0
>         ~[OK] 11:53:57 -ksh
>         root@bsd-snap-test # ifconfig tun0
>         tun0: flags=9802<BROADCAST,SIMPLEX,LINK0,MULTICAST> mtu 1500
>                 lladdr fe:e1:ba:d1:5b:b9
>                 priority: 0
>                 groups: tun
>                 status: no carrier
>         ~[OK] 11:53:59 -ksh
>         root@bsd-snap-test # ifconfig tun0 link0 description "happy easter"
>         ~[OK] 11:54:08 -ksh
>         root@bsd-snap-test # ifconfig tun0
>         tun0: flags=9802<BROADCAST,SIMPLEX,LINK0,MULTICAST> mtu 1500
>                 lladdr fe:e1:ba:d1:5b:b9
>                 description: happy easter
>                 priority: 0
>                 groups: tun
>                 status: no carrier
>>Fix:
>         just reuse description when configuring : ifconfig tun0 link0
> description "happy easter".

[...]

-- 
jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF  DDCC 0DFA 74AE 1524 E7EE

  • [no subject] sven falempin
    • tun(4) link* reset Jérémie Courrèges-Anglas

Reply via email to