! ! wartosci community ! set policy-options community bgpbh-bogons members 65055:666 set policy-options community bgpbh-spam-1 members 65055:25 set policy-options community bgpbh-spam-2 members 65055:26 set policy-options community bgpbh-spam-3 members 65055:27 set policy-options community bgpbh-talos members 65055:999 ! ! polityki ! set policy-options policy-statement BGP-DROP then reject set policy-options policy-statement BGPBH-v4 term 1 from protocol bgp set policy-options policy-statement BGPBH-v4 term 1 from community bgpbh-bogons set policy-options policy-statement BGPBH-v4 term 1 then next-hop 192.0.2.1 set policy-options policy-statement BGPBH-v4 term 1 then accept set policy-options policy-statement BGPBH-v4 term 2 from protocol bgp set policy-options policy-statement BGPBH-v4 term 2 from community bgpbh-talos set policy-options policy-statement BGPBH-v4 term 2 then next-hop 192.0.2.1 set policy-options policy-statement BGPBH-v4 term 2 then accept set policy-options policy-statement BGPBH-v4 term 3 from protocol bgp set policy-options policy-statement BGPBH-v4 term 3 from community bgpbh-spam-1 set policy-options policy-statement BGPBH-v4 term 3 from community bgpbh-spam-2 set policy-options policy-statement BGPBH-v4 term 3 from community bgpbh-spam-3 set policy-options policy-statement BGPBH-v4 term 3 then next-hop 192.0.2.1 set policy-options policy-statement BGPBH-v4 term 3 then accept ! ! statyczny routing ! set routing-options static route 192.0.2.0/24 discard set routing-options static route 192.0.2.0/24 retain set routing-options static route 192.0.2.0/24 no-readvertise set routing-options static route 192.0.2.1/32 discard set routing-options static route 192.0.2.1/32 retain set routing-options static route 192.0.2.1/32 no-readvertise ! ! definicja Twojego ASu ! set routing-options autonomous-system X ! ! definicja serwerow tras po IPv4 ! set protocols bgp group BGP-BH-v4 type internal set protocols bgp group BGP-BH-v4 description "BGP BH PL Route Servers IPv4" set protocols bgp group BGP-BH-v4 multihop ttl 255 set protocols bgp group BGP-BH-v4 import BGPBH-v4 set protocols bgp group BGP-BH-v4 export BGP-DROP set protocols bgp group BGP-BH-v4 peer-as 65055 set protocols bgp group BGP-BH-v4 local-as 65055 set protocols bgp group BGP-BH-v4 neighbor 77.79.194.196 family inet unicast set protocols bgp group BGP-BH-v4 neighbor 195.136.71.54 family inet unicast !