Question

How to configure AS-paths and MEDs in Versa Director?


Solution

Follow these steps to configure AS path and MED in Versa Director GUI:


  1. Login to Versa Director.
  2. Select Appliance Context.
  3. Select a template or device. 
  4. Navigate to Configurations > Networking > Virtual Routers.
  5. Click an existing routing instance.
  6. Click the BGP tab.


  7. Click an existing given instance ID.
  8. Click the Peer/Group Policy tab.
  9. Add or edit a peer policy. 
    To add a peer policy, click + on the top right corner. 
    To edit a peer policy, click an existing policy.
  10. Add or edit a term. 
    To add a term, click + on the top right corner. 
    To edit a term, click on an existing term.
  11. Click the Action tab and select a value for 'AS path and Local AD Prepend Count' or 'AS Path Prepend'. For MED choose Metric Action as "Set Value" and add Metric (MED).


  12. Click OK.
  13. Apply this Routing Peer Policy into the existing BGP peer group

     




Verification

To check the configuration, run the these CLI commands:

  • On CPE
> show configuration routing-instances <routing instance name> protocols bgp <bgp instance id> routing-peer-policy

Example

> show configuration routing-instances Tenant1-Control-VR protocols bgp 21 routing-peer-policy
 


  • On Director
> show configuration devices device <CPE name> config routing-instances <routing instance name> protocols bgp <bgp instance id> routing-peer-policy


Example:

> show configuration devices device SDWAN-Branch2 config routing-instances Tenant1-Control-VR protocols bgp 21 routing-peer-policy