天天看點

IPV6學習之OSPFv3的基本配置

IPV6學習之OSPFv3的基本配置 實驗目的: 掌握基本的osvfv3的基本配置   <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

  實驗拓撲:

IPV6學習之OSPFv3的基本配置

  配置步驟:

R1的配置:

R1(config)#ipv6 unicast-routing            //開啟ipv6的路由功能

R1(config)#ipv6 router ospf 1              

R1(config-rtr)#router-id 1.1.1.1            //配置路由器ID

R1(config)#interface s1/1  

R1(config-if)#ipv6 address 2001:db8:0:1::1/64 

R1(config-if)#ipv6 ospf 1 area 0           //在接口啟用ospfv3

R1(config-if)#no shutdown 

R1(config-if)#exit

R1(config)#interface loopback 0

R1(config-if)#ipv6 address 2001:DB8:0:10::1/64

R1(config-if)#ipv6 ospf 1 area 0

R2的配置:

R2(config)#ipv6 unicast-routing 

R2(config)#ipv6 router ospf 1 

R2(config-rtr)#router-id 2.2.2.2

R2(config-rtr)#int s1/0

R2(config-if)#ipv6 address 2001:db8:0:1::2/64

R2(config-if)#ipv6 ospf 1 area 0

R2(config-if)#no shutdown 

R2(config-if)#int s1/1

R2(config-if)#ipv6 address 2001:db8:0:2::1/64

R2(config-if)#ipv6 ospf 1 area 1

R2(config-if)#no shutdown

R3的配置:

R3(config)#ipv6 unicast-routing 

R3(config)#ipv6 router ospf 1

R3(config-rtr)#router-id 3.3.3.3

R3(config)#int s1/ 0

R3(config-if)#ipv6 address 2001:db8:0:2::2/64

R3(config-if)#ipv6 ospf 1 area 1

R3(config-if)#no shutdown

R3(config)#int  loopback  0

R3(config-if)#ipv6 address 2001:db8:0:30:1

R3(config-if)#ipv6 ospf 1 area  1

實驗驗證:

檢視ospfv3的路由表

R2#show ipv6 route

IPv6 Routing Table - 8 entries

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

       U - Per-user Static route

       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

C   2001:DB8:0:1::/64 [0/0]

     via ::, Serial1/0

L   2001:DB8:0:1::2/128 [0/0]

     via ::, Serial1/0

C   2001:DB8:0:2::/64 [0/0]

     via ::, Serial1/1

L   2001:DB8:0:2::1/128 [0/0]

     via ::, Serial1/1

O   2001:DB8:0:10::1/128 [110/64]

     via FE80::C800:BFF:FEFC:0, Serial1/0

O   2001:DB8:0:30::1/128 [110/64]

     via FE80::C802:BFF:FEFC:0, Serial1/1

L   FE80::/10 [0/0]

     via ::, Null0

L   FF00::/8 [0/0]

     via ::, Null0

R2#

檢視i路由器上ospf程序id和配置到每個區域中的接口

R2#show ipv6 protocols 

IPv6 Routing Protocol is "connected"

IPv6 Routing Protocol is "static"

IPv6 Routing Protocol is "ospf 1"

  Interfaces (Area 0):

    Serial1/0

  Interfaces (Area 1):

    Serial1/1

  Redistribution:

    None

R2#

檢視OSPF程序資訊

R3#sh ipv6 ospf 

 Routing Process "ospfv3 1" with ID 3.3.3.3

 SPF schedule delay 5 secs, Hold time between two SPFs 10 secs

 Minimum LSA interval 5 secs. Minimum LSA arrival 1 secs

 LSA group pacing timer 240 secs

 Interface flood pacing timer 33 msecs

 Retransmission pacing timer 66 msecs

 Number of external LSA 0. Checksum Sum 0x000000

 Number of areas in this router is 1. 1 normal 0 stub 0 nssa

    Area 1

        Number of interfaces in this area is 2

        SPF algorithm executed 2 times

        Number of LSA 8. Checksum Sum 0x05CB0D

        Number of DCbitless LSA 0

        Number of indication LSA 0

        Number of DoNotAge LSA 0

        Flood list length 0

R3#

檢視OSPF鄰居,因為是用序列槽連接配接是以沒出現DR的選舉

R2#sh ipv6 ospf neighbor 

Neighbor ID     Pri   State           Dead Time   Interface ID    Interface

1.1.1.1           1   FULL/  -        00:00:37    4               Serial1/0

3.3.3.3           1   FULL/  -        00:00:37    3               Serial1/1

轉載于:https://blog.51cto.com/zhibing/209065