Posts

Advance BGP in Juniper | Ai Study

  Here is an example of an advanced BGP configuration for a Juniper router that includes the use of various BGP attributes and inbound and outbound policies: routing-options { router- id 10.1 .1 .1 ; autonomous-system 100 ; } protocols { bgp { group external { type external; peer- as 200 ; neighbor 10.1 .1 .2 { local-address 10.1 .1 .1 ; import bgp- in ; export bgp-out; local-preference 200 ; multi-exit-discriminator 100 ; prefix- list p2p- filter { import -only; rule 10 { match { ipv4-prefix 10.1 .1 .0 / 24 ; } then { accept; } } } } } } } policy-options { policy-statem...

Advance BGP Configure | Cisco Router | AI Study

  Here is an example of a more advanced BGP configuration for a Cisco router that includes the use of path prepend, multi-exit discriminator (MED) weight attribute, and inbound and outbound policies: router bgp 100 bgp log-neighbor-changes no synchronization network 10.0 .0 .0 mask 255.0 .0 .0 network 10.1 .1 .0 mask 255.255 .255 .0 neighbor 10.1 .1 .2 remote- as 200 neighbor 10.1 .1 .2 update-source Vlan1 neighbor 10.1 .1 .2 next -hop-self neighbor 10.1 .1 .2 soft-reconfiguration inbound neighbor 10.1 .1 .2 route- map bgp- in in neighbor 10.1 .1 .2 route- map bgp-out out neighbor 10.1 .1 .2 weight 100 neighbor 10.1 .1 .2 prefix- list p2p- filter in route- map bgp- in permit 10 match as -path 100 set local-preference 200 route- map bgp-out permit 10 match ip address prefix- list p2p- filter set as -path prepend 100 100 set med 100 prefix- list p2p- filter seq 5 permit 10.1 .1 .0 / 24 This configuration ...