1. 程式人生 > >烽火2640路由器命令列手冊-06-組播協議配置命令

烽火2640路由器命令列手冊-06-組播協議配置命令

組播協議配置命令

 

目  錄

第1章 基本組播配置命令... 1

1.1 基本組播配置命令... 1

1.1.1 debug ip mpacket 1

1.1.2 debug ip mrouting. 2

1.1.3 debug ip mroute-cache. 3

1.1.4 debug ip multicast 4

1.1.5 ip mroute. 5

1.1.6 ip mroute-cache. 6

1.1.7 ip multicast-routing. 7

1.1.8 ip multicast route-limit 8

1.1.9 ip multicast boundary. 8

1.1.10 ip multicast helper-map. 9

1.1.11 ip multicast rate-limit 11

1.1.12 ip multicast ttl-threshold. 12

1.1.13 show ip mflow.. 13

1.1.14 show ip mroute-cache. 14

1.1.15 show ip mroute mfc. 15

1.1.16 show ip mroute static. 16

第2章 IGMP配置命令... 18

2.1 IGMP配置命令... 18

2.1.1 clear ip igmp group. 18

2.1.2 debug ip igmp. 19

2.1.3 debug ip igmp-host 20

2.1.4 ip igmp helper-address. 21

2.1.5 ip igmp join-group. 22

2.1.6 ip igmp immediate-leave group-list 22

2.1.7 ip igmp last-member-query-interval 23

2.1.8 ip igmp querier-timeout 24

2.1.9 ip igmp query-interval 25

2.1.10 ip igmp query-max-response-time. 26

2.1.11 ip igmp static-group. 27

2.1.12 ip igmp version. 28

2.1.13 show ip igmp groups. 28

2.1.14 show ip igmp interface. 30

2.1.15 show ip igmp-host 31

2.2 OLNK配置命令... 32

2.2.1 ip olnk. 33

2.2.2 show ip mroute olnk. 33

2.2.3 show ip rpf olnk. 35

第3章 PIM-DM配置命令... 36

3.1 PIM-DM配置命令... 36

3.1.1 clear ip mroute pim-dm.. 36

3.1.2 clear ip pim-dm interface. 37

3.1.3 debug ip pim-dm.. 38

3.1.4 ip pim-dm.. 40

3.1.5 ip pim-dm dr-priority. 41

3.1.6 ip pim-dm hello-interval 42

3.1.7 ip pim version. 43

3.1.8 ip pim-dm state-refresh origination-interval 44

3.1.9 ip pim-dm neighor-filter 44

3.1.10 ip pim-dm state-refresh disable. 45

3.1.11 show ip mroute pim-dm.. 46

3.1.12 show ip pim-dm neighbor 47

3.1.13 show ip pim-dm interface. 49

3.1.14 show ip rpf pim-dm.. 50

第4章 PIM-SM配置命令... 52

4.1 PIM-SM配置命令... 52

4.1.1 clear ip mroute pim-sm.. 53

4.1.2 clear ip pim-sm rp-mapping. 54

4.1.3 debug ip pim-sm.. 54

4.1.4 ip pim-sm.. 56

4.1.5 ip pim-sm accept-register 56

4.1.6 ip pim-sm accept-rp. 57

4.1.7 ip pim-sm bsr-border 58

4.1.8 ip pim-sm bsr-candidate. 59

4.1.9 ip pim-sm dr-priority. 59

4.1.10 ip pim-sm hello-interval 60

4.1.11 ip pim-sm lan-prune-delay. 61

4.1.12 ip pim-sm neighbor-filter 62

4.1.13 ip pim-sm register-rate-limit 62

4.1.14 ip pim-sm register-source. 63

4.1.15 ip pim-sm rp-address. 64

4.1.16 ip pim-sm rp-candidate. 64

4.1.17 ip pim-sm spt-threshold. 65

4.1.18 ip pim-sm ssm.. 66

4.1.19 show ip mroute pim-sm.. 67

4.1.20 show ip pim-sm bsr-router 68

4.1.21 show ip pim-sm interface. 69

4.1.22 show ip pim-sm neighbor 70

4.1.23 show ip pim-sm rp. 70

4.1.24 show ip pim-sm rp-hash. 71

4.1.25 show ip rpf pim-sm.. 72

第5章 DVMRP配置命令... 74

5.1.1 clear ip dvmrp neighbor 74

5.1.2 clear ip dvmrp route. 74

5.1.3 clear ip mroute dvmrp. 75

5.1.4 debug ip dvmrp mroute. 76

5.1.5 debug ip dvmrp neighbor 77

5.1.6 debug ip dvmrp route. 78

5.1.7 debug ip dvmrp packet 79

5.1.8 ip dvmrp. 80

5.1.9 ip dvmrp advert-metric. 81

5.1.10 ip dvmrp auto-summary. 83

5.1.11 ip dvmrp default-information. 84

5.1.12 ip dvmrp force-leaf 84

