[Xorp-users] Problem with export policy OSPF
Jens Dackenberg
jens.devel at gmail.com
Wed Jun 20 01:29:55 PDT 2012
Hi!
I have an issue regarding the route export policy for OSPF. What I have in
my setup is 4 routers that are connected as following:
[ R1 ] ------BGP----- [R2] ---- [HOST]
|
|
OSPF
|
|
[ R3 ]
|
|
OSPF
|
|
[ R4 ]
R1 is in ospf area 0, redistributes between BGP and OSPF (loopback address
1.1.0.1)
R2 is running BGP and redistributes "connected" to BGP (loopback address
1.1.10.1)
R4 is in ospf area 1 (loopback address 1.1.3.3)
R3 is ABR (loopback address 1.1.3.1)
My problem is that the loopback address of R1 is not visible at R4 when
enabling BGP-TO-OSPF redistribution in R1.
Is there somebody that can help me sort this out? :-)
My configurations are as following:
/************************************ R1
***************************************/
interfaces {
interface "eth1" {
vif "eth1" {
address 10.5.0.2 {
prefix-length: 24
}
}
}
interface "eth2" {
vif "eth2" {
address 10.7.0.1 {
prefix-length: 24
}
}
}
interface "dummy0" {
vif "dummy0" {
address 1.1.0.1 {
prefix-length: 32
}
}
}
}
fea {
unicast-forwarding4 {
disable: false
}
}
policy {
policy-statement ospf-to-bgp {
term 10 {
from {
protocol: "ospf4"
}
}
term 20 {
from {
protocol: "connected"
}
}
}
policy-statement bgp-to-ospf {
term 10 {
from {
protocol: "bgp"
}
}
term 20 {
from {
protocol: "connected"
}
}
}
}
protocols {
ospf4 {
router-id: 1.1.0.1
area 0.0.0.0 {
interface "eth1" {
vif "eth1" {
address 10.5.0.2 {
interface-cost: 1
}
}
}
interface "dummy0" {
vif "dummy0" {
address 1.1.0.1 {
interface-cost: 1
}
}
}
}
export: "bgp-to-ospf"
}
bgp {
bgp-id: 1.1.0.1
local-as: 65001
peer 10.7.0.2 {
local-ip: 10.7.0.1
as: 65002
next-hop: 10.7.0.1
export: "ospf-to-bgp" /********* <---- if I comment this
line, 1.1.0.1 is visible in R4 ************/
}
}
}
/******************** R2
*********************************************************/
interfaces {
interface "eth1" {
vif "eth1" {
address 10.7.0.2 {
prefix-length: 24
}
}
}
interface "eth2" {
vif "eth2" {
address 192.168.100.1 {
prefix-length: 24
}
}
}
interface "dummy0" {
vif "dummy0" {
address 1.1.10.1 {
prefix-length: 32
}
}
}
}
fea {
unicast-forwarding4 {
disable: false
}
}
policy {
policy-statement connected-to-bgp {
term 10 {
from {
protocol: "connected"
}
}
}
}
protocols {
bgp {
bgp-id: 1.1.10.1
local-as: 65002
peer 10.7.0.1 {
local-ip: 10.7.0.2
as: 65001
next-hop: 10.7.0.2
export: "connected-to-bgp"
}
}
}
/****************** R3
***********************************************************/
interfaces {
interface "eth1" {
vif "eth1" {
address 10.5.0.1 {
prefix-length: 24
}
}
}
interface "eth2" {
vif "eth2" {
address 10.6.0.1 {
prefix-length: 24
}
}
}
interface "dummy0" {
vif "dummy0" {
address 1.1.3.1 {
prefix-length: 32
}
}
}
}
fea {
unicast-forwarding4 {
disable: false
}
}
protocols {
ospf4 {
router-id: 1.1.3.1
area 0.0.0.0 {
interface "eth1" {
vif "eth1" {
address 10.5.0.1 {
interface-cost: 1
}
}
}
}
area 0.0.0.1 {
interface "eth2" {
vif "eth2" {
address 10.6.0.1 {
interface-cost: 10
}
}
}
interface "dummy0" {
vif "dummy0" {
address 1.1.3.1 {
interface-cost: 1
}
}
}
}
}
}
/******************************* R4
****************************************************/
interfaces {
interface "eth2" {
vif "eth2" {
address 10.6.0.2 {
prefix-length: 24
}
}
}
interface "dummy0" {
vif "dummy0" {
address 1.1.3.3 {
prefix-length: 32
}
}
}
}
fea {
unicast-forwarding4 {
disable: false
}
}
protocols {
ospf4 {
router-id: 1.1.3.3
area 0.0.0.1 {
interface "eth2" {
vif "eth2" {
address 10.6.0.2 {
interface-cost: 1
}
}
}
interface "dummy0" {
vif "dummy0" {
address 1.1.3.3 {
interface-cost: 1
}
}
}
}
}
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ICSI.Berkeley.EDU/pipermail/xorp-users/attachments/20120620/bcc2d825/attachment.html
More information about the Xorp-users
mailing list