HC120111016 OSPF External Routing

Download as ppt, pdf, or txt
Download as ppt, pdf, or txt
You are on page 1of 26

OSPF External Routing

www.huawei.com

HUAWEI TECHNOLOGIES CO., LTD. All rights reserved


Foreword

This section introduces OSPF external routing technology.


Topics include AS-External-LSA and ASBR-Summary-LSA
explanation, external routing type, Forwarding Address
attribute of external routing, configuration of external routing
import and aggregate, configuration of OSPF processes.

HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 2


Objectives

Upon completion of this section, you will be able to:


 Understand LSA by external routing used

 Understand external routing types

 Understand the Forwarding Address attribute

 Master the configuration of external routing import

 Master the configuration of OSPF processes

HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 3


Importing External Routes

Area 1 Area 0
RTA RTB RTC RTD
10.1.1.0/24 10.2.1.0/24 10.3.1.0/24
.1 .2 .1 .2 .1 .2

Loopback0
10.4.1.1/24

Configure the static route


destined for 10.4.1.0/24 on RTC

HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 4


Producing AS-External-LSA
[RTC]display ospf lsdb ase self-originate

OSPF Process 1 with Router ID 3.3.3.3


Link State Database

Type : External
Ls id : 10.4.1.0
Adv rtr : 3.3.3.3
Ls age : 19 LSA header , LS ID is the
Len : 36
Options : E destination network’s IP address
seq# : 80000001
chksum : 0xe6ce
Net mask : 255.255.255.0 The IP address mask
TOS 0 Metric: 1
E type : 2
of the destination
Forwarding Address : 0.0.0.0
Tag : 1

HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 5


Producing ASBR-Summary-LSA
[RTB]display ospf lsdb asbr self-originate

OSPF Process 1 with Router ID 2.2.2.2


Area: 0.0.0.1
Link State Database

Type : Sum-Asbr
Ls id : 3.3.3.3
Adv rtr : 2.2.2.2
Ls age : 685 LSA header , LS ID is
Len : 28 ASBR’s Router ID
Options : E
seq# : 80000003
chksum : 0xcd58 The cost from RTB
Tos 0 metric: 1562 to the ASBR

HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 6


The LSDB Containing AS-External-LSA
[RTA]display ospf lsdb

OSPF Process 1 with Router ID 1.1.1.1


Link State Database

Area: 0.0.0.1
Type LinkState ID AdvRouter Age Len Sequence Metric
Router 2.2.2.2 2.2.2.2 1535 48 80000006 1562
Router 1.1.1.1 1.1.1.1 1539 48 80000005 1562
Sum-Net 10.2.1.0 2.2.2.2 1475 28 80000003 1562
Sum-Asbr 3.3.3.3 2.2.2.2 1428 28 80000003 1562

AS External Database
Type LinkState ID AdvRouter Age Len Sequence Metric
External 10.4.1.0 3.3.3.3 1426 36 80000003 1

HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 7


External Route Types

Destined for N1, type=1,


cost=100
Cost=1
RTC
RTA

RTB
Destined for N1, type=2,
Cost=1 cost=20

Destination Type Cost Next-hop

N1 1 101 RTA √
N1 2 20 RTB

HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 8


Producing Suboptimal External Routes

Configure the static


Area 0 RTB
route destined for
E0/0 20.1.1.0/24
E0/0
10.1.1.2/24
10.1.1.1/24
RTA

E0/0 RTC
10.1.1.3/24

RTC doesn’t
Loopback0 run OSPF
20.1.1.1/24

HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 9


Specifying Forwarding Address - Topology

Area 0
RTB
E0/0 Configure a static
E0/0
10.1.1.2/24 route to 20.1.1.0/24
10.1.1.1/24
RTA

Configure RTC
10.1.1.0/24 into E0/0
OSPF 10.1.1.3/24

RTC doesn’t
Loopback0 run OSPF
20.1.1.1/24

HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 10


Specifying Forwarding Address
[RTB]ip route-static 20.1.1.0 24 10.1.1.3 The next-hop is within
[RTB] OSPF routing domain
[RTB]display ospf lsdb ase
OSPF Process 1 with Router ID 2.2.2.2
Link State Database
Type : External
Ls id : 20.1.1.0
Adv rtr : 2.2.2.2
Ls age : 67
Len : 36
Options : E
seq# : 80000001
chksum : 0x584b
Net mask : 255.255.255.0 Forwarding Address
TOS 0 Metric: 1
E type : 2 is set to 10.1.1.3
Forwarding Address : 10.1.1.3
Tag : 1

HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 11


Selecting the best route according to
Forwarding Address

