ncs_5500_rtr_bgp
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
ncs_5500_rtr_bgp [2024/03/21 04:47] – created sysadm | ncs_5500_rtr_bgp [2024/03/21 04:54] (current) – sysadm | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | RP/ | ||
+ | RP/ | ||
+ | Thu Mar 21 10: | ||
+ | router bgp 58717 | ||
+ | | ||
+ | remote-as 9002 | ||
+ | description @@ RETN-EBGP @@ | ||
+ | address-family ipv4 unicast | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | ! | ||
+ | ! | ||
+ | ! | ||
- | + | RP/ | |
- | RP/ | + | Thu Mar 21 10:50:01.056 BDT |
- | Thu Mar 21 10:44:23.659 BDT | + | |
route-policy RETN-IN | route-policy RETN-IN | ||
if destination in DEFAULT-ROUTE then | if destination in DEFAULT-ROUTE then | ||
Line 17: | Line 33: | ||
endif | endif | ||
end-policy | end-policy | ||
+ | ! | ||
+ | RP/ | ||
+ | Thu Mar 21 10: | ||
+ | prefix-set DEFAULT-ROUTE | ||
+ | 0.0.0.0/0, | ||
+ | ::/0 | ||
+ | end-set | ||
+ | ! | ||
+ | RP/ | ||
+ | RP/ | ||
+ | Thu Mar 21 10: | ||
+ | prefix-set RETN-PREFIX-IN | ||
+ | 192.168.29.1/ | ||
+ | 54.244.128.0/ | ||
+ | 64.246.160.0/ | ||
+ | 178.238.112.0/ | ||
+ | 3.5.84.0/ | ||
+ | 202.81.99.0/ | ||
+ | end-set | ||
+ | ! | ||
+ | RP/ | ||
+ | Thu Mar 21 10: | ||
+ | as-path-set RETN-AS-IN | ||
+ | ios-regex ' | ||
+ | end-set | ||
+ | ! | ||
+ | RP/ | ||
+ | Thu Mar 21 10: | ||
+ | route-policy RETN-OUT | ||
+ | if as-path in RETN-AS-BLOCK then | ||
+ | drop | ||
+ | elseif destination in RETN-PREFIX-BLOCK then | ||
+ | drop | ||
+ | elseif community matches-any TO-ALL then | ||
+ | pass | ||
+ | elseif community matches-any CACHE-COMMUNITY then | ||
+ | pass | ||
+ | elseif community matches-any BLACKHOLE then | ||
+ | pass | ||
+ | else | ||
+ | drop | ||
+ | endif | ||
+ | end-policy | ||
+ | ! | ||
+ | RP/ | ||
+ | Thu Mar 21 10: | ||
+ | as-path-set RETN-AS-BLOCK | ||
+ | ios-regex ' | ||
+ | ios-regex ' | ||
+ | ios-regex ' | ||
+ | ios-regex ' | ||
+ | ios-regex ' | ||
+ | ios-regex ' | ||
+ | ios-regex ' | ||
+ | ios-regex ' | ||
+ | ios-regex ' | ||
+ | ios-regex ' | ||
+ | ios-regex ' | ||
+ | end-set | ||
+ | ! | ||
+ | RP/ | ||
+ | Thu Mar 21 10: | ||
+ | prefix-set RETN-PREFIX-BLOCK | ||
+ | 192.168.28.1/ | ||
+ | 103.16.73.0/ | ||
+ | end-set | ||
+ | ! | ||
+ | RP/ | ||
+ | Thu Mar 21 10: | ||
+ | community-set TO-ALL | ||
+ | 58717:100 | ||
+ | end-set | ||
+ | ! | ||
+ | RP/ | ||
+ | Thu Mar 21 10: | ||
+ | community-set CACHE-COMMUNITY | ||
+ | 58717:1900, | ||
+ | 58717:1910, | ||
+ | 58717:1930, | ||
+ | 58717:1940, | ||
+ | 58717:1950 | ||
+ | end-set | ||
+ | ! | ||
+ | RP/ | ||
+ | RP/ | ||
+ | Thu Mar 21 10: | ||
+ | community-set BLACKHOLE | ||
+ | 2914:666, | ||
+ | 6762:666, | ||
+ | 6939:666, | ||
+ | 65535:666, | ||
+ | 7473:995, | ||
+ | 65299:9498, | ||
+ | 64999:0, | ||
+ | 4755:0 | ||
+ | end-set | ||
! | ! | ||
RP/ | RP/ |
ncs_5500_rtr_bgp.txt · Last modified: 2024/03/21 04:54 by sysadm