set protocols bgp max-med


The set protocols bgp max-med command sets that advertise routes with max-med attribute.


Command Syntax
set protocols bgp [vrf <vrf-name>] max-med [administrative med <AS-NUMBER>| on-startup [duration <period> | med <AS-NUMBER>]]
delete protocols bgp [vrf <vrf-name> max-med [administrative med <AS-NUMBER>| on-startup [duration <period> | med <AS-NUMBER>]]


Parameter

Parameter

Description

vrf <vrf-name>

Optional. Specifies a VRF name. The value is a string. It’s a user-defined VRF set by the command set ip vrf <vrf-name> [description <string>].

administrative med <AS-NUMBER>

Optional. Specifies a 4-byte AS number in asplain format (z), where z is a number from 0 to 4294967295. 

Note that this is administratively applied, for an indefinite period.

duration <period>Optional.  Specifies the time period for max-med, which will be effective on a startup. The value is an integer, in seconds,  that rangs from 5 to 86400 seconds.
med <AS-NUMBER>Optional. Specifies the Max MED value to be used on a startup. The value is an integer that rangs from 0 to 4294967295. 


Example
• This example sets advertise routes with max-med attribute, where Max MED value is 120.

admin@XorPlus# set protocols bgp max-med administrative med 120
admin@XorPlus# commit

Copyright © 2024 Pica8 Inc. All Rights Reserved.