![Edge-Core ES3628EA User Manual Download Page 537](http://html1.mh-extra.com/html/edge-core/es3628ea/es3628ea_user-manual_2359702537.webp)
537
Fig 13-13
MED Configuring Topological Map
The configurations of SwitchA:
SwitchA(config)#router bgp 100
SwitchA(config-router-bgp)#neighbor 2.2.2.1 remote-as 300
SwitchA(config-router-bgp)#neighbor 3.3.3.2 remote-as 300
SwitchA(config-router-bgp)#neighbor 4.4.4.3 remote-as 400
The configurations of SwitchC:
SwitchC(config)#router bgp 300
SwitchC (config-router-bgp)#neighbor 2.2.2.2 remote-as 100
SwitchC (config-router-bgp)#neighbor 2.2.2.2 route-map set-metric out
SwitchC (config-router-bgp)#neighbor 1.1.1.2 remote-as 300
SwitchC (config-router-bgp)#exit
SwitchC (config)#route-map set-metric permit 10
SwitchC (Config-Router-RouteMap)#set metric 120
The configurations of SwitchD
SwitchD (config)#router bgp 300
AS100
AS400
AS300
Set metric 50
vlan1:4.4.4.4
vlan3:3.3.3.3
vlan1:3.3.3.2
vlan1:2.2.2.1
vlan2:1.1.1.2
vlan2:1.1.1.1
vlan2:2.2.2.2
vlan1:4.4.4.3
SwitchA
SwitchB
SwitchC
SwitchD
Metric=0
Set metric 200
Set metric 120