Huawei S6700 Series Configuration Manual page 481

Ip routing
Hide thumbs Also See for S6700 Series:
Table of Contents

Advertisement

S6700 Series Ethernet Switches
Configuration Guide - IP Routing
5.
Configuration Files
l
Issue 01 (2012-03-15)
*>
9.1.1.0/24
*>
You can view that the BGP route 9.1.1.0/24 has two next hops that are 200.1.1.1 and
200.1.2.1. Both of them are optimal routes.
Set the MED.
# Set the MED sent by SwitchB to SwitchA through the policy.
[SwitchB] route-policy 10 permit node 10
[SwitchB-route-policy] apply cost 100
[SwitchB-route-policy] quit
[SwitchB] bgp 65009
[SwitchB-bgp] peer 200.1.1.2 route-policy 10 export
# Check the routing table of SwitchA.
[SwitchA] display bgp routing-table
BGP Local router ID is 1.1.1.1
Status codes: * - valid, > - best, d - damped,
h - history,
Origin : i - IGP, e - EGP, ? - incomplete
Total Number of Routes: 2
Network
*>
9.1.1.0/24
*
You can view that the MED of route with the next hop as 200.1.1.1 (SwitchB) is 100, and
the MED of the route with the next hop as 200.1.2.1 is 0. Therefore, the route with the
smaller MED is selected.
Configuration file of SwitchA
#
sysname SwitchA
#
vlan batch 10 20
#
interface Vlanif10
ip address 200.1.1.2 255.255.255.0
#
interface Vlanif20
ip address 200.1.2.2 255.255.255.0
#
interface XGigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 10
#
interface XGigabitEthernet0/0/2
port link-type trunk
port trunk allow-pass vlan 20
#
bgp 65008
router-id 1.1.1.1
peer 200.1.1.1 as-number 65009
peer 200.1.2.1 as-number 65009
#
ipv4-famlily unicast
undo synchronization
maximum load-balancing 2
peer 200.1.1.1 enable
peer 200.1.2.1 enable
#
return
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
200.1.1.1
0
200.1.2.1
0
i - internal, s - suppressed, S - Stale
NextHop
MED
200.1.2.1
0
200.1.1.1
100
7 BGP Configuration
0
65009i
0
65009i
LocPrf
PrefVal Path/Ogn
0
65009i
0
65009i
462

Advertisement

Table of Contents
loading

Table of Contents