Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Feb 2011 16:28:26 -0700
From:      User Red35 <red35@zyni.com>
To:        freebsd-net@freebsd.org
Subject:   rtadvd and carp
Message-ID:  <201102282328.p1SNSQQ7020266@minuit.zyni.com>

next in thread | raw e-mail | index | archive | help

I am getting started with IPv6 and I am trying to get rtadvd working on 
the carp interface but it is not working so far.


### I have carp failover between two firewalls.  The default gateway for
###    hosts internal to the firewall is 172.31.98.103 for IPv4
###    and 2001:470:dead:98::103 for IPv6
    
    # ifconfig carp1
    carp1: flags=49<UP,LOOPBACK,RUNNING> metric 0 mtu 1500
            inet 172.31.98.103 netmask 0xffffffff 
            inet6 2001:470:dead:98::103 prefixlen 64 
            nd6 options=3<PERFORMNUD,ACCEPT_RTADV>
            carp: MASTER vhid 1 advbase 1 advskew 60
    #
    

### rtadvd does not work since carp1 does not have a link local address

    
    # rtadvd -f -D carp1
    rtadvd[13262]: <make_packet> link-layer address option has null length on carp1.  Treat as not included.
    rtadvd[13262]: <ra_timer_update> RA timer on carp1 is set to 16:0
    rtadvd[13262]: <sock_open> IPV6_JOIN_GROUP(link) on carp1: Can't assign requested address
    #
    

### Per RFC 4861 Router advertisements are supposed to use 
###     link-local addresses...  carp does not have one.

    
    ###########################################################################
    ### http://tools.ietf.org/html/rfc4861#page-39
    ###########################################################################
    
        Section 6.1.2
    
            IP Source Address is a link-local address.  Routers must use
            their link-local address as the source for Router Advertisement
            and Redirect messages so that hosts can uniquely identify
            routers.
    
    ###########################################################################
    

Is it possible to manually add the link-local address to a carp interface
via ifconfig (or other utility)?  
    
I assume given the carp MAC 00:00:5e:00:01:01 the link-local address would
look like this?

fe80::200:5eff:fe00:101

Has anyone got anything similar working?

Thanks,
Geoffrey



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201102282328.p1SNSQQ7020266>