On 04/03/2012 04:30 AM, Ondrej Zajicek wrote:
Now I've got these questions: 1. How do I alter MED for a specific route on one of the routers? import filter { if net = 1.2.3.4/24 then { bgp_med = xxx; } [...] }
Is there any way to autogenerate MED from IGP? For instance in my case I've got: if source = RTS_OSPF then { bgp_med = 200; } That works for now with this hardcoded value. However we're going to add one more POP with OSPF+BGP and then I want the MED to reflect the internal distance to the given subnet. Like this: [POP1] --- [POP2] --- [POP3] The prefix local to POP1 should be announced from all POPs to our BGP upstream with the lowest MED from POP1, higher from POP2 and the highest MED from POP3. Can I somehow do that automatically?
2. How can I get more details about the exported routes? Like the MED, BGP path, etc? Just to make sure my filters do what I want them to do. Add 'all' to the show route command:
show route all show route 1.2.3.4/24 all
That's the one, thanks! Michal