CISCO——OSPFv3

不了解OSPF的请先看完OSPFv2的文章

https://blog.walap.net/cisco-ospf%e8%b7%af%e7%94%b1%e5%8d%8f%e8%ae%ae%ef%bc%88%e6%9c%aa%e5%ae%8c%ef%bc%89/

介绍

OSPFv3使用FF02::5和FF02::6运行OSPF

我们来看看怎么激活运行ospfv3

老办法

R1(config)#ipv unicast-routing 
R1(config)#ipv6 router ospf 1
*May 11 11:27:22.347: %OSPFv3-4-NORTRID: Process OSPFv3-1-IPv6 could not pick a router-id, 
please configure manually     //注意手动指定OSPFv3 router-id
R1(config-rtr)#router-id 10.10.1.1
R1(config-rtr)#exit
R1(config)#int g0/0
R1(config-if)#ipv ospf 1 area 0

更多的协议簇方法

R1(config)#router ospfv3 1
R1(config-router)#router-id 1.1.1.1
R1(config)#int g0/0
R1(config-if)#ospfv3 1 ipv6 area 0

LSA区别

修改了一类二类LSA的一些区别
引入了OSPFv3的新LSA type8 type9

LSA type 1

R1#show ospfv3 1 database router 

          OSPFv3 1 address-family ipv6 (router-id 1.1.1.1)

                Router Link States (Area 0)

  LS age: 1043
  Options: (V6-Bit, E-Bit, R-Bit, DC-Bit)
  LS Type: Router Links
  Link State ID: 0
  Advertising Router: 1.1.1.1
  LS Seq Number: 80000002
  Checksum: 0xEB02
  Length: 40
  Number of Links: 1

    Link connected to: a Transit Network
      Link Metric: 1
      Local Interface ID: 2             //接口ID 
      Neighbor (DR) Interface ID: 2     //DR给自己分配的ID 自己是链路上的第几个接口
      Neighbor (DR) Router ID: 2.2.2.2


LSA type 2

R1#show ospfv3 1 database network 

          OSPFv3 1 address-family ipv6 (router-id 1.1.1.1)

                Net Link States (Area 0)

  LS age: 1597
  Options: (V6-Bit, E-Bit, R-Bit, DC-Bit)
  LS Type: Network Links
  Link State ID: 2 (Interface ID of Designated Router)
  Advertising Router: 2.2.2.2
  LS Seq Number: 80000001
  Checksum: 0x17DB
  Length: 32
        Attached Router: 2.2.2.2  //链路上的路由器
        Attached Router: 1.1.1.1

LSA type 8

八类LSA只能在本链路上通告 不会传递到别的链路

R1#show ospfv3 1 database link 

          OSPFv3 1 address-family ipv6 (router-id 1.1.1.1)

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

  LS age: 353
  Options: (V6-Bit, E-Bit, R-Bit, DC-Bit)
  LS Type: Link-LSA (Interface: GigabitEthernet0/0)
  Link State ID: 2 (Interface ID)
  Advertising Router: 1.1.1.1
  LS Seq Number: 80000002
  Checksum: 0xAA02
  Length: 56
  Router Priority: 1
  Link Local Address: FE80::5200:FF:FE01:0
  Number of Prefixes: 1
  Prefix Address: 2001:1111::
  Prefix Length: 64, Options: None

  LS age: 276
  Options: (V6-Bit, E-Bit, R-Bit, DC-Bit)
  LS Type: Link-LSA (Interface: GigabitEthernet0/0)
  Link State ID: 2 (Interface ID)
  Advertising Router: 2.2.2.2
  LS Seq Number: 80000002
  Checksum: 0xA007
  Length: 56
  Router Priority: 1
  Link Local Address: FE80::5200:FF:FE02:0
  Number of Prefixes: 1
  Prefix Address: 2001:1111::       
  Prefix Length: 64, Options: None

LSA type8通告接口ID对应的本地链路地址以及网络及其掩码

LSA type 9

R1#show ospfv3 database prefix 

          OSPFv3 1 address-family ipv6 (router-id 1.1.1.1)

                Intra Area Prefix Link States (Area 0)

  LS age: 634
  LS Type: Intra-Area-Prefix-LSA
  Link State ID: 2048
  Advertising Router: 2.2.2.2
  LS Seq Number: 80000002
  Checksum: 0x1E49
  Length: 44
  Referenced LSA Type: 2002
  Referenced Link State ID: 2
  Referenced Advertising Router: 2.2.2.2
  Number of Prefixes: 1
  Prefix Address: 2001:1111::
  Prefix Length: 64, Options: None, Metric: 0

九类LSA的作用十分的简单 他的作用就是通告本路由器上所有的网段

暂无评论

发送评论 编辑评论


				
|´・ω・)ノ
ヾ(≧∇≦*)ゝ
(☆ω☆)
(╯‵□′)╯︵┴─┴
 ̄﹃ ̄
(/ω\)
∠( ᐛ 」∠)_
(๑•̀ㅁ•́ฅ)
→_→
୧(๑•̀⌄•́๑)૭
٩(ˊᗜˋ*)و
(ノ°ο°)ノ
(´இ皿இ`)
⌇●﹏●⌇
(ฅ´ω`ฅ)
(╯°A°)╯︵○○○
φ( ̄∇ ̄o)
ヾ(´・ ・`。)ノ"
( ง ᵒ̌皿ᵒ̌)ง⁼³₌₃
(ó﹏ò。)
Σ(っ °Д °;)っ
( ,,´・ω・)ノ"(´っω・`。)
╮(╯▽╰)╭
o(*////▽////*)q
>﹏<
( ๑´•ω•) "(ㆆᴗㆆ)
😂
😀
😅
😊
🙂
🙃
😌
😍
😘
😜
😝
😏
😒
🙄
😳
😡
😔
😫
😱
😭
💩
👻
🙌
🖕
👍
👫
👬
👭
🌚
🌝
🙈
💊
😶
🙏
🍦
🍉
😣
Source: github.com/k4yt3x/flowerhd
颜文字
Emoji
小恐龙
花!
上一篇