5.1.13 ip dvmrp metric. 85

5.1.14 ip dvmrp prune-lifetime. 87

5.1.15 ip dvmrp route-filter 87

5.1.16 ip dvmrp summary-address. 89

5.1.17 show ip dvmrp interface. 89

5.1.18 show ip dvmrp neighbor 90

5.1.19 show ip dvmrp route. 92

5.1.20 show ip mroute dvmrp. 93

5.1.21 show ip rpf dvmrp. 94

 

 

第1章   基本組播配置命令

1.1  基本組播配置命令

基本組播配置命令包括:

l   debug ip mpacket

l   debug ip mrouting

l   debug ip mroute-cache

l   debug ip multicast

l   ip mroute

l   ip mroute-cache

l   ip multicast-routing

l   ip multicast route-limit

l   ip multicast boundary

l   ip multicast helper-map

l   ip multicast rate-limit

l   ip multicast ttl-threshold

l   show ip mflow

l   show ip mroute-cache

l   show ip mroute mfc

l   show ip mroute static

1.1.1   debug ip mpacket

如果希望對組播報文的處理流程進行跟蹤,可使用debug ip mpacket命令。使用此命令的no形式關掉debug資訊。

debug ip mpacket [access-list][group-address][detail]

no debug ip mpacket

引數

引數

引數說明

access-list

要跟蹤的組播報文範圍。

group-address

要跟蹤的組播報文的組地址 。

detail

顯示處理組播報文的更詳細的資訊 。

預設

關閉debug資訊的輸出 。

命令模式

管理態

使用說明

使用此命令可跟蹤組播報文的主要處理過程。

示例

下面的例子顯示了組播報文處理的一些情況。

從 e0/1 埠上收到了 (100.168.20.151,224.1.1.1) 的報文,報文長度為 112 bytes

在 e0/1 埠上傳送了(192.168.20.99,224.0.0.5) 的報文,報文長度為64 bytes

router#debug ip mpacket

M INPUT : IP Ethernet0/1 (100.168.20.151,224.1.1.1) , len=112

M OUTPUT : IP Ethernet0/1 (192.168.20.99,224.0.0.5) , len=64

相關命令

1.1.2   debug ip mrouting

使用debug ip mrouting命令,開啟mrouting的跟蹤功能,從而可以看到組播轉發表的變化。使用no命令關閉跟蹤:

debug ip mrouting

no debug ip mrouting

引數

預設

所有跟蹤功能都關閉 。

命令模式

管理態 

使用指南

使用該命令可以觀察到組播轉發表中(S, G)/(*,G)的增加、刪除以及下游介面的增加、刪除等變化情況。 

舉例

下面的例子顯示了組播轉發表的一些變化情況。首先建立了(192.168.20.110, 239.0.0.100)表項,然後添加了Loopback0作為下游介面;最後(由於超時),刪除了該表項。

router#debug ip mrouting

MBR: create (192.168.20.110, 239.0.0.100)

MBR: w/ oif Loopback0

MBR: delete (192.168.20.110, 239.0.0.100) 

相關命令

ip multicast-routing

1.1.3   debug ip mroute-cache

使用debug ip mrouting命令,開啟mroute-cache的跟蹤功能,從而可以看到組播路由緩衝的變化。使用no命令關閉跟蹤:

debug ip mroute-cache [group-address]

no debug ip mroute-cache

引數

引數

引數說明

group-address

要跟蹤的組播路由緩衝的組地址。

預設

所有跟蹤功能都關閉  。

命令模式

管理態 

使用指南

使用該命令可以觀察到組播路由緩衝的增加、刪除等變化情況。 

舉例

下面的例子顯示了組播路由緩衝中一些變化情況。(192.168.20.97,230.0.0.1) 緩衝的建立和超時

router#debug ip mroute-cache

MRC: create (192.168.20.97,230.0.0.1) mroute-cache

MRC: expired (192.168.20.97,230.0.0.1) mroute-cache

相關命令

1.1.4   debug ip multicast

使用debug ip multicast命令,開啟組播事件跟蹤功能,從而可以看到組播協議與mrouting的交   互。用no命令關閉選項:

debug ipmulticast [alert | border-router]

no debug ipmulticast [alert | border-router]

引數

引數

引數說明

alert

跟蹤組播路由元件間的alert互動。

border-router

跟蹤組播邊界路由器MBR的相關事件。

預設

所有跟蹤功能都關閉

命令模式

管理態

使用指南

在組播路由協議和mrouting之間定義一些標準的事件,叫做alert:例如,在(S,G)相關的 creation alert、deletion alert等等。利用debug ip multicast alert可以觀察到這些alert。

本公司的組播路由協議支援MBR,此時每個組播路由協議被稱為一個元件。利用debug ip multicast border-router可以觀察到元件的執行資訊。

舉例

在下面的例子中,開啟該alert開關進行輸出

router#debug ip multicast alert

MBR: [(S, G) deletion alert], originated by OLNK, sent to all components       

MBR: [(S, G) creation alert], originated by NONE, sent to all components

MBR:    src = 192.168.20.110, grp = 239.0.0.100

MBR:    sent to owner OLNK first

MBR: [(S, G) join alert], originated by NONE, sent to OLNK

MBR:    src = 192.168.20.110, grp = 239.0.0.100

MBR: [(S, G) firstuse alert], originated by NONE, sent to OLNK

MBR:    src = 192.168.20.110, grp = 239.0.0.100

MBR: [(S, G) deletion alert], originated by OLNK, sent to all components

MBR:    src = 192.168.20.110, grp = 239.0.0.100  

1.1.5   ip mroute

使用ip mroute來配置組播靜態路由。使用no ip mroute命令刪除配置的組播靜態路由。

ip mroute source-address mask rpf-address type number [distance]

no ip mroute source-address mask [rpf-address type number [distance]]

引數

引數

引數說明

source-address

組播源的IP地址。

mask

組播源的IP地址掩碼。

rpf-address

靜態組播路由的RPF地址。

type number

靜態組播路由的RPF介面。

distance

可選的管理距離。

預設

管理距離為0

命令模式

全域性配置態

使用指南

該命令允許手工配置組播源的位置資訊,用在組播和單播拓撲不一致的時候。

舉例

下面示例配置一條經過指定介面的組播靜態路由:

router_config#ip mroute 100.1.1.0 255.255.255.0 192.1.1.1 f0/0

相關命令

show ip mroute static

1.1.6   ip mroute-cache

使用  ip mroute-cache  命令在埠上使用組播路由緩衝,使用 no ip mroute-cache 命令來禁用組播路由緩衝。

ip mroute-cache

no ip mroute-cache

引數

預設

預設為在該埠上使用的組播路由緩衝 。

命令模式

埠配置態

使用指南

當某個埠收發報文使用組播路由緩衝時,使用該命令。此時收到一個組播報文時,ip 先搜尋緩衝,當緩衝中沒有該路由資訊時,再請求多播路由模組。

舉例

下面示例在埠 e1/0 上啟用組播路由緩衝。

router_config_e1/0#ip mroute-cache

相關命令

show ip mroute-cache

1.1.7   ip multicast-routing

使用ip multicast-routing命令來啟動IP組播報文轉發功能。使用no ip multicast-routing命令禁止組播報文的轉發。

ip multicast-routing

no ip multicast-routing

引數

預設

不進行組播報文的轉發。

命令模式

全域性配置態

使用指南

一旦關閉了這個功能,路由器將不再轉發組播報文,組播路由表和組播快取都被清空。

舉例

下面示例配置路由器轉發組播報文:

router_config#ip multicast-routing

相關命令

show ip mroute mfc

1.1.8   ip multicast route-limit

使用ip multicast route-limit命令來設定組播路由條目的上限。使用no ip multicast  route-limit命令不限制組播路由的條目上限。

ip multicast route-limit size

no ip multicast route-limit [size]

引數

引數

引數說明

size

組播路由條目的上限。

預設

組播路由條目的數目沒有上限。

命令模式

全域性配置態

使用指南

一旦配置了該功能,組播路由的數目將受到限制。

舉例

下面示例配置組播路由表的最大條數為2000:

router_config#ip multicast route-limit 2000

相關命令

show ip mroute mfc

1.1.9   ip multicast boundary

使用ip multicast boundary 命令來管理埠上允許處理組播報文的範圍。對該埠上得輸入/輸出報文均有效。使用no ip multicast  boundary 命令撤銷該命令

ip multicast boundary access-list

no ip multicast boundary

引數

引數

引數說明

access-list

用來指定處理組播報文範圍的訪問列表名稱。

預設

處理所有的組播報文。

命令模式

埠配置態

使用指南

一旦配置了該功能,埠上允許處理的組播報文範圍將受到限制。

舉例

下面示例配置了在埠e1/0上允許處理的組播報文範圍為訪問列表 testacl限制的範圍:

router_config_e1/0#ip multicast boundary testacl

相關命令

1.1.10   ip multicast helper-map

使用 ip multicast helper-map 命令來配置在組播網路上使用組播路由來連線兩個廣播網路。使用no ip multicast  helper-map 命令撤銷該命令

ip multicast boundary helper-map {group-address|broadcast} {broadcast-address |multicast-address} access-list

no ip multicast boundary helper-map {group-address|broadcast} {broadcast-address  |multicast-address} access-list

引數

引數

引數說明

group-address

需要轉換為廣播報文的組播報文組地址,與 broadcast-address 配合使用

broadcast

將廣播報文轉換成組播報文,與 multicast-address 配合使用

broadcast-address

轉換後傳送的廣播報文的目的地址,與 group-address 配合使用

multicast-address

轉換後傳送的組播報文的目的地址,與 broadcast 關鍵字配合使用

access-list

IP 的擴充套件訪問列表名稱,用來指定進行轉換報文的埠號

預設

不進行任何組播報文與廣播報文之間的轉換 。

命令模式

埠配置態

使用指南

當一個組播網路連線了兩個廣播網路,可以在與源廣播網路相連的第一跳路由器上將廣播流量轉換成組播流量,然後在與目的廣播網路相連的最後一跳路由器上將組播流量轉換成廣播 流量。這樣就可以充分利用了需要互連的兩個廣播網路之間組播網路的組播特性。這樣就避免了在兩個廣播網路之間報文傳送的不必要重複,並且利用了組播網路中快速轉發的特性。

在使用 ip multicast helper-map 之前,必須在該埠上配置 ip directed-broadcast 命令

舉例

路由器上的配置如下圖所示

在第一跳路由器上 e0 埠上配置 ip directed-broadcast 允許處理鏈路廣播報文

配置 ip multicast helper-map broadcast 230.0.0.1 testacl1 ,允許將 192.168.20.97/24 源地址( testacl1 指定 ) 傳送的 埠號為4000 ( ip forward-protocol 命令指定 ) 的udp廣播報文轉換成 目的地址為 230.0.0.1的組播報文 ( ip multicast helper-map 命令指定 ) 傳送。

在最後一跳路由器 e1 埠上配置 ip directed-broadcast 允許處理鏈路廣播報文

配置 ip multicast helper-map 230.0.0.1 172.10.255.255 testacl2 ,允許將 192.168.20.97/24 源地址( testacl2 指定 ) 傳送的 埠號為4000 ( ip forward-protocol 命令指定 ) 的目的地址為 230.0.0.1 的組播報文轉換成目的地址為 172.10.255.255 的廣播報文 ( ip multicast helper-map 命令指定 ) 傳送在與源廣播網路相連的第一跳路由器上。

interface ethernet 0

ip directed-broadcast

ip multicast helper-map broadcast 230.0.0.1 testacl

ip pim dense-mode

!

ip access-list extended testacl  permit udp 192.168.20.97 255.255.255.0 any

ip forward-protocol udp 4000

在與目的廣播網路相連的最後一跳路由器上。

interface ethernet 1

ip directed-broadcast

ip multicast helper-map 230.0.0.1 172.10.255.255 testacl2

ip pim dense-mode

!

ip access-list extended testacl2  permit udp 192.168.20.97 255.255.255.0 any

ip forward-protocol udp 4000

   相關命令

ip forward-protocol

ip directed-broadcast

1.1.11   ip multicast rate-limit

使用ip multicast rate-limit 命令來限制埠上某個 source/group 範圍接收和傳送組播報文的流量。使用no ip multicast rate-limit 命令取  消流量限制。

ip  multicast rate-limit {in | out} [group-list  access-list] [source-list  access-list] kbps

no ip  multicast rate-limit {in | out} [group-list  access-list] [source-list  access-list] kbps

引數

引數

引數說明

in

對埠上的輸入報文流量進行限制

out

對埠上的輸出報文流量進行限制 。

group-list access-list

(可選) 對 組地址在access-list 範圍內的組播報文進行流量限制 。

source-list access-list

(可選) 對源地址在 access-list 範圍內的組播報文進行流量限制 。

kbps

(可選) 流量允許的最大值,當其值為0 時表明不允許該範圍內的任何報文通過 。

預設

不進行任何流量限制。

命令模式

介面配置態

使用指南

指定範圍內的報文在上一秒的流量超過了允許值,丟棄該報文,否則轉發。

舉例

在埠 s0 上 (192.168.20.97 , 230.0.0.1) 的輸出報文流量速率的最大值允許為 64kbps。

interface serial 0

ip multicast rate-limit out group-list gacl source-list sacl 64

ip access-list standard sacl

permit 192.168.20.97 255.255.255.255

ip access-list standard gacl

    permit 230.0.0.1 255.255.255.255

相關命令

1.1.12   ip multicast ttl-threshold

使用 ip multicast ttl-threshold 配置埠上允許通過的組播報文ttl 的閾值,使用 no ip multicast ttl-threshold 來使用預設值。

ip multicast ttl-threshold ttl-value

no ip multicast ttl-threshold

引數

引數

引數說明

ttl-value

埠上的組播報文ttl 閾值。

預設

埠上預設的 ttl 閾值為 1。

命令模式

介面配置態

使用指南

在該埠上接收或傳送報文的 ttl 值必須大於埠上指定閾值,可以使用該命令來將一臺路由器配置成邊界路由器 。

舉例

在埠 s0 上配置 ttl 的閾值為 200 ,即該埠只允許接收和傳送 ttl 值大於 200 的組播報文。

interface serial 0

ip multicast ttl-threshold 200

相關命令

1.1.13   show ip mflow

使用show ip mflow 命令顯示系統處理的全域性流的資訊和埠上處理的組播流的資訊

show ip mflow [group-address|source-address][interface]

引數

引數

引數說明

group-address

要顯示的組播流資訊的組地址。

source-address

要顯示的組播流資訊的源地址。

interface

要顯示的埠上的組播流資訊。

預設

命令模式

管理態

使用指南

顯示組播流的處理的報文個數 ,wrong incoming interface 的報文個數,當前流量的值等資訊

舉例

下面示例顯示全域性組播流的內容:

router#show ip mflow

IP Multicast Flow

(100.168.20.151,224.1.1.1)

total process : 0  wrong_if_count : 0 curr-flux : 0.00

(192.167.20.131,239.1.1.1)

total process : 0  wrong_if_count : 0 curr-flux : 0.00

下面示例顯示埠上組播流的內容:

router#show ip mflow interface e0/1

IP Multicast Flow

(192.168.20.97,230.0.0.1)

total recv : 21180  total send : 0    curr-in-flux : 0.00 curr-out-flux : 0.00

(100.168.20.151,224.1.1.1)

total recv : 16822400  total send : 0    curr-in-flux : 0.00 curr-out-flux : 0.00

(192.168.20.97,232.0.0.1)

total recv : 240  total send : 0    curr-in-flux : 0.00 curr-out-flux : 0.00

(192.167.20.131,239.1.1.1)

total recv : 103264  total send : 0    curr-in-flux : 0.90 curr-out-flux : 0.00

1.1.14   show ip mroute-cache

使用show ip mroute-cache命令顯示組播路由緩衝中的內容

show ip mroute-cache [group-address]

引數

引數

引數說明

group-address

要顯示的組播路由緩衝的組地址。

預設

命令模式

管理態

使用指南

MRC(Multicast Route Cache)是全域性的組播路由緩衝,MRC的每個條目包含了從組播路由得到得(S, G)/ (*, G)資訊,上游介面資訊,下游介面資訊,等等。

舉例

下面示例顯示組播路由表的內容:

router#show ip mroute-cache

IP Multicast Route Cache

(192.168.20.97, 230.0.0.1)|(192.168.20.97,230.0.0.1)

  Incoming interface: Ethernet0/2, Last used : 00:00:34

  Outgoing interface list:

    Loopback0

(192.168.20.97, 230.0.0.2)|(192.168.20.97,230.0.0.2)

  Incoming interface: Ethernet0/2, Last used : 00:00:12

  Outgoing interface list:

    Loopback1  

1.1.15   show ip mroute mfc

使用show ip mroute mfc命令顯示組播轉發表的內容,從而啟動組播功能。

show ip mroute mfc

引數

預設

命令模式

管理態

使用指南

MFC(Multicast Forwarding Cache)是全域性的組播轉發表,組播報文就是根據它進行轉發的。MFC的每個條目包含了(S, G)/ (*, G)資訊,上游介面資訊,下游介面資訊,等等。

舉例

下面示例顯示組播路由表的內容:

router#show ip mroute mfc

IP Multicast Forwarding Cache

(192.168.20.110/32, 239.0.0.100/32)

  Incoming interface: Ethernet0/2, RPF nbr 0.0.0.0, owned by OLNK

  Outgoing interface list:

    Loopback0, owned by OLNK

(192.168.20.110/32, 239.0.0.101/32)

  Incoming interface: Ethernet0/2, RPF nbr 0.0.0.0, owned by OLNK

  Outgoing interface list:

    Loopback0, owned by OLNK

(192.168.20.138/32, 239.1.1.1/32)

  Incoming interface: Ethernet0/2, RPF nbr 0.0.0.0, owned by OLNK

  Outgoing interface list:

    Loopback0, owned by OLNK

相關命令

show ip mroute olnk

show ip mroute static

1.1.16   show ip mroute static

使用show ip mroute mstatic顯示靜態組播路由的有關資訊。

show ip mroute static

引數

預設

命令模式

管理態

使用指南

對於ip mroute命令配置的組播靜態路由,可以用show ip mroute static來察看。

舉例

下面示例顯示靜態組播路由的配置資訊:

router#show ip mroute static

Mroute: 200.1.1.1/24, RPF nbr: 192.168.20.1, RPF interface: Ethernet0/2

        Administrative distance: 0, metric: 0, valid: TRUE

Mroute: 201.1.1.1/24, RPF nbr: 192.168.20.1, RPF interface: Serial0/0

        Administrative distance: 0, metric: 0, valid: FALSE  

 

第2章   IGMP配置命令

2.1  IGMP配置命令

IGMP配置命令包括:

l   clear ip igmp group

l   debug ip igmp

l   debug ip igmp-host

l   ip igmp helper-address

l   ip igmp join-group

l   ip igmp immediate-leave group-list

l   ip igmp last-member-query-interval

l   ip igmp querier-timeout

l   ip igmp query-interval

l   ip igmp query-max-response-time

l   ip igmp static-group

l   ip igmp version

l   show ip igmp groups

l   show ip igmp interface

l   show ip igmp-host

2.1.1   clear ip igmp group

如果希望清除支援IGMP的組播路由器中儲存的組播組成員的資訊,可使用clear ip igmp group命令。

clear ip igmp group [type number] [group-address | <cr>]

引數

引數

引數說明

type number

埠型別和埠編號。

group-address

要清除資訊的組播組的組地址。

預設

命令模式

管理態

使用說明

使用此命令可以在儲存的組播組資訊發生錯誤時用來清除路由器中儲存的組播組成員的資訊。

示例

下面的示例將清除埠e0/0上的組播組233.33.1.1的資訊。

clear ip igmp group e0/0 233.33.1.1

相關命令

2.1.2   debug ip igmp

如果希望對igmp-router端協議的處理流程進行跟蹤,可使用debug ip igmp命令。使用此命令的no形式關掉debug資訊。

debug ip igmp

no debug ip igmp

引數

預設

關閉debug資訊的輸出 。

命令模式

管理態

使用說明

使用此命令可跟蹤igmp-router端協議的主要處理過程,以發現協議處理失敗的原因。

示例

igmp-router功能模組的debug資訊大多采用自然語言進行描述,看起來比較簡單,這裡就不一一列舉了。

相關命令

2.1.3   debug ip igmp-host

如果希望對igmp-host 端協議的處理流程進行跟蹤,可使用debug ip igmph命令。使用此命令的no形式關掉debug資訊。

debug ip igmp-host [group-address]

no debug ip igmp-host

引數

預設

關閉debug資訊的輸出。

命令模式

管理態

使用說明

使用此命令可跟蹤igmp-host 端協議的主要處理過程,以發現協議處理失敗的原因。

示例

igmp-host 功能模組的debug資訊大多采用自然語言進行描述,看起來比較簡單,這裡就不一一列舉了。

相關命令

2.1.4   ip igmp helper-address

希望某個埠中轉 IGMP 報文,可以使用該命令,一個埠只能配置該命令一次,後配置的命令會覆蓋之前配置的命令。

ip igmp helper-address destination-address

no ip igmp helper-address destination-address

引數

引數

引數說明

destination-address

中轉 IGMP 報文的目的地址。

預設

埠不中轉 IGMP 報文。

命令模式

埠配置態

使用說明

使用ip igmp helper-address 命令中轉收到的所有 igmp 報文。

示例

ip igmp helper-address 192.168.20.10

相關命令

2.1.5   ip igmp join-group

希望某個埠上加入某個多播組,可以使用該命令

ip igmp join-group group-address [{include|exclude} source-address]

no ip igmp join-group group-address [{include|exclude} source-address]

引數

引數

引數說明

group-address

埠需要加入的多播組。

include

該多播組加入的 SSM 的模式為 include。

exclude

該多播組加入的 SSM 的模式為 exclude。

source-address

埠加入多播組的源過濾地址。

預設

埠不加入任何多播組。

命令模式

埠配置態

使用說明

使用ip igmp join-group 命令來使埠動態的加入一個多播組。

示例

ip igmp join-group 230.0.0.1

ip igmp join-group 230.0.0.1 exclude 192.168.20.10

相關命令

2.1.6   ip igmp immediate-leave group-list

如果希望執行IGMP版本2的路由器埠實現“立即離開”組播組的功能,可以使用ip igmp immediate-leave group-list命令進行配置,使用此命令的no形式可以禁止IGMP主機“立即離開”

ip igmp immediate-leave group-list list-name

no ip igmp immediate-leave group-list

引數

引數

引數說明

list-name

預先配置的ip標準訪問列表名。

預設

不允許IGMP主機實現“立即離開”的功能。

命令模式

全域性配置態/埠配置態

使用說明

此命令僅針對執行IGMP版本2的埠有效,此命令適用於當前埠連線的網路只存在一個IGMP主機的情況,通過配置此項命令,可以使此主機在希望離開某個組播組時立即離開(而不必經過與Router端的報文互動和延遲過程)另外,因為在全域性配置態和埠配置態下都能配置此條命令,但全域性配置態下配置的此條命令的優先順序要高於在埠配置態下配置的命令,如果先在全域性配置態下配置了此命令,則後來在埠配置態下配置的命令將被忽略;如果先在埠配置態下配置了此條命令,則後來在全域性配置態下配置的命令將刪除原來在埠配置態下配置的命令。

示例

參照“配置組播路由”

相關命令

ip access-list  

2.1.7   ip igmp last-member-query-interval

要改變當前埠上的最後一個組成員查詢間隔,使用配置命令ip igmp last-member-query-interval。使用該命令的no形式恢復預設值。

ip igmp last-member-query-interval time

no ip igmp last-member-query-interval

引數

引數

引數說明

time

埠上配置的last member query interval的值,單位為毫秒。

預設

埠上最後一個組成員查詢間隔時間預設值為1000毫秒。

命令模式

埠配置態

使用說明

使用ip igmp last-member-query-interval命令可以更改該埠上的最後一個組成員查詢間隔。

示例

下面的示例將埠上的last member query interval改為2秒

interface ethernet 0 /0

ip igmp last-member-query-interval 2000

相關命令

無  

2.1.8   ip igmp querier-timeout

要更改其他路由器作為IGMP的querier的存在時間間隔,使用配置命令ip igmp querier-timeout,使用該命令的no形式恢復預設值。

ip igmp querier-timeout time

no ip igmp querier-timeout

引數

引數

引數說明

time

其它querier存在的時間間隔,單位為秒。

預設

預設的querier-timeout為125秒。

命令模式

埠配置態

使用說明

使用ip igmp querier-timeout命令可以更改其它路由器作為querier存在的時間間隔,該命令僅對執行IGMP版本2的埠有效。

示例

下面的配置命令示例指定在ethernet 0/0埠上的querier-timeout時間為100秒。

interface ethernet 0/0

ip igmp querier-timeout 100

相關命令

2.1.9   ip igmp query-interval

要設定埠上傳送IGMP General Query報文的間隔,使用配置命令ip igmp query-interval。使用本命令的no形式恢復預設值。

ip igmp query-interval time

no ip igmp query-interval

引數

引數

引數說明

time

傳送general query報文的間隔時間,單位為秒。

預設

預設的query-interval時間為60秒。

命令模式

埠配置態

使用說明

使用ip igmp query-interval命令設定埠上傳送general query報文的時間間隔。

示例

下面的配置命令示例指定在ethernet 0/0埠上的傳送general query報文的時間間隔為50秒。

interface ethernet 0/0

ip igmp query-interval 50

相關命令

2.1.10   ip igmp query-max-response-time

要指定IGMP主機響應General Query報文的最大時間間隔,可以使用配置命令ip igmp query-max-resposne-time。使用該命令的no形式恢復預設值。

ip igmp query-max-response-time time

no ip igmp query-max-response-time

引數

引數

引數說明

time

該埠上配置的最大響應時間的值。

預設

埠上最大響應時間的預設值為10秒。

命令模式

埠配置態

使用說明

使用ip igmp query-max-response-time命令可以更改該埠上路由器最大響應時間,該命令僅對執行IGMP版本2和版本3的埠有效。

示例

下面的配置命令示例將ethernet 0/0埠上IGMP的最大響應時間設定為15秒。

interface ethernet 0 /0

ip igmp query-max-response-time 15

相關命令

無  

2.1.11   ip igmp static-group

如果想在埠上配置靜態的組播組,可以使用ip igmp static-group命令進行配置,使用此命令的no形式取消配置。

ip igmp static-group { * | group-address } {include source-address | <cr> }

no ip igmp static-group { * | group-address } {include source-address | <cr> }

引數

引數

引數說明

*

所有的組播組。

group-address

指定的組播組地址。

source-address

指定的主機源地址。

預設

預設情況下該埠下沒有靜態配置的組播組存在。

命令模式

埠配置態

使用說明

在當前埠下配置靜態的IGMP組播組資訊,注意:針對同一個group-address,可以配置多條include source-address命令以使對應此靜態組播組存在多個source-address,但不能同時針對一個group-address,既配置包含include source-address的命令,又配置不包含source-address的命令。

示例

參照“配置組播路由”。

相關命令

2.1.12   ip igmp version

要設定埠上執行的IGMP的版本號,使用配置命令ip igmp version。使用該命令的no形式恢復預設值。

ip igmp versionversion-number

no ip igmp version

引數

引數

引數說明

version-number

取值為1、2或3,分別表示IGMP的版本號為1、2或3。

預設

如果沒有配置此命令,則埠上執行的IGMP-Router端協議預設的版本號為版本3。

命令模式

埠配置態

使用說明

使用ip igmp version命令可以指定當前埠上執行的IGMP的版本號。

示例

下面的配置命令示例指定在ethernet 0/0埠上執行IGMP版本2。

interface ethernet 0/0

ip igmp version 2

相關命令

2.1.13   show ip igmp groups

使用下面的命令可以檢視當前路由器中儲存的組播組成員的資訊。

show ip igmp groups {interface | group-address | detail}

引數

引數

引數說明

interface

要檢視的組播組資訊所在的埠,如果不加此引數,則顯示所有埠上組播組的資訊。

group-address

要檢視的組播組的組地址,如果不加此引數,則顯示路由器中所有組播組的資訊

detail

是否檢視的組播組的詳細資訊的開關

預設

命令模式

管理態/全域性配置態/埠配置態

使用說明

使用此命令可以檢視路由器中當前儲存的組播組成員的資訊。

示例

show ip igmp groups e0/0 detail

執行以上命令會顯示以下結果:

………………………….

Interface: Ethernet0/0

Group address: 233.33.1.3

Uptime: 00:03:46

Group status: Static

Group filter mode: INCLUDE

Last reporter: 0.0.0.0

Group source-list:  (Flags: S-Static,  R-Remote)

  Source address:   Uptime     Timer      Fwd   Flags

  192.168.20.5      00:03:46   stopped    Yes   S

 

Interface: Ethernet0/0

Group address: 233.33.1.1

Uptime: 00:03:46

Group status: Static

Group filter mode: INCLUDE

Last reporter: 0.0.0.0

Group source-list:  (Flags: S-Static,  R-Remote)

  Source address:   Uptime     Timer      Fwd   Flags

  192.168.20.5      00:03:46   stopped    Yes   S

  192.168.20.3      00:03:46   stopped    Yes   S

  192.168.20.1      00:03:46   stopped    Yes   S

……………………………….

show ip igmp groups 233.33.1.1 detail

執行以上命令會顯示以下結果:

Interface: Ethernet0/0

Group address: 233.33.1.1

Uptime: 00:02:42

Group status: Static

Group filter mode: INCLUDE

Last reporter: 0.0.0.0

Group source-list:  (Flags: S-Static,  R-Remote)

  Source address:   Uptime     Timer      Fwd   Flags

  192.168.20.5      00:02:42   stopped    Yes   S

  192.168.20.3      00:02:42   stopped    Yes   S

  192.168.20.1      00:02:42   stopped    Yes   S

show ip igmp groups

執行以上命令會顯示以下結果:

Interface        Group address    Uptime    Expires   Last Reporter    Flags

Ethernet0/0      239.255.255.250  00:01:08  00:02:05  192.168.20.141   R

Ethernet0/0      224.2.127.254    00:01:09  00:02:00  32.1.1.67        R

Ethernet0/0      224.1.1.1        00:01:24  stopped   0.0.0.0          S

Ethernet0/0      233.33.1.5       00:01:24  stopped   0.0.0.0          S

Ethernet0/0      233.33.1.3       00:01:24  stopped   0.0.0.0          S

Ethernet0/0      233.33.1.1       00:01:24  stopped   0.0.0.0          S

 

Interface        Group address    Uptime    Expires   Last Reporter    Flags

Loopback10       239.255.255.250  00:01:08  00:02:05  192.168.20.141   R

Loopback10       224.2.127.254    00:01:09  00:02:00  32.1.1.67        R

相關命令

2.1.14   show ip igmp interface

使用下面的命令可以檢視當前路由器中已經啟動了IGMP的埠資訊。

show ip igmp interface { interface | <cr> }

引數

引數

引數說明

interface

要顯示資訊的指定埠,如果不加此引數,則顯示所有啟動了IGMP的埠的資訊。

預設

命令模式

管理態/全域性配置態/埠配置態

使用說明

使用此命令可顯示已經啟動了IGMP的埠的基本資訊。

示例

show ip igmp interface e0/0

執行上述show命令將顯示以下資訊:

Ethernet0/0 is up, line protocol is up

  Internet address is 192.168.20.167

  Current IGMP router version is 3

  Router plays role of querier on the interface now

  IGMP is enable on the interface

  IGMP query-interval is 60 seconds

  IGMP max query response time is 10 seconds

  IGMP Last member query response time is 1000 milliseconds

  IGMP querier timeout is 125 seconds

  Multicast routing is enabled on the interface

相關命令

2.1.15   show ip igmp-host

使用下面的命令可以檢視當前路由器中埠上IGMP host的資訊。

show ip igmp-host { interface } [detail]

引數

引數

引數說明

interface

要顯示資訊的指定埠。

detail

是否顯示 igmp host 的詳細資訊。

預設

命令模式

管理態/全域性配置態/埠配置態

使用說明

使用此命令可顯示埠上 IGMP host 的基本資訊。

示例

show ip igmp-host interface e0/0

執行上述show命令將顯示以下資訊:

IGMP host Mode is IGMP_V3_ROUTER

  IGMP host Query Interval is 23 second

  IGMP host Query Response Interval is 125

  IGMP host Query Robustness Variable is 2

  IGMP host Last Query Interval is 0

  IGMP interface timer is 0

  IGMP host group joined(number of users):

    230.0.0.1(1)

相關命令

2.2  OLNK配置命令

OLNK配置命令包括:

l   ip olnk

l   show ip rpf olnk

l   show ip mroute olnk

2.2.1   ip olnk

使用ip olnk命令在介面上執行igmp only-link,從而啟動組播功能。使用no ip olnk命令取消埠上的組播功能。

ip olnk

no ip olnk

引數

預設

埠上不支援組播轉發。

命令模式

介面配置態

使用指南

可以把olnk認為是一個沒有協議互動過程的組播路由協議,僅根據配置資訊和IGMP組資訊生成組播路由表,為轉發組播報文提供服務。

在簡單的拓撲環境中,使用olnk會避免動態組播路由協議對CPU和頻寬的佔用。

舉例

下面示例配置介面f0/0上執行olnk:

router_config_f0/0#ip