Huawei Quidway S5600 Series Operation Manual page 389

Hide thumbs Also See for Quidway S5600 Series:
Table of Contents

Advertisement

Operation Manual – Routing Protocol
Quidway S5600 Series Ethernet Switches-Release 1510
[SwitchC-ospf-1-area-0.0.0.0] network 193.1.1.0 0.0.0.255
[SwitchC-ospf-1-area-0.0.0.0] network 195.1.1.0 0.0.0.255
[SwitchC] bgp 200
[SwitchC-bgp] undo synchronization
[SwitchC-bgp] group ex external
[SwitchC-bgp] peer 193.1.1.1 group ex as-number 100
[SwitchC-bgp] group in internal
[SwitchC-bgp] peer 195.1.1.1 group in
[SwitchC-bgp] peer 194.1.1.2 group in
(4)
Configure SwitchD.
[SwitchD] interface vlan-interface 4
[SwitchD-Vlan-interface4] ip address 194.1.1.1 255.255.255.0
[SwitchD] interface vlan-interface 5
[SwitchD-Vlan-interface5] ip address 195.1.1.1 255.255.255.0
[SwitchD] ospf
[SwitchD-ospf-1] area 0
[SwitchD-ospf-1-area-0.0.0.0] network 194.1.1.0 0.0.0.255
[SwitchD-ospf-1-area-0.0.0.0] network 195.1.1.0 0.0.0.255
[SwitchD-ospf-1-area-0.0.0.0] network 4.0.0.0 0.255.255.255
[SwitchD] bgp 200
[SwitchD-bgp] undo synchronization
[SwitchD-bgp] group in internal
[SwitchD-bgp] peer 195.1.1.2 group in
[SwitchD-bgp] peer 194.1.1.2 group in
To make the configuration take effect, all BGP neighbors need to execute the
reset bgp all command.
After the above configuration, because the MED attribute value of the route
1.0.0.0 learnt by SwitchC is smaller than that of the route 1.0.0.0 learnt by
SwitchB, SwitchD will choose the route 1.0.0.0 coming from Switch C.
If you do not configure MED attribute of Switch A when you configure SwitchA,
but configure the local preference on SwitchC as following:
# Create ACL 2000 to permit routing information sourced from network 1.0.0.0.
[SwitchC] acl number 2000
[SwitchC-acl-basic-2000] rule permit source 1.0.0.0 0.255.255.255
[SwitchC-acl-basic-2000] rule deny source any
# Define a routing policy named localpref, and set the local preference of the routes
matching with ACL 2000 to 200, and that of those unmatched routes to 100.
[SwitchC] route-policy localpref
[SwitchC-route-policy] if-match acl 2000
permit node 10
Huawei Technologies Proprietary
5-44
Chapter 5 BGP Configuration

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents