3com 8807 사용자 가이드

다운로드
페이지 883
MBGP Multicast Extension Configuration Example
503
[SwitchA-bgp-af-mul] peer a1 enable
 
[SwitchA-bgp-af-mul] peer a2 enable 
# Configure the MED attribute of Switch A.
Add an ACL on Switch A to permit network 1.0.0.0/8.
[SwitchA] acl number 2000
 
[SwitchA-acl-basic-2000] rule permit source 1.0.0.0 0.255.255.255
 
[SwitchA-acl-basic-2000] rule deny source any 
Define two routing policies: set_med_50 and set_med_100, providing two 
MED values for network 1.0.0.0 (50 and 100 respectively).
[SwitchA] route-policy set_med_50 permit node 10
 
[SwitchA-route-policy] if-match acl 2000
 
[SwitchA-route-policy] apply cost 50
 
[SwitchA-route-policy] quit
 
[SwitchA] route-policy set_med_100 permit node 10
 
[SwitchA-route-policy] if-match acl 2000
 
[SwitchA-route-policy] apply cost 100 
Apply the routing policy set_med_50 to the exported route updates of Switch 
C (193.1.1.2). Apply the routing policy set_med_100 to the exported route 
updates of Switch B (192.1.1.2).
[SwitchA] bgp 100
 
[SwitchA-bgp] ipv4-family multicast
 
[SwitchA-bgp-af-mul] peer a2 route-policy set_med_50 export
 
[SwitchA-bgp-af-mul] peer a1 route-policy set_med_100 export 
Configure Switch B:
<SwitchB> system-view
 
System View: return to User View with Ctrl+Z.
 
[SwitchB] vlan 20
 
[SwitchB-vlan20] port ethernet2/1/2
 
[SwitchB-vlan20] quit
 
[SwitchB] interface vlan-interface 20
 
[SwitchB-Vlan-interface20] ip address 192.1.1.2 255.255.255.0
 
[SwitchB-Vlan-interface20] quit
 
[SwitchB] vlan 40
 
[SwitchB-vlan40] port ethernet2/1/4
 
[SwitchB-vlan40] quit
 
[SwitchB] interface vlan-interface 40
 
[SwitchB-Vlan-interface40] ip address 194.1.1.2 255.255.255.0
 
[SwitchB-Vlan-interface40] quit
 
[SwitchB] ospf
 
[SwitchB-ospf-1] area 0
 
[SwitchB-ospf-1-area-0.0.0.0] network 194.1.1.0 0.0.0.255
 
[SwitchB-ospf-1-area-0.0.0.0] network 192.1.1.0 0.0.0.255
 
[SwitchB-ospf-1-area-0.0.0.0] quit
 
[SwitchB-ospf-1] quit
 
[SwitchB] bgp 200
 
[SwitchB-bgp] undo synchronization
 
[SwitchB-bgp] group b1 external
 
[SwitchB-bgp] peer 192.1.1.1.1 group b1 as-number 100
 
[SwitchB-bgp] group b2 internal
 
[SwitchB-bgp] peer 194.1.1.1.1 group b2
 
[SwitchB-bgp] peer 195.1.1.1.2 group b2