beautypg.com

H3C Technologies H3C S7500E Series Switches User Manual

Page 256

background image

8-22

[SwitchA-bgp] import-route direct

[SwitchA-bgp] ipv4-family multicast

[SwitchA-bgp-af-mul] peer 192.168.1.2 enable

[SwitchA-bgp-af-mul] import-route direct

[SwitchA-bgp-af-mul] quit

[SwitchA-bgp] quit

# On Switch B, configure the MBGP peer and enable route redistribution from OSPF.

[SwitchB] bgp 200

[SwitchB-bgp] router-id 2.2.2.2

[SwitchB-bgp] peer 192.168.1.1 as-number 100

[SwitchB-bgp] import-route ospf 1

[SwitchB-bgp] ipv4-family multicast

[SwitchB-bgp-af-mul] peer 192.168.1.1 enable

[SwitchB-bgp-af-mul] import-route ospf 1

[SwitchB-bgp-af-mul] quit

[SwitchB-bgp] quit

6) Configure MSDP peer

# Specify the MSDP peer on Switch A.

[SwitchA] msdp

[SwitchA-msdp] peer 192.168.1.2 connect-interface vlan-interface 101

[SwitchA-msdp] quit

# Specify the MSDP peer on Switch B.

[SwitchB] msdp

[SwitchB-msdp] peer 192.168.1.1 connect-interface vlan-interface 101

[SwitchB-msdp] quit

7) Verify the configuration

You can use the display bgp multicast peer command to display MBGP peers on a switch. For

example, display MBGP peers on Switch B.

[SwitchB] display bgp multicast peer

BGP local router ID : 2.2.2.2

Local AS number : 200

Total number of peers : 3 Peers in established state : 3

Peer AS MsgRcvd MsgSent OutQ PrefRcv Up/Down State

192.168.1.1 100 56 56 0 0 00:40:54 Established

You can use the display msdp brief command to display MSDP peers on a switch. For example,

display brief information about MSDP peers on Switch B.

[SwitchB] display msdp brief

MSDP Peer Brief Information of VPN-Instance: public net

Configured Up Listen Connect Shutdown Down

1 1 0 0 0 0

Peer's Address State Up/Down time AS SA Count Reset Count

192.168.1.1 Up 00:07:17 100 1 0