CLI References: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| (4 intermediate revisions by 2 users not shown) | |||
| Line 47: | Line 47: | ||
bgp as-path access-list [access-list-name] seq [seq-number] permit [^asn-peer_allowed-asn$] | bgp as-path access-list [access-list-name] seq [seq-number] permit [^asn-peer_allowed-asn$] | ||
'''Example:''' bgp as-path access-list ROY seq 15 permit ^012345_678911$ | '''Example:''' bgp as-path access-list ROY seq 15 permit ^012345_678911$ | ||
# '''Membuat Access-List Untuk ASN''' # | |||
bgp as-path access list [access-list-name] seq [seq-number] permit [allowed-asn$] | |||
# '''Deny ASN di Route-Map''' # | |||
route-map [route-map-name] deny [seq-number] | |||
match as-path [access-list-name] | |||
exit | |||
# '''Cara Melihat BGP peer yang satu segmen / di IXP yang sama''' # | |||
sh ip bgp summ | include xxx.xxx ( IP cukup 2 oktet) | |||
Latest revision as of 11:50, 22 July 2022
Berikut ini adalah kumpulan beberapa CLI yang sering digunakan untuk interkoneksi BGP:
# Melihat Status Semua BGP IPv4 # show ip bgp summary
# Melihat Status Semua BGP IPv4 & IPv6 # show bgp summary
# Melihat Prefix IPv4 Yang Diterima Dari BGP Peer # show ip bgp neighbors [ipv4-peer] received-routes
# Melihat Prefix IPv6 Yang Diterima Dari BGP Peer # show bgp neighbors [ipv4-peer] received-routes
# Melihat Prefix IPv4 Yang Di Advertise BGP # show ip bgp neighbors [ipv4-peer] advertised-routes
# Melihat Prefix IPv6 Yang Di Advertise BGP # show bgp neighbors [ipv4-peer] advertised-routes
# Melihat Detail Route-Map # show route-map [route-map-name]
# Melihat Detail Daftar Large Community # show bgp large-community-list [large-community-list-name] detail
# Allow Large Community Di Route Map # route-map [route-map-name] permit [seq-number] match large-community [large-community-list-name] exit
# Discard Large Community Di Route Map # route-map [route-map-name] deny [seq-number] match large-community [large-community-list-name] exit
# Melihat Daftar Prefix IP # show ip prefix-list [prefix-list-name]
# Allow Prefix IP Di Daftar Prefix IP # ip prefix-list [prefix-list-name] seq [seq-number] permit [ip-network]
# Discard Prefix IP Di Daftar Prefix IP # ip prefix-list [prefix-list-name] seq [seq-number] deny [ip-network]
# Allow ASN # bgp as-path access-list [access-list-name] seq [seq-number] permit [^asn-peer_allowed-asn$] Example: bgp as-path access-list ROY seq 15 permit ^012345_678911$
# Membuat Access-List Untuk ASN # bgp as-path access list [access-list-name] seq [seq-number] permit [allowed-asn$]
# Deny ASN di Route-Map # route-map [route-map-name] deny [seq-number] match as-path [access-list-name] exit
# Cara Melihat BGP peer yang satu segmen / di IXP yang sama # sh ip bgp summ | include xxx.xxx ( IP cukup 2 oktet)