Switch 7700 Command reference Guide, v2.0

Table Of Contents
BGP Configuration Commands 195
Example
The two routers RTA and RTB in the same autonomous area use X.25 and Frame
Relay protocols separately to connect with external autonomous areas. The
command can be used to configure the default local preference of RTB as 180 so
that the route via RTB is selected first when the same route goes through RTA and
RTB at the same time.
[SW7700-bgp]default local-preference 180
default med Syntax
default med med_value
undo default med
View
BGP view.
Parameter
med_value: MED value to be specified. The range is 0 to 4294967295. By
default, the
med-value is 0.
Description
Use the default med command to configure the default system metric.
Use the undo default med command to restore the default metric of the
system.
In the case that all other conditions are the same, the system first selects the route
with the smaller MED value as the external route of the autonomous system.
Example
Routers RTA and RTB belong to AS100 and router RTC belongs to AS200. RTC is
the peer of RTA and RTB. The network between RTA and RTC is X.25 network and
the network between RTB and RTC is Ethernet. So the MED of RTA can be
configured as 25 to allow RTC to select the route transmitted by RTB first.
[SW7700-bgp]default med 25
display bgp group Syntax
display bgp group [ group_name ]
View
All views
Parameter
group_name: Specified a peer group.
Description
Use the display bgp group command to view the information of peer groups.