爲什麼要使用多播呢?
1、多播有組的概念,也就是一組需要改數據的人
2、送數據到多個接收點
3、減少CPU和帶寬的佔用
4、不知道接收地址的時候
5、數據需要的實時性和同時性
6、隨着接收點增多,帶寬不會隨着增長,很穩定
缺點:
1、多播是基於UDP的
2、盡力傳輸
3、無擁塞避免機制
4、無序
5、有時會造成重複包
多播的模型:
1、first-hop
2、last-hop
主機到路由器之間是IGMP
路由器和路由器之間有 域內多播PIM 域外是MBGP/MSDP
多播地址範圍:224.0.0.0-239.255.255.255 有28bit的groupID
多播地址不能配置在接口上,不能當做源地址,只能當做目的地址
1、保留地址 224.0.0.0/24
224.0.0.1 所有主機和路由器
224.0.0.2 所有的路由器
224.0.0.5 OSPF
224.0.0.6 OSPF
224.0.0.9 RIP V2
224.0.0.10 EIGRP
224.0.0.13 PIM
2、全局地址2224.0.1.0-238.255.255.255
指定源的多播:232.0.0.0 to 232.255.255.255
GLOP地址:233.0.0.0/8
你申請一個AS號就送一段GLOP地址
AS65123:將65123化成16進程數:OXFE63
0XFE=254
0X63=99
233.254.99.0/24,這就是GLOP地址
3、私有地址239.0.0.0/8
IGMP:Internet Group Management Protocol
V1:有兩種報文,一個查詢,一個report包
路由器發查詢包(60秒發一次,224.0.0.1),主機回覆report包
ver+type+unused+校驗和+group address
report報文,目的IP爲:組播IP G:組播IP
讓路由器和其他組員知道,
好處:
1、讓路由器和本組組員知道
2、抑制其他組員的report報文
3、主動告知新組員的加入
IGMPv1的leaving 消息
IGMP v2:
有四種報文:
1、新增報文 指定組查詢
2、離組報文
查詢者的概念:
當有兩臺發送查詢報文的路由器的話,所以需要選舉查詢者
是通過查詢包選出來,比IP地址最小的獲選
IGMP v1 可以通過PIM 選舉DR來選舉查詢者
備份查詢者判斷查詢者在120秒內沒響應,替換查詢者
IGMP v2報文格式
type+ 最大響應時間+校驗和+group address
show ip igmp inteface e0
離組消息:
離組主機發出離組報文
目標地址:224.0.0.2
組地址:組播IP
路由器發送指定組的查詢,若無其他組員回覆,在幾秒內刪除路由器上的組播組
現在來一個小實驗隨便驗證下
一、預配
R1:
interface f0/0
ip address 123.1.1.1 255.255.255.0
no shut
R2:
interface f0/0
ip address 123.1.1.2 255.255.255.0
no shut
PC3:
interface f0/0
ip address 123.1.1.3 255.255.255.0
no shut
二、運行多播協議PIM
R1:
ip multicast-routing
interface f0/0
ip pim sparse-mode
R2:
ip multicast-routing
interface f0/0
ip pim sparse-mode
PC3:
interface f0/0
ip igmp join-group 224.1.1.1
因爲有兩個路由器,那麼誰是查詢者呢?
在R2上show ip igmp interface f0/0
R2(config-if)#do show ip igmp interface f0/0
FastEthernet0/0 is up, line protocol is up
Internet address is 123.1.1.2/24
IGMP is enabled on interface
Current IGMP host version is 2
Current IGMP router version is 2
IGMP query interval is 60 seconds
IGMP querier timeout is 120 seconds
IGMP max query response time is 10 seconds
Last member query count is 2
Last member query response interval is 1000 ms
Inbound IGMP access group is not set
IGMP activity: 2 joins, 0 leaves
Multicast routing is enabled on interface
Multicast TTL threshold is 0
Multicast designated router (DR) is 123.1.1.2 (this system)
IGMP querying router is 123.1.1.1
Multicast groups joined by this system (number of users):
224.0.1.40(1)
R2#show ip igmp groups
IGMP Connected Group Membership
Group Address Interface Uptime Expires Last Reporter Group Accounted
224.1.1.1 FastEthernet0/0 00:10:55 00:02:15 123.1.1.3
224.0.1.40 FastEthernet0/0 00:10:56 00:02:08 123.1.1.1
R1#show ip igmp groups
IGMP Connected Group Membership
Group Address Interface Uptime Expires Last Reporter Group Accounted
224.1.1.1 FastEthernet0/0 00:12:08 00:02:13 123.1.1.3
224.0.1.40 FastEthernet0/0 00:12:09 00:02:13 123.1.1.2
通過show ip igmp groups可以查看組員信息,這裏224.1.1.1的組員就是123.1.1.3
而紅色部分,組播地址是224.0.1.40的report路由器是不同的
所以應該是彼此發送用來選舉DR的
設計讓主機發送離組信息
interface f0/0
no ip dimp join-group 224.1.1.1
並在設備上開啓debug ip igmp
可以查看到如下信息:
Mar 1 00:32:24.607: IGMP(0): Received Leave from 123.1.1.3 (FastEthernet0/0) for 224.1.1.1
*Mar 1 00:32:24.607: IGMP(0): Received Group record for group 224.1.1.1, mode 3 from 123.1.1.3 for 0 sources
*Mar 1 00:32:24.611: IGMP(0): Lower expiration timer to 2000 msec for 224.1.1.1 on FastEthernet0/0
*Mar 1 00:32:24.611: IGMP(0): Send v2 Query on FastEthernet0/0 for group 224.1.1.1
主機離組後的過程就是這樣,路由器接收到此包後,降低抑制時間爲2秒併發送指定組的查詢報文
在2秒內沒有收到report,刪除本地設備上的該組播地址的信息
R1#show ip igmp groups
IGMP Connected Group Membership
Group Address Interface Uptime Expires Last Reporter Group Accounted
224.0.1.40 FastEthernet0/0 00:25:10 00:02:16 123.1.1.2
R2#show ip igmp groups
IGMP Connected Group Membership
Group Address Interface Uptime Expires Last Reporter Group Accounted
224.0.1.40 FastEthernet0/0 00:25:47 00:02:16 123.1.1.2
二層組播地址:IP地址對應的組播二層地址
IP Snooping 只要在交換機上做就可以了
截獲report多播包,拆包到三層,形成表項
演示ip igmp snooping
R1:
interface f0/0
ip address 13.1.1.1 255.255.255.0
no shut
ip pim sparse-mode
ip multicast-routing
Sw1:
ip igmp snooping vlan 1
R3:
interface f0/0
ip address 13.1.1.3 255.255.255.0
no shut
ip igmp join-group 224.1.1.1
在Sw1上show ip igmp snooping groups
建議用硬件模塊去專門處理IGMP snooping報文
CGMP要在交換機和路由器一起做。
是思科私有的,CGMP載荷裏有GDA和USA字段,GDA組播目的MAC地址 USA單播源MAC地址
這裏的交換機就不需要拆包了,是路由器去拆包了。
交換機上全局下cgmp就可以了,而在路由器上,在接口下ip cgmp就可以了
多播轉發:
多播路由關心的是包怎麼進來,而單播是關心包怎麼出去
RPF反向路徑轉發,一臺路由器只有一個RPF接口
RPF校驗,解決重複包問題
查看包的源IP地址在本地路由表中,看入接口和出接口是否是同一個,如果不是校驗不合格
校驗合格的話,包向需要的接口轉發
選RPF接口原則:
1、先比較小的AD值
2、小的metric
3、較大的IP地址
基於組來負載分擔,可以用多播靜態路由,僅用來選RPF接口,不用於多播包的轉發
ip mroute 源IP地址 掩碼 RPF接口
show ip mroute static 靜態路由AD爲0
樹形結構:
1、源樹 SPT
一個源就是一個樹
會產生一個多播表
壞處:一個樹很耗費內存啊 就是應用於dense模式
2、共享樹 RPT
先找點一個RP結合點,兩個源的流量先到一個結合點,然後下方到接收端
這是典型的sparse模式
PIM兩種模式:
sparse mode
dense mode
dense模式是應用於接受者很多的情況下,用push
使用SPT樹模型,初始泛洪,不管有沒有接受者,都聲稱源樹
下面沒有接受者的,會發送pruning包,就沒有多播流量發過來了
FLOOD和PRUNE每3分鐘一次
PIM的工作過程:
如果你運行的IGMPV1 DR就是查詢者
1、建立鄰居
2、發hello包 組播地址224.0.0.13 每30秒一次,holdtime3.5倍
PIM直接封裝在IP包中,協議字段號103
DR:高優先級和高IP地址,選舉規則就是如此。
show ip pim neighbor
模式:
S 表示狀態可以刷新
B 表示雙向PIM
N 表示有低端設備沒有標示DR優先級
這是dense mode的演示實驗
1、預配
R1:
interface s1/0
ip address 12.1.1.1 255.255.255.0
no shut
interface s1/1
ip address 13.1.1.1 255.255.255.0
no shut
interface f0/0
ip address 16.1.1.1 255.255.255.0
no shut
interface l0
ip address 1.1.1.1 255.255.255.0
no shut
R2:
interface s1/0
ip address 12.1.1.2 255.255.255.0
no shut
interface s1/1
ip address 24.1.1.2 255.255.255.0
no shut
interface lo0
ip address 2.2.2.2 255.255.255.0
no shut
R3:
interface s1/1
ip address 13.1.1.3 255.255.255.0
no shut
interface s1/0
ip address 35.1.1.3 255.255.255.0
no shut
interface lo0
ip address 3.3.3.3 255.255.255.0
no shut
R4:
interface s1/1
ip address 24.1.1.4 255.255.255.0
no shut
interface lo0
ip address 4.4.4.4 255.255.255.0
no shut
R5:
interface s1/0
ip address 35.1.1.5 255.255.255.0
no shut
interface lo0
ip address 5.5.5.5 255.255.255.0
no shut
R6:
interface f0/0
ip address 16.1.1.6 255.255.255.0
no shut
interface lo0
ip address 6.6.6.6 255.255.255.0
no shut
no ip routing
ip default-gateway 35.1.1.3
2、在中間路由器上配置IGP,實現路由可達
R1:
router ospf 110
router-id 1.1.1.1
network 12.1.1.0 0.0.0.255 area 0
network 13.1.1.0 0.0.0.255 area 0
network 16.1.1.0 0.0.0.255 area 0
R2:
router ospf 110
router-id 2.2.2.2
network 12.1.1.0 0.0.0.255 area 0
R3:
router ospf 110
router-id 3.3.3.3
network 13.1.1.0 0.0.0.255 area 0
R6:
router ospf 110
router-id 6.6.6.6
network 16.1.1.0 0.0.0.255 area 0
3、配置PIM協議,啓用dense mode
R2:
ip multicast-routing
interface s1/0
ip pim dense-mode
interface s1/1
ip pim dense-mode
R1:
ip multicast-routing
interface s1/0
ip pim dense-mode
interface s1/1
ip pim dense-mode
interface f0/0
ip pim dense-mode
R3:
ip multicast-routing
interface s1/0
ip pim dense-mode
interface s1/1
ip pim dense-mode
R6:
ip multicast-routing
interface f0/0
ip pim dense-mode
R5:
interface s1/0
ip igmp join-group 224.1.1.1
至此,關於dense mode 的配置結束
以下是幾個驗證命令:
1、show ip pim neighbor 用來查看PIM建立的鄰居表
PIM Neighbor Table
Mode: B - Bidir Capable, DR - Designated Router, N - Default DR Priority,
S - State Refresh Capable
Neighbor Interface Uptime/Expires Ver DR
Address Prio/Mode
12.1.1.2 Serial1/0 00:31:01/00:01:43 v2 1 / S
13.1.1.3 Serial1/1 00:30:12/00:01:36 v2 1 / S
16.1.1.6 FastEthernet0/0 00:00:25/00:01:19 v2 1 / DR S
2、show ip pim interface 查看有運行PIM的接口
Address Interface Ver/ Nbr Query DR DR
Mode Count Intvl Prior
12.1.1.1 Serial1/0 v2/D 1 30 1 0.0.0.0
13.1.1.1 Serial1/1 v2/D 1 30 1 0.0.0.0
16.1.1.1 FastEthernet0/0 v2/D 1 30 1 16.1.1.6
3、show ip mroute 查看多播路由表
IP Multicast Routing Table
Flags: D - Dense, S - Sparse, B - Bidir Group, s - SSM Group, C - Connected,
L - Local, P - Pruned, R - RP-bit set, F - Register flag,
T - SPT-bit set, J - Join SPT, M - MSDP created entry,
X - Proxy Join Timer Running, A - Candidate for MSDP Advertisement,
U - URD, I - Received Source Specific Host Report,
Z - Multicast Tunnel, z - MDT-data group sender,
Y - Joined MDT-data group, y - Sending to MDT-data group
Outgoing interface flags: H - Hardware switched, A - Assert winner
Timers: Uptime/Expires
Interface state: Interface, Next-Hop or VCD, State/Mode
(*, 224.1.1.1), 00:31:31/stopped, RP 0.0.0.0, flags: D
Incoming interface: Null, RPF nbr 0.0.0.0
Outgoing interface list:
FastEthernet0/0, Forward/Dense, 00:03:23/00:00:00
Serial1/1, Forward/Dense, 00:31:31/00:00:00
Serial1/0, Forward/Dense, 00:31:31/00:00:00
(24.1.1.4, 224.1.1.1), 00:31:31/00:02:51, flags: T
Incoming interface: Serial1/0, RPF nbr 12.1.1.2
Outgoing interface list:
FastEthernet0/0, Prune/Dense, 00:00:22/00:02:37
Serial1/1, Forward/Dense, 00:31:32/00:00:00
(*, 224.0.1.40), 00:34:00/00:02:21, RP 0.0.0.0, flags: DCL
Incoming interface: Null, RPF nbr 0.0.0.0
Outgoing interface list:
FastEthernet0/0, Forward/Dense, 00:03:24/00:00:00
Serial1/1, Forward/Dense, 00:33:11/00:00:00
Serial1/0, Forward/Dense, 00:34:00/00:00:00
紅色部分比較主要,(24.1.1.4,224.1.1.1) flags T 這裏的T就是SPT置位,說明該條目可以轉發
多播流量,源是24.1.1.4 目的多播地址是224.1.1.1
incoming interface:s1/0 就是RP接口,它的鄰居接口IP是12.1.1.2
outgoing interface list:就是出去的接口列表
f0/0 prune/dense 說明該接口接收到pruning報文,被修剪了,不能用於轉發多播流量
s1/1 forward/dense 可以用於轉發 00:31:32/00:00:00說明隨時可以發送,因爲沒有收到
pruning報文,所以時間不需要被重置,00代表可以隨時發
dense mode 是push流量
想斷掉ping程序,Ctrl+shift+6
sparse mode:是使用pull流量
pull包是由接受者發送的,發給RP的,包是這樣的
(*,G)join包,這樣shared tree就形成了
源首先向RP發送單播register報文
(S,G)register PIM的載荷是多播信息,外層封裝的是單播報文
它發送這個報文,問RP有沒有接收者(是否有該組的組員)
是的話,就拆包,將裏面的多播包發送給接收者
RP這時候會發校驗信息(S,G)join包,形成完整的SPT
由於整個SPT是由RP形成的,可能並不是最優的,可以自動切換
它有個缺省值,默認是0kbps,超過就會切換
RP的作用就是告訴源,接收者在哪裏,然後計算最短路徑
RP的指定:
1、靜態
2、auto-RP 思科私有
3、BSR
1、靜態RP的指定
命令:全局模式下,ip pim rp-address ip地址
該IP地址最好選擇環回口,該接口穩定
在該拓撲中,將R1作爲RP,而該環回口IP需要路由可達,必須先宣告進IGP
R1:
router ospf 110
network 1.1.1.0 0.0.0.255 area 0
R2:ip pim rp-address 1.1.1.1
R3: ip pim rp-address 1.1.1.1
R6:ip pim rp-address 1.1.1.1
呵呵,我們好像還忘了件事情,那就是R1路由器本身也是需要知道它自己就是這個“大班長”RP
R1:ip pim rp-address 1.1.1.1
R4源沒有發送多播流量的前提下,在RP和接收者之間會形成共享樹RPT嗎?
因爲之前我們Ping過了,爲了驗證這個結論,我們需要在相關的路由器上clear ip mroute *
之後我們再來查看下RP,也就是R1上有我們想看到的東西不?
(*,G)join是否有沒有發送,我們在R5上debug ip igmp
呵呵,我們好像搞錯一個問題哦!那就是(*,G)join包不是有R5發的(因爲R5用來模擬PC了哦)
是離R5最近的R3來發的哦,爲了看到該包,我們不能debup ip igmp
而是debug ip pim,以下就是我看到消息,複製給大家看下
*Mar 1 02:07:57.739: PIM(0): Building Periodic (*,G) Join / (S,G,RP-bit) Prune message for 224.1.1.1
*Mar 1 02:07:57.739: PIM(0): Insert (*,224.1.1.1) join in nbr 13.1.1.1's queue
*Mar 1 02:07:57.743: PIM(0): Building Join/Prune packet for nbr 13.1.1.1
*Mar 1 02:07:57.743: PIM(0): Adding v2 (1.1.1.1/32, 224.1.1.1), WC-bit, RPT-bit, S-bit Join
*Mar 1 02:07:57.747: PIM(0): Send v2 join/prune to 13.1.1.1 (Serial1/1)
R3#show ip mroute
IP Multicast Routing Table
Flags: D - Dense, S - Sparse, B - Bidir Group, s - SSM Group, C - Connected,
L - Local, P - Pruned, R - RP-bit set, F - Register flag,
T - SPT-bit set, J - Join SPT, M - MSDP created entry,
X - Proxy Join Timer Running, A - Candidate for MSDP Advertisement,
U - URD, I - Received Source Specific Host Report,
Z - Multicast Tunnel, z - MDT-data group sender,
Y - Joined MDT-data group, y - Sending to MDT-data group
Outgoing interface flags: H - Hardware switched, A - Assert winner
Timers: Uptime/Expires
Interface state: Interface, Next-Hop or VCD, State/Mode
(*, 224.1.1.1), 00:08:50/00:02:11, RP 1.1.1.1, flags: SC
Incoming interface: Serial1/1, RPF nbr 13.1.1.1
Outgoing interface list:
Serial1/0, Forward/Sparse, 00:08:50/00:02:11
(*, 224.0.1.40), 00:09:20/stopped, RP 1.1.1.1, flags: SPCL
Incoming interface: Serial1/1, RPF nbr 13.1.1.1
Outgoing interface list: Null
這個模擬環境的大前提是我們要在R3上關閉RP的自動切換,而且必須是R3
命令是 ip pim spt-threshold infinity 源樹從不切換,這樣我們纔可以看到共享樹
現在我們開啓切換,看有有什麼不同
上面那條命令no掉就可以了,還有哦,我還忘了一件事,那就是在R4上不ping就可以了啊
不需要前面的大前提了哦!
R1#show ip mroute
IP Multicast Routing Table
Flags: D - Dense, S - Sparse, B - Bidir Group, s - SSM Group, C - Connected,
L - Local, P - Pruned, R - RP-bit set, F - Register flag,
T - SPT-bit set, J - Join SPT, M - MSDP created entry,
X - Proxy Join Timer Running, A - Candidate for MSDP Advertisement,
U - URD, I - Received Source Specific Host Report,
Z - Multicast Tunnel, z - MDT-data group sender,
Y - Joined MDT-data group, y - Sending to MDT-data group
Outgoing interface flags: H - Hardware switched, A - Assert winner
Timers: Uptime/Expires
Interface state: Interface, Next-Hop or VCD, State/Mode
(*, 224.1.1.1), 00:02:43/stopped, RP 1.1.1.1, flags: S
Incoming interface: Null, RPF nbr 0.0.0.0
Outgoing interface list:
Serial1/1, Forward/Sparse, 00:02:43/00:02:43
(24.1.1.4, 224.1.1.1), 00:00:16/00:02:43, flags:
Incoming interface: Serial1/0, RPF nbr 12.1.1.2
Outgoing interface list:
Serial1/1, Forward/Sparse, 00:00:16/00:03:13
(*, 224.0.1.40), 00:03:36/00:02:57, RP 1.1.1.1, flags: SJCL
Incoming interface: Null, RPF nbr 0.0.0.0
Outgoing interface list:
Serial1/1, Forward/Sparse, 00:02:41/00:02:45
FastEthernet0/0, Forward/Sparse, 00:03:28/00:02:57
Serial1/0, Forward/Sparse, 00:03:36/00:02:54
接下來就是討論自動選擇RP了
DR的作用:
1、IGMP v1 DR充當查詢者概念
2、Dense mode 無作用
3、sparse mode DR發送join & register報文
auto-RP
candidates for RP,講路由器配成CRP身份,發announce 組播地址224.0.1.39
建議多個CRP
mapping agents決定誰是RP,然後告訴CRP,誰是RP,誰IP最大誰就是,組播224.0.1.40
建議多個MA
規則:
1、sparse-dense mode
2、CRP要通告進IGP
3、MA要通告進IGP
CRP和MA都是用環回口IP,所以必須保證他們的路由可達性
這裏R2做CRP,R1做MA
1、環回口IP可達性配置
R2:
router ospf 110
network 2.2.2.0 0.0.0.255 area 0
R1:
router ospf 110
network 1.1.1.0 0.0.0.255 area 0
2、將接口PIM模式更改
R2:
interface s1/0
ip pim sparse-dense-mode
interface s1/1
ip pim sparse-dense-mode
interface lo0
ip pim sparse-dense-mode
R1:
interface s1/0
ip pim sparse-dense-mode
interface s1/1
ip pim sparse-dense-mode
interfac f0/0
ip pim sparse-dense-mode
interface lo0
ip pim sparse-dense-mode
R3:
interface s1/0
ip pim sparse-dense-mode
interface s1/1
ip pim sparse-dense-mode
R6:
interface f0/0
ip pim sparse-dense-mode
2、配置CRP和MA
R2:
ip pim send-rp-announce lo0 scope 8
R1:
ip pim send-rp-discovery lo0 scope 8
如果在配置以上命令的時候,出現如下信息
Non IP or PIM interface ignored in accepted command.
Must first configure PIM mode on the interface: Loopback0
說明lo0沒有配置ip pim sparse-dense-mode
如果想查看的話,show ip pim rp mapping
R1#show ip pim rp mapping
PIM Group-to-RP Mappings
This system is an RP (Auto-RP)
Group(s) 224.0.0.0/4
RP 1.1.1.1 (?), v2v1
Info source: 2.2.2.2 (?), elected via Auto-RP
Uptime: 00:18:01, expires: 00:02:48
Group(s): 224.0.0.0/4, Static
RP: 1.1.1.1 (?)
R2#show ip pim rp mapping
PIM Group-to-RP Mappings
This system is an RP-mapping agent (Loopback0)
Group(s) 224.0.0.0/4
RP 1.1.1.1 (?), v2v1
Info source: 1.1.1.1 (?), elected via Auto-RP
Uptime: 00:18:43, expires: 00:02:20
Group(s): 224.0.0.0/4, Static
RP: 1.1.1.1 (?)
IP v6
無廣播 無校驗和(在IPv6包頭中)
Dual stack
6to4 tunnels
translation
v4和v6的比較
版本,源、目的IP地址是不變的
分片信息,校驗和,選項和padding都沒有了
總長度、TOS、TTL、協議字段 這些字段名稱改變了
flow-label沒有定義
擴展頭部:next-header 就是協議字段
/23需要註冊的
格式:X:X:X:X:X:X:X:X
前面的零可以省略
一串零可以省略爲一個零
全是零 ::表示就可以了
IPv6地址類型
1、單播地址
2、多播地址
3、任播,一到最近
單播地址
1、AGUA,公網地址
2000::/3 範圍:2000::1 to 3fff:ffff:ffff:ffff:ffff:ffff:ffff:ffff
2001::/16 internat address
2002::/16 6to4 address
2、link-local address
fe80::/10 本地鏈路地址
作用:
1、不用公網地址的兩個的設備互訪使用,只要啓用IPV6 enable
2、作爲路由的下一跳
3、site-local address 用於私有
fec0::/10
4、未指定地址 ::
它有兩層含義:1、未指定地址 2、默認路由
5、環回地址:0:0:0:0:0:0:1
6、IPV4 兼容地址
十進制轉16進制
192.0,2,100 c000:0264
EUI64 擴展唯一標識符:就是主機位
和MAC地址有關係,將MAC地址一分爲而,加入FFFE
找到MAC地址的第七位,如果是0變爲1,如果是1變爲0
組播地址:FF00::/8
ff02::1 all nodes
ff02::2 all routers
被請求節點多播地址ff02::1:ff+24bit是單播地址的映射
任意播:任意的一個單播地址
任意一個單播地址都可以任意播
以太網的協議字段是0x86dd
將v6的後32位截下,前面加33 33 就組成多播MAC地址
R1:
interface f0/0
ipv6 enable
R1的mac:0010:7b80:032f
轉變爲link-local address
0010:7bff:fe80:032f
將第7位變一下
0210:7bff:fe80:032f
加上前綴 fe80::210:7bff:fe80:32f
R2:
interface f0/0
ipv6 enable
如果要ping fe80::210:7bff:fe80:32f 還需要選擇接口的哦
如果是AGUA就不需要了
配下試試
R1:
interface f0/0
ipv6 address 2001::1/64
no shut
直接Ping就可以了哦!