Skip to main content

Local AS BGP

 

Local AS BGP




R1

R1#conf t

Configuring from terminal, memory, or network [terminal]? Enter configuration commands, one per line.  End with CNTL/Z.

R1(config)#no router bgp 123

R1(config)#router bgp 12

R1(config-router)#bgp conf iden 123

R1(config-router)#neigh 12.12.12.2 remote 12

R1(config-router)#exit

R1(config)#

R1(config)#

R1(config)#acc 2 permit 11.11.11.11

R1(config)#route-map LOCAL-AS

R1(config-route-map)#match ip add 2

R1(config-route-map)#set commu local-as

R1(config-route-map)#exit

R1(config)#

R1(config)#router bgp 12

R1config-router)#neigh 12.12.12.2 route-map local-as out

R1(config-router)#neigh 12.12.12.2 send-commu

R1(config-router)#netgh 11.11.11.11 mask 255.255.255.255

R1(config-router)#exit


R2

R2#conf t

Configuring from terminal, memory, or network [terminal]? Enter configuration commands, one per line.  End with CNTL/Z.

R2(config)#

R2(config)#no router bg 123

R2(config)#router bg 12

R2(config-router)#bgp conf iden 123

R2(config-router)#bgp conf peer 3

R2(config-router)#neigh 12.12.12.1 remote 12

R2(config-router)#neigh 12.12.12.1 next-hop-self

R2(config-router)#neigh 23.23.23.3 remote 3

R2(config-router)#neigh 23.23.23.3 next-hop-self

R2(config-router)#neigh 24.24.24.4 remote 4

R2(config-router)#net 22.22.22.22 mas 255.255.255.255

R2(config-router)#exit




R3

R3#conf t

Configuring from terminal, memory, or network [terminal]? Enter configuration commands, one per line.  End with CNTL/Z.

R3(config)#no router bgp 123

R3(config)#rout

R3(config)#router bgp 3

R3(config-router)#bgp conf iden 123

R3(config-router)#bgp conf peer 12

R3(config-router)#neigh 23.23.23.2 remote 12

R3(config-router)#net 33.33.33.33 mas 255.255.255.255

R3(config-router)#exit


cek dengan do show ip bgp


R2

R2#do show ip bgp

BGP table version is 5, local router ID is 22.22.22.22

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

*> 4.4.4.4/32              24.24.24.4              0                             0      4     i

*>i11.11.11.11/32      12.12.12.1               0          100            0             i  

*> 22.22.22.22/32      0.0.0.0                    0                      32768            i

*> 33.33.33.33/32     23.23.23.3               0          100             0     (3)   i


R2(config)#do show ip bgp 11.11.11.11

BGP routing table entry for 11.11.11.11/32, version 2

Paths: (1 available, best #1, table default, not advertised outside

local AS)

 Not advertised to any peer

 Refresh Epoch 1

 Local

 12.12.12.1 from 12.12.12.1 (11.11.11.11)

 Origin IGP, metric 0, localpref 100, valid, confed-internal,

best

 Community: local-AS

 rx pathid: 0, tx pathid: 0x0



R3

R3(config)#do sh ip bgp

      Network             Next Hop         Metric         LocPrf         Weight     Path

*> 4.4.4.4/32             23.23.23.2               0             100                    0      (12) 4 i

*> 22.22.22.22/32     23.23.23.2               0             100                    0      (12) i

*> 33.33.33.33/32     0.0.0.0                     0                                32768             i


SELESAI


Comments

Popular posts from this blog

Phase 1 Dynamic Mapping With EIGRP

  Phase 1 Dynamic  Mapping With EIGRP Tentu kalian sudah tau, apa yang akan kita bahas pada blogg ini yaitu    Phase 1 Dynamic Mapping With EIGRP . ..  Nah Pada lab Sekarang buat routing eigrp pada setiap router baik hub  atau spoke untuk menghubungkan jaringan local masing-masing spoke  atau hub, dalam hal ini ip loopback akan kita anggap sebagai ip jaringan  local kita gaessss. Dan disini seperti di judul, kita menggunakan routing EIGRP lagi yaa... Oiya, karena ini adalah lab lanjutan dari lab VPN sebelumnya... soo saya hanya melakukan konfigurasi yang hanya pada lab ini saja, dan jika temen - temen ingin melihat konfigurasi dasarnya dari lab ini... temen - temen bisa lihat di lab - lab sebelumnya... silahkan copy dan paste link dibawah ini.. 👉https://insinyurbocah2109.blogspot.com/2020/11/belajar-vpn-gre-tunnel.html BELAJAR VPN ( GRE TUNNEL ) - Lab 1 VPN 👉 https://insinyurbocah2109.blogspot.com/2020/11/belajar-vpn-ipsec-tunnel-mode.html BELAJ...

BGP Dual Homing – ISP sama

  LAB 11. BGP Dual Homing – ISP sama BGP Dualhoming yaitu Dua Link ke ISP yang sama dengan fitur sebagai berikut a.  Main-Backup   Mode b.  Load Sharing   Mode Sedangkan BGP multihoming yaitu Dua Link ke ISP yang berbeda dengan fitur : a.  Main-Backup   Mode b.  Load Sharing   Mode   R1(config)#int g1/0 R1(config-if)#ip add 12.12.12.1 255.255.255.0 R1(config-if)#no shutdown R1(config)#int g2/0 R1(config-if)#ip add 13.13.13.1 255.255.255.0 R1(config-if)#no shutdown R1(config)#int loopback 0 R1(config-if)#ip add 1.1.1.1 255.255.255.255 R1(config-if)#router bgp 1 R1(config-router)#neighbor 12.12.12.2 remote-as   23 R1(config-router)#neighbor 13.13.13.3 remote-as   23 R1(config-router)#network 1.1.1.1 mask 255.255.255.255 R2(config)#int g2/0 R2(config-if)#ip add 12.12.12.2 255.255.255.0 R2(config-if)#no shutdown R2(config-if)#int f0/0 R2(config-if)#ip add 23.23.23.2 255.255.255.0 R2(config-if)#no shutdown R2(config-if)#int g1/0 R2(...

EIGRP – Filtering – Distribute List

  EIGRP – Filtering – Distribute List Cara pertama : filter network menggunakan access list pada R1 dengan distribute IN. Pada lab ini, kita masih menggunakan lab sebelumnya.  R1  R1(config)#access-list 1 deny 2.2.2.2  R1(config)#access-list 1 permit any  R1(config)#router eigrp 10  R1(config-router)#distribute-list 1 in gigabitEthernet 1/0  R1(config-router)#exit  Kemudian cek pada routing tabelnya. Pastikan IP 2.2.2.2 sudah tidak lagi terdapat dalam routing tabelnya.  R1  R1#sh ip route  1.0.0.0/32 is subnetted, 1 subnets  C 1.1.1.1 is directly connected, Loopback0   3.0.0.0/32 is subnetted, 1 subnets  D 3.3.3.3 [90/156416] via 12.12.12.2, 01:18:53, GigabitEthernet1/0   23.0.0.0/24 is subnetted, 1 subnets  D 23.23.23.0 [90/28416] via 12.12.12.2, 01:23:38, GigabitEthernet1/0   12.0.0.0/24 is subnetted, 1 subnets  C 12.12.12.0 is directly connected, GigabitEthernet1/0  Cara kedu...