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

Konfigurasi Event OSPF Adjacency (Email)

  Konfigurasi Event OSPF Adjacency (Email) LAB INI LANJUTAN SAMA SEPERTI LAB SEBELUM SEBELUMNYA Selain event syslog tadi kita juga bisa memanfaatkan EEM ini untuk mengirimkan informasi ke email kita, misalnya OSPF kita down maka, router kita otomatis akan mengirimkan debug ospf ke email kita. Untuk topology masih sama. KONFIG R1 R1(config)#event manager applet OSPF_DOWN R1(config-applet)#event syslog pattern "Nbr 2.2.2.2 on FastEthernet0/0 from FULL to DOWN" R1(config-applet)#action 1.0 cli command "enable" R1(config-applet)#action 2.0 cli command "debug ip ospf adj" R1(config-applet)#action 3.0 mail server "smtp.gmail.com" to "uuqeili@gmail.com" from "R1@idn.id" subject "OSPF IS DOWN" body "Please fix OSPF" R1(config-applet)#exit Untuk Pengecekkan, kita bisa coba debug aja,  dan hapus EEM interface down,  Dan kita bisa lihat di email kita apa hasilnyaa... selesai

Remote SPAN ( RSPAN )

  Remote SPAN  ( RSPAN ) Assalamualaikum temen - temen... kembali lagi di blogg saya, dan terimakasih telah berkunjung ke blogg saya, di blogg kali ini saya akan memberikan materi lab mengenai Remote Span  ( RSPAN ). Karena ini adalah blog lanjutan, jadi saya akan mengkonfigurasi yang hanya ada pada blog ini saja, bagi temen - temen ingin melihat konfigurasi sebelumnya ataupun blog sebelumnya mengenai BELAJAR CCNP, bisa cek link dibawah ini : https://bit.ly/37DxJrX TOPOLOGI =  SW-1 SW-1(config)#vlan 100 SW-1(config-vlan)#name RSPAN SW-1(config-vlan)#exit SW-1(config)# SW-1(config)#int e0/1 SW-1(config-if)#sw trunk encap dot1q SW-1(config-if)#sw mode tru SW-1(config-if)#exit SW-1(config)# SW-1(config)#monitor session 1 source vlan 10 SW-1(config)#monitor session 1 destination remote vlan 100 SW-2 SW-2(config)#vlan 10 SW-2(config-vlan)#name PC SW-2(config-vlan)#int e0/1 SW-2(config-if)#sw mod acc SW-2(config-if)#sw acc vlan 10 SW-2(config-if)#exit SW-2(config)# SW-2(co...

Backup config with paramiko

  Backup config with paramiko Backup konfigurasi merupakan pekerjaan yang sangat penting. Agar jika pada saat melakukan konfigurasi terjadi masalah, kita bisa mengembalikan konfigurasi device ke kondisi semula. Tentu saja akan sangat merepotkan jika kita harus melakukan backup konfigurasi pada 100 device. Untuk melakukan pekerjaan tersebut, kita bisa menggunakan python. Ada banyak cara yang bisa kita gunakan untuk backup konfigurasi device menggunakan python, salah satunya menggunakan paramiko. Kita akan mencoba membuat script python menggunakan paramiko untuk backup konfigurasi router. Masih pakai topology dan konfigurasi yang tadi. Ubuntu root@NetworkAutomation-1:~# cp paramiko1.py backup.py root@NetworkAutomation-1:~# nano backup.py root@NetworkAutomation-1:~# cat backup.py import paramiko import time ip_address = "192.168.10.2" username = "cisco" password = "cisco123" ssh_client = paramiko.SSHClient() ssh_client.set_missing_host_key_policy(paramiko.Aut...