3com 8807 User Guide

Page of 883
MSDP Configuration Examples
491
[SwitchE] interface loopback0
 
[SwitchE-LoopBack0] ip address 10.26.1.2 255.255.255.255
 
[SwitchE-LoopBack0] pim sm
 
[SwitchE-LoopBack0] quit 
# Configure the IP address of interface lookback10 and enable PIM-SM.
[SwitchE] interface loopback10
 
[SwitchE-LoopBack10] ip address 10.1.1.1 255.255.255.255
 
[SwitchE-LoopBack10] pim sm
 
[SwitchE-LoopBack10] quit 
# Configure the IP address of Vlan-interface10 and enable IGMP and PIM-SM.
[SwitchE] interface Vlan-interface10
 
[SwitchE-Vlan-interface10] ip address 10.26.2.3 255.255.255.0
 
[SwitchE-Vlan-interface10] igmp enable
 
[SwitchE-Vlan-interface10] pim sm
 
[SwitchE-Vlan-interface10] undo shutdown
 
[SwitchE-Vlan-interface10] quit 
# Configure the IP address of Vlan-interface20 and enable IGMP and PIM-SM.
[SwitchE] interface Vlan-interface20
 
[SwitchE-Vlan-interface20] ip address 10.26.3.1 255.255.255.0
 
[SwitchE-Vlan-interface20] igmp enable
 
[SwitchE-Vlan-interface20] pim sm
 
[SwitchE-Vlan-interface20] undo shutdown
 
[SwitchE-Vlan-interface20] quit 
# Configuring OSPF
[SwitchE] ospf
 
[SwitchE-ospf-1] area 0
 
[SwitchE-ospf-1-area-0.0.0.0] network 10.26.2.0 0.255.255.255
 
[SwitchE-ospf-1-area-0.0.0.0] network 10.1.1.1 0.0.0.0
 
[SwitchE-ospf-1-area-0.0.0.0] network 10.26.1.2 0.0.0.0
 
[SwitchE-ospf-1-area-0.0.0.0] quit
 
[SwitchE-ospf-1] quit 
# Configure BGP.
[SwitchE] bgp 100
 
[SwitchE-bgp] undo synchronization
 
[SwitchE-bgp] group in internal
 
[SwitchE-bgp] peer 10.25.1.1 group in
 
[SwitchE-bgp] peer 10.27.1.2 group in
 
[SwitchE-bgp] peer in connect-interface loopback0
 
[SwitchE-bgp] ipv4-family multicast
 
[SwitchE-bgp-af-mul] peer in enable
 
[SwitchE-bgp-af-mul] peer 10.25.1.1 group in
 
[SwitchE-bgp-af-mul] peer 10.27.1.2 group in
 
[SwitchE-bgp-af-mul] peer in next-hop-local
 
[SwitchE-bgp-af-mul] quit
 
[SwitchE-bgp] group ex external
 
[SwitchE-bgp] peer 10.29.1.1 group ex as-number 300
 
[SwitchE-bgp] peer ex default-route-advertise
 
[SwitchE-bgp] peer ex ebgp-max-hop 255