「Arista スイッチ設計」の版間の差分
編集の要約なし |
|||
| (同じ利用者による、間の5版が非表示) | |||
| 156行目: | 156行目: | ||
=== soft-reconfiguration inbound は rib-in pre-policy retain コマンドになっており、デフォルトで有効 === | === soft-reconfiguration inbound は rib-in pre-policy retain コマンドになっており、デフォルトで有効 === | ||
==== soft-reconfiguration inbound は rib-in pre-policy retain ==== | |||
(config-router-bgp)#show run all | in retain | (config-router-bgp)#show run all | in retain | ||
neighbor eBGP_IX_GROUP rib-in pre-policy retain | neighbor eBGP_IX_GROUP rib-in pre-policy retain | ||
| 191行目: | 193行目: | ||
'''Route map result: permit, matching sequence 110''' | '''Route map result: permit, matching sequence 110''' | ||
どのシーケンス番号で match したかまで確認できる。 | どのシーケンス番号で match したかまで確認できる。 | ||
ルートが受信できていない時、deny に match していないか確認する。 | |||
上記は permit で受信できている例。 | |||
==== outbound ==== | ==== outbound ==== | ||
| 209行目: | 215行目: | ||
Juniper と異なり、startup-config には別途保存する必要がある。 | Juniper と異なり、startup-config には別途保存する必要がある。 | ||
この挙動は以下で Juniper | この挙動は以下で Juniper ライクの即時保存へ変更可能。 | ||
==== service configuration session commit save ==== | |||
(config)#service configuration session commit save | (config)#service configuration session commit save | ||
commit check は存在しない。また、session history に履歴が保存される。 | commit check は存在しない。また、session history に履歴が保存される。 | ||
==== configure session ==== | |||
#configure session | #configure session | ||
R(config-s-s1)#logging host 1.1.1.1 | R(config-s-s1)#logging host 1.1.1.1 | ||
| 219行目: | 229行目: | ||
logging host 1.1.1.1 | logging host 1.1.1.1 | ||
commit 前の確認コマンドは show session-config diffs になる。 | commit 前の確認コマンドは show session-config diffs になる。 | ||
==== show session-config diffs ==== | |||
(config-s-s6)#show session-config diffs | (config-s-s6)#show session-config diffs | ||
--- system:/running-config | --- system:/running-config | ||
| 227行目: | 239行目: | ||
! Exiting configuration session without committing changes. To get back to the session, type 'configure session s6'. | ! Exiting configuration session without committing changes. To get back to the session, type 'configure session s6'. | ||
セッション番号を指定することで、復帰可能。 | セッション番号を指定することで、復帰可能。 | ||
==== configure session <hash> ==== | |||
#configure session s6 | #configure session s6 | ||
セッションの内容を破棄したい場合は、abort. | セッションの内容を破棄したい場合は、abort. | ||
==== abort ==== | |||
(config-s-s6)#abort | (config-s-s6)#abort | ||
# | # | ||
| 236行目: | 252行目: | ||
==== configure session モード ==== | ==== configure session モード ==== | ||
==== rollback ==== | |||
(config-s-s3)#rollback flash:startup-config | (config-s-s3)#rollback flash:startup-config | ||
==== 特権モード ==== | ==== 特権モード ==== | ||
===== configure replace ===== | |||
#configure replace flash:startup-config | #configure replace flash:startup-config | ||
show configuration session history で、commit した履歴を確認し、任意の checkpoint に rollback も可能。 | show configuration session history で、commit した履歴を確認し、任意の checkpoint に rollback も可能。 | ||
===== show configuration sessions history ===== | |||
#show configuration sessions history | #show configuration sessions history | ||
Commit Hash Session Name User Description Commit Time Commit Cancel | Commit Hash Session Name User Description Commit Time Commit Cancel | ||
| 253行目: | 275行目: | ||
Copy completed successfully. | Copy completed successfully. | ||
=== show running-config section < | === show running-config section <regex> で対象のコンフィグのみ表示できる === | ||
Cisco IOS とは異なり、route-map や再配布している別のプロトコル、SNMP の Trap も表示対象となる。 | Cisco IOS とは異なり、route-map や再配布している別のプロトコル、SNMP の Trap も表示対象となる。 | ||
< | <regex> 自体は正規表現で match する行を抜き出す + その階層の行を抜き出す、どいう動作が行われる。 | ||
* router ospf 配下を見たい時などに便利 | |||
show running-config | section <Filter_keyword> と同一の動作と思われる。 | show running-config | section <Filter_keyword> と同一の動作と思われる。 | ||
NX-OS と異なり、複数キーワード指定やスペースを含む語句を指定した時に "" で括らなくてもよいのが便利。 | NX-OS と異なり、複数キーワード指定やスペースを含む語句を指定した時に "" で括らなくてもよいのが便利。 | ||
===== show running-config section <regex> ===== | |||
#show running-config section logging | #show running-config section logging | ||
logging buffered 1024000 | logging buffered 1024000 | ||
| 276行目: | 302行目: | ||
logging host 10.253.0.51 | logging host 10.253.0.51 | ||
=== show active | === show active で現在の階層のコンフィグのみ表示できる === | ||
===== show active ===== | |||
グローバル コンフィギュレーション モードは不可。(多すぎるので意味がないと思われる) | グローバル コンフィギュレーション モードは不可。(多すぎるので意味がないと思われる) | ||
| 291行目: | 319行目: | ||
=== show running-config diffs で startup-config との差分を簡易確認できる === | === show running-config diffs で startup-config との差分を簡易確認できる === | ||
===== show running-config diffs ===== | |||
(config)#logging host 1.1.1.1 | (config)#logging host 1.1.1.1 | ||
(config)#show run diff | (config)#show run diff | ||
| 308行目: | 338行目: | ||
=== show running-config interface や show interface Eth* status でも range 指定可能 === | === show running-config interface や show interface Eth* status でも range 指定可能 === | ||
===== show run int eth 1-2 ===== | |||
#show run int eth 1-2 | #show run int eth 1-2 | ||
interface Ethernet1 | interface Ethernet1 | ||
| 316行目: | 348行目: | ||
channel-group 49 mode active | channel-group 49 mode active | ||
===== show int eth1-2 status ===== | |||
#show int eth1-2 status | #show int eth1-2 status | ||
Port Name Status Vlan Duplex Speed Type Flags Encapsulation | Port Name Status Vlan Duplex Speed Type Flags Encapsulation | ||
Et1 connected in Po49 full 1G EbraTestPhyPort | Et1 connected in Po49 full 1G EbraTestPhyPort | ||
Et2 connected in Po49 full 1G EbraTestPhyPort | Et2 connected in Po49 full 1G EbraTestPhyPort | ||
=== | (パイプ) のオプションに nz (non-zero) がある === | |||
show interface counter (errors) で特に便利。 | |||
===== show interface counter ===== | |||
#show interfaces counters | nz | |||
Port InOctets InUcastPkts InMcastPkts InBcastPkts | |||
Et1 139463015 134858 1432380 61385 | |||
Et2 181884794 1258101 207329 0 | |||
Et23 214910023 1040725 1646725 17 | |||
Ma1 378834737 4256736 4233230 8 | |||
Po49 321289528 1392940 1639224 61384 | |||
Po55 214887154 1040723 1646533 5 | |||
リンクダウンのポートはカウントが 0 なので出力から除外される。 | |||
==== show interface counter errors ==== | |||
#show interfaces counters errors | nz | |||
Port FCS Align Symbol Rx Runts Giants Tx | |||
# | |||
エラーが 1 以上のポートのみ出力される。 | |||
上記はエラーがないため、出力がなかった例。 | |||
=== Multi-line alias コマンドで複数の show コマンドを実施可能 === | |||
== リファレンス == | |||
[https://arista.my.site.com/AristaCommunity/s/article/cli-optimization CLIの最適化] | |||
[https://www.arista.com/en/solutions/flexroute-engine-ip-forwarding Arista FlexRoute™ Engine] | |||
[https://www.arista.com/en/support/toi/eos-4-26-0f/14760-eos-default-route-preferences EOS default route preferences] | |||
* eBGP が 200 なのが印象的 (Cisco IOS は 20) | |||
=== トランシーバ === | |||
[https://arista.my.site.com/AristaCommunity/s/article/%E9%95%B7%E8%B7%9D%E9%9B%A2Optics%E3%81%AE%E5%88%A9%E7%94%A8 長距離トランシーバ利用時の注意点] | |||
=== EOS === | |||
[https://arista.my.site.com/AristaCommunity/s/article/EOS%E3%82%BD%E3%83%95%E3%83%88%E3%82%A6%E3%82%A7%E3%82%A2-%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB-%E3%83%90%E3%83%BC%E3%82%B8%E3%83%A7%E3%83%B3-%E7%A8%AE%E9%A1%9E%E3%81%AB%E3%81%A4%E3%81%84%E3%81%A6 EOSソフトウェア ファイル、バージョン、種類について] | |||
[https://www.arista.com/en/support/product-documentation/eos-life-cycle-policy EOS Life Cycle Policy] | |||
[https://www.arista.com/en/support/software-download/recommended-releases EOS Recommended Releases] | |||
=== BGP === | |||
[https://arista.my.site.com/AristaCommunity/s/article/inet-edge-config Configurations and Optimizations for Internet Edge Routing] | |||
[https://arista.my.site.com/AristaCommunity/s/article/bgp-peering-configuration-best-practices-security-and-manageability BGP Peering - Configuration Best Practices - Security and Manageability] | |||
[https://arista.my.site.com/AristaCommunity/s/article/bgp-primer-for-internet-peering BGP primer for Internet peering] | |||
=== ACL === | |||
[https://www.arista.com/en/support/toi/user-defined-tcam-profiles-toi User-defined TCAM profiles TOI] | |||
=== TCAM === | |||
[https://arista.my.site.com/AristaCommunity/s/article/Arista-Hardware-and-Software-limits-Part-1 Arista Hardware and Software limits: Part 1 - MAC table and ARP table limits] | |||
[https://arista.my.site.com/AristaCommunity/s/article/Arista-Hardware-and-Software-limits-Part-2 Arista Hardware and Software limits: Part 2 - Routing table limits] | |||
[[カテゴリ:Arista DCS]] | [[カテゴリ:Arista DCS]] | ||
2026年8月21日 (金) 09:51時点における最新版
10G-T トランシーバの制限
Transceiver Compatibility and Interoperability からの転載です。
10G-T は LDPC 符号化などによる高負荷により、消費電力が高く熱を持つため制限があります。
| Platform Family | Platform(s) | Comments |
|---|---|---|
| Supported on all SFP25 ports, with any exceptions or restrictions captured below, and supported in select SFP+ ports, listed below. | ||
| 7050X Series | 7050SX3-48YC8 & 7050SX3-48C8 | Supported on all SFP+ ports (as well as SFP25 ports) |
| 7050CX3M-32S | Supported on all SFP+ ports | |
| 7050SX3-96YC8 | Supported on SFP25 ports 1-48 (top two rows), 50-106 (bottom row), with
remaining SFP25 ports populated with 2W max non BASE-T modules. Supported on front-to-rear airflow (-F) models only. | |
| 7060X Series | 7060SX2-48YC6 | Supported on all SFP25 ports, front-to-rear airflow (-F) only |
| 7060CX2-32S | Supported on all SFP+ ports | |
| 7280R Series | 7280SR2K-48C6 | 24x SFP25 ports and front-to-rear airflow (-F) only |
| 7500R Series | 7500R2AK-48YCQ | Supported on all SFP+ ports |
| Platform Family | Platform SKU | Supported Ports & Comments |
|---|---|---|
| 7500R3 | 7500R3-48Y4D-LC | All SFP25 ports |
| 7280R3 | 7280SR3(K)-48YC8 | All SFP25 ports, front-to-rear airflow (-F) only. |
| 7280SR3-40YC6 | All SFP25 ports. | |
| 7280CR3(M)(K)-32D4(S) and
7280CR3(M)(K)-32P4(S) |
All QSFP ports, using a QSFP to SFP+ adapter. | |
| 7280DR3(K)-24 | All QSFP-DD ports, using a QSFP to SFP+ adapter. | |
| 7280CR3-96 | All QSFP ports, using a QSFP to SFP+ adapter. | |
| 7280CR3-36 | Ports 1-24, using a QSFP to SFP+ adapter. | |
| 7368 Series | 7368-16S | All SFP25 ports. For rear-to-front airflow (-R), max ambient limit of 35C. |
| 7358-16C, 7368-16C | Using a QSFP to SFP+ adapter on ports that support 10G. | |
| 7289 Series | 7358-16C | Using a QSFP to SFP+ adapter on ports that support 10G. |
| 7368-16S | All SFP25 ports. For rear-to-front airflow (-R), max ambient limit of 35C. | |
| 7358X4 Series | 7368-16S | All SFP25 ports. For rear-to-front airflow (-R), max ambient limit of 35C. |
| 7050 Series | 7050SX3-48(Y)C8 | All SFP+ / SFP25 ports, front-to-rear airflow (-F) only. |
| 7050SX3-48YC12 | All SFP25 ports | |
| 7050CX3-32S | All QSFP ports using a QSFP to SFP+ adapter. Supported in SFP+ ports for front-to-rear airflow (-F) only. | |
| 7050SX3-96YC8 | All QSFP ports using a QSFP to SFP+ adapter, and all SFP25 ports. | |
| 7050TX3-48C8 | All QSFP ports, using a QSFP to SFP+ adapter. | |
| 7050SDX4-48D8 | Supported on all SFP-DD ports |
| Platform Family | Platform(s) | Comments |
|---|---|---|
| Supported on all SFP25 ports, with any exceptions or restrictions captured below, and supported in select SFP+ ports, listed below. | ||
| 7050X Series | 7050SX3-48YC8 & 7050SX3-48C8 | Supported on all SFP+ ports (as well as SFP25 ports) |
| 7050SX3-48YC12 | Supported on all SFP25 ports | |
| 7050SDX4-48D8 | Supported on all SFP-DD ports | |
| 7280R Series | 7280CR3(M)(K)-32D4(S) and
7280CR3(M)(K)-32P4(S) |
All QSFP ports, using a QSFP to SFP+ adapter. |
| 7280SR3-48YC8 | Supported on all SFP25 ports | |
| 7280SR3-40YC6 | Supported on SFP25 ports 1-36 | |
| 7289 Series | 7368-16S | Supported on all SFP25 ports |
| 7368-16C | Ports 2, 6, 19 and 14 using QSFP to SFP+ adapter | |
BGP
BGP Peering - Configuration Best Practices - Security and Manageability
Arista EOSのBGP Origin attributeの扱い
BGP primer for Internet peering
ASN-mode regular expressions for BGP ASPATH attributes
BGP TIPS
Cisco IOS / IOS-XR , Juniper 使いが知ると嬉しい内容を記載します。
soft-reconfiguration inbound は rib-in pre-policy retain コマンドになっており、デフォルトで有効
soft-reconfiguration inbound は rib-in pre-policy retain
(config-router-bgp)#show run all | in retain neighbor eBGP_IX_GROUP rib-in pre-policy retain neighbor eBGP_TRANSIT_GROUP rib-in pre-policy retain (config-router-bgp)#show run | in retain (config-router-bgp)#
デフォルト値のため、表示されない。
ルートマップのデバッグができる
Debug Show Commands に記載がある。
show コマンドで任意の IP プレフィックスが in or out のルートマップに合致するか、確認が可能。
Inbound
#show bgp debug policy inbound neighbor 203.0.113.1 ipv4 unicast route-map RM_eBGP_in_v4 8.8.8.0/24
Path with NLRI 8.8.8.0/24, received from 203.0.113.1
route-map RM_eBGP_in_v4
seq 10 deny
match ip address prefix-list PL_BOGONS_v4 (failed)
Seq result: fall through to next sequence
seq 20 deny
match as-path BOGON-ASNs (failed)
Seq result: fall through to next sequence
seq 30 deny
match as-path length >= 100 and <= 4000 (failed)
Seq result: fall through to next sequence
seq 40 deny
match ip address prefix-list TOO_SMALL_PREFIXes_v4 (failed)
Seq result: fall through to next sequence
seq 110 permit
match ip address prefix-list PL_ALL_v4 (matched)
set local-preference 100
Seq result: permit
Route map result: permit, matching sequence 110
どのシーケンス番号で match したかまで確認できる。
ルートが受信できていない時、deny に match していないか確認する。
上記は permit で受信できている例。
outbound
#show bgp debug policy outbound neighbor 203.0.113.1 ipv4 unicast route-map RM_eBGP_PREPEND_x0_out_v4 198.51.100.0/24
Path with NLRI 198.51.100.0/24, to 203.0.113.1
route-map RM_eBGP_PREPEND_x0_out_v4
seq 10 permit
match ip address prefix-list PL_GLOBAL_v4 (matched)
match as-path AS_ORIGIN (matched)
Seq result: permit
Route map result: permit, matching sequence 10
outbound 側も確認でき、広報されていないときに役立つ。
コマンド TIPS
configure session で commit が使える
Juniper と異なり、startup-config には別途保存する必要がある。
この挙動は以下で Juniper ライクの即時保存へ変更可能。
service configuration session commit save
(config)#service configuration session commit save
commit check は存在しない。また、session history に履歴が保存される。
configure session
#configure session R(config-s-s1)#logging host 1.1.1.1 (config-s-s1)#show run | in logging (config-s-s1)#commit #show run | in logging logging host 1.1.1.1
commit 前の確認コマンドは show session-config diffs になる。
show session-config diffs
(config-s-s6)#show session-config diffs --- system:/running-config +++ session:/s6-session-config -logging host 1.1.1.1
途中でコンフィギュレーション モードを end で抜けた後も、セッションは残っている。
(config-s-s6)#end ! Exiting configuration session without committing changes. To get back to the session, type 'configure session s6'.
セッション番号を指定することで、復帰可能。
configure session <hash>
#configure session s6
セッションの内容を破棄したい場合は、abort.
abort
(config-s-s6)#abort #
rollback でコンフィグの切り戻しができる
以下は running-config の動作がうまくいかなかったとき、startup-config に戻すコマンドの例。
configure session モード
rollback
(config-s-s3)#rollback flash:startup-config
特権モード
configure replace
#configure replace flash:startup-config
show configuration session history で、commit した履歴を確認し、任意の checkpoint に rollback も可能。
show configuration sessions history
#show configuration sessions history
Commit Hash Session Name User Description Commit Time Commit Cancel
Timer Expiry
----------- ------------ ------ ------------------------------------------ ------------------- -------------
9d818cc 01-TEST admin n/a 2026-08-17 08:36:33 n/a
#rollback checkpoint:9d818cc ?
<cr>
#rollback checkpoint:9d818cc
Copy completed successfully.
show running-config section <regex> で対象のコンフィグのみ表示できる
Cisco IOS とは異なり、route-map や再配布している別のプロトコル、SNMP の Trap も表示対象となる。
<regex> 自体は正規表現で match する行を抜き出す + その階層の行を抜き出す、どいう動作が行われる。
- router ospf 配下を見たい時などに便利
show running-config | section <Filter_keyword> と同一の動作と思われる。
NX-OS と異なり、複数キーワード指定やスペースを含む語句を指定した時に "" で括らなくてもよいのが便利。
show running-config section <regex>
#show running-config section logging logging buffered 1024000 logging monitor debugging logging host 1.1.1.1 logging host 1.1.1.2 logging host 10.253.0.51 logging facility local1 logging vrf MGMT local-interface Management1 #show run section logging host logging host 1.1.1.1 logging host 1.1.1.2 logging host 10.253.0.51
show active で現在の階層のコンフィグのみ表示できる
show active
グローバル コンフィギュレーション モードは不可。(多すぎるので意味がないと思われる)
以下は router ospf 1 の配下で実施した例。
(config-router-ospf)#show active router ospf 1 router-id 10.255.255.254 passive-interface default no passive-interface Port-Channel49.100 passive-interface Vlan1461 network 10.255.254.0/30 area 0.0.0.0 max-lsa 12000 default-information originate metric-type 1
show running-config diffs で startup-config との差分を簡易確認できる
show running-config diffs
(config)#logging host 1.1.1.1 (config)#show run diff --- flash:/startup-config +++ system:/running-config @@ -15,6 +15,7 @@ ! logging buffered 1024000 logging monitor debugging +logging host 1.1.1.1 logging host 10.253.0.51 logging facility local1 logging vrf MGMT local-interface Management1
上書きか置換か確認する程度の差分チェックに便利。
差分が多い場合は Winmerge がよい。
show running-config interface や show interface Eth* status でも range 指定可能
show run int eth 1-2
#show run int eth 1-2 interface Ethernet1 no switchport channel-group 49 mode active interface Ethernet2 no switchport channel-group 49 mode active
show int eth1-2 status
#show int eth1-2 status Port Name Status Vlan Duplex Speed Type Flags Encapsulation Et1 connected in Po49 full 1G EbraTestPhyPort Et2 connected in Po49 full 1G EbraTestPhyPort
| (パイプ) のオプションに nz (non-zero) がある
show interface counter (errors) で特に便利。
show interface counter
#show interfaces counters | nz Port InOctets InUcastPkts InMcastPkts InBcastPkts Et1 139463015 134858 1432380 61385 Et2 181884794 1258101 207329 0 Et23 214910023 1040725 1646725 17 Ma1 378834737 4256736 4233230 8 Po49 321289528 1392940 1639224 61384 Po55 214887154 1040723 1646533 5
リンクダウンのポートはカウントが 0 なので出力から除外される。
show interface counter errors
#show interfaces counters errors | nz Port FCS Align Symbol Rx Runts Giants Tx #
エラーが 1 以上のポートのみ出力される。
上記はエラーがないため、出力がなかった例。
Multi-line alias コマンドで複数の show コマンドを実施可能
リファレンス
- eBGP が 200 なのが印象的 (Cisco IOS は 20)
トランシーバ
EOS
BGP
Configurations and Optimizations for Internet Edge Routing
BGP Peering - Configuration Best Practices - Security and Manageability
BGP primer for Internet peering
ACL
User-defined TCAM profiles TOI
TCAM
Arista Hardware and Software limits: Part 1 - MAC table and ARP table limits
Arista Hardware and Software limits: Part 2 - Routing table limits