Movatterモバイル変換


[0]ホーム

URL:


Skip to content
DEV Community
Log in Create account

DEV Community

Aleets Vaaz
Aleets Vaaz

Posted on

Protocolo BGP ejemplo

hola
*Configuración BGP básico *

enableconf thostname R1# Configuración de interfacesinterface s0/0/0 ip address 192.168.12.1 255.255.255.0 no shutdownexitinterface s0/0/1 ip address 192.168.13.1 255.255.255.0 no shutdownexitinterface s0/1/0 ip address 192.168.14.1 255.255.255.0 no shutdownexitinterface g0/0 ip address 10.1.1.1 255.255.255.0 no shutdownexit# Configuración de BGProuter bgp 100 neighbor 192.168.12.2 remote-as 200 neighbor 192.168.13.2 remote-as 300 neighbor 192.168.14.2 remote-as 400 network 192.168.12.0 mask 255.255.255.0 network 192.168.13.0 mask 255.255.255.0 network 192.168.14.0 mask 255.255.255.0 network 10.1.1.0 mask 255.255.255.0exit-------------------------------------R2----------------------------------------enableconf thostname R2# Configuración de interfacesinterface s0/0/0 ip address 192.168.12.2 255.255.255.0 no shutdownexitinterface s0/0/1 ip address 192.168.23.1 255.255.255.0 no shutdownexitinterface s0/1/0 ip address 192.168.24.1 255.255.255.0 no shutdownexitinterface g0/0 ip address 10.2.2.1 255.255.255.0 no shutdownexit# Configuración de BGProuter bgp 200 neighbor 192.168.12.1 remote-as 100 neighbor 192.168.23.2 remote-as 300 neighbor 192.168.24.2 remote-as 600 network 192.168.12.0 mask 255.255.255.0 network 192.168.23.0 mask 255.255.255.0 network 192.168.24.0 mask 255.255.255.0 network 10.2.2.0 mask 255.255.255.0exit-------------------------------------R3----------------------------------------enableconf thostname R3# Configuración de interfacesinterface s0/0/0 ip address 192.168.13.2 255.255.255.0 no shutdownexitinterface s0/0/1 ip address 192.168.23.2 255.255.255.0 no shutdownexitinterface g0/0 ip address 10.3.3.1 255.255.255.0 no shutdownexit# Configuración de BGProuter bgp 300 neighbor 192.168.13.1 remote-as 100 neighbor 192.168.23.1 remote-as 200 network 192.168.13.0 mask 255.255.255.0 network 192.168.23.0 mask 255.255.255.0 network 10.3.3.0 mask 255.255.255.0exit-------------------------------------R4----------------------------------------enableconf thostname R4# Configuración de interfacesinterface s0/0/0 ip address 172.16.10.1 255.255.255.0 no shutdownexitinterface s0/0/1 ip address 172.16.11.1 255.255.255.0 no shutdownexitinterface s0/1/0 ip address 192.168.14.2 255.255.255.0 no shutdownexitinterface g0/0 ip address 192.168.1.1 255.255.255.0 no shutdownexit# Configuración de BGProuter bgp 400 neighbor 172.16.10.2 remote-as 500 neighbor 172.16.11.2 remote-as 600 neighbor 192.168.14.1 remote-as 100 network 172.16.10.0 mask 255.255.255.0 network 172.16.11.0 mask 255.255.255.0 network 192.168.14.0 mask 255.255.255.0 network 192.168.1.0 mask 255.255.255.0exit-------------------------------------R5----------------------------------------enableconf thostname R5# Configuración de interfacesinterface s0/0/0 ip address 172.16.10.2 255.255.255.0 no shutdownexitinterface s0/0/1 ip address 172.16.12.1 255.255.255.0 no shutdownexitinterface g0/0 ip address 192.168.2.1 255.255.255.0 no shutdownexit# Configuración de BGProuter bgp 500 neighbor 172.16.10.1 remote-as 400 neighbor 172.16.12.2 remote-as 600 network 172.16.10.0 mask 255.255.255.0 network 172.16.12.0 mask 255.255.255.0 network 192.168.2.0 mask 255.255.255.0exit-------------------------------------R6----------------------------------------enableconf thostname R6# Configuración de interfacesinterface s0/0/0 ip address 172.16.11.2 255.255.255.0 no shutdownexitinterface s0/0/1 ip address 172.16.12.2 255.255.255.0 no shutdownexitinterface s0/1/0 ip address 192.168.24.2 255.255.255.0 no shutdownexitinterface g0/0 ip address 192.168.3.1 255.255.255.0 no shutdownexit# Configuración de BGProuter bgp 600 neighbor 172.16.11.1 remote-as 400 neighbor 172.16.12.1 remote-as 500 neighbor 192.168.24.1 remote-as 200 network 172.16.11.0 mask 255.255.255.0 network 172.16.12.0 mask 255.255.255.0 network 192.168.24.0 mask 255.255.255.0 network 192.168.3.0 mask 255.255.255.0exit--------------------------------------show run show ip route
Enter fullscreen modeExit fullscreen mode

