Huawei Quidway S5600 Series Operation Manual page 388

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

Advertisement

Operation Manual – Routing Protocol
Quidway S5600 Series Ethernet Switches-Release 1510
Define two routing policies, named apply_med_50 and apply_med_100 respectively.
The first routing policy apply_med_50 configures the MED attribute as 50 for network
1.0.0.0, and the second one apply_med_100 configures the MED attribute for the
network as 100.
[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
[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 apply_med_50 to the outbound routing update of neighbor SwitchC (193.1.1.2),
and apply apply_med_100 to the outbound routing update of neighbor SwitchB
(192.1.1.2).
[SwitchA] bgp 100
[SwitchA-bgp] peer 193.1.1.2 route-policy apply_med_50 export
[SwitchA-bgp] peer 192.1.1.2 route-policy apply_med_100 export
(2)
Configure SwitchB.
[SwitchB] interface vlan 2
[SwitchB-Vlan-interface2] ip address 192.1.1.2 255.255.255.0
[SwitchB] interface vlan-interface 4
[SwitchB-Vlan-interface4] ip address 194.1.1.2 255.255.255.0
[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] 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
[SwitchB-bgp] peer 195.1.1.2 group in
(3)
Configure SwitchC.
[SwitchC] interface Vlan-interface 3
[SwitchC-Vlan-interface3] ip address 193.1.1.2 255.255.255.0
[SwitchC] interface vlan-interface 5
[SwitchC-Vlan-interface5] ip address 195.1.1.2 255.255.255.0
[SwitchC] ospf
[SwitchC-ospf-1] area 0
Huawei Technologies Proprietary
5-43
Chapter 5 BGP Configuration

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents