Get the App
SLTechnology News&Howtos  ›  Network Security  › 

Configure OSPF publish aggregation routing

Shulou Source: shulou.com Published: 2022-06-01 03:58:04 10月02日 Update

1.13.3 configure OSPF publish aggregation routing

Networking requirements

Switch An and Switch B are located in AS 200. OSPF is used as the IGP protocol in AS 200.

Switch C, Switch D, and Switch E are located within AS 100. OSPF is used as the IGP protocol within AS 100.

Establish an EBGP connection between Switch B and Switch C, configure BGP to introduce OSPF and directly connected routes, and configure OSPF

The process introduces BGP routing.

To reduce the size of the routing table of Switch A, configure route aggregation on Switch B to publish only the aggregated routes

10.0.0.0/8 .

As shown in the figure:

Configuration step

(1) configure the IP address of the interface (abbreviated)

(2) configure OSPF to configure Switch A.

System-view

[SwitchA] router id 11.2.1.2

[SwitchA] ospf

[SwitchA-ospf-1] area 0

[SwitchA-ospf-1-area-0.0.0.0] network 11.2.1.0 0.0.0.255

[SwitchA-ospf-1-area-0.0.0.0] quit

[SwitchA-ospf-1] quit

Configure Switch B.

System-view

[SwitchB] router id 11.2.1.1

[SwitchB] ospf

[SwitchB-ospf-1] area 0

[SwitchB-ospf-1-area-0.0.0.0] network 11.2.1.0 0.0.0.255

[SwitchB-ospf-1-area-0.0.0.0] quit

[SwitchB-ospf-1] quit

Configure Switch C.

System-view

[SwitchC] router id 11.1.1.2

[SwitchC] ospf

[SwitchC-ospf-1] area 0

[SwitchC-ospf-1-area-0.0.0.0] network 10.1.1.0 0.0.0.255

[SwitchC-ospf-1-area-0.0.0.0] network 10.2.1.0 0.0.0.255

[SwitchC-ospf-1-area-0.0.0.0] quit

[SwitchC-ospf-1] quit

Configure Switch D.

System-view

[SwitchD] router id 10.3.1.1

[SwitchD] ospf

[SwitchD-ospf-1] area 0

[SwitchD-ospf-1-area-0.0.0.0] network 10.1.1.0 0.0.0.255

[SwitchD-ospf-1-area-0.0.0.0] network 10.3.1.0 0.0.0.255

[SwitchD-ospf-1-area-0.0.0.0] quit

Configure Switch E.

System-view

[SwitchE] router id 10.4.1.1

[SwitchE] ospf

[SwitchE-ospf-1] area 0

[SwitchE-ospf-1-area-0.0.0.0] network 10.2.1.0 0.0.0.255

[SwitchE-ospf-1-area-0.0.0.0] network 10.4.1.0 0.0.0.255

[SwitchE-ospf-1-area-0.0.0.0] quit

[SwitchE-ospf-1] quit

(3) configure BGP, introduce OSPF and directly connected routes

Configure Switch B.

[SwitchB] bgp 200

[SwitchB-bgp] peer 11.1.1.2 as 100

[SwitchB-bgp] address-family ipv4 unicast

[SwitchB-bgp-ipv4] import-route ospf

[SwitchB-bgp-ipv4] import-route direct

[SwitchB-bgp-ipv4] peer 11.1.1.2 enable # be careful not to lose this sentence

[SwitchB-bgp-ipv4] quit

[SwitchB-bgp] quit

Configure Switch C.

[SwitchC] bgp 100

[SwitchC-bgp] peer 11.1.1.1 as 200

[SwitchC-bgp] address-family ipv4 unicast

[SwitchC-bgp-ipv4] import-route ospf

[SwitchC-bgp-ipv4] import-route direct

[SwitchC-bgp-ipv4] peer 11.1.1.1 enable # be careful not to lose this sentence

[SwitchC-bgp-ipv4] quit

[SwitchC-bgp] quit

(4) configure OSPF to introduce BGP routing on Switch B and Switch C

Configure OSPF to introduce BGP routing on Switch B.

[SwitchB] ospf

[SwitchB-ospf-1] import-route bgp

Configure OSPF to introduce BGP routing on Switch C.

[SwitchC] ospf

[SwitchC-ospf-1] import-route bgp

View the routing table information for SwitchA.

[SwitchA] display ip routing-table

(5) configure route aggregation on Switch B to publish only the aggregate route 10.0.0.0amp8.

[SwitchB-ospf-1] asbr-summary 10.0.0.0 8

View the routing table information for Switch A.

[SwitchA] display ip routing-table

Tags: Configuration routing information between address interface step size process requirements as shown in the figure Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno macOS Microsoft Linux Shulou Technology MySQL