[Xorp-users] Fwd: Route redistribution issue

Phil Wiggins phil.wiggins at gmail.com
Tue Jul 17 09:32:13 PDT 2012


Using XORP-1.8.6-WIP-16July2012, or similar 1.8.5++ version to pick up
Igor's RR patch from April, we are noticing a route redistribution issue
between a RIP domain in xorp and an OSPF domain in Quagga with XORP
providing the route redistribution.  OSPF routes aren't fully exposed back
into the RIP domains.  The first routed subnet in OSPF (10.0.2.0/24 or
10.0.6.0/24) is always missing in the RIP domain.  In larger configurations
with additional OSPF subnets, the same behavior for routed OSPF subnets
repeats on the RIP side.

|--                  RIP             --|  RR  |--    OSPF    --|

XORP                XORP                 XORP
n1 -- 10.0.0.0/24 -- n2 -- 10.0.1.0/24 -- n3 -- 10.0.2.0/24 -- n4 (Quagga)
.1                .2    .1              .2  .2              .1
                                                             .1
                                                               |
                                                               |
                                                          10.0.3.0/24
                                                               |
                                                               |
XORP                XORP                 XORP                .2
n10 --10.0.8.0/24 -- n9 -- 10.0.7.0/24 -- n8 -- 10.0.6.0/24 -- n5 (Quagga)
 .2              .1    .2              .1   .1             .2

n4 config
=========
interface eth0
  ip address 10.0.2.1/24
!
interface eth1
  ip address 10.0.3.1/24
!
router ospf
  router-id 10.0.2.1
  network 10.0.2.0/24 area 0
  network 10.0.3.0/24 area 0
!

n5 config
 =========
interface eth0
  ip address 10.0.3.2/24
!
interface eth1
  ip address 10.0.6.2/24
!
router ospf
  router-id 10.0.3.2
  network 10.0.3.0/24 area 0
  network 10.0.6.0/24 area 0
!

n3 config extract
=========

protocols {
    rip {
       export: "connected-to-rip,ospf4-to-rip"
       interface eth0 {
   vif eth0 {
address 10.0.1.2 {
  }
   }
}
    }
    ospf4 {
        export: "connected-to-ospf4,rip-to-ospf4"
        router-id: 10.0.2.2
        area 0.0.0.0 {
            interface eth1 {
                vif eth1 {
                    address 10.0.2.2 {
                      interface-cost: 1
                    }
                }
            }
        }
    }
}

policy {
    policy-statement connected-to-rip {
        term 100 {
            from {
                protocol: "connected"
            }
    then {
 metric: 1
accept
    }
        }
    }
    policy-statement connected-to-ospf4 {
        term 200 {
            from {
                protocol: "connected"
            }
     then {
accept
}
        }
    }
    policy-statement rip-to-ospf4 {
        term 300 {
            from {
                protocol: "rip"
            }
            then {
metric add 0
accept
            }
        }
    }
    policy-statement ospf4-to-rip {
        term 400 {
            from {
                protocol: "ospf4"
            }
            then {
 metric add 0
                accept
            }
        }
    }
}

n8 config extract
=========
protocols {
    ospf4 {
        export: "connected-to-ospf4,rip-to-ospf4"
router-id: 10.0.6.1
 area 0.0.0.0 {
    interface eth0 {
vif eth0 {
    address 10.0.6.1 {
    }
}
    }
    interface eth1 {
vif eth1 {
    address 10.0.7.1 {
    }
}
    }
}
    }
    rip {
        export: "connected-to-rip,ospf4-to-rip"
 interface eth0 {
    vif eth0 {
address 10.0.6.1 {
    disable: false
}
    }
 }
interface eth1 {
    vif eth1 {
 address 10.0.7.1 {
    disable: false
}
    }
}
    }
}
fea {
    unicast-forwarding4 {
 disable:false
    }
}

policy {
    policy-statement connected-to-rip {
        term 100 {
            from {
                protocol: "connected"
            }
     then {
 metric: 1
accept
     }
        }
    }
    policy-statement connected-to-ospf4 {
        term 200 {
            from {
                protocol: "connected"
            }
     then {
accept
    }
        }
    }
    policy-statement rip-to-ospf4 {
        term 300 {
            from {
                protocol: "rip"
            }
            then {
metric add 0
accept
            }
        }
    }
    policy-statement ospf4-to-rip {
        term 400 {
            from {
                protocol: "ospf4"
            }
            then {
 metric add 0
                accept
            }
        }
    }
}

Phil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ICSI.Berkeley.EDU/pipermail/xorp-users/attachments/20120717/dcfe730e/attachment.html 


More information about the Xorp-users mailing list