Configuring an ospf stub area at the cli, Network requirements – H3C Technologies H3C SecPath F1000-E User Manual
Page 448
423
[SecPath] ospf
[SecPath-ospf-1] import-route bgp
# Configure OSPF to redistribute routes from BGP on Router B.
[RouterB] ospf
[RouterB-ospf-1] import-route bgp
# Display the routing table of Router A.
[RouterA] display ip routing-table
Routing Tables: Public
Destinations : 8 Routes : 8
Destination/Mask Proto Pre Cost NextHop Interface
10.1.1.0/24 O_ASE 150 1 11.2.1.1 Eth1/1
10.2.1.0/24 O_ASE 150 1 11.2.1.1 Eth1/1
10.3.1.0/24 O_ASE 150 1 11.2.1.1 Eth1/1
10.4.1.0/24 O_ASE 150 1 11.2.1.1 Eth1/1
11.2.1.0/24 Direct 0 0 11.2.1.2 Eth1/1
11.2.1.2/32 Direct 0 0 127.0.0.1 InLoop0
127.0.0.0/8 Direct 0 0 127.0.0.1 InLoop0
127.0.0.1/32 Direct 0 0 127.0.0.1 InLoop0
5.
Configure summary route 10.0.0.0/8 on SecPath and advertise it:
[SecPath-ospf-1] asbr-summary 10.0.0.0 8
# Display the routing table of Router A.
[RouterA] display ip routing-table
Routing Tables: Public
Destinations : 5 Routes : 5
Destination/Mask Proto Pre Cost NextHop Interface
10.0.0.0/8 O_ASE 150 2 11.2.1.1 GE0/1
11.2.1.0/24 Direct 0 0 11.2.1.2 GE0/1
11.2.1.2/32 Direct 0 0 127.0.0.1 InLoop0
127.0.0.0/8 Direct 0 0 127.0.0.1 InLoop0
127.0.0.1/32 Direct 0 0 127.0.0.1 InLoop0
The output shows that routes 10.1.1.0/24, 10.2.1.0/24, 10.3.1.0/24 and 10.4.1.0/24 are
summarized into one route 10.0.0.0/8.
Configuring an OSPF stub area at the CLI
Network requirements
shows an AS is split into three areas, where all routers run OSPF. Router A and Router B act
as ABRs to forward routing information between areas. SecPath B acts as the ASBR and is enabled to
redistribute static routes.
Configure Area 1 as a Stub area, reducing LSAs to this area without influencing route reachability.
- H3C SecPath F5000-A5 Firewall H3C SecPath F1000-A-EI H3C SecPath F1000-E-SI H3C SecPath F1000-S-AI H3C SecPath F5000-S Firewall H3C SecPath F5000-C Firewall H3C SecPath F100-C-SI H3C SecPath F1000-C-SI H3C SecPath F100-A-SI H3C SecBlade FW Cards H3C SecBlade FW Enhanced Cards H3C SecPath U200-A U200-M U200-S H3C SecPath U200-CA U200-CM U200-CS H3C SecBlade LB Cards H3C SecPath L1000-A Load Balancer