Quantcast
Channel: All Routing posts
Viewing all articles
Browse latest Browse all 8688

routing selection ibgp on ebgp

$
0
0

hello here is my topology:

 

i have 3 router in a ibgp as the last one is connected to an ixp with 2 route server, what i need to achieve is that the route advertised in the ibgp will be passed to the ixp route servers with the correct next hop. now when i issue:

 

root@jbgp# run show route protocol bgp advertising-protocol bgp x.x.x.x    

inet.0: 39893 destinations, 79696 routes (39892 active, 0 holddown, 1 hidden)
  Prefix		  Nexthop	       MED     Lclpref    AS path
  x.x.x.x/24
  x.x.x.x/24
  x.x.x.x/24
  x.x.x.x/24

[edit protocols bgp]

this is the router faceing the ixp the routes are passed trough ibpg but the nexthop is blank, indeed there is some problems on bgp advertisement. here is the bgp section and policy of this router:

 

root@jbgp# show 
group external {
    type external;
    neighbor x.x.x.x {
        export bgp-export;
        peer-as x.x.x.x;
    }
    neighbor x.x.x.x {
        export bgp-export;
        peer-as x.x.x.x;
    }
    neighbor x.x.x.x {
        export bgp-export;
        peer-as x.x.x.x;
    }
}                                       
group internal {
    type internal;
    neighbor x.x.x.x {
        import bgp-import-test;
        peer-as x.x.x.x;
    }
}

[edit protocols bgp]

root@jbgp# show 
policy-statement bgp-export {
    term accept-as {
        from as-path as;
        then {
            accept;
        }
    }
    term reject-any {
        then reject;
    }
}
policy-statement bgp-import-test {
    term accept-as {
        from as-path as-test;
        then accept;
    }
    term reject-any-other {
        then reject;                    
    }
}
as-path as "^$";
as-path as-test "^$";

[edit policy-options]

this is received protocol from ibgp peer:

 

root@jbgp# run show route protocol bgp receive-protocol bgp 192.168.0.1        

inet.0: 39826 destinations, 79562 routes (39825 active, 0 holddown, 1 hidden)
  Prefix		  Nexthop	       MED     Lclpref    AS path
  192.168.11.0/24         192.168.0.1         0       100        I
  192.168.12.0/24         192.168.0.1         0       100        I
  192.168.13.0/24         192.168.0.1         0       100        I
  192.168.14.0/24         192.168.0.1         0       100        I

inet6.0: 5 destinations, 5 routes (5 active, 0 holddown, 0 hidden)

[edit policy-options]

as you can see( the 192.168.0.1 is a fake address) the ibgp protocol receive the correct route and install correctly. in last there is ospf active in the ibgp cloud with the default cost.

 

can someone point me to the right direction?

 

BR


Viewing all articles
Browse latest Browse all 8688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>