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:
- Login to Versa Director.
- Select Appliance Context.
- Select a template or device.
- Navigate to Configurations > Networking > Virtual Routers.
- Click an existing routing instance.
- Click the BGP tab.
- Click an existing given instance ID.
- Click the Peer/Group Policy tab.
- 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. - Add or edit a term.
To add a term, click + on the top right corner.
To edit a term, click on an existing term. - 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).
- Click OK.
- 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