Ad Home

Configuracion iBGP y eBGP con y sin Loopback

Share:



iBGP Configuration

In this configuration, both routers are in AS 400.


R1#
!-- Output suppressed.

interface Serial1
 ip address 10.10.10.1 255.255.255.0
!
router bgp 400

!--- Enables BGP for the autonomous !--- system 400.

 neighbor 10.10.10.2 remote-as 400
 
!--- Specifies a neighbor 10.10.10.2 !--- in the remote AS 400, making 
!--- this an iBGP connection. !-- Output suppressed.

end




R2#
!-- Output suppressed.

interface Serial0
ip address 10.10.10.2 255.255.255.0
!
router bgp 400
 neighbor 10.10.10.1 remote-as 400

!-- Output suppressed.

end

eBGP Configuration

In this configuration, the router R1 is in AS 300 and R2 is in AS 400.



R1#
Current configuration:

!-- Output suppressed

interface Serial1
 ip address 10.10.10.1 255.255.255.0
!
router bgp 300

!--- Enables BGP for the autonomous !--- system 300.

 neighbor 10.10.10.2 remote-as 400
 
!--- Specifies a neighbor 10.10.10.2 !--- in the remote AS 400, making !
--- this an eBGP connection.


!-- Output suppressed.

end




R2#
Current configuration:

!-- Output suppressed.

interface Serial0
ip address 10.10.10.2 255.255.255.0
!
router bgp 400
 neighbor 10.10.10.1 remote-as 300

!-- Output suppressed.

end


iBGP Configuration with a Loopback Address

You can configure iBGP using a loopback address (or any other operational interface) as shown in this section.



R1
Current configuration:


!-- Output suppressed.

interface Loopback0
  ip address 1.1.1.1 255.255.255.255
 !
 interface Serial1
  ip address 10.10.10.1 255.255.255.0
 !
 router bgp 300
  neighbor 2.2.2.2 remote-as 300
  neighbor 2.2.2.2 update-source Loopback0
  
!--- This command specifies that the TCP 
!--- connection with the specified external !
--- peer should be established using the 
!--- address on the loopback interface.

 !
 ip route 2.2.2.2 255.255.255.255 10.10.10.2
 
!--- This static route ensures that the 
!--- remote peer address used for peering 
!--- is reachable. !-- Output suppressed.

end





R2#
!Current configuration:


!-- Output suppressed.

interface Loopback0
 ip address 2.2.2.2 255.255.255.255
!
interface Serial0
 ip address 10.10.10.2 255.255.255.0
!
router bgp 300
 neighbor 1.1.1.1 remote-as 300
 neighbor 1.1.1.1 update-source Loopback0
!
ip route 1.1.1.1 255.255.255.255 10.10.10.1

!-- Output suppressed.

end

eBGP Configuration with a Loopback Address


R2#
Current configuration: !-- Output suppressed. interface Loopback0 ip address 1.1.1.1 255.255.255.255 ! interface Serial1 ip address 10.10.10.1 255.255.255.0 ! router bgp 300 neighbor 2.2.2.2 remote-as 400 neighbor 2.2.2.2 ebgp-multihop 2 !--- This command changes the ttl value in
!--- order to allow the packet to reach the
!--- external BGP peer which is not directly
!--- connected or is using an interface other
!--- than the directly connected interface.
neighbor 2.2.2.2 update-source Loopback0 !--- This command specifies that the TCP
!--- connection with the external BGP
!--- peer should be established using the
!--- address on the loopback interface. ! ip route 2.2.2.2 255.255.255.255 10.10.10.2 !--- This static route ensures that the
!--- remote peer address used for peering
!--- is reachable. !-- Output suppressed.end


R2#
Current configuration:


!-- Output suppressed.


interface Loopback0
 ip address 2.2.2.2 255.255.255.255
!
interface Serial0
 ip address 10.10.10.2 255.255.255.0
!
router bgp 400
 neighbor 1.1.1.1 remote-as 300
 neighbor 1.1.1.1 ebgp-multihop 2
 neighbor 1.1.1.1 update-source Loopback0
!
ip route 1.1.1.1 255.255.255.255 10.10.10.1


!-- Output suppressed.

end


Ad Home