cancel
Showing results for 
Search instead for 
Did you mean: 

XOS equivalent Cisco BGP/Route-Map Commands

XOS equivalent Cisco BGP/Route-Map Commands

AnonymousM
Valued Contributor II
Hi, I'm configuring a OSPF/BGP environment and need help configuring two features in Extreme XOS. The equivalent Cisco commands are included below:

1. Mutual Route Redistribution
The first is to configure a XOS equivalent route-map to prevent route-flapping when I perform mutual route redistribution between OSPF and BGP. I'm using the following Cisco doc as a reference:
route-map BLOCK-TAGGED-ROUTES deny 10
match tag 65401 65402 65512
!
route-map BLOCK-TAGGED-ROUTES permit 20
!
router eigrp LAN
address-family ipv4 unicast autonomous-system 100
topology base
distribute-list route-map BLOCK-TAGGED-ROUTES in
exit-af-topology
exit-address-family

2. Prevent Customer AS becoming transient for SPs
Referring to the document above:
  • PAGE 56
  • Step 2: Configure BGP to prevent the remote site from becoming a transit AS
router bgp 65511
neighbor [IP address of PE] route-map NO-TRANSIT-AS out
neighbor [IP address of PE 2] route-map NO-TRANSIT-AS out
ip as-path access-list 10 permit ^$
!
route-map NO-TRANSIT-AS permit 10
match as-path 10

Thanks in advance for any assistance.
3 REPLIES 3

Rowan_Sakul
New Contributor III
Thanks Jeremy. I didn't get to test the config since I moved jobs, but I appreciate your help and will definitely use these configs in the future.

Jeremy_Thornton
New Contributor II
You'll also need to tag the routes going from bgp to ospf...

switch# edit policy bgp2ospf
entry 1 {
if {
as-path 65401;
} then {
tag 65401;
}
}
#Each AS will need such a tag applied....

switch# configure ospf import-policy bgp2ospf

Good Luck!!

Jeremy_Thornton
New Contributor II
Ok, so first you need to get OSPF and BGP up and going. Once they adjacencies and peers are up and you are receiving routes properly, then you can use the policies below to redistribute the BGP routes into OSPF and prevent the customer AS from being transient.

switch# edit policy BLOCKED-TAGGED-ROUTES
#VI style editor entries...
entry 1 {
if {
tag 65401;
} then {
deny;
}
}
entry 2 {
if {
tag 65402;
} then {
deny;
}
}
entry 3 {
if {
tag 65512;
} then {
deny;
}
}
entry 4 {
if {
} then {
permit;
}
}

:
wq
switch#enable ospf export bgp BLOCKED-TAGGED-ROUTES
#This is assuming you have OSPF configured now instead of EIGRP
switch#edit policy NO-TRANSIT-AS
#VI style editor entries...
entry 1 {
if {
as-path "^65511$";
} then {
permit;
}
}

:
wq
switch# create bgp neighbor x.x.x.x remote-as-number 65511
switch# configure bgp neigh x.x.x.x route-policy in NO-TRANSIT-AS

This should be pretty close. Let me know if we need to do any tweaking!

GTM-P2G8KFN