![H3C S5500-EI series Скачать руководство пользователя страница 267](http://html2.mh-extra.com/html/h3c/s5500-ei-series/s5500-ei-series_configuration-manual_3726960267.webp)
250
Origin : igp
Attribute value : MED 0, localpref 100, pref-val 0, pre 255
State : valid, internal, best,
Not advertised to any peers yet
The output information shows the following:
•
Switch F can send route information to Switch B and Switch C through the confederation by
establishing only an eBGP connection with Switch A.
•
Switch B and Switch D are in the same confederation, but belong to different sub ASs. They obtain
external route information from Switch A and generate the same BGP route entries; it seems like they
reside in the same AS although they have no direct connection in between.
BGP path selection configuration
Network requirements
, all switches run BGP. Between Switch A and Switch B, and between Switch A and Switch
C are eBGP connections. Between Switch B and Switch D, and between Switch D and Switch C are iBGP
connections. OSPF is the IGP protocol in AS 200.
Configure routing policies, making Switch D use the route 1.0.0.0/8 from Switch C as the optimal.
Figure 96
Network diagram
Device
Interface
IP address
Device
Interface
IP address
Switch A
Vlan-int101
1.0.0.0/8
Switch D
Vlan-int400
195.1.1.1/24
Vlan-int100
192.1.1.1/24
Vlan-int300
194.1.1.1/24
Vlan-int200
193.1.1.1/24
Switch
C
Vlan-int400
195.1.1.2/24
Switch B
Vlan-int100
192.1.1.2/24
Vlan-int200
193.1.1.2/24
Vlan-int300
194.1.1.2/24
Configuration procedure
1.
Configure IP addresses for interfaces. (Details not shown)
2.
Configure OSPF on Switch B, C, and D.
# Configure Switch B.
<SwitchB> system-view
[SwitchB] ospf
[SwitchB-ospf] area 0
[SwitchB-ospf-1-area-0.0.0.0] network 192.1.1.0 0.0.0.255
[SwitchB-ospf-1-area-0.0.0.0] network 194.1.1.0 0.0.0.255