Beruflich Dokumente
Kultur Dokumente
1
Open Shortest Path First v3
Area 3
Area 0
Area 2
Area 1
OSPFv3, 2/03 © 2002, Cisco Systems, Inc. All rights reserved. 8
Different Types of Routers
Internal
Area 10
LAN Internal
LAN
ABR Area 12
ABR
ABR Backbone
Area 0
ABR
Area 11
RIP/RIPv2 World
Internal ASBR
• Link LSA
Informs neighbors of link local address
Informs neighbors of IPv6 prefixes on link
• Intra-Area Prefix LSA
Associates IPv6 prefixes with a network or
router
LSA
LSA type
Function Code
Router-LSA 1 0x2001
Network-LSA 2 0x2002
Inter-Area-Prefix-LSA 3 0x2003
Inter-Area-Router-LSA 4 0x2004
AS-External-LSA 5 0x4005
Group-membership-LSA 6 0x2006
Type-7-LSA 7 0x2007
Link-LSA 8 0x0008
Intra-Area-Prefix-LSA 9 0x2009
LS Age LS Type
Link State ID
OSPFv3
Advertising Router
• 20 bytes
LS Sequence Number
LS Checksum Length
OSPFv3, 2/03 © 2002, Cisco Systems, Inc. All rights reserved. 27
LSA Options
DC R N MC E V6
3ffe:ffff:2::/64
R4
R5
R1 64 64
1 Virtual Link Area 0 External Route
64 R6
3ffe:ffff:a::/64
R2 R3
64 Router ID
3ffe:ffff:1::/64 1 72.0.0.4
R8
Area 1 R7
Area 2 NSSA
0 WVEB Options
OSPFv3
Type 0 Metric
W: wildcard multicast
Interface ID
V: virtual link endpoint
Neighbor Interface ID
E: ASBR
B: ABR Neighbor Router ID
OSPFv3, 2/03 © 2002, Cisco Systems, Inc. All rights reserved. 31
Router LSA of R3 for Area 1
R1 DR
R3#show ipv6 ospf database router
1 R4
Router Link States (Area 1) Area 0
64
LS age: 0 Always 0 at origination
Options: (V6-Bit E-Bit R-bit DC-Bit) This is an IPv6 router R3
LS Type: Router Links This is a router LSA
Link State ID: 0
Advertising Router: 26.50.0.2 Router ID of R3
LS Seq Number: 80000020
Checksum: 0xB587
Length: 40
Area Border Router bit B = 1
Number of Links: 1
R4
Router Link States (Area 1) 1 Area 0
LS age: 249
Options: (V6-Bit E-Bit R-bit DC-Bit) R3 64
LS Type: Router Links R6
Link State ID: 0
Advertising Router: 26.50.0.2 Router ID of R3
LS Seq Number: 8000001F
Checksum: 0xEA15
Length: 40
Area Border Router bit B = 1
Number of Links: 1
Neighbor Neighbor
Type Description
Router ID Interface ID
LS Age Options 2
OSPFv2
Link ID
Advertising router
LS sequence number
LS Checksum Length
Network mask
Attached Router
OSPFv3 0 Options
Attached Router
Attached Router
Attached Router
OSPFv3, 2/03 © 2002, Cisco Systems, Inc. All rights reserved. 35
Network LSA for LAN 1
R3#show ipv6 ospf database network
LS age: 992
Options: (V6-Bit E-Bit R-bit DC-Bit)
LS Type: Network Links
Link State ID: 3 (Interface ID of Designated Router)
Advertising Router: 26.50.0.1
LS Seq Number: 8000000E
Checksum: 0x3F29 DR 26.50.0.4
Length: 40 26.50.0.1
Attached Router: 26.50.0.1 R4
Attached Router: 26.50.0.2 R1 26.50.0.3
Area 0
1
Attached Router: 26.50.0.4 26.50.0.2 64
Attached Router: 26.50.0.3
R3 R6
R2
P MC LA NU
Address Prefix
LS Age Options 3
OSPFv2 Link ID
Advertising router
LS sequence number
LS Checksum Length
Network mask
0 Metric
TOS TOS Metric
0 Metric
OSPFv3
Prefix length PrefOptions 0
Address Prefix
OSPFv3, 2/03 © 2002, Cisco Systems, Inc. All rights reserved. 43
Inter-area Prefix LSA
R2 R3 R6
3ffe:ffff:2::/64
metric 11
OSPFv3, 2/03 © 2002, Cisco Systems, Inc. All rights reserved. 44
Inter-area Router LSA
LS Age Options 4
OSPFv2
Link ID
Advertising router
LS sequence number
LS Checksum Length
0
0 Metric
TOS TOS Metric
0 Options
OSPFv3
0 Metric
Destination router ID
OSPFv3, 2/03 © 2002, Cisco Systems, Inc. All rights reserved. 46
Inter-area Router LSA Details on R3
R3#show ipv6 ospf database inter-area router
R2 R3 R6 R8
OSPFv3, 2/03 © 2002, Cisco Systems, Inc. All rights reserved. Type 4 Summary 47
External LSA
0 E F T Metric
OSPFv3
Prefix Lgth PrefOptions Ref. LS type
Address Prefix
E: 1/2
Forwarding address (opt)
F: frwd Addr
T: Tag External route tag (opt)
Referenced Link State ID (opt)
R3 R8
R6
OSPFv3, 2/03 © 2002, Cisco Systems, Inc. All rights reserved. External Type
51 5
NSSA External LSA
NSSA External LSA (Type 7) RFC1587
LS age: 163
LS Type: AS External Link
Link State ID: 1
Advertising Router: 72.0.0.4
LS Seq Number: 80000001
Checksum: 0xB35
Length: 36
Prefix Address: 3FFE:FFFF:8::
Prefix Length: 64, Options: None External Route
Metric Type: 2 3ffe:ffff:8::/64
Metric: 20
R4 RID ASBR
Area 0 72.0.0.4
64
64
R8
R3 R6 Type 7 NSSA
OSPFv3, 2/03 © 2002, Cisco Systems, Inc. All rights reserved. 53
Link LSA
# prefixes
Prefix Lgth PrefOptions 0
Address Prefix
• Similar to OSPFv2
Prefixing existing Interface and Exec mode commands
with “ipv6”
• Exec mode
[no] show ipv6 ospf [<process ID>]
clear ipv6 ospf [<process ID>]
ipv6 unicast-routing
!
ipv6 router ospf 1
router-id 2.2.2.2
interface Ethernet0/0
ipv6 address 3ffe:ffff:1::1/64
ipv6 ospf 1 area 0
ipv6 ospf priority 20
ipv6 ospf cost 20
Area 1
ipv6 unicast-routing
!
interface Ethernet0/0
ipv6 address 3ffe:ffff:1:1::1/64 Eth0/1
ipv6 ospf 1 area 0 3ffe:ffff:1:2::/48
! ABR
interface Ethernet0/1
ipv6 address 3ffe:ffff:1:2::2/64 Eth0/0
ipv6 ospf 1 area 1
!
ipv6 router ospf 1
router-id 2.2.2.2
area 1 range 3ffe:ffff:1:2::/48
Area 0
AS 1 Area 0
ipv6 unicast-routing
!
interface Ethernet0/0
ipv6 address 3ffe:ffff:1:1::1/64
Eth0/0
ipv6 ospf 1 area 0
!
interface Ethernet0/1
ASBR
ipv6 address 3ffe:ffff:1:2::2/64 Eth0/1
ipv6 rip trial1 enable
!
ipv6 router ospf 1
router-id 2.2.2.2
redistribute rip trial1 metric 20 RIPv6
!
ipv6 router rip trial1
External network
R4
R5
R1
1 Virtual Link Area 0
R6
R2 R3
• General purpose
[no] debug ipv6 ospf packets
[no] debug ipv6 ospf retransmission
[no] debug ipv6 ospf tree
OSPFv3, 2/03 © 2002, Cisco Systems, Inc. All rights reserved. 86
Debug ipv6 ospf adj (PtoP)
01:29:34: OSPFv3: 2 Way Communication to 72.0.0.1 on Serial0/0, state 2WAY
01:29:34: OSPFv3: Send DBD to 72.0.0.1 on Serial0/0 seq 0x8C0 opt 0x0013 flag 0x7 len 28
01:29:34: OSPFv3: Rcv DBD from 72.0.0.1 on Serial0/0 seq 0x1589 opt 0x0013 flag 0x7 len 28 mtu 1500 state
EXSTART
01:29:34: OSPFv3: NBR Negotiation Done. We are the SLAVE
01:29:34: OSPFv3: Send DBD to 72.0.0.1 on Serial0/0 seq 0x1589 opt 0x0013 flag 0x2 len 368
01:29:34: OSPFv3: Rcv DBD from 72.0.0.1 on Serial0/0 seq 0x158A opt 0x0013 flag 0x3 len 388 mtu 1500 state
EXCHANGE
01:29:34: OSPFv3: Send DBD to 72.0.0.1 on Serial0/0 seq 0x158A opt 0x0013 flag 0x0 len 28
01:29:34: OSPFv3: Database request to 72.0.0.1
01:29:34: OSPFv3: sent LS REQ packet to FE80::202:FCFF:FE3C:A408, length 48
01:29:34: OSPFv3: Rcv DBD from 72.0.0.1 on Serial0/0 seq 0x158B opt 0x0013 flag 0x1 len 28 mtu 1500 state
EXCHANGE
01:29:34: OSPFv3: Exchange Done with 72.0.0.1 on Serial0/0
01:29:34: OSPFv3: Send DBD to 72.0.0.1 on Serial0/0 seq 0x158B opt 0x0013 flag 0x0 len 28
01:29:34: OSPFv3: Synchronized with 72.0.0.1 on Serial0/0, state FULL
01:29:34: %OSPFv3-5-ADJCHG: Process 1, Nbr 72.0.0.1 on Serial0/0 from LOADING to FULL, Loading Done
R3#config terminal
R3(config)#ipv6 router ospf 1
R3(config-router)#log-adjacency-changes
• Release 12.2(15)T
• Release 12.2(RLS3)S for Cisco 7x00 Series
Routers and Cisco Catalyst 6000 Series
Switches
• Release 12.0(24)S the Cisco 12000 Series
Internet Routers