[RTA]display ip routing-table
Destination/Mask Proto Pre Cost next-hop Interface
10.1.1.0/24 Direct 0 0 10.1.1.1 Ethernet0/0/0
10.1.1.1/32 Direct 0 0 127.0.0.1 InLoopBack0
20.1.1.0/24 O_ASE 150 1 10.1.1.3 Ethernet0/0/0
127.0.0.0/8 Direct 0 0 127.0.0.1 InLoopBack0
127.0.0.1/32 Direct 0 0 127.0.0.1 InLoopBack0

Calculate the next-hop according


to Forwarding Address

HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 12


Configuring Importing External Routes -
Topology

Loopback0 Lo Lo
2. opb 3. opb
1.1.1.1/32 2.
2. ack
3.
3. ack b a ck1
2/ 0 3/ 0 p
32 32 Loo /32
. 1 .1
E0/0 E0/0 E0/1 E0/0 30.1
10.1.1.1/30 .2 10.2.1.1/30 .2 Loo
pba
30. ck2
RTB RTC 1.1
RTA .2/3
2
Area 0
Area 1
ASBR

HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 13


Configuring Importing External Routes -
Configuration of RTA and RTB

[RTA]router id 1.1.1.1
[RTA]ospf
[RTA-ospf-1]area 1
[RTA-ospf-1-area-0.0.0.1]network 1.1.1.1 0.0.0.0
[RTA-ospf-1-area-0.0.0.1]network 10.1.1.0 0.0.0.3

[RTB]router id 2.2.2.2
[RTB]ospf
[RTB-ospf-1]area 1
[RTB-ospf-1-area-0.0.0.1]network 2.2.2.2 0.0.0.0
[RTB-ospf-1-area-0.0.0.1]network 10.1.1.0 0.0.0.3
[RTB-ospf-1-area-0.0.0.1]quit
[RTB-ospf-1]area 0
[RTB-ospf-1-area-0.0.0.0]network 10.2.1.0 0.0.0.3

HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 14


Configuring Importing External Routes -
Configuration of RTC
[RTC]router id 3.3.3.3
[RTC]ospf
[RTC-ospf-1]area 0
[RTC-ospf-1-area-0.0.0.0]network 3.3.3.3 0.0.0.0
[RTC-ospf-1-area-0.0.0.0]network 10.2.1.0 0.0.0.3
[RTC-ospf-1-area-0.0.0.0]quit Import direct route
[RTC-ospf-1]import-route direct into OSPF
[RTC-ospf-1]asbr-summary 30.1.1.0 255.255.255.0
Aggregate routes on
ASBR

HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 15


Configuring Importing External Routes -
Check AS-External-LSA
[RTC]display ospf lsdb ase self-originate

OSPF Process 1 with Router ID 3.3.3.3


Link State Database

Type : External
Ls id : 30.1.1.0 Aggregated
Adv rtr : 3.3.3.3 network
Ls age : 64
Len : 36
Options : E
seq# : 80000001
chksum : 0x1093
Net mask : 255.255.255.0
TOS 0 Metric: 2
E type : 2
Forwarding Address : 0.0.0.0
Tag : 1

HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 17


Configuring Importing External Routes -
Check ASBR-Summary-LSA
[RTB]display ospf lsdb asbr self-originate

OSPF Process 1 with Router ID 2.2.2.2


Area: 0.0.0.0
Link State Database

Area: 0.0.0.1
Link State Database

Type : Sum-Asbr
Ls id : 3.3.3.3 Produced by
Adv rtr : 2.2.2.2 RTB , describing
Ls age : 264
RTC
Len : 28
Options : E
seq# : 80000001
chksum : 0xa0a6
Tos 0 metric: 1

HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 18


Configuring Importing External Routes -
Check RTA’s Routing Table
[RTA]display ip routing-table
Routing Tables: Public
Destinations : 17 Routes : 17
Destination/Mask Proto Pre Cost next-hop Interface
1.1.1.1/32 Direct 0 0 127.0.0.1 InLoopBack0
3.3.3.3/32 O_ASE 150 1 10.1.1.2 Ethernet0
10.1.1.0/24 O_ASE 150 1 10.1.1.2 Ethernet0
10.1.1.0/30 Direct 0 0 10.1.1.1 Ethernet0
10.1.1.1/32 Direct 0 0 127.0.0.1 InLoopBack0
10.2.1.0/30 OSPF 10 2 10.1.1.2 Ethernet0
10.2.1.1/32 O_ASE 150 1 10.1.1.2 Ethernet0
10.3.1.0/24 O_ASE 150 1 10.1.1.2 Ethernet0
10.3.1.2/32 O_ASE 150 1 10.1.1.2 Ethernet0
10.5.1.0/30 Direct 0 0 10.5.1.1 Serial1
10.5.1.1/32 Direct 0 0 127.0.0.1 InLoopBack0
10.5.1.2/32 Direct 0 0 10.5.1.2 Serial1
20.1.1.1/32 Direct 0 0 127.0.0.1 InLoopBack0
20.1.1.2/32 Direct 0 0 127.0.0.1 InLoopBack0
30.1.1.0/24 O_ASE 150 2 10.1.1.2 Ethernet0
127.0.0.0/8 Direct 0 0 127.0.0.1 InLoopBack0
127.0.0.1/32 Direct 0 0 127.0.0.1 InLoopBack0

HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 19


Configuring OSPF Multiple Process -
Topology

Loopback0
OSPF routing 2.2.2.2/32 OSPF routing
domain A domain B

Loopback0 E0/0 E0/0 S1 S1 Loopback0


1.1.1.1/32 .1 10.1.1.1/30.2 .1 10.2.1.1/30 .2 3.3.3.3/32
RTA RTB RTC
Area 0 Area 0

HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 20


Configuring OSPF Multiple Process - Configuration of RTA

[RTA]router id 1.1.1.1
[RTA]ospf
[RTA-ospf-1]area 0
[RTA-ospf-1-area-0.0.0.0]network 1.1.1.1 0.0.0.0
[RTA-ospf-1-area-0.0.0.0]network 10.1.1.0 0.0.0.3

HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 21


Configuring OSPF Multiple Process - Configuration of RTB
[RTB]ospf 1 router-id 2.2.2.2 Different process can use
[RTB-ospf-1]area 0 different Router ID
[RTB-ospf-1-area-0.0.0.0]network 10.1.1.0 0.0.0.3
[RTB-ospf-1-area-0.0.0.0]quit
[RTB-ospf-1]import-route direct
[RTB-ospf-1]import-route ospf 2 Import routes from OSPF
[RTB-ospf-1]quit process 2 into process 1
[RTB]ospf 2 router-id 2.2.2.2
[RTB-ospf-2]area 0
[RTB-ospf-2-area-0.0.0.0]network 10.2.1.0 0.0.0.3
[RTB-ospf-2-area-0.0.0.0]quit
[RTB-ospf-2]import-route direct Import routes from OSPF
[RTB-ospf-2]import-route ospf 1 process 1 into process 2
[RTB-ospf-2]quit
[RTB]

HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 22


Configuring OSPF Multiple Process - Configuration of RTC

[RTC]router id 3.3.3.3
[RTC]ospf
[RTC-ospf-1]area 0
[RTC-ospf-1-area-0.0.0.0]network 3.3.3.3 0.0.0.0
[RTC-ospf-1-area-0.0.0.0]network 10.2.1.0 0.0.0.3

HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 23


Configuring OSPF Multiple Process - Check IP Routing
Table
[RTC]display ip routing-table
Routing Tables: Public
Destinations : 12 Routes : 12
Destination/Mask Proto Pre Cost next-hop Interface
1.1.1.1/32 O_ASE 150 1 10.2.1.1 Serial1
3.3.3.3/32 Direct 0 0 127.0.0.1 InLoopBack0
10.1.1.0/30 O_ASE 150 1 10.2.1.1 Serial1
10.2.1.0/30 Direct 0 0 10.2.1.2 Serial1
10.2.1.1/32 Direct 0 0 10.2.1.1 Serial1
10.2.1.2/32 Direct 0 0 127.0.0.1 InLoopBack0
127.0.0.0/8 Direct 0 0 127.0.0.1 InLoopBack0
127.0.0.1/32 Direct 0 0 127.0.0.1 InLoopBack0

The routes learned from other process are


considered as AS external routes

HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 24


Configuring OSPF Multiple Process - Check
LSDB
[RTB]display ospf lsdb
OSPF Process 1 with Router ID 2.2.2.2
Link State Database
Area: 0.0.0.0
Type LinkState ID AdvRouter Age Len Sequence Metric
Router 2.2.2.2 2.2.2.2 136 36 80000006 1
Router 1.1.1.1 1.1.1.1 469 36 80000003 1
Network 10.1.1.2 2.2.2.2 463 32 80000002 0
AS External Database
Type LinkState ID AdvRouter Age Len Sequence Metric
External 10.2.1.0 2.2.2.2 136 36 80000001 1

OSPF Process 2 with Router ID 2.2.2.2


Link State Database
Area: 0.0.0.0
Type LinkState ID AdvRouter Age Len Sequence Metric
Router 3.3.3.3 3.3.3.3 200 48 80000024 1
Router 2.2.2.2 2.2.2.2 120 48 80000022 1

AS External Database
Type LinkState ID AdvRouter Age Len Sequence Metric
External 10.1.1.0 2.2.2.2 120 36 80000001 1

HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 25


Summary

 Which type of router generates type 4 LSA and

type 5 LSA respectively?

 What is the difference between the two types of

external route?

 How does the ASBR specify the Forwarding

Address field?

HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 26


Thank You
www.huawei.com

You might also like