路由基礎(chǔ)知識之PIM的相關(guān)配置總結(jié)
PIM是Protocol Independent Multicast(協(xié)議無關(guān)組播)的簡稱,表示可以利用靜態(tài)路由或者任意單播路由協(xié)議(包括RIP、OSPF、IS-IS、BGP等)所生成的單播路由表為IP組播提供路由。組播路由與所采用的單播路由協(xié)議無關(guān),只要能夠通過單播路由協(xié)議產(chǎn)生相應(yīng)的組播路由表項即可。
要把路由器配置為HSRP備份組的成員,可以在接口配置模式下使用下面的命令:
router(config-if)# standby group-number ip ip-address
為了使一個路由器重新恢復(fù)轉(zhuǎn)發(fā)路由器的角色,在接口配置模式下:
router(config-if)# standy group-number preempt
訪問時間和保持時間參數(shù)是可配置的:
router(config-if)# standy group-number timers hellotime holdtime
配置HSRP跟蹤:
router(config-if)# standy group-number track type-number interface-priority
要顯示HSRP路由器的狀態(tài):
router# show standby type-number group brief
用命令show ip igmp確定當(dāng)選的查詢器。
啟動IP組播路由選擇:
router(config)# ip muticast-routing
啟動接口上的PIM:
dalllasr1>(config-if)# ip pim {dense-mode|sparse-mode|sparse-dense-mode}
啟動稀疏-稠密模式下的PIM:
- router# ip multicast-routing
- router# interface type number
- router# ip pim sparse-dense-mode
核實PIM的配置:
dallasr1># show ip pim interface[type number] [count]
顯示PIM鄰居:
dallasr1># show ip neighbor type number
為了配置RP的地址,命令如下:
dallasr1># ip pim rp-address ip-address [group-access-list-number][override]
選擇一個默認的RP:
dallasr1># ip pim rp-address
通告RP和它所服務(wù)的組范圍:
dallasr1># ip pim send-rp-announce type number scope ttl group-list access-list-number
為管理范圍組通告RP的地址:
- dallasr1># ip pim send-rp-announce ethernet0 scope 16 group-list1
- dallasr1># access-list 1 permit 266.0.0.0 0.255.255.255
設(shè)定一個RP映像代理:
dallasr1># ip pim send-rp-discovery scope ttl
核實組到RP的映像:
- dallasr1># show ip pim rp mapping
- dallasr1># show ip pim rp [group-name|group-address] [mapping]
在路由器接口上用命令ip multicast ttl-threshold ttl-value設(shè)定TTL閥值:
dallasr1>(config-if)# ip multicast ttl-threshold ttl-value
用show ip pim neighbor顯示PIM鄰居表。
顯示組播通信路由表中的各條記錄:
dallasr1>show ip mroute [group-name|group-address][scoure][summary][count][active kbps]
要記錄一個路由器接受和發(fā)送的全部IP組播包:
dallasr1> #debug ip mpacket [detail] [access-list][group]
路由基礎(chǔ)知識中PIM的相關(guān)配置就為大家總結(jié)到這里,希望大家對于上述內(nèi)容的了解不會局限于此,還有更多的內(nèi)容等待讀者了解,我們也會繼續(xù)為大家整理的。
【編輯推薦】