48. Configuring OSPFv3 MultiArea and Area Summary

1、掌握基于 IPv6 的 OSPF 多区域配置方法。

2、配置 OSPFv3 的区域汇总。

 

网络图:

image.png


配置各台路由器的 IPv6 地址,并且使用 ping 命令确认直连接口的互通性

 

本实验与OSPFv2类似,这里只给出R2路由器的OSPFv3配置:

R2(config)#ipv6 router ospf 20

R2(config-rtr)#router-id 2.2.2.2

R2(config-rtr)#exit

R2(config)#int s1/0

R2(config-if)#ipv6 ospf 20 a 1

R2(config-if)#exit

R2(config)#int s1/1

R2(config-if)#ipv6 ospf 20 a 0

R2(config-if)#exit

 

查看R2的路由邻居表:

R2#show ipv6 ospf nei detail

 Neighbor 3.3.3.3

    In the area 0 via interface Serial1/1

    Neighbor: interface-id 5, link-local address FE80::C802:8FF:FEE0:0

    Neighbor priority is 1, State is FULL, 6 state changes

    Options is 0x6745C079

    Dead timer due in 00:00:32

    Neighbor is up for 00:08:37

    Index 1/1/2, retransmission queue length 0, number of retransmission 0

    First 0x0(0)/0x0(0)/0x0(0) Next 0x0(0)/0x0(0)/0x0(0)

    Last retransmission scan length is 0, maximum is 0

    Last retransmission scan time is 0 msec, maximum is 0 msec

 Neighbor 1.1.1.1

    In the area 1 via interface Serial1/0

    Neighbor: interface-id 5, link-local address FE80::C800:8FF:FEE0:0

    Neighbor priority is 1, State is FULL, 6 state changes

    Options is 0x6745B679

    Dead timer due in 00:00:33

    Neighbor is up for 00:08:46

    Index 1/1/1, retransmission queue length 0, number of retransmission 0

    First 0x0(0)/0x0(0)/0x0(0) Next 0x0(0)/0x0(0)/0x0(0)

    Last retransmission scan length is 0, maximum is 0

    Last retransmission scan time is 0 msec, maximum is 0 msec

 

R2的链路状态数据库:

R3#show ipv6 ospf data 

 

            OSPFv3 Router with ID (3.3.3.3) (Process ID 20)

 

                Router Link States (Area 0)

 

ADV Router      Age         Seq#        Fragment ID  Link count  Bits

2.2.2.2         897         0x80000003  0            1           B

3.3.3.3         896         0x80000003  0            1           None

 

                Inter Area Prefix Link States (Area 0)   ---->LSA 0X2003 相当于OSPFv2的LSA 3类似

                                                      用于通告区域间的前缀信息,泛洪整个AS

ADV Router      Age         Seq#        Prefix

2.2.2.2         899         0x80000001  2001:AB1:0:2::/64

2.2.2.2         650         0x80000001  2001:AB1:0:8::/64

2.2.2.2         650         0x80000001  2001:AB1:0:9::/64

2.2.2.2         650         0x80000001  2001:AB1:0:A::/64

2.2.2.2         650         0x80000001  2001:AB1:0:B::/64

 

                Link (Type-8) Link States (Area 0)

 

ADV Router      Age         Seq#        Link ID    Interface

2.2.2.2         903         0x80000002  6          Se1/0

3.3.3.3         891         0x80000002  5          Se1/0

3.3.3.3         976         0x80000001  17         Lo0

 

                Intra Area Prefix Link States (Area 0)

 

ADV Router      Age         Seq#        Link ID    Ref-lstype  Ref-LSID

2.2.2.2         904         0x80000001  0          0x2001      0

3.3.3.3         891         0x80000002  0          0x2001      0

 

测试路由:

R3#ping 2001:ab1:0:9::1

 

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 2001:AB1:0:9::1, timeout is 2 seconds:

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 16/32/80 ms

R3#ping 2001:ab1:0:a::1

 

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 2001:AB1:0:A::1, timeout is 2 seconds:

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 20/29/44 ms

 

R3的路由表:

R3#show ipv6 route

IPv6 Routing Table - 10 entries

Codes: C - Connected, L - Local, S - Static, R - RIP, B - BGP

       U - Per-user Static route, M - MIPv6

       I1 - ISIS L1, I2 - ISIS L2, IA - ISIS interarea, IS - ISIS summary

       O - OSPF intra, OI - OSPF inter, OE1 - OSPF ext 1, OE2 - OSPF ext 2

       ON1 - OSPF NSSA ext 1, ON2 - OSPF NSSA ext 2

       D - EIGRP, EX - EIGRP external

OI  2001:AB1:0:2::/64 [110/128]

     via FE80::C801:8FF:FEE0:0, Serial1/0

C   2001:AB1:0:3::/64 [0/0]

     via ::, Serial1/0

L   2001:AB1:0:3::2/128 [0/0]

     via ::, Serial1/0

C   2001:AB1:0:4::/64 [0/0]

     via ::, Loopback0

L   2001:AB1:0:4::1/128 [0/0]

     via ::, Loopback0

OI  2001:AB1:0:8::/64 [110/129]

     via FE80::C801:8FF:FEE0:0, Serial1/0

OI  2001:AB1:0:9::/64 [110/129]

     via FE80::C801:8FF:FEE0:0, Serial1/0

OI  2001:AB1:0:A::/64 [110/129]

     via FE80::C801:8FF:FEE0:0, Serial1/0

OI  2001:AB1:0:B::/64 [110/129]

     via FE80::C801:8FF:FEE0:0, Serial1/0   --->由LSA 0X2003学习到的区域间路由信息

L   FF00::/8 [0/0]

     via ::, Null0

 

在R2上配置区域汇总,提高路由效率:

R2(config)#ipv6 router ospf 20

R2(config-rtr)#area 1 range 2001:ab1:0:8::/62   ---->对区域1手动汇总

R2(config-rtr)#exit

 

查看R3路由表,确认手动汇总:

R3#show ipv6 route

IPv6 Routing Table - 7 entries

Codes: C - Connected, L - Local, S - Static, R - RIP, B - BGP

       U - Per-user Static route, M - MIPv6

       I1 - ISIS L1, I2 - ISIS L2, IA - ISIS interarea, IS - ISIS summary

       O - OSPF intra, OI - OSPF inter, OE1 - OSPF ext 1, OE2 - OSPF ext 2

       ON1 - OSPF NSSA ext 1, ON2 - OSPF NSSA ext 2

       D - EIGRP, EX - EIGRP external

OI  2001:AB1:0:2::/64 [110/128]

     via FE80::C801:8FF:FEE0:0, Serial1/0

C   2001:AB1:0:3::/64 [0/0]

     via ::, Serial1/0

L   2001:AB1:0:3::2/128 [0/0]

     via ::, Serial1/0

C   2001:AB1:0:4::/64 [0/0]

     via ::, Loopback0

L   2001:AB1:0:4::1/128 [0/0]

     via ::, Loopback0

OI  2001:AB1:0:8::/62 [110/129]

     via FE80::C801:8FF:FEE0:0, Serial1/0

L   FF00::/8 [0/0]

     via ::, Null0

 

说明汇总正常。

 


发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

桂ICP备19000498号-3