Multicast and Routing Guide K/KA/KB.15.15
HP Switch(ospf)# enable
HP Switch(ospf)# area 0
HP Switch(ospf)# network 2.2.2.2/32
HP Switch(ospf)# network 9.1.1.1/24
HP Switch(ospf)# exit
HP Switch(config)# vlan 300
HP Switch(vlan-300)# ip ospf
# Configure Switch C
HP Switch(config)# router bgp 65009
HP Switch(bgp)# bgp router-id 3.3.3.3
HP Switch(bgp)# neighbor 2.2.2.2 remote-as 65009
HP Switch(bgp)# neighbor 2.2.2.2 connect-interface loopback 0
HP Switch(bgp)# exit
HP Switch(config)# router ospf
HP Switch(ospf)# enable
HP Switch(ospf)# area 0
HP Switch(ospf)# network 3.3.3.3/32
HP Switch(ospf)# network 9.1.1.0/24
HP Switch(ospf)# exit
HP Switch(config)# vlan 300
HP Switch(vlan-300)# ip ospf
HP Switch(vlan-300)# show ip bgp summary
Peer Information
Remote Address Remote-AS Local-AS State Admin Status
-------------- --------- -------- ------------ -----
2.2.2.2 65009 65009 Established Start
The output information shows that Switch C has established an iBGP peer relationship with
Switch B.
3. Configure eBGP.
• The eBGP peers, Switch A and Switch B (usually belonging to different carriers), are
located in different ASs. Their loopback interfaces are not reachable to each other, so
directly connected interfaces are used for establishing BGP sessions.
• To enable Switch C to access the network 8.1.1.0/24 that is connected directly to Switch
A, add network 8.1.1.0/24 to the BGP routing table of Switch A.
# Configure Switch A.
HP Switch(config)# router bgp 65008
HP Switch(bgp)# bgp router-id 1.1.1.1
HP Switch(bgp)# neighbor 3.1.1.1 remote-as 65009
HP Switch(bgp)# network 8.1.1.1/24
HP Switch(bgp)# exit
# Configure Switch B.
HP Switch(config)# router bgp 65009
HP Switch(bgp)# neighbor 3.1.1.2 remote-as 65008
HP Switch(bgp)# exit
# Show IP bgp peer information on Switch B.
HP Switch(config)# show ip bgp summary
Peer Information
Remote Address Remote-AS Local-AS State Admin Status
-------------- --------- -------- -------- ------------
2.2.2.2 65009 65009 Established Start
3.1.1.2 65008 65009 Established Start
318 Border Gateway Protocol (BGP)










