Skip to Content.
Sympa Menu

perfsonar-user - Re: [perfsonar-user] mod_interface_route ipv6 issues

Subject: perfSONAR User Q&A and Other Discussion

List archive

Re: [perfsonar-user] mod_interface_route ipv6 issues


Chronological Thread 
  • From: Aaron Brown <>
  • To: David Koski <>
  • Cc: Casey Russell <>, "" <>
  • Subject: Re: [perfsonar-user] mod_interface_route ipv6 issues
  • Date: Fri, 6 Feb 2015 16:30:46 +0000
  • Accept-language: en-US
  • Authentication-results: umich.edu; dkim=none (message not signed) header.d=none;

Hey David,

Thanks for this. I’ve committed the fixes.

Cheers,
Aaron

On Feb 3, 2015, at 7:58 AM, David Koski <> wrote:

There's actually 2 typos in the same if statement....

 if ($parameters->{ipv6_address}) {
        foreach my $addr (@{ $parameters->{ipv6_addresses} }) {
            unless (system("ip", "-6", "rule", "add", "prio", "200", "from", $parameters->{ipv4_address}, "lookup", $parameters->{table}) == 0) {
                print "Problem setting up ipv6 address rule\n";
                return;
            }
        }
    } 

should read

if ($parameters->{ipv6_addresses}) {
        foreach my $addr (@{ $parameters->{ipv6_addresses} }) {
            unless (system("ip", "-6", "rule", "add", "prio", "200", "from", $addr,  "lookup", $parameters->{table}) == 0) {
                print "Problem setting up ipv6 address rule\n";
                return;
            }
        }
    } 


Note the ipv6_addresses (instead of ipv6_address) in the first line and $addr (instead of $parameters->{ip4_address}) in the this line.

This seems to setup the rule list correctly after making these changes.

        Dave




------------

David Koski

ITS ISO Communications Systems and Data Centers Operations

734-647-8993 (Office)                                                                                     734-678-5824 (Mobile)
<image001.png>





On Mon, Feb 2, 2015 at 3:35 PM, Casey Russell <> wrote:
David,

     Thank you for posting.  I don't have any help to offer, but I can confirm I see the same problem on 3 different multi-interface systems now. 

     I posted my question about a week ago, and then thought I'd fixed the problem.  However when I moved to my next box, I ran into the same problem again (this script refusing to set up IPv6 routes) and have been mired down with it ever since.  I was about to post to the list again.  It's good to see I'm not alone.

Casey Russell
Network Engineer
Kansas Research and Education Network
2029 Becker Drive, Suite 282
Lawrence, KS  66047

On Mon, Feb 2, 2015 at 2:27 PM, David Koski <> wrote:
I'm in the process of setting up ipv6 on a multi-interface system.  Seems I'm having issues getting any ipv6 route lists.

The first thing I noticed starting around line 197 in the script:

    if ($parameters->{ipv6_address}) {
        foreach my $addr (@{ $parameters->{ipv6_addresses} }) {
            unless (system("ip", "-6", "rule", "add", "prio", "200", "from", $parameters->{ipv4_address}, "lookup", $parameters->{table}) == 0) {
                print "Problem setting up ipv6 address rule\n";
                return;
            }
        }
    } 

Shouldn't this read:

 unless (system("ip", "-6", "rule", "add", "prio", "200", "from", $parameters->{ipv6_address}, "lookup", $parameters->{table}) == 0) {

instead if ipv4_address?

even if modifying this, I get ip rules for ipv4 but just:

[root@ntap-bin-arbl tmp]# ip -6 rule list
0:      from all lookup local 
32766:  from all lookup main 

Just wondering if I'm doing something wrong of if there is a bug in the script.  It seems to set the ipv4 correctly but nothing for ipv6.  Could be something I'm doing wrong, just apparently can't see it at the moment.

              Thanks

                     Dave



------------

David Koski

ITS ISO Communications Systems and Data Centers Operations

734-647-8993 (Office)                                                                                     734-678-5824 (Mobile)
<image001.png>










Archive powered by MHonArc 2.6.16.

Top of Page