[Xorp-hackers] BGP and policy problem
Atanu Ghosh
atanu at ICSI.Berkeley.EDU
Tue Apr 22 20:47:11 PDT 2008
Hi,
This problem is now fixed in CVS.
Atanu.
Revision Changes Path
1.34 +2 -2; commitid: feca480eb05941a7; xorp/bgp/bgp_varrw.cc
>>>>> "Stefan" == Stefan Gula <steweg at ynet.sk> writes:
Stefan> Hi
Stefan> I am currently trying to establish eBGP sessions with another XORP
Stefan> eBGP and iBGP routers like this:
Stefan> Network A,B,C,D are connected to Router R1 and R2 in AS1. They are
Stefan> distributed through OSPF, which works fine. Now there is Network E and
Stefan> F on Router R3 which is in AS2. What I try to achive is that traffic
Stefan> from AS1 going to network E goes through R2 a to network F goes
Stefan> through R1. I achieved this by applying import policy on R1 and R2 by
Stefan> the way of localpref. What I am unable to achive is applying also
Stefan> export policy on R1 and R2 with MED attribute to make sure that R3
Stefan> will choose the same way that traffic comes in as it goes out.
Stefan> Here is my configuration
Stefan> root at R1# show policy
Stefan> policy-statement "bel_out" {
Stefan> term a {
Stefan> from {
Stefan> protocol: "connected"
Stefan> network4-list: "my_routes"
Stefan> }
Stefan> to {
Stefan> neighbor: 10.1.2.18..10.1.2.18
Stefan> }
Stefan> then {
Stefan> med: 100
Stefan> accept {
Stefan> }
Stefan> }
Stefan> }
Stefan> term b {
Stefan> from {
Stefan> protocol: "ospf4"
Stefan> }
Stefan> to {
Stefan> neighbor: 10.1.2.18..10.1.2.18
Stefan> }
Stefan> then {
Stefan> med: 100
Stefan> accept {
Stefan> }
Stefan> }
Stefan> }
Stefan> }
Stefan> policy-statement "bel_in" {
Stefan> term a {
Stefan> from {
Stefan> neighbor: 10.1.2.18..10.1.2.18
Stefan> network4-list: "management"
Stefan> }
Stefan> then {
Stefan> localpref: 100
Stefan> accept {
Stefan> }
Stefan> }
Stefan> }
Stefan> }
Stefan> network4-list "my_routes" {
Stefan> network 192.168.2.0/26
Stefan> network 192.168.2.128/26
Stefan> network 10.1.2.16/30
Stefan> }
Stefan> network4-list "management" {
Stefan> network 10.1.4.0/24
Stefan> }
Stefan> root at R1# show protocols bgp
Stefan> bgp-id: 192.168.2.1
Stefan> local-as: 65535
Stefan> peer "10.1.2.18" {
Stefan> local-ip: "10.1.2.17"
Stefan> as: 65534
Stefan> next-hop: 10.1.2.17
Stefan> }
Stefan> peer "192.168.2.2" {
Stefan> local-ip: "192.168.2.1"
Stefan> as: 65535
Stefan> next-hop: 192.168.2.1
Stefan> }
Stefan> traceoptions {
Stefan> flag {
Stefan> all {
Stefan> disable: true
Stefan> }
Stefan> }
Stefan> }
Stefan> export: "bel_out"
Stefan> import: "bel_in"
Stefan> in logs it shows something like this:
Stefan> [ 2008/02/26 13:06:18 WARNING xorp_rib RIB ] Unable to complete XRL:
Stefan> del_route4 for bgp route: Dst: 10.1.2.18/32 Vif: vlan4 NextHop:
Stefan> NH:192.168.2.1 Metric: 2 Protocol: ospf PolicyTags: 5
Stefan> [ 2008/02/26 13:06:14 INFO xorp_rib RIB ] Received death event for
Stefan> protocol bgp shutting down -------
Stefan> OriginTable: ebgp
Stefan> next table = Merged:(ebgp)+(ibgp)
Stefan> [ 2008/02/26 13:06:14 INFO xorp_rib RIB ] Received death event for
Stefan> protocol bgp shutting down -------
Stefan> OriginTable: ebgp
Stefan> next table = Merged:(ebgp)+(ibgp)
Stefan> [ 2008/02/26 13:06:14 INFO xorp_rib RIB ] Received death event for
Stefan> protocol bgp shutting down -------
Stefan> OriginTable: ebgp
Stefan> next table = Merged:(ebgp)+(ibgp)
Stefan> [ 2008/02/26 13:06:14 INFO xorp_rib RIB ] Received death event for
Stefan> protocol bgp shutting down -------
Stefan> OriginTable: ebgp
Stefan> next table = Merged:(ebgp)+(ibgp)
Stefan> similar configuration is on R2 and also the same problem. Unable to
Stefan> apply import and export policy together. On R3 there is everything Ok.
Stefan> So please can somebody point me to the right direction where is the
Stefan> problem?
Stefan> Thanks for any ideas
Stefan> --
Stefan> Stefan Gula, CCNP
Stefan> _______________________________________________
Stefan> Xorp-hackers mailing list
Stefan> Xorp-hackers at icir.org
Stefan> http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-hackers
More information about the Xorp-hackers
mailing list