3Com Switch 8800 Advanced Software V5 Configuration Guide
452 CHAPTER 35: BGP CONFIGURATION
BGP and IGP Interaction
Configuration
Network requirements
As shown below, OSPF is used as the IGP protocol in ASwitch 7750 Family9, where
Switch C is a non-BGP switch. Between Switch A and Switch B is an EBGP
connection.
Network diagram
Figure 147 Network diagram for BGP and IGP interaction
Configuration procedure
1 Configure IP addresses for interfaces (omitted)
2 Configure OSPF (omitted)
3 Configure the EBGP connection
# Configure Switch A.
<SwitchA> system-view
[SwitchA] bgp 65008
[SwitchA-bgp] router-id 1.1.1.1
[SwitchA-bgp] peer 3.1.1.1 as-number 65009
# Advertise network 8.1.1.0/24 to the BGP routing table.
[SwitchA-bgp] network 8.1.1.0 24
[SwitchA-bgp] quit
# Configure Switch B.
<SwitchB> system-view
[SwitchB] bgp 65009
[SwitchB-bgp] peer 3.1.1.2 as-number 65008
[SwitchB-bgp] quit
4 Configure BGP and IGP interaction
# Configure BGP to redistribute routes from OSPF on Switch B.
[SwitchB] bgp 65009
[SwitchB-bgp] import-route ospf 1
[SwitchB-bgp] quit
# Display routing table information on Switch A.
[SwitchA] display bgp routing-table
Vlan-int200
3.1.1.2/24
Switch A
AS 65008
Vlan-int200
3.1 .1.1/24
Vlan-int100
8.1.1.1/24
Vlan-int300
9.1.1.1/24
Vlan-int300
9.1.1.2/24
Switch B Switch C
AS 65009
Vlan-int400
9.1.2.1/24