[SwitchD] pim[SwitchD-pim] c-bsr vlanif 50[SwitchD-pim] c-rp vlanif 50[SwitchD-pim] quit
- # 通过使用display multicast routing-table命令可以查看交换机组播路由表 。以SwitchC为例 。
[SwitchC] display multicast routing-tableMulticast routing table of VPN-Instance: public net Total 1 entry 00001. (192.168.3.2, 225.0.0.1) Uptime: 15:03:04 Upstream Interface: Vlanif40 List of 1 downstream interface 1: Vlanif30
- 配置MPLS RSVP-TE隧道
- # 配置SwitchB 。
[SwitchB] mpls lsr-id 10.2.2.2[SwitchB] mpls[SwitchB-mpls] mpls te[SwitchB-mpls] mpls rsvp-te[SwitchB-mpls] mpls te cspf[SwitchB-mpls] quit[SwitchB] interface vlanif 30[SwitchB-Vlanif30] mpls[SwitchB-Vlanif30] mpls te[SwitchB-Vlanif30] mpls rsvp-te[SwitchB-Vlanif30] quit[SwitchB] ospf 1[SwitchB-ospf-1] enable traffic-adjustment[SwitchB-ospf-1] opaque-capability enable[SwitchB-ospf-1] area 0.0.0.0[SwitchB-ospf-1-area-0.0.0.0] mpls-te enable[SwitchB-ospf-1-area-0.0.0.0] quit[SwitchB-ospf-1] quit
- # 配置SwitchC 。
[SwitchC] mpls lsr-id 10.3.3.3[SwitchC] mpls[SwitchC-mpls] mpls te[SwitchC-mpls] mpls rsvp-te[SwitchC-mpls] quit[SwitchC] interface vlanif 30[SwitchC-Vlanif30] mpls[SwitchC-Vlanif30] mpls te[SwitchC-Vlanif30] mpls rsvp-te[SwitchC-Vlanif30] quit[SwitchC] interface vlanif 40[SwitchC-Vlanif40] mpls[SwitchC-Vlanif40] mpls te[SwitchC-Vlanif40] mpls rsvp-te[SwitchC-Vlanif40] quit[SwitchC] ospf 1[SwitchC-ospf-1] opaque-capability enable[SwitchC-ospf-1] area 0.0.0.0[SwitchC-ospf-1-area-0.0.0.0] mpls-te enable[SwitchC-ospf-1-area-0.0.0.0] quit[SwitchC-ospf-1] quit
- # 配置SwitchD 。
【华为交换机路由器配置本地MT特性】[SwitchD] mpls lsr-id 10.4.4.4[SwitchD] mpls[SwitchD-mpls] mpls te[SwitchD-mpls] mpls rsvp-te[SwitchD-mpls] quit[SwitchD] interface vlanif 40[SwitchD-Vlanif40] mpls[SwitchD-Vlanif40] mpls te[SwitchD-Vlanif40] mpls rsvp-te[SwitchD-Vlanif40] quit[SwitchD] ospf 1[SwitchD-ospf-1] opaque-capability enable[SwitchD-ospf-1] area 0.0.0.0[SwitchD-ospf-1-area-0.0.0.0] mpls-te enable[SwitchD-ospf-1-area-0.0.0.0] quit[SwitchD-ospf-1] quit
- # 配置MPLS TE隧道,并使能IGP Shortcut 。
- 在SwitchB上配置MPLS TE隧道,使能IGP Shortcut 。
[SwitchB] interface tunnel 1[SwitchB-Tunnel1] ip address unnumbered interface loopback 0[SwitchB-Tunnel1] tunnel-protocol mpls te[SwitchB-Tunnel1] destination 10.4.4.4[SwitchB-Tunnel1] mpls te tunnel-id 100[SwitchB-Tunnel1] mpls te igp shortcut ospf[SwitchB-Tunnel1] mpls te igp metric relative -10[SwitchB-Tunnel1] mpls te commit[SwitchB-Tunnel1] quit
- # 查看SwitchB的OSPF路由表,可以看到,MPLS TE隧道已经被建立 。
[SwitchB] display ip routing-tableRoute Flags: R - relay, D - download to fib ------------------------------------------------------------------------------Routing Tables: Public Destinations : 15 Routes : 15Destination/Mask Proto Pre Cost Flags NextHop Interface10.0.0.0/24 Direct 0 0 D 10.0.0.2 Vlanif20 10.0.0.2/32 Direct 0 0 D 127.0.0.1 Vlanif20 10.0.1.0/24 Direct 0 0 D 10.0.1.2 Vlanif30 10.0.1.2/32 Direct 0 0 D 127.0.0.1 Vlanif30 10.0.2.0/24 OSPF 10 2 D 10.0.1.1 Vlanif30 10.0.3.0/24 OSPF 10 2 D 10.2.2.2 Tunnel1 10.1.1.1/32 OSPF 10 1 D 10.0.0.1 Vlanif2010.2.2.2/32 Direct 0 0 D 127.0.0.1 LoopBack0 10.3.3.3/32 OSPF 10 1 D 10.0.1.1 Vlanif30 10.4.4.4/32 OSPF 10 1 D 10.2.2.2 Tunnel1 10.5.5.5/32 OSPF 10 2 D 10.2.2.2 Tunnel1 127.0.0.0/8 Direct 0 0 D 127.0.0.1 InLoopBack0 127.0.0.1/32 Direct 0 0 D 127.0.0.1 InLoopBack0 172.16.1.0/24 OSPF 10 2 D 10.0.0.1 Vlanif20 192.168.3.0/24 OSPF 10 3 D 10.2.2.2 Tunnel1
- # 在被TE-Tunnel穿越的交换机SwitchC上查看组播路由表 。
[SwitchC] display multicast routing-table
- 没有显示任何组播表项,说明组播报文被丢弃 。
- 配置本地MT特性
- # 在SwitchB上使能本地MT特性 。
[SwitchB] ospf 1[SwitchB-ospf-1] local-mt enable[SwitchB-ospf-1] quit
- 验证配置结果
- # 此时再次查看SwitchC的组播路由表,已经有组播路由 。
[SwitchC] display multicast routing-tableMulticast routing table of VPN-Instance: public net Total 1 entry 00001. (192.168.3.2, 225.0.0.1) Uptime: 00:00:19 Upstream Interface: Vlanif40 List of 1 downstream interface 1: Vlanif30
- # 在SwitchB上查看MIGP路由表 。
[SwitchB] display migp routing-tableRoute Flags: R - relay, D - download to fib------------------------------------------------------------------------------Routing Tables: MIGP Destinations : 4 Routes : 4Destination/Mask Proto Pre Cost Flags NextHop Interface10.0.3.0/24 OSPF 10 3 10.0.1.1 Vlanif30 10.4.4.4/32 OSPF 10 2 10.0.1.1 Vlanif30 10.5.5.5/32 OSPF 10 3 10.0.1.1 Vlanif30 192.168.3.0/24 OSPF 10 4 10.0.1.1 Vlanif30
- 原来出接口为TE-Tunnel的路由,其下一跳在MIGP路由表中均被计算为物理出接口 。
配置文件
#sysname SwitchA#router id 10.1.1.1#vlan batch 10 20#multicast routing-enable#interface Vlanif10 ip address 172.16.1.1 255.255.255.0pim sm igmp enable igmp version 3#interface Vlanif20 ip address 10.0.0.1 255.255.255.0 pim sm#interface GigabitEthernet1/0/1 port link-type access port default vlan 10 #interface GigabitEthernet1/0/2 port link-type trunk port trunk allow-pass vlan 20 #interface LoopBack0 ip address 10.1.1.1 255.255.255.255#ospf 1 area 0.0.0.0 network 10.1.1.1 0.0.0.0 network 10.0.0.0 0.0.0.255 network 172.16.1.0 0.0.0.255#return
推荐阅读
-
#消费汽车指南#比奥迪Q5L霸气,3.6L+306马力,或不足22W,雪佛兰“毒液”来了
-
陈创|陈创不想演“哮天犬”,张国立:连狗都演不了,那就别在圈里混了
-
「青史文集」朱元璋太累了!,连住什么房子、穿什么衣服都要管
-
怎样看待郭文韬与女朋友因师妹分手,和王照宇相比,怎么样才是最佳男朋友典范
-
请问啥牌子的户外包比较好选户外包都需要关注啥要是女性适合啥户外包
-
贝莉雅|大多都具有这三样东西,希望你也有,那些婚姻幸福的女人
-
上班族的6天早餐,每天花样都不同,朋友:这手艺都能开店了
-
-
[消防车]冬夜里最靓的仔!小男孩主动为消防车引路并两次敬礼
-
特朗普改口称完全赞成戴口罩真相是什么?特朗普改口称完全赞成戴口罩背后的真相
-
-
-
一位过来人的真心话:原谅出轨的丈夫后,不一定要回到从前
-
-
段奕宏|段奕宏:喜欢陶虹爱而不得,小师妹陪他从无到有,无儿无女成遗憾
-
中国青年网|市值蒸发过半!被这家公司赶超了→,昔日全球最大的石油巨头
-
-
五更点讯|【国庆专刊】2020年当代优秀艺术名家作品展——曾柏良
-
区块链蓝海比特小鹿 BitDeer 孟晓妮:愿做行业造风者,升级“一站式挖矿云服务平台”
-
nba|因不满裁判引发“乌龟门”事件,主角竟是易建联和王仕鹏!