HC120111016 OSPF External Routing
HC120111016 OSPF External Routing
HC120111016 OSPF External Routing
www.huawei.com
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
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
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
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
RTB
Destined for N1, type=2,
Cost=1 cost=20
N1 1 101 RTA √
N1 2 20 RTB
E0/0 RTC
10.1.1.3/24
RTC doesn’t
Loopback0 run OSPF
20.1.1.1/24
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
[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
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
[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
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
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
Loopback0
OSPF routing 2.2.2.2/32 OSPF routing
domain A domain B
[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
[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
AS External Database
Type LinkState ID AdvRouter Age Len Sequence Metric
External 10.1.1.0 2.2.2.2 120 36 80000001 1
external route?
Address field?