5-34[SwitchA-bgp] peer 193.1.1.2 group ex193 as-number 200[SwitchA-bgp] quit# Define ACL 2000 to permit the route 1.0.0.0/8.[SwitchA] acl number 2000[SwitchA-acl-basic-2000] rule permit source 1.0.0.0 0.255.255.255[SwitchA-acl-basic-2000] rule deny source any[SwitchA-acl-basic-2000] quit# Create a routing policy named apply_med_50, and specify node 10 with the permit matching modefor the routing policy. Set the MED value of the route matching ACL 2000 to 50.[SwitchA] route-policy apply_med_50 permit node 10[SwitchA-route-policy] if-match acl 2000[SwitchA-route-policy] apply cost 50[SwitchA-route-policy] quit# Create a routing policy named apply_med_100, and specify node 10 with the permit matching modefor the routing policy. Set the MED value of the route matching ACL 2000 to 100.[SwitchA] route-policy apply_med_100 permit node 10[SwitchA-route-policy] if-match acl 2000[SwitchA-route-policy] apply cost 100[SwitchA-route-policy] quit# Apply the routing policy apply_med_50 to the routing updates destined for peer group ex193 (thepeer 193.1.1.2) and apply_med_100 to the routing updates destined for peer group ex192 (the peer192.1.1.2).[SwitchA] bgp 100[SwitchA-bgp] peer ex193 route-policy apply_med_50 export[SwitchA-bgp] peer ex192 route-policy apply_med_100 export2) Configure Switch B.# Configure VLAN interface IP addresses. system-view[SwitchB] interface vlan 2[SwitchB-Vlan-interface2] ip address 192.1.1.2 255.255.255.0[SwitchB-Vlan-interface2] quit[SwitchB] interface Vlan-interface 4[SwitchB-Vlan-interface4] ip address 194.1.1.2 255.255.255.0[SwitchB-Vlan-interface4] quit# Configure OSPF.[SwitchB] ospf[SwitchB-ospf-1] area 0[SwitchB-ospf-1-area-0.0.0.0] network 194.1.1.0 0.0.0.255[SwitchB-ospf-1-area-0.0.0.0] network 192.1.1.0 0.0.0.255[SwitchB-ospf-1-area-0.0.0.0] quit[SwitchB-ospf-1] quit# Enable BGP, create a peer group, and add peers to the peer group.[SwitchB] bgp 200[SwitchB-bgp] undo synchronization[SwitchB-bgp] group ex external[SwitchB-bgp] peer 192.1.1.1 group ex as-number 100[SwitchB-bgp] group in internal[SwitchB-bgp] peer 194.1.1.1 group in