Konfigurasi Dasar BGP dengan Default Route

BGP Default Route.JPG

Artikel ini akan membahas tentang konfigurasi dasar eBGP single provider dengan default route.

WAN IP : 182.1.2.0/30 (mask 255.255.255.252)
LAN IP : 10.1.2.0/24  10.1.3.0/24 10.1.4.0/24
Receiving Route : Default route
ASN : Provider (AS100) and Customer (AS1010)

Konfigurasi Router Provider :

interface Loopback0
 description Test Internet
 ip address 8.8.8.8 255.255.255.255
!
interface FastEthernet0/0
 description *** Link to Customer AS1010 ***
 ip address 182.1.2.1 255.255.255.252
 duplex auto
 speed auto

router bgp 100
 no synchronization
 bgp log-neighbor-changes
 neighbor 182.1.2.2 remote-as 1010 
 neighbor 182.1.2.2 version 4
 neighbor 182.1.2.2 default-originate 
 neighbor 182.1.2.2 soft-reconfiguration inbound
 neighbor 182.1.2.2 prefix-list ip-customer-AS1010 in
 no auto-summary

ip prefix-list ip-customer-AS1010 description Prefix Customer AS1010
ip prefix-list ip-customer-AS1010 seq 10 permit 10.1.2.0/24
ip prefix-list ip-customer-AS1010 seq 15 permit 10.1.3.0/24
ip prefix-list ip-customer-AS1010 seq 20 permit 10.1.4.0/24


Konfigurasi Router Customer :

interface FastEthernet0/0
 description *** Link to Provider AS100 ***
 ip address 182.1.2.2 255.255.255.252
 duplex auto
 speed auto
!
interface FastEthernet1/0
 description *** Link to Internal ***
 ip address 10.1.3.1 255.255.255.0 secondary
 ip address 10.1.4.1 255.255.255.0 secondary
 ip address 10.1.2.1 255.255.255.0
 duplex auto
 speed auto

router bgp 1010
 no synchronization
 bgp log-neighbor-changes
 network 10.1.2.0 mask 255.255.255.0
 network 10.1.3.0 mask 255.255.255.0
 network 10.1.4.0 mask 255.255.255.0
 neighbor 182.1.2.1 remote-as 100
 neighbor 182.1.2.1 version 4
 neighbor 182.1.2.1 soft-reconfiguration inbound
 neighbor 182.1.2.1 prefix-list ip-customer out
 no auto-summary

ip prefix-list ip-customer description IP yg di advertise ke Provider
ip prefix-list ip-customer seq 10 permit 10.1.2.0/24
ip prefix-list ip-customer seq 15 permit 10.1.3.0/24
ip prefix-list ip-customer seq 20 permit 10.1.4.0/24

Cek PC untuk akses ke 8.8.8.8 (test internet)

PC1> show ip

NAME : PC1[1]
IP/MASK : 10.1.2.2/24
GATEWAY : 10.1.2.1

PC1> ping 8.8.8.8 
84 bytes from 8.8.8.8 icmp_seq=1 ttl=254 time=16.001 ms
84 bytes from 8.8.8.8 icmp_seq=2 ttl=254 time=21.001 ms
84 bytes from 8.8.8.8 icmp_seq=3 ttl=254 time=28.002 ms
84 bytes from 8.8.8.8 icmp_seq=4 ttl=254 time=17.001 ms
84 bytes from 8.8.8.8 icmp_seq=5 ttl=254 time=46.002 ms

Cek Router Provider :

Provider#show ip bgp summary 
BGP router identifier 182.1.2.1, local AS number 100
BGP table version is 8, main routing table version 8
3 network entries using 351 bytes of memory
3 path entries using 156 bytes of memory
2/1 BGP path/bestpath attribute entries using 248 bytes of memory
1 BGP AS-PATH entries using 24 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
BGP using 779 total bytes of memory
BGP activity 5/2 prefixes, 5/2 paths, scan interval 60 secs

Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd
182.1.2.2 4 1010 65 62 8 0 0 00:40:23 3

*** Cek IP yg di advertise dari customer ***

Provider#sh ip bgp neighbors 182.1.2.2 received-routes 
BGP table version is 8, local router ID is 182.1.2.1
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
*> 10.1.2.0/24 182.1.2.2 0 0 1010 i
*> 10.1.3.0/24 182.1.2.2 0 0 1010 i
*> 10.1.4.0/24 182.1.2.2 0 0 1010 i

Total number of prefixes 3

*** Cek IP yang di advertise ke customer ***

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

Originating default network 0.0.0.0

 Network Next Hop Metric LocPrf Weight Path

Total number of prefixes 0

Cek Router Customer :

Customer#show ip bgp neighbors 182.1.2.1 routes 
BGP table version is 13, local router ID is 182.1.2.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
*> 0.0.0.0 182.1.2.1 0 0 100 i

Total number of prefixes 1

Sekian Konfigurasi Dasar BGP dengan Default Route, jika ada yang ditanyakan perintah config diatas silahkan ngobrol di komentar 🙂

Sumber : showipbgp

Advertisements

Author: admin@khsnndzf

Good People

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s