PG1X WIKI

My Knowledge Base

User Tools

Site Tools


tech:network:cisco:bgp:bgp:bgp-confederation:bgp-confederation

BGP: BGP Confederation

Project name: ccna-bgp10-bgp-confederation

Issued BGP Configuration

  1. IGP: OSPF
  2. BGP: peering policy: do not advertise EBGP link inter public AS.

Base Configuration

  • R1
en
conf t
!
hostname R1
no ip domain-lookup
line console 0
exec-timeout 0 0
logging synchronous
!
int gig0/0
ip address 10.3.1.1 255.255.255.0
no shut
exit
int gig0/1
ip address 10.4.1.1 255.255.255.0
no shut
exit
int gig0/2
ip address 3.0.0.1 255.255.255.0
no shut
exit
int gig0/3
ip address 10.5.1.1 255.255.255.0
no shut
exit
!
router ospf 1
network 10.3.1.1 0.0.0.0 area 0
network 10.4.1.1 0.0.0.0 area 0
network 10.5.1.1 0.0.0.0 area 0
exit
!
end
wr
  • R2
en
conf t
!
hostname R2
no ip domain-lookup
line console 0
exec-timeout 0 0
logging synchronous
!
int gig0/2
ip address 2.2.0.2 255.255.0.0
no shut
exit
int gig0/3
ip address 3.0.0.2 255.255.255.0
no shut
exit
!
router bgp 20
neighbor 3.0.0.1 remote-as 10
network 2.2.0.0 mask 255.255.0.0
exit
!
end
wr
  • R3
en
conf t
!
hostname R3
no ip domain-lookup
line console 0
exec-timeout 0 0
logging synchronous
!
int gig0/0
ip address 10.3.1.3 255.255.255.0
no shut
exit
int gig0/2
ip address 1.3.0.3 255.255.0.0
no shut
exit
!
router ospf 1
network 10.3.1.3 0.0.0.0 area 0
exit
!
end
wr
  • R4
en
conf t
!
hostname R4
no ip domain-lookup
line console 0
exec-timeout 0 0
logging synchronous
!
int gig0/0
ip address 10.4.1.4 255.255.255.0
no shut
exit
int gig0/2
ip address 1.4.0.4 255.255.0.0
no shut
exit
!
router ospf 1
network 10.4.1.4 0.0.0.0 area 0
exit
!
end
wr
  • R5
en
conf t
!
hostname R5
no ip domain-lookup
line console 0
exec-timeout 0 0
logging synchronous
!
int gig0/0
ip address 10.6.5.5 255.255.255.0
no shut
exit
int gig0/1
ip address 10.7.5.5 255.255.255.0
no shut
exit
int gig0/2
ip address 10.5.1.5 255.255.255.0
no shut
exit
!
router ospf 1
network 10.6.5.5 0.0.0.0 area 0
network 10.7.5.5 0.0.0.0 area 0
network 10.5.1.5 0.0.0.0 area 0
exit
!
end
wr
  • R6
en
conf t
!
hostname R6
no ip domain-lookup
line console 0
exec-timeout 0 0
logging synchronous
!
int gig0/0
ip address 10.6.5.6 255.255.255.0
no shut
exit
int gig0/2
ip address 1.6.0.6 255.255.0.0
no shut
exit
!
router ospf 1
network 10.6.5.6 0.0.0.0 area 0
exit
!
end
wr
  • R7
en
conf t
!
hostname R7
no ip domain-lookup
line console 0
exec-timeout 0 0
logging synchronous
!
int gig0/0
ip address 10.7.5.7 255.255.255.0
no shut
exit
int gig0/2
ip address 1.7.0.7 255.255.0.0
no shut
exit
!
router ospf 1
network 10.7.5.7 0.0.0.0 area 0
exit
!
end
wr
  • PC1
ip 1.3.0.101 255.255.0.0 1.3.0.3
save
  • PC2
ip 1.4.0.102 255.255.0.0 1.4.0.4
save
  • PC3
ip 1.6.0.103 255.255.0.0 1.6.0.6
save
  • PC4
ip 1.7.0.104 255.255.0.0 1.7.0.7
save
  • PC5
ip 2.2.0.105 255.255.0.0 2.2.0.2
save

BGP Confederation Configuration

Sub AS configured full meshed IBGP.

  • R1
conf t
!
router bgp 65001
bgp confederation identifier 10
bgp confederation peers 65002
neighbor 10.3.1.3 remote-as 65001
neighbor 10.4.1.4 remote-as 65001
neighbor 10.5.1.5 remote-as 65002
neighbor 10.3.1.3 next-hop-self
neighbor 10.4.1.4 next-hop-self
neighbor 10.5.1.5 next-hop-self
neighbor 3.0.0.2 remote-as 20
exit
!
end
  • R2

Nothing TODO

  • R3
conf t
!
router bgp 65001
bgp confederation identifier 10
neighbor 10.3.1.1 remote-as 65001
neighbor 10.4.1.4 remote-as 65001
network 1.3.0.0 mask 255.255.0.0
exit
!
end
  • R4
conf t
!
router bgp 65001
bgp confederation identifier 10
neighbor 10.4.1.1 remote-as 65001
neighbor 10.3.1.3 remote-as 65001
network 1.4.0.0 mask 255.255.0.0
exit
!
end
  • R5
conf t
!
router bgp 65002
bgp confederation identifier 10
bgp confederation peers 65001
neighbor 10.6.5.6 remote-as 65002
neighbor 10.7.5.7 remote-as 65002
neighbor 10.5.1.1 remote-as 65001
exit
!
end
  • R6
conf t
!
router bgp 65002
bgp confederation identifier 10
neighbor 10.6.5.5 remote-as 65002
neighbor 10.7.5.7 remote-as 65002
network 1.6.0.0 mask 255.255.0.0
exit
!
end
  • R7
conf t
!
router bgp 65002
bgp confederation identifier 10
neighbor 10.7.5.5 remote-as 65002
neighbor 10.6.5.6 remote-as 65002
network 1.7.0.0 mask 255.255.0.0
exit
!
end

on PC-2

ping 1.3.0.101
ping 1.6.0.103
ping 1.7.0.104

on PC-4

ping 1.3.0.101
ping 1.4.0.102
ping 1.6.0.103

on PC-5

ping 1.3.0.101
ping 1.4.0.102
ping 1.6.0.103
ping 1.7.0.104

on R6

ping 2.2.0.105
ping 2.2.0.105 source 1.6.0.6

References

tech/network/cisco/bgp/bgp/bgp-confederation/bgp-confederation.txt · Last modified: 2018/12/23 11:41 by wnoguchi