Ad Home

BGP Basico

Share:

R1

hostname R1
!
interface FastEthernet0/0
 ip address 192.168.100.2 255.255.255.0
!
router bgp 64100
 neighbor 192.168.100.1 remote-as 64100
 no auto-summary

Borde 1  

hostname B1
!
interface FastEthernet0/0
 ip address 10.0.0.1 255.255.255.0
!
interface FastEthernet0/1
 ip address 192.168.100.1 255.255.255.0
!
router bgp 64100
 network 192.168.100.0
 neighbor 10.0.0.2 remote-as 64200
 neighbor 192.168.100.2 remote-as 64100
 neighbor 192.168.100.2 next-hop-self
 no auto-summary
!

Border 2

hostname B2
!
interface FastEthernet0/0
 ip address 10.0.0.2 255.255.255.0
!
interface FastEthernet0/1
 ip address 192.168.200.1 255.255.255.0
!
router bgp 64200
 network 192.168.200.0
 neighbor 10.0.0.1 remote-as 64100
 neighbor 192.168.200.2 remote-as 64200
 neighbor 192.168.200.2 next-hop-self
 no auto-summary
!

R2

hostname R2
!
interface FastEthernet0/0
 ip address 192.168.200.2 255.255.255.0
!
router bgp 64200
 neighbor 192.168.200.1 remote-as 64200
 no auto-summary
!

Pruebas


R1#sh ip bgp 
BGP table version is 8, local router ID is 192.168.0.2
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
              r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete

   Network          Next Hop            Metric LocPrf Weight Path
r>i192.168.100.0    192.168.100.1            0    100      0 i
*>i192.168.200.0    192.168.100.1            0    100      0 64200 i


R1#ping 192.168.200.1

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.200.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 48/68/88 ms
R1#

Ad Home