Configuring ospf to advertise a summary route, Network requirements – H3C Technologies H3C S7500E Series Switches User Manual

Page 124

Advertising
background image

4-55

3) Configure OSPF to redistribute routes.

# On Switch C, configure a static route destined for network 3.1.2.0/24.

<SwitchC> system-view

[SwitchC] ip route-static 3.1.2.1 24 10.4.1.2

# On Switch C, configure OSPF to redistribute static routes.

[SwitchC] ospf 1

[SwitchC-ospf-1] import-route static

4) Verify the configuration.

# Display the ABR/ASBR information of Switch D.

<SwitchD> display ospf abr-asbr

OSPF Process 1 with Router ID 10.5.1.1

Routing Table to ABR and ASBR

Type Destination Area Cost Nexthop RtType

Intra 10.3.1.1 0.0.0.2 10 10.3.1.1 ABR

Inter 10.4.1.1 0.0.0.2 22 10.3.1.1 ASBR

# Display the OSPF routing table of Switch D.

<SwitchD> display ospf routing

OSPF Process 1 with Router ID 10.5.1.1

Routing Tables

Routing for Network

Destination Cost Type NextHop AdvRouter Area

10.2.1.0/24 22 Inter 10.3.1.1 10.3.1.1 0.0.0.2

10.3.1.0/24 10 Transit 10.3.1.2 10.3.1.1 0.0.0.2

10.4.1.0/24 25 Inter 10.3.1.1 10.3.1.1 0.0.0.2

10.5.1.0/24 10 Stub 10.5.1.1 10.5.1.1 0.0.0.2

10.1.1.0/24 12 Inter 10.3.1.1 10.3.1.1 0.0.0.2

Routing for ASEs

Destination Cost Type Tag NextHop AdvRouter

3.1.2.0/24 1 Type2 1 10.3.1.1 10.4.1.1

Total Nets: 6

Intra Area: 2 Inter Area: 3 ASE: 1 NSSA: 0

Configuring OSPF to Advertise a Summary Route

Network requirements

As shown in the following figure:

z

Switch A and Switch B are in AS 200, which runs OSPF.

z

Switch C, Switch D, and Switch E are in AS 100, which runs OSPF.

z

An eBGP connection is established between Switch B and Switch C. Switch C is configured to

redistribute OSPF routes into BGP. Switch B and Switch C are configured to redistribute OSPF

routes and direct routes into BGP and BGP routes into OSPF.

Advertising