Question

how to create route-map in exos & apply to BGP peer-group

  • 2 August 2020
  • 3 replies
  • 142 views

For the following cisco configuration i need exos configuration command lines. Please help.

 

route-map set-no-export permit 10
 set community no-export
 

router bgp 24029
 no synchronization
 bgp log-neighbor-changes
 neighbor IXP-peers peer-group
 neighbor IXP-peers version 4
 neighbor IXP-peers send-community
 neighbor IXP-peers remove-private-as
 neighbor IXP-peers soft-reconfiguration inbound
 neighbor IXP-peers distribute-list 150 in
 neighbor IXP-peers distribute-list 150 out
 neighbor IXP-peers route-map set-no-export out
 no auto-summary

 
 

3 replies

Userlevel 1

Hi,

I’m not super familiar with iOS but this should be a rough translation with an example policy. Some other basic setup may not be included. Essentially, you create a policy file that permits or denies routes from being advertised and apply those to a neighbor or peer-group in the inbound or outbound direction. I think this has all the capabilities of route-maps and distribute lists but if not, you can also follow the User Guide (Routing Policies p.780, BGP p.1562) for a list of all match conditions, options, and examples. There is also the Command Reference that will tell you what each option does specifically and the default behavior.

route-map set-no-export permit 10                
 set community no-export                        
//Create a Routing policy with vi
//#vi <policy>.policy
//i
//entry et1 {
//if match all {nlri 172.16.1.0/24;}
//then {deny;}
//}
//ESC :wq


router bgp 24029                                    
//#configure bgp AS-number <MyASN>
//#create bgp neighbor <NEIGHBOR> remote-AS-number <NeighborASN> {multi-hop}
//#enable bgp neighbor <NEIGHBOR>

 no synchronization                                    
 //EXOS does not redistribute routes with OSPF/RIP/ISIS by default (I think that is what this is about)
 
 bgp log-neighbor-changes                            
 //EXOS logs messages about BGP by default. '#show log' and '#show log events bgp [press TAB or ENTER]'
 
 neighbor IXP-peers peer-group                        
 //#[create | delete] bgp peer-group <PEER_GROUP> #configure bgp neighbor <NEIGHBOR> peer-group <PEER_GROUP>
 
 neighbor IXP-peers version 4                        
 //EXOS is BGP v4
 
 neighbor IXP-peers send-community                    
 //#configure bgp neighbor <NEIGHBOR> [send-community | dont-send-community]
 
 neighbor IXP-peers remove-private-as                
 //#[enable | disable] bgp neighbor <NEIGHBOR> remove-private-AS-numbers
 
 neighbor IXP-peers soft-reconfiguration inbound    
 //#configure bgp neighbor <NEIGHBOR> soft-reset in
 
 neighbor IXP-peers distribute-list 150 in            
 neighbor IXP-peers distribute-list 150 out            
 neighbor IXP-peers route-map set-no-export out        
 //#configure bgp neighbor <NEIGHBOR> route-policy [in | out] <policy>
 
 no auto-summary                                    
 //#[enable | disable] bgp aggregation

 
Kind Regards,

 

Gabriel

 

 

Userlevel 1

Yep, I think that’s right.

 

You can also use the command ‘check policy <policy>’ to do syntax checking. When applied, the policy will set the no-export community attribute for all traffic.

Thanks you for your prompt response. I have created the policy in exos to match with cisco policy. Can you please confirm is it correct or not?

Cisco policy --

route-map set-no-export permit 10
 set community no-export

Converted to EXOS --

edit policy set-no-export
i
entry permit-anything-else {
   if {
   } then {
     community set no-export;     
 permit;   
   } 
}
Esc
:wq

Reply