Nothing Special   »   [go: up one dir, main page]

Konfigurasi Routing BGP

Download as pdf or txt
Download as pdf or txt
You are on page 1of 4

Router R1

==================================
Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.

Konfigurasi interface
===================================
Router(config)#hostname R1
R1(config)#int g0/1
R1(config-if)#ip add 192.168.0.1 255.255.255.0
R1(config-if)#no sh

R1(config)#int g0/0
R1(config-if)#ip add 30.56.164.1 255.255.255.252
R1(config-if)#no sh

Konfigurasi Routing Protocol BGP


===================================
R1(config-if)#ex
R1(config)#router bgp 10
R1(config-router)#neighbor 30.56.164.2 remote-as 20
R1(config-router)#net 192.168.0.0 mask 255.255.255.0
R1(config-router)#net 30.56.164.0 mask 255.255.255.0
R1(config)#ex
R1#

Validasi BGP
===================================
R1#sh ip ro
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route

192.168.0.0/24 is variably subnetted, 2 subnets, 2 masks


C 192.168.0.0/24 is directly connected, GigabitEthernet0/1
L 192.168.0.1/32 is directly connected, GigabitEthernet0/1

R1#sh ip pro
Routing Protocol is "bgp 10"
Outgoing update filter list for all interfaces is not set
Incoming update filter list for all interfaces is not set
IGP synchronization is disabled
Automatic route summarization is disabled
Neighbor(s):
Address FiltIn FiltOut DistIn DistOut Weight RouteMap
30.56.164.2
Maximum path: 1
Routing Information Sources:
Gateway Distance Last Update
30.56.164.2 20 00:00:00
Distance: external 20 internal 200 local 200

R1#sh ip bgp summary

BGP router identifier 192.168.0.1, local AS number 10


BGP table version is 4, main routing table version 6
3 network entries using 396 bytes of memory
3 path entries using 156 bytes of memory
2/1 BGP path/bestpath attribute entries using 276 bytes of memory
2 BGP AS-PATH entries using 48 bytes of memory
0 BGP route-map cache entries using 0 bytes of memory
0 BGP filter-list cache entries using 0 bytes of memory
Bitfield cache entries: current 1 (at peak 1) using 32 bytes of memory
BGP using 908 total bytes of memory
BGP activity 3/0 prefixes, 3/0 paths, scan interval 60 secs

Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd


30.56.164.2 4 20 18 16 4 0 0 00:14:17 4

R1#

Router R2
==================================

Konfigurasi interface
===================================
Router(config)#hostname R1
R1(config)#int g0/1
R1(config-if)#ip add 110.200.200.1 255.255.255.248
R1(config-if)#no sh

R1(config)#int g0/0
R1(config-if)#ip add 30.56.164.2 255.255.255.252
R1(config-if)#no sh

Konfigurasi Routing Protocol BGP


===================================
Router(config-if)#
Router(config-if)#ex
Router(config)#router bgp 20
Router(config-router)#nei
Router(config-router)#neighbor 30.56.164.1 remote-as 10
Router(config-router)#network 110.200.200.0 mask 255.255.255.248
Router(config-router)#network 30.56.164.0 mask 255.255.255.252
Router(config-router)#ex
Router(config)#ex
Router#

Validasi BGP
===================================
Router#sh ip route
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route

Gateway of last resort is not set

30.0.0.0/8 is variably subnetted, 2 subnets, 2 masks


C 30.56.164.0/30 is directly connected, GigabitEthernet0/0
L 30.56.164.2/32 is directly connected, GigabitEthernet0/0
110.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 110.200.200.0/29 is directly connected, GigabitEthernet0/1
L 110.200.200.2/32 is directly connected, GigabitEthernet0/1
B 192.168.0.0/24 [20/0] via 30.56.164.1, 00:00:00

Router#sh ip protocols
Routing Protocol is "bgp 20"
Outgoing update filter list for all interfaces is not set
Incoming update filter list for all interfaces is not set
IGP synchronization is disabled
Automatic route summarization is disabled
Neighbor(s):
Address FiltIn FiltOut DistIn DistOut Weight RouteMap
30.56.164.1
Maximum path: 1
Routing Information Sources:
Gateway Distance Last Update
30.56.164.1 20 00:00:00
Distance: external 20 internal 200 local 200

Router#sh ip bgp neighbors

BGP neighbor is 30.56.164.1, remote AS 10, external link


BGP version 4, remote router ID 192.168.0.1
BGP state = Established, up for 00:01:34
Last read 00:01:34, last write 00:01:34, hold time is 180, keepalive interval is 60 seconds
Neighbor capabilities:
Route refresh: advertised and received(new)
Address family IPv4 Unicast: advertised and received
Message statistics:
InQ depth is 0
OutQ depth is 0

Sent Rcvd
Opens: 1 1
Notifications: 0 0
Updates: 2 1
Keepalives: 2 2
Route Refresh: 0 0
Total: 5 4
Default minimum time between advertisements runs is 30 seconds

You might also like