Project

General

Profile

Actions

Bug #12794

closed

Link-local address does not reset after removing MAC address spoofing

Added by Viktor Gurov about 2 years ago. Updated about 2 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Viktor Gurov
Category:
Interfaces
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:
Plus Target Version:
22.05
Release Notes:
Default
Affected Version:
2.5.2
Affected Architecture:

Description

How to reproduce:
1) Check the link-local address on the interface:

ether 12:4b:e1:60:76:e9
inet6 fe80::104b:e1ff:fe60:76e9%vtnet2 prefixlen 64 scopeid 0x3

2) Enable MAC spoofing (MAC: 00:90:0b:18:ac:ca):
ether 00:90:0b:18:ac:ca
hwaddr 12:4b:e1:60:76:e9
inet6 fe80::290:bff:fe18:acca%vtnet2 prefixlen 64 scopeid 0x3

3) Disable MAC spoofing:
ether 12:4b:e1:60:76:e9
inet6 fe80::290:bff:fe18:acca%vtnet2 prefixlen 64 scopeid 0x3

Link-local address is not updated

Workaround - reboot

it seems "ifdisabled" option should be used in interface_bring_down() and "-ifdisabled" in interface_configure() to re-generate link-local address, see ifconfig(8):

     ifdisabled
         Set a flag    to disable all of IPv6 network communications on the
         specified interface.  Note    that if    there are already configured
         IPv6 addresses on that interface, all of them are marked as
         "tentative" and DAD will be performed when    this flag is cleared.

     -ifdisabled
         Clear a flag ifdisabled.  When this flag is cleared and
         auto_linklocal flag is enabled, automatic configuration of    a
         link-local    address    is performed.

may be related to #12790


Related issues

Related to Bug #12790: Link-Local IPv6 address on WAN with MAC spoofing changes if there is an IP Alias on WANResolvedViktor Gurov

Actions
Actions #1

Updated by Viktor Gurov about 2 years ago

  • Assignee set to Viktor Gurov
Actions #2

Updated by Viktor Gurov about 2 years ago

  • Related to Bug #12790: Link-Local IPv6 address on WAN with MAC spoofing changes if there is an IP Alias on WAN added
Actions #3

Updated by Jim Pingle about 2 years ago

  • Status changed from New to Pull Request Review
  • Target version set to 2.7.0
  • Plus Target Version set to 22.05
Actions #5

Updated by Viktor Gurov about 2 years ago

  • Status changed from Pull Request Review to Feedback
Actions #6

Updated by Viktor Gurov about 2 years ago

  • % Done changed from 0 to 100
Actions #7

Updated by Danilo Zrenjanin about 2 years ago

  • Status changed from Feedback to Resolved

Tested against:

2.7.0-DEVELOPMENT (amd64)
built on Fri Apr 15 06:21:13 UTC 2022
FreeBSD 12.3-STABLE

It works as expected. I am marking this ticket resolved.

Actions

Also available in: Atom PDF