[SOLVED] radvd on vlan prefix size -1, no ipv6 working



  • NEVERMIND, Got it magically working by setting mode to "assisted" instead of "managed". The -1 size keeps the same but works now.

    Hi, i have a problem with radvd.

    I have 3 IPv6 Subnets:

    re0
    xxxx:xxxx:xxxx:1000::1 /64

    re1_vlan5
    xxxx:xxxx:xxxx:2000::1 /64

    re1_vlan15
    xxxx:xxxx:xxxx:3000::1 /64

    Clients on re0 are getting ipv6 with no problems.
    Clients on the vlans are not getting IPv6

    DHCPv6 and radvd are enabled.

    Below you see the log after starting radvd on the console with debug enabled.
    re0 gets the correct prefix size.
    the vlans get a value of -1. This seems incorrect for me.

    Any Ideas?

    radvd console output:

    
     /usr/local/sbin/radvd -p /var/run/radvd.pid -C /var/etc/radvd.conf -m stderr -n -d 3
    [Jun 21 10:23:15] radvd: version 1.9.1 started
    [Jun 21 10:23:15] radvd: mtu for re0 is 1500
    [Jun 21 10:23:15] radvd: link layer token length for re0 is 48
    [Jun 21 10:23:15] radvd: prefix length for re0 is 64
    [Jun 21 10:23:15] radvd: mtu for re1_vlan15 is 1500
    [Jun 21 10:23:15] radvd: link layer token length for re1_vlan15 is 48
    [Jun 21 10:23:15] radvd: prefix length for re1_vlan15 is -1
    [Jun 21 10:23:15] radvd: mtu for re1_vlan5 is 1500
    [Jun 21 10:23:15] radvd: link layer token length for re1_vlan5 is 48
    [Jun 21 10:23:15] radvd: prefix length for re1_vlan5 is -1
    [Jun 21 10:23:15] radvd: sending RA on re1_vlan5
    [Jun 21 10:23:15] radvd: sendmsg: Permission denied
    [Jun 21 10:23:15] radvd: sending RA on re1_vlan15
    [Jun 21 10:23:15] radvd: sending RA on re0
    
    

    radvd.conf

    
    # Automatically Generated, do not edit
    # Generated for DHCPv6 Server lan
    interface re0 {
    	AdvSendAdvert on;
    	MinRtrAdvInterval 5;
    	MaxRtrAdvInterval 20;
    	AdvLinkMTU 1500;
    	AdvDefaultPreference medium;
    	AdvManagedFlag on;
    	AdvOtherConfigFlag on;
    	prefix XXXX:XXXX:XXXX:1000::/64 {
    		DeprecatePrefix on;
    		AdvOnLink on;
    		AdvAutonomous off;
    		AdvRouterAddr on;
    		AdvValidLifetime 86400;
    		AdvPreferredLifetime 14400;
    	};
    	route ::/0 {
    		RemoveRoute on;
    	};
    	RDNSS XXXX:XXXX:XXXX:1000::1 { };
    	DNSSL weltmeyer.local { };
    };
    # Generated for DHCPv6 Server opt5
    interface re1_vlan15 {
    	AdvSendAdvert on;
    	MinRtrAdvInterval 5;
    	MaxRtrAdvInterval 20;
    	AdvLinkMTU 1500;
    	AdvDefaultPreference medium;
    	AdvManagedFlag on;
    	AdvOtherConfigFlag on;
    	prefix XXXX:XXXX:XXXX:2000::/64 {
    		DeprecatePrefix on;
    		AdvOnLink on;
    		AdvAutonomous off;
    		AdvRouterAddr on;
    		AdvValidLifetime 86400;
    		AdvPreferredLifetime 14400;
    	};
    	route ::/0 {
    		RemoveRoute on;
    	};
    	RDNSS XXXX:XXXX:XXXX:2000::1 { };
    	DNSSL weltmeyer.local { };
    };
    # Generated for DHCPv6 Server opt4
    interface re1_vlan5 {
    	AdvSendAdvert on;
    	MinRtrAdvInterval 5;
    	MaxRtrAdvInterval 20;
    	AdvLinkMTU 1500;
    	AdvDefaultPreference medium;
    	AdvManagedFlag on;
    	AdvOtherConfigFlag on;
    	prefix XXXX:XXXX:XXXX:3000::/64 {
    		DeprecatePrefix on;
    		AdvOnLink on;
    		AdvAutonomous off;
    		AdvRouterAddr on;
    		AdvValidLifetime 86400;
    		AdvPreferredLifetime 14400;
    	};
    	route ::/0 {
    		RemoveRoute on;
    	};
    	RDNSS XXXX:XXXX:XXXX:3000::1 { };
    	DNSSL weltmeyer.local { };
    };