Project

General

Profile

Actions

Bug #12794

closed

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

Added by Viktor Gurov almost 3 years ago. Updated over 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

Also available in: Atom PDF