Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- prefix-set IPv4all
- 10.10.10.0/24,
- 192.168.2.0/24
- end-set
- !
- prefix-set V4-AS65000-Prefixes
- 10.10.10.0/24,
- 10.20.10.0/24
- end-set
- !
- as-path-set ASN-PR-65004
- ios-regex '_65004$'
- end-set
- !
- route-policy pass_all
- pass
- end-policy
- !
- route-policy IPv4-IN
- apply pass_all
- end-policy
- !
- route-policy IPv4-OUT-65000
- if (as-path in ASN-PR-65004) then
- prepend as-path 64000 3
- elseif destination in V4-AS65000-Prefixes then
- pass
- endif
- end-policy
- !
- route-policy IPv4-OUT
- if destination in IPv4all then
- pass
- endif
- end-policy
- !
- router static
- address-family ipv4 unicast
- 10.10.10.0/24 Null0 240
- 192.168.2.0/24 Null0 240
- 10.20.10.0/24 Null0 240
- !
- !
- router bgp 64000
- bgp router-id 1.1.1.1
- bgp log neighbor changes detail
- bgp bestpath as-path multipath-relax
- address-family ipv4 unicast
- maximum-paths eibgp 4
- advertise best-external labeled-unicast
- network 10.10.10.0/24 route-policy IPv4-OUT-65000
- network 10.20.10.0/24 route-policy IPv4-OUT-65000
- network 192.168.2.0/24 route-policy IPv4-OUT
- !
- neighbor 10.10.20.1
- remote-as 65000
- ebgp-multihop 255
- update-source Bundle-Ether98.570
- address-family ipv4 unicast
- route-policy IPv4-IN in
- route-policy IPv4-OUT-65000 out
- !
- !
- neighbor 192.168.20.1
- remote-as 63000
- ebgp-multihop 255
- update-source Bundle-Ether99.708
- address-family ipv4 unicast
- route-policy IPv4-IN in
- route-policy IPv4-OUT out
- !
- !
- !
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement