10.
# Configure Switch C.
switch(config)# router bgp 200
switch(bgp)# neighbor 193.1.1.1 remote-as 100
switch(bgp)# neighbor 195.1.1.1 remote-as 200
switch(bgp)# exit
11.
# Configure Switch D.
switch(config)# router bgp 200
switch(bgp)# neighbor 194.1.1.2 remote-as 200
switch(bgp)# neighbor 195.1.1.2 remote-as 200
switch(bgp)# exit
12.
Configure attributes for route 1.0.0.0/8, making Switch D give priority to the route learned from Switch C.
13.
# Configure a higher MED value for the route 1.0.0.0/8 advertised from Switch A to peer 192.1.1.2.
14.
# Define a prefix-list to permit route 1.0.0.0/8.
switch(config)# ip prefix-list pl_1 permit 1.0.0.0/24
15.
# Define two routing policies, apply_med_50, which sets the MED for route 1.0.0.0/8 to 50, and
apply_med_100, which sets the MED for route 1.0.0.0/8 to 100.
switch(config)# route-map apply_med_50 permit
switch(route-map-apply_med_50)# match ip address prefix-list pl_1
switch(route policy)# set metric 50
switch(route policy)route-map apply_med_50 permit seq 20
switch(route policy)# exit
switch(config)# route-map apply_med_100 permit
switch(route policy)# match ip address prefix-list pl_1
switch(route policy)# set metric 100
switch(route policy)# route-map apply_med_100 permit seq 20
switch(route policy)# exit
16.
# Apply routing policy apply_med_50 to the route advertised to peer 193.1.1.2 (Switch C), and
apply_med_100 to the route advertised to peer 192.1.1.2 (Switch B.)
switch(config)# bgp 100
switch(bgp)# neighbor 193.1.1.2 route-map apply_med_50 out
switch(bgp)# neighbor 192.1.1.2 route-policy apply_med_100 out
switch(bgp)# exit
17.
# Display the BGP routing table on Switch D.
switch(config)# show ip bgp
Local AS : 100
Local Router-id : 194.1.1.1
BGP Table Version : 1
Status codes: * - valid, > - best, i - internal, e - external, s - stale
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Nexthop Metric LocalPref Weight AsPath
-------------------------------------------------------
*>e 1.0.0.0/24 194.1.1.2 50 0 100i
398
Aruba 3810 / 5400R Multicast and Routing Guide for ArubaOS-
Switch 16.08