06-01-2012 01:51 AM - edited 03-07-2019 07:01 AM
Hi,
I configured BGP in 2 different ASN. All route did not exchange properly. I am Attaching the topology and configuration of all routers. Plz find the mistake and help me to correct it.
Router 1
!
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R1
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
!
resource policy
!
memory-size iomem 5
!
!
ip cef
no ip domain lookup
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface Loopback1
ip address 1.1.1.1 255.255.255.255
!
interface Loopback5
ip address 5.5.5.5 255.255.255.255
!
interface Serial0/0
ip address 10.0.0.1 255.0.0.0
serial restart-delay 0
no dce-terminal-timing-enable
!
interface Serial0/1
ip address 30.0.0.1 255.0.0.0
serial restart-delay 0
no dce-terminal-timing-enable
!
interface Serial0/2
no ip address
shutdown
serial restart-delay 0
no dce-terminal-timing-enable
!
interface Serial0/3
no ip address
shutdown
serial restart-delay 0
no dce-terminal-timing-enable
!
router bgp 10
no synchronization
bgp log-neighbor-changes
network 1.1.1.1
network 5.5.5.5
network 10.0.0.0
network 30.0.0.0
neighbor 2.2.2.2 remote-as 10
neighbor 2.2.2.2 update-source Loopback1
neighbor 3.3.3.3 remote-as 20
neighbor 3.3.3.3 ebgp-multihop 2
neighbor 3.3.3.3 update-source Loopback1
no auto-summary
!
no ip http server
no ip http secure-server
!
ip route 2.2.2.2 255.255.255.255 30.0.0.2
ip route 3.3.3.3 255.255.255.255 10.0.0.2
!
!
!
!
control-plane
!
!
!
!
!
!
!
!
!
!
line con 0
exec-timeout 0 0
logging synchronous
line aux 0
line vty 0 4
!
!
end
Router 2
!
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R2
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
!
resource policy
!
memory-size iomem 5
!
!
ip cef
no ip domain lookup
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface Loopback1
ip address 2.2.2.2 255.255.255.255
!
interface Loopback10
ip address 11.11.11.11 255.255.255.255
!
interface Serial0/0
ip address 20.0.0.1 255.0.0.0
serial restart-delay 0
no dce-terminal-timing-enable
!
interface Serial0/1
ip address 30.0.0.2 255.0.0.0
serial restart-delay 0
no dce-terminal-timing-enable
!
interface Serial0/2
no ip address
shutdown
serial restart-delay 0
no dce-terminal-timing-enable
!
interface Serial0/3
no ip address
shutdown
serial restart-delay 0
no dce-terminal-timing-enable
!
router bgp 10
no synchronization
bgp log-neighbor-changes
network 2.2.2.2
network 11.11.11.11
network 20.0.0.0
network 30.0.0.0
neighbor 1.1.1.1 remote-as 10
neighbor 1.1.1.1 update-source Loopback1
neighbor 3.3.3.3 remote-as 20
neighbor 3.3.3.3 ebgp-multihop 2
neighbor 3.3.3.3 update-source Loopback1
no auto-summary
!
no ip http server
no ip http secure-server
!
ip route 1.1.1.1 255.255.255.255 30.0.0.1
ip route 3.3.3.3 255.255.255.255 20.0.0.2
!
!
!
!
control-plane
!
!
!
!
!
!
!
!
!
!
line con 0
exec-timeout 0 0
logging synchronous
line aux 0
line vty 0 4
!
!
end
Router 3
!
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R3
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
!
resource policy
!
memory-size iomem 5
!
!
ip cef
no ip domain lookup
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface Loopback1
ip address 3.3.3.3 255.255.255.255
!
interface Loopback15
ip address 15.15.15.15 255.255.255.255
!
interface Serial0/0
ip address 10.0.0.2 255.0.0.0
serial restart-delay 0
no dce-terminal-timing-enable
!
interface Serial0/1
ip address 20.0.0.2 255.0.0.0
serial restart-delay 0
no dce-terminal-timing-enable
!
interface Serial0/2
no ip address
shutdown
serial restart-delay 0
no dce-terminal-timing-enable
!
interface Serial0/3
no ip address
shutdown
serial restart-delay 0
no dce-terminal-timing-enable
!
router bgp 20
no synchronization
bgp log-neighbor-changes
network 3.3.3.3
network 10.0.0.0
network 15.15.15.15
network 20.0.0.0
neighbor 1.1.1.1 remote-as 10
neighbor 1.1.1.1 ebgp-multihop 2
neighbor 1.1.1.1 update-source Loopback1
neighbor 2.2.2.2 remote-as 10
neighbor 2.2.2.2 ebgp-multihop 2
neighbor 2.2.2.2 update-source Loopback1
no auto-summary
!
no ip http server
no ip http secure-server
!
ip route 1.1.1.1 255.255.255.255 10.0.0.1
ip route 2.2.2.2 255.255.255.255 20.0.0.1
!
!
!
!
control-plane
!
!
!
!
!
!
!
!
!
!
line con 0
exec-timeout 0 0
logging synchronous
line aux 0
line vty 0 4
!
!
end
06-01-2012 04:04 AM
Hi,
when no auto-summary is enabled you must specify an exact match for the prefixes you want to advertise with the network command by using the mask keyword and specifying the mask of the prefix as it is in the routing table.
eg :
router bgp 20
network 3.3.3.3 mask 255.255.255.255
Regards.
Alain
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide