當前位置:首頁 > IT技術(shù) > 其他 > 正文

華為設(shè)備配置IGMP基本功能
2022-04-25 23:12:15


華為設(shè)備配置IGMP基本功能_組播

1. 配置各交換機接口的IP地址

[LSW1]vlan batch 10 11

[LSW1-GigabitEthernet0/0/2]port link-type hybrid ?

[LSW1-GigabitEthernet0/0/2]port hybrid untagged vlan 10

[LSW1-GigabitEthernet0/0/2]port hybrid pvid vlan 10

[LSW1-GigabitEthernet0/0/4]port link-type trunk ?

[LSW1-GigabitEthernet0/0/4]port trunk allow-pass vlan 11

[LSW1-Vlanif10]ip add 10.10.1.1 24

[LSW1-Vlanif11]ip add 10.1.1.1 24

[LSW2]vlan batch 20 21

[LSW2-GigabitEthernet0/0/1]port link-type hybrid ?

[LSW2-GigabitEthernet0/0/1]port hybrid untagged vlan 20

[LSW2-GigabitEthernet0/0/1]port hybrid pvid vlan 20

[LSW2-GigabitEthernet0/0/4]port link-type trunk ?

[LSW2-GigabitEthernet0/0/4]port trunk allow-pass vlan 21

[LSW2-Vlanif20]ip add 10.10.2.2 24

[LSW2-Vlanif21]ip add 10.1.2.2 24

[LSW3]vlan batch 30 31

[LSW3-GigabitEthernet0/0/1]port link-type hybrid ?

[LSW3-GigabitEthernet0/0/1]port hybrid untagged vlan 30

[LSW3-GigabitEthernet0/0/1]port hybrid pvid vlan 30

[LSW3-GigabitEthernet0/0/4]port link-type trunk ?

[LSW3-GigabitEthernet0/0/4]port trunk allow-pass vlan 31

[LSW3-Vlanif30]ip add 10.10.3.3 24

[LSW3-Vlanif31]ip add 10.1.3.3 24

[LSW4]vlan batch 11 21 31 40

[LSW4-GigabitEthernet0/0/1]port link-type trunk ?

[LSW4-GigabitEthernet0/0/1]port trunk allow-pass vlan 11

[LSW4-GigabitEthernet0/0/2]port link-type trunk ?

[LSW4-GigabitEthernet0/0/2]port trunk allow-pass vlan 21

[LSW4-GigabitEthernet0/0/3]port link-type trunk ?

[LSW4-GigabitEthernet0/0/3]port trunk allow-pass vlan 31

[LSW4-GigabitEthernet0/0/4]port link-type trunk ?

[LSW4-GigabitEthernet0/0/4]port trunk allow-pass vlan 40

[LSW4-Vlanif11]ip add 10.1.1.4 24

[LSW4-Vlanif21]ip add 10.1.2.4 24

[LSW4-Vlanif31]ip add 10.1.3.4 24

[LSW4-Vlanif40]ip add 10.1.4.4 24

2. 配置單播路由協(xié)議,實現(xiàn)網(wǎng)絡(luò)層互通:單播路由正常是組播路由協(xié)議正常工作的基礎(chǔ)

[LSW1]ospf 1

[LSW1-ospf-1]area 0

[LSW1-ospf-1-area-0.0.0.0]network 10.1.1.0 0.0.0.255

[LSW1-ospf-1-area-0.0.0.0]network 10.10.1.0 0.0.0.255

[LSW2]ospf 1

[LSW2-ospf-1]area 0

[LSW2-ospf-1-area-0.0.0.0]network ?10.1.2.0 0.0.0.255

[LSW2-ospf-1-area-0.0.0.0]network 10.10.2.0 0.0.0.255

[LSW3]ospf 1

[LSW3-ospf-1]area 0

[LSW3-ospf-1-area-0.0.0.0]network 10.1.3.0 0.0.0.255

[LSW3-ospf-1-area-0.0.0.0]network 10.10.3.0 0.0.0.255

[LSW4]ospf 1

[LSW4-ospf-1]area 0

[LSW4-ospf-1-area-0.0.0.0]network 10.1.1.0 0.0.0.255

[LSW4-ospf-1-area-0.0.0.0]network 10.1.2.0 0.0.0.255

[LSW4-ospf-1-area-0.0.0.0]network 10.1.3.0 0.0.0.255

[LSW4-ospf-1-area-0.0.0.0]network 10.1.4.0 0.0.0.255

3. 使能IP組播路由功能,并在所有接口上使能PIM-SM功能

[LSW1]multicast routing-enable ?

[LSW1-Vlanif10]pim sm

[LSW1-Vlanif11]pim sm

[LSW2]multicast routing-enable ?

[LSW2-Vlanif20]pim sm

[LSW2-Vlanif21]pim sm ?

[LSW3]multicast routing-enable ?

[LSW3-Vlanif30]pim sm

[LSW3-Vlanif31]pim sm ?

[LSW4]multicast routing-enable ?

[LSW4-Vlanif11]pim sm

[LSW4-Vlanif21]pim sm ?

[LSW4-Vlanif31]pim sm ?

[LSW4-Vlanif40]pim sm

4. 配置靜態(tài)RP

[LSW1]pim

[LSW1-pim]static-rp 10.1.4.4

[LSW2]pim

[LSW2-pim]static-rp 10.1.4.4

[LSW3]pim

[LSW3-pim]static-rp 10.1.4.4

[LSW4]pim

[LSW4-pim]static-rp 10.1.4.4

5. 在LSW1、LSW2、LSW3成員端接口上使能IGMP功能

[LSW1-Vlanif10]igmp enable

[LSW2-Vlanif20]igmp enable

[LSW3-Vlanif30]igmp enable

6. 配置LSW1的VLANIF10接口只能加入組播組225.1.1.1

[LSW1]acl 2001

[LSW1-acl-basic-2001]rule permit source 225.1.1.1 0

[LSW1-Vlanif10]igmp group-policy 2001

7. 驗證配置

華為設(shè)備配置IGMP基本功能_igmp_02

本文摘自 :https://blog.51cto.com/u

開通會員,享受整站包年服務立即開通 >