** Configuración BGP avanzado **

-------------------------------------R1----------------------------------------enableconf thostname R1# Configuración de interfacesinterface s0/0/0 ip address 192.168.12.1 255.255.255.0 no shutdownexitinterface s0/0/1 ip address 192.168.13.1 255.255.255.0 no shutdownexitinterface s0/1/0 ip address 192.168.14.1 255.255.255.0 no shutdownexitinterface g0/0 ip address 10.1.1.1 255.255.255.0 no shutdownexit# Configuración de BGProuter bgp 100 neighbor 192.168.12.2 remote-as 200 neighbor 192.168.12.2 send-community neighbor 192.168.13.2 remote-as 300 neighbor 192.168.13.2 send-community neighbor 192.168.14.2 remote-as 400 neighbor 192.168.14.2 send-community network 192.168.12.0 mask 255.255.255.0 network 192.168.13.0 mask 255.255.255.0 network 192.168.14.0 mask 255.255.255.0 network 10.1.1.0 mask 255.255.255.0 bgp community new-format ip bgp-community new-formatexit# Preferencia y negación de rutasip community-list 1 permit 100:100ip community-list 2 deny 100:200route-map PREFERENCIA permit 10 match community 1 set local-preference 200exitroute-map NEGAR deny 10 match community 2exit-------------------------------------R2----------------------------------------enableconf thostname R2# Configuración de interfacesinterface s0/0/0 ip address 192.168.12.2 255.255.255.0 no shutdownexitinterface s0/0/1 ip address 192.168.23.1 255.255.255.0 no shutdownexitinterface s0/1/0 ip address 192.168.24.1 255.255.255.0 no shutdownexitinterface g0/0 ip address 10.2.2.1 255.255.255.0 no shutdownexit# Configuración de BGProuter bgp 200 neighbor 192.168.12.1 remote-as 100 neighbor 192.168.12.1 send-community neighbor 192.168.23.2 remote-as 300 neighbor 192.168.23.2 send-community neighbor 192.168.24.2 remote-as 600 neighbor 192.168.24.2 send-community network 192.168.12.0 mask 255.255.255.0 network 192.168.23.0 mask 255.255.255.0 network 192.168.24.0 mask 255.255.255.0 network 10.2.2.0 mask 255.255.255.0exit-------------------------------------R3----------------------------------------enableconf thostname R3# Configuración de interfacesinterface s0/0/0 ip address 192.168.13.2 255.255.255.0 no shutdownexitinterface s0/0/1 ip address 192.168.23.2 255.255.255.0 no shutdownexitinterface g0/0 ip address 10.3.3.1 255.255.255.0 no shutdownexit# Configuración de BGProuter bgp 300 neighbor 192.168.13.1 remote-as 100 neighbor 192.168.13.1 send-community neighbor 192.168.23.1 remote-as 200 neighbor 192.168.23.1 send-community network 192.168.13.0 mask 255.255.255.0 network 192.168.23.0 mask 255.255.255.0 network 10.3.3.0 mask 255.255.255.0exit-------------------------------------R4----------------------------------------enableconf thostname R4# Configuración de interfacesinterface s0/0/0 ip address 172.16.10.1 255.255.255.0 no shutdownexitinterface s0/0/1 ip address 172.16.11.1 255.255.255.0 no shutdownexitinterface s0/1/0 ip address 192.168.14.2 255.255.255.0 no shutdownexitinterface g0/0 ip address 192.168.1.1 255.255.255.0 no shutdownexit# Configuración de BGProuter bgp 400 neighbor 172.16.10.2 remote-as 500 neighbor 172.16.10.2 send-community neighbor 172.16.11.2 remote-as 600 neighbor 172.16.11.2 send-community neighbor 192.168.14.1 remote-as 100 neighbor 192.168.14.1 send-community network 172.16.10.0 mask 255.255.255.0 network 172.16.11.0 mask 255.255.255.0 network 192.168.14.0 mask 255.255.255.0 network 192.168.1.0 mask 255.255.255.0exit-------------------------------------R5----------------------------------------enableconf thostname R5# Configuración de interfacesinterface s0/0/0 ip address 172.16.10.2 255.255.255.0 no shutdownexitinterface s0/0/1 ip address 172.16.12.1 255.255.255.0 no shutdownexitinterface g0/0 ip address 192.168.2.1 255.255.255.0 no shutdownexit# Configuración de BGProuter bgp 500 neighbor 172.16.10.1 remote-as 400 neighbor 172.16.10.1 send-community neighbor 172.16.12.2 remote-as 600 neighbor 172.16.12.2 send-community network 172.16.10.0 mask 255.255.255.0 network 172.16.12.0 mask 255.255.255.0 network 192.168.2.0 mask 255.255.255.0exit-------------------------------------R6----------------------------------------enableconf thostname R6# Configuración de interfacesinterface s0/0/0 ip address 172.16.11.2 255.255.255.0 no shutdownexitinterface s0/0/1 ip address 172.16.12.2 255.255.255.0 no shutdownexitinterface s0/1/0 ip address 192.168.24.2 255.255.255.0 no shutdownexitinterface g0/0 ip address 192.168.3.1 255.255.255.0 no shutdownexit# Configuración de BGProuter bgp 600 neighbor 172.16.11.1 remote-as 400 neighbor 172.16.11.1 send-community neighbor 172.16.12.1 remote-as 500 neighbor 172.16.12.1 send-community neighbor 192.168.24.1 remote-as 200 neighbor 192.168.24.1 send-community network 172.16.11.0 mask 255.255.255.0 network 172.16.12.0 mask 255.255.255.0 network 192.168.24.0 mask 255.255.255.0 network 192.168.3.0 mask 255.255.255.0exit
Enter fullscreen modeExit fullscreen mode

Configuración de BGP básico + ACl's

enableconf thostname R1# Configuración de interfacesinterface s0/0/0 ip address 192.168.12.1 255.255.255.0 ip access-group BLOCK_R2_TO_R1 in no shutdownexitinterface s0/0/1 ip address 192.168.13.1 255.255.255.0 no shutdownexitinterface s0/1/0 ip address 192.168.14.1 255.255.255.0 no shutdownexitinterface g0/0 ip address 10.1.1.1 255.255.255.0 no shutdownexitip access-list extended BLOCK_R2_TO_R1 deny ip 10.2.2.0 0.0.0.255 10.1.1.0 0.0.0.255 permit ip any any# Configuración de BGProuter bgp 100 neighbor 192.168.12.2 remote-as 200 neighbor 192.168.13.2 remote-as 300 neighbor 192.168.14.2 remote-as 400 network 192.168.12.0 mask 255.255.255.0 network 192.168.13.0 mask 255.255.255.0 network 192.168.14.0 mask 255.255.255.0 network 10.1.1.0 mask 255.255.255.0exit-------------------------------------R2----------------------------------------enableconf thostname R2# Configuración de interfacesinterface s0/0/0 ip address 192.168.12.2 255.255.255.0 no shutdownexitinterface s0/0/1 ip address 192.168.23.1 255.255.255.0 ip access-group BLOCK_R3_TO_R2 in no shutdownexitinterface s0/1/0 ip address 192.168.24.1 255.255.255.0 no shutdownexitinterface g0/0 ip address 10.2.2.1 255.255.255.0 no shutdownexitip access-list extended BLOCK_R3_TO_R2 deny ip 10.3.3.0 0.0.0.255 10.2.2.0 0.0.0.255 permit ip any any# Configuración de BGProuter bgp 200 neighbor 192.168.12.1 remote-as 100 neighbor 192.168.23.2 remote-as 300 neighbor 192.168.24.2 remote-as 600 network 192.168.12.0 mask 255.255.255.0 network 192.168.23.0 mask 255.255.255.0 network 192.168.24.0 mask 255.255.255.0 network 10.2.2.0 mask 255.255.255.0exit-------------------------------------R3----------------------------------------enableconf thostname R3# Configuración de interfacesinterface s0/0/0 ip address 192.168.13.2 255.255.255.0 no shutdownexitinterface s0/0/1 ip address 192.168.23.2 255.255.255.0 ip access-group BLOCK_R4_TO_R3 in no shutdownexitinterface g0/0 ip address 10.3.3.1 255.255.255.0 no shutdownexitip access-list extended BLOCK_R4_TO_R3 deny ip 192.168.1.0 0.0.0.255 10.3.3.0 0.0.0.255 permit ip any any# Configuración de BGProuter bgp 300 neighbor 192.168.13.1 remote-as 100 neighbor 192.168.23.1 remote-as 200 network 192.168.13.0 mask 255.255.255.0 network 192.168.23.0 mask 255.255.255.0 network 10.3.3.0 mask 255.255.255.0exit-------------------------------------R4----------------------------------------enableconf thostname R4# Configuración de interfacesinterface s0/0/0 ip address 172.16.10.1 255.255.255.0 no shutdownexitinterface s0/0/1 ip address 172.16.11.1 255.255.255.0 no shutdownexitinterface s0/1/0 ip address 192.168.14.2 255.255.255.0 no shutdownexitinterface g0/0 ip address 192.168.1.1 255.255.255.0 no shutdownexit# Configuración de BGProuter bgp 400 neighbor 172.16.10.2 remote-as 500 neighbor 172.16.11.2 remote-as 600 neighbor 192.168.14.1 remote-as 100 network 172.16.10.0 mask 255.255.255.0 network 172.16.11.0 mask 255.255.255.0 network 192.168.14.0 mask 255.255.255.0 network 192.168.1.0 mask 255.255.255.0exit-------------------------------------R5----------------------------------------enableconf thostname R5# Configuración de interfacesinterface s0/0/0 ip address 172.16.10.2 255.255.255.0 no shutdownexitinterface s0/0/1 ip address 172.16.12.1 255.255.255.0 no shutdownexitinterface g0/0 ip address 192.168.2.1 255.255.255.0 no shutdownexit# Configuración de BGProuter bgp 500 neighbor 172.16.10.1 remote-as 400 neighbor 172.16.12.2 remote-as 600 network 172.16.10.0 mask 255.255.255.0 network 172.16.12.0 mask 255.255.255.0 network 192.168.2.0 mask 255.255.255.0exit-------------------------------------R6----------------------------------------enableconf thostname R6# Configuración de interfacesinterface s0/0/0 ip address 172.16.11.2 255.255.255.0 no shutdownexitinterface s0/0/1 ip address 172.16.12.2 255.255.255.0 no shutdownexitinterface s0/1/0 ip address 192.168.24.2 255.255.255.0 no shutdownexitinterface g0/0 ip address 192.168.3.1 255.255.255.0 no shutdownexit# Configuración de BGProuter bgp 600 neighbor 172.16.11.1 remote-as 400 neighbor 172.16.12.1 remote-as 500 neighbor 192.168.24.1 remote-as 200 network 172.16.11.0 mask 255.255.255.0 network 172.16.12.0 mask 255.255.255.0 network 192.168.24.0 mask 255.255.255.0 network 192.168.3.0 mask 255.255.255.0exit
Enter fullscreen modeExit fullscreen mode

Top comments(0)

Subscribe
pic
Create template

Templates let you quickly answer FAQs or store snippets for re-use.

Dismiss

Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment'spermalink.

For further actions, you may consider blocking this person and/orreporting abuse

Hola, soy Alejandro Vazquez, actualmente estudio en la carrera de Ing. Redes y Ciberseguridad. Me interesa el mundo de las comunicaciones y como protegerlas.
  • Joined

More fromAleets Vaaz

DEV Community

We're a place where coders share, stay up-to-date and grow their careers.

Log in Create account

[8]ページ先頭

©2009-2025 Movatter.jp