CLI References: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| 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 aspath access list REROUTE-BIX-V4 seq 5 permit 8075$ | |||
# '''Deny ASN di Route-Map''' # | |||
route-map BIX-IN deny 2 | |||
match as-path REROUTE-BIX-V4 | |||
exit | |||
Revision as of 06:12, 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 aspath access list REROUTE-BIX-V4 seq 5 permit 8075$
- Deny ASN di Route-Map #
route-map BIX-IN deny 2
match as-path REROUTE-BIX-V4
exit