CLI References: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| Line 49: | Line 49: | ||
# '''Membuat Access-List Untuk ASN''' # | # '''Membuat Access-List Untuk ASN''' # | ||
bgp | bgp as-path access list [access-list-name] seq [seq-number] permit [allowed-asn$] | ||
# '''Deny ASN di Route-Map''' # | # '''Deny ASN di Route-Map''' # | ||
route-map | route-map [route-map-name] deny [seq-number] | ||
match as-path | match as-path [access-list-name] | ||
exit | exit | ||
Revision as of 06:33, 21 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