Bug 669627

Summary: with use-ipv6=no, avahi should not set IPv6 address
Product: [Fedora] Fedora Reporter: Tim Taiwanese Liim <tim.liim>
Component: avahiAssignee: Lennart Poettering <lpoetter>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 14CC: lpoetter
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-04-02 01:51:43 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Tim Taiwanese Liim 2011-01-14 05:56:36 UTC
Description of problem:
    In a local network with IPv6 router broadcasting "Router
    advertisement" packets, avahi-daemon sets IPv6 address even with
    use-ipv6=no.  If this is expected behavior, please advise a way to
    stop avahi from setting IPv6 address.  If not expected, please fix
    it.

Version-Release number of selected component (if applicable):
    avahi-0.6.27-2.fc14.x86_64

How reproducible:
    always

Steps to Reproduce:
    1. modify /etc/avahi/avahi-daemon.conf "use-ipv6=no"
    2. restart avahi-daemon.
    3. With an IPv6-capable router, on the same network, broadcasting
       IPv6 "Router advertisement" packets periodically.

Actual results:
    avahi-daemon sets IPv6 address upon receiving IPv6 "Router adv." 
    packet.  This was announced in /var/log/messages, eg.
        Jan 14 00:22:56 taiwan avahi-daemon[1339]: Registering new 
            address record for 2005:123:456:789:xxx on eth0.*.

Expected results:
    With use-ipv6=no, avahi-daemon should ignore IPv6 "Router adv." 
    packets.

Additional info:

Comment 1 Tim Taiwanese Liim 2011-01-15 04:24:03 UTC
Workaround:
   disable avahi-daemon, by running system-config-services as root.

Comment 2 Lennart Poettering 2011-04-02 01:51:43 UTC
You may turn this off with setting publish-aaaa-on-ipv4=no in /etc/avahi/avahi-daemon.conf.

See avahi-daemon.conf(5) for details.

Comment 3 Tim Taiwanese Liim 2011-04-02 02:45:58 UTC
Lennart,
Thanks for info!  The name 'publish-aaaa-on-ipv4' does not suggest
anything about setting IPv6 address, but whatever works is good to me.

Comment 4 Lennart Poettering 2011-04-06 17:59:45 UTC
Hmm? "AAAA" refer to IPv6 address records in DNS/mDNS.

Note that Avahi is not involved in IPv6 network configuration. It just listens to changes of it, but doesn't modify anything. If you have trouble with that then Avahi is not the project to file bugs against.