172
C
HAPTER
5: IP R
OUTING
P
ROTOCOL
O
PERATION
a
Enable BGP
[Switch A] bgp 100
b
Specify the network that BGP sends to
[Switch A-bgp] network 1.0.0.0
c
Configure the peers
[Switch A-bgp] group ex192 external
[Switch A-bgp] peer 192.1.1.2 group ex192 as-number 200
[Switch A-bgp] group ex193 external
[Switch A-bgp] peer 193.1.1.2 group ex193 as-number 200
[Switch A-bgp] quit
d
Configure the MED attribute of Switch A
■
Add ACL on Switch A, enable network 1.0.0.0.
[Switch A] acl number 2000
[Switch A-acl-basic-2000] rule permit source 1.0.0.0 0.255.255.255
■
Define two route policies, one is called apply_med_50 and the other is called
apply_med_100. The first MED attribute with the route policy as network
1.0.0.0 is set as 50, while the MED attribute of the second is 100.
[Switch A] route-policy apply_med_50 permit node 10
[Switch A-route-policy] if-match acl 2000
[Switch A-route-policy] apply cost 50
[Switch A-route-policy] quit
[Switch A] route-policy apply_med_100 permit node 10
[Switch A-route-policy] if-match acl 2000
[Switch A-route-policy] apply cost 100
[Switch A-route-policy] quit
■
Apply route policy set_med_50 to egress route update of Switch C (193.1.1.2),
and apply route policy set_med_100 on the egress route of Switch B
(192.1.1.2)
[Switch A] bgp 100
[Switch A-bgp] peer 193.1.1.2 route-policy apply_med_50 export
[Switch A-bgp] peer 192.1.1.2 route-policy apply_med_100 export
2
Configure Switch B:
[Switch B] interface vlan-interface 2
[Switch B-Vlan-interface2] ip address 192.1.1.2 255.255.255.0
[Switch B] interface vlan-interface 4
[Switch B-Vlan-interface4] ip address 194.1.1.2 255.255.255.0
[Switch B] ospf
[Switch B-ospf-1] area 0
[Switch B-ospf-1-area-0.0.0.0] network 194.1.1.0 0.0.0.255
[Switch B-ospf-1-area-0.0.0.0] network 192.1.1.0 0.0.0.255
[Switch B] bgp 200
[Switch B-bgp] undo synchronization
[Switch B-bgp] group ex external
[Switch B-bgp] peer 192.1.1.1 group ex as-number 100
[Switch B-bgp] group in internal
[Switch B-bgp] peer 194.1.1.1 group in
3
Configure Switch C:
[Switch C] interface Vlan-interface 3
[Switch C-Vlan-interface3] ip address 193.1.1.2 255.255.255.0
Содержание Switch 7700
Страница 10: ...2 ABOUT THIS GUIDE ...
Страница 52: ...44 CHAPTER 2 PORT CONFIGURATION ...
Страница 194: ...186 CHAPTER 5 IP ROUTING PROTOCOL OPERATION ...
Страница 195: ...Route Capacity 187 ...
Страница 196: ...188 CHAPTER 5 IP ROUTING PROTOCOL OPERATION ...
Страница 197: ...Route Capacity 189 ...
Страница 198: ...190 CHAPTER 5 IP ROUTING PROTOCOL OPERATION ...
Страница 237: ...GMRP 229 SW7700 Ethernet1 0 1 gmrp ...
Страница 238: ...230 CHAPTER 6 MULTICAST PROTOCOL ...
Страница 270: ...262 CHAPTER 7 QOS OPERATION ...
Страница 320: ...312 CHAPTER 9 AAA AND RADIUS OPERATION ...
Страница 330: ...322 CHAPTER 10 RELIABILITY ...
Страница 390: ...382 CHAPTER 11 SYSTEM MANAGEMENT ...