Konfigurasi iBGP Peering Loopback

ibgp-loopback-peering

Assign ip address router
Router(config)# interface [nama-interface]
Router(config-if)# ip address [ip] [mask]

R1 
#interface Loopback0
# ip address 1.1.1.1 255.255.255.255
#interface FastEthernet0/0
# ip address 12.12.12.1 255.255.255.0

R2
#interface Loopback0
# ip address 2.2.2.2 255.255.255.255
#interface FastEthernet0/0
# ip address 12.12.12.2 255.255.255.0


Setting IGP (rip, eigrp, ospf, static route)
Router(config)# ip route [loopback0] [mask] next-hop

R1 
# ip route 2.2.2.2 255.255.255.255 12.12.12.2

R2
#ip route 1.1.1.1 255.255.255.255 12.12.12.1


Setting BGP
 Router(config)# router bgp [ASN]

R1(config)#router bgp 12

R2(config)#router bgp 12


Setting neighbor
Router(config-router)# neighbor [ip lo] remote-as [ASN]
Router(config-router)# neighbor [ip lo] update-source [nama lo]

R1 
#neighbor 2.2.2.2 remote-as 12
#neighbor 2.2.2.2 update-source loopback0

R2
#neighbor 1.1.1.1 remote-as 12
#neighbor 1.1.1.1 update-source loopback0


Assign ip loopback tambahan router
Router(config)# interface [nama-interface]
Router(config-if)# ip address [ip] [mask]

R1 
#interface Loopback1
# ip address 11.11.11.11 255.255.255.255

R2
#interface Loopback1
# ip address 22.22.22.22 255.255.255.255


Advertise ip loopback tambahan ke dalam router bgp
Router(config-router)# network [ip network] mask [subnetmask]

R1(config)#router bgp 12
#network 11.11.11.11 mask 255.255.255.255

R2(config)#router bgp 12
#network 22.22.22.22 mask 255.255.255.255


Lihat Status
Router# show ip bgp

R1 
 Network          Next Hop
*> 11.11.11.11/32   0.0.0.0
*>i22.22.22.22/32   2.2.2.2

R2
Network            Next Hop
*>i11.11.11.11/32   1.1.1.1
*> 22.22.22.22/32   0.0.0.0


Cek routing bgp
Router# show ip route bgp

R1#sh ip route bgp
22.0.0.0/32 is subnetted, 1 subnets
B       22.22.22.22 [200/0] via 2.2.2.2, 00:02:38

R2#sh ip route bgp
 11.0.0.0/32 is subnetted, 1 subnets
 B       11.11.11.11 [200/0] via 1.1.1.1, 00:02:48


Test Ping
Router# ping [ip network destination]

R1#ping 22.22.22.22

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 22.22.22.22, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 8/11/16 ms

R2#ping 11.11.11.11

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 11.11.11.11, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 4/10/12 ms

Konfigurasi dasar iBGP Peering

ibgp-peering

Setting IP Address Router
 Router(config)# interface [nama-interface]
 Router(config-if)# ip address [ip] [mask]

R1
#interface Loopback0
#ip address 1.1.1.1 255.255.255.255
#interface FastEthernet0/0
#ip address 12.12.12.1 255.255.255.0

R2
#interface Loopback0
#ip address 2.2.2.2 255.255.255.255
#interface FastEthernet0/0
#ip address 12.12.12.2 255.255.255.0


Aktifkan Router BGP
 Router(config)# router bgp [ASN]

R1(config)#router bgp 12

R2(config)#router bgp 12


Setting neighbor
 Router(config-router)# neighbor [peer address] remote-as [ASN]

R1
 #neighbor 12.12.12.2 remote-as 12

R2
 #neighbor 12.12.12.1 remote-as 12


Advertise ip network ke dalam router bgp
 Router(config-router)# network [ip network] mask [mask]

R1 
 #network 1.1.1.1 mask 255.255.255.255

R2
 #network 2.2.2.2 mask 255.255.255.255


Lihat Status
 Router# show ip bgp

R1
 Network        Next Hop
 *> 1.1.1.1/32  0.0.0.0 
 *>i2.2.2.2/32  12.12.12.2

R2
Network          Next Hop  
 *>i1.1.1.1/32   12.12.12.1  
 *> 2.2.2.2/32   0.0.0.0  


Lihat Status
 Router# show ip bgp summary

R1
Neighbor    V  AS MsgRcvd MsgSent TblVer  InQ OutQ Up/Down  State/PfxRcd
12.12.12.2  4  12   34      34     3       0    0 00:30:26        1

R2
Neighbor    V  AS MsgRcvd MsgSent TblVer  InQ OutQ Up/Down  State/PfxRcd
12.12.12.1  4  12   33      33       3    0    0 00:29:35        1


Cek routing bgp
 Router# show ip route bgp

R1#sh ip route bgp
 2.0.0.0/32 is subnetted, 1 subnets
 B       2.2.2.2 [200/0] via 12.12.12.2, 00:28:30

R2#sh ip rout bgp
 1.0.0.0/32 is subnetted, 1 subnets
 B       1.1.1.1 [200/0] via 12.12.12.1, 00:29:55


Test Ping
 Router# ping [ip network destination]

R1#ping 2.2.2.2

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2.2.2.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 4/12/16 ms

R2#ping 1.1.1.1

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 1.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 4/11/16 ms