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