华为交换机路由器配置本地MT特性( 三 )

  • SwitchB的配置文件
#sysname SwitchB#router id 10.2.2.2#vlan batch 20 30#multicast routing-enable#mpls lsr-id 10.2.2.2mpls mpls te mpls rsvp-te mpls te cspf#interface Vlanif20 ip address 10.0.0.2 255.255.255.0 pim sm#interface Vlanif30 ip address 10.0.1.2 255.255.255.0 pim sm mpls mpls te mpls rsvp-te#interface GigabitEthernet1/0/1 port link-type trunk port trunk allow-pass vlan 20#interface GigabitEthernet1/0/2 port link-type trunk port trunk allow-pass vlan 30#interface LoopBack0 ip address 10.2.2.2 255.255.255.255#interface Tunnel1 ip address unnumbered interface LoopBack0 tunnel-protocol mpls te destination 10.4.4.4 mpls te tunnel-id 100 mpls te igp shortcut ospf mpls te igp metric relative -10 mpls te commit#ospf 1 opaque-capability enable enable traffic-adjustment local-mt enable area 0.0.0.0 network 10.2.2.2 0.0.0.0 network 10.0.0.0 0.0.0.255 network 10.0.1.0 0.0.0.255 mpls-te enable#return
  • SwitchC的配置文件
#sysname SwitchC#router id 10.3.3.3#vlan batch 30 40#multicast routing-enable#mpls lsr-id 10.3.3.3mpls mpls te mpls rsvp-te#interface Vlanif30 ip address 10.0.1.1 255.255.255.0 pim sm mpls mpls te mpls rsvp-te#interface Vlanif40 ip address 10.0.2.2 255.255.255.0 pim sm mpls mpls te mpls rsvp-te#interface GigabitEthernet1/0/1 port link-type trunk port trunk allow-pass vlan 30#interface GigabitEthernet1/0/2 port link-type trunk port trunk allow-pass vlan 40#interface LoopBack0 ip address 10.3.3.3 255.255.255.255#ospf 1 opaque-capability enable area 0.0.0.0 network 10.3.3.3 0.0.0.0 network 10.0.1.0 0.0.0.255 network 10.0.2.0 0.0.0.255 mpls-te enable#return
  • SwitchD的配置文件
#sysname SwitchD#router id 10.4.4.4#vlan batch 40 50#multicast routing-enable#mpls lsr-id 10.4.4.4mpls mpls te mpls rsvp-te#interface Vlanif40 ip address 10.0.2.1 255.255.255.0 pim sm mpls mpls te mpls rsvp-te#interface Vlanif50 ip address 10.0.3.1 255.255.255.0 pim sm#interface GigabitEthernet1/0/1 port link-type trunk port trunk allow-pass vlan 50#interface GigabitEthernet1/0/2 port link-type trunk port trunk allow-pass vlan 40#interface LoopBack0 ip address 10.4.4.4 255.255.255.255#ospf 1 opaque-capability enable area 0.0.0.0 network 10.4.4.4 0.0.0.0 network 10.0.2.0 0.0.0.255 network 10.0.3.0 0.0.0.255 mpls-te enable#pim c-bsr Vlanif50 c-rp Vlanif50#return
  • SwitchE的配置文件
#sysname SwitchE#router id 10.5.5.5#vlan batch 50 60#multicast routing-enable#interface Vlanif50 ip address 10.0.3.3 255.255.255.0 pim sm#interface Vlanif60 ip address 192.168.3.1 255.255.255.0 pim sm#interface GigabitEthernet1/0/1 port link-type trunk port trunk allow-pass vlan 50#interface GigabitEthernet1/0/2 port link-type access port default vlan 60#interface LoopBack0 ip address 10.5.5.5 255.255.255.255#ospf 1 area 0.0.0.0 network 10.5.5.5 0.0.0.0 network 10.0.3.0 0.0.0.255 network 192.168.3.0 0.0.0.255#return



推荐阅读