3 configuration examples of bgp, 1 examples 1: configure bgp neighbor, Onfiguration – PLANET XGS3-24040 User Manual

Page 322: Xamples of

Advertising
background image

Chapter 39 BGP

39-16

39.3 Configuration Examples of BGP

39.3.1 Examples 1: configure BGP neighbor

SwitchB, SwitchC and SwitchD are in AS200, SwitchA is in AS100. SwitchA and SwitchB share the same

network segment. SwitchB and SwitchD are not connected physically.

Figure 7-1 BGP Network Topological Map

The configurations of SwitchA are as following:

SwitchA(config)#router bgp 100

SwitchA(config-router-bgp)#neighbor 11.1.1.2 remote-as 200

SwitchA(config-router-bgp)#exit

The configurations of SwitchB are as following:

SwitchB(config)#router bgp 200

SwitchB(config-router-bgp)#network 11.0.0.0

SwitchB(config-router-bgp)#network 12.0.0.0

SwitchB(config-router-bgp)#network 13.0.0.0

SwitchB(config-router-bgp)#neighbor 11.1.1.1 remote-as 100

SwitchB(config-router-bgp)#neighbor 12.1.1.3 remote-as 200

SwitchB(config-router-bgp)#neighbor 13.1.1.4 remote-as 200

SwitchB(config-router-bgp)#exit

The configurations of SwitchC are as following:

SwitchC(config)#router bgp 200

SwitchC(config-router-bgp)#network 12.0.0.0

SwitchC(config-router-bgp)#network 13.0.0.0

SwitchC(config-router-bgp)#neighbor 12.1.1.2 remote-as 200

SwitchC(config-router-bgp)#neighbor 13.1.1.4 remote-as 200

SwitchC(config-router-bgp)#exit

Vlan1:11.1.1.1

Vlan1:11.1.1.2

Vlan1: 12.1.1.3

Vlan2: 13.1.1.3

Vlan2: 12.1.1.2

Vlan1: 13.1.1.4

SwitchA

SwitchB

SwitchD

SwitchC

AS100

AS200

Advertising