SONiCの学習用動画に関するメモ。
CiscoやJuniperの通信機器や通信プロトコルの解説動画が公式非公式問わず沢山有るのだが、ひょっとしたらSONiCも有るかもしれないという事で、Youtubeにて探したら数は少ないものの有った。
SONiCだけで検索するとセガの某キャラクターで埋め尽くされて非常に見つけ辛かったが、SONiC BGP等通信プロトコル名を足して検索すると某キャラクターに混ざって見つける事が出来た。
いずれの動画もLove2Networkというチャンネルによる提供。
OSS版ではなくBroadcom版SONiCで解説している。
一番最初の動画、What is SONiC (NOS)の冒頭にて、セガの某キャラクターの説明ではないと話している(笑
解説は英語であるが、日本語の字幕を表示させる事が出来る。
①動画のウインドウ内右下にある「字幕 (c)」のアイコンをクリックし字幕を有効にする。
字幕が有効になると、アイコンの下側に赤い線が表示される。
②この時点では字幕は英語になっている。
字幕を日本語表示にしたい場合は、字幕(c)アイコンの右側にある設定アイコンをクリック
字幕→自動翻訳の順にクリックし、各国語の一番下側にある日本語をクリックする。
③字幕が日本語の表示になる。
What is SONiC (NOS)
https://www.youtube.com/watch?v=YQSkwuJuHQk
How to run vSONiC on GNS3
https://www.youtube.com/watch?v=Hl1-aPKl0PU&t=232s
★Broadcom版SONiCの仮想アプライアンス版のダウンロードリンクの記載有り。
SONiC - Configuring BGP based Underlays
https://www.youtube.com/watch?v=cs8leFvv4Zw
SONiC - How to Configure OSPF
https://www.youtube.com/watch?v=UpbOA_v13V4
SONiC - How to Configure MCLAG
https://www.youtube.com/watch?v=RHsyTFkfSLY
SONiC - Configuring VXLAN EVPN
https://www.youtube.com/watch?v=Jwl_ctrVAFY
SONiC - Configuring LVTEP with VXLAN EVPN
https://www.youtube.com/watch?v=eo7Glsv0FWs
Why and How to Configure Link State Tracking
https://www.youtube.com/watch?v=NOs98Dh3o8Y
Configuring SONiC Maintenance Mode
https://www.youtube.com/watch?v=6PRUliBp7pE
Love2Network, thank you!
SONiCはMellanox(現NVIDIA)やEdgecore等といった規模があまり大きく無い機器ベンダだけでなく、CiscoやJuniper等のような大手機器ベンダでも採用が進み出している。
例えば、Juniperの場合はJuniper PTXルータやQFXスイッチへの導入が始まった。
それにしても、MicrosoftがLinuxベースのオープンソースなNOSを開発・公開するなんて、Linuxを盛んにディスってた十数年前には思ってもみなかった事だ。
https://www.youtube.com/watch?v=TBbm_MEwo2A Open Networking: SONiC on the Juniper PTX10008
https://www.youtube.com/watch?v=skUHM85O88I Juniper’s Routing Stack for SONiC
https://www.youtube.com/watch?v=yWTqsekKyq8 Running SONiC on the Cisco 8000
OCPによる公式のプレゼン動画は、Youtubeで探すよりSONiCの公式サイトで探す方が早く見つかる。
注意事項
動画内では/etc/sonic/config_db.jsonファイルの編集やvtyshによる設定ではなく、sonic-cliを使用して設定している。
当記事の投稿時点でのOSS版SONiCの最新バージョン202012.115-8e8a26fd4でもsonic-cliでCisco IOSライクなコマンドを実行可能だが、動画にて紹介されているBGPやOSPF等の設定コマンドや、show run等の確認コマンドは無し。
Broadcom版のSONiCのsonic-cliモードは、OSS版SONiCのsonic-cliモードより多くのコマンドを実行する事が出来る。
以下はOSS版SONiCのsonic-cliモード。
admin@sonic:~$ sonic-cli sonic# sonic# configure Enter configuration mode exit Exit from the CLI no No commands under exec mode show Show running system information system System command sonic# sonic# configure terminal sonic(config)# sonic(config)# end Exit to the exec Mode exit Exit from current mode interface Select an interface ip Global IP configuration subcommands no To delete / disable commands in config mode sonic(config)#
以下はBroadcom版のSONiCのsonic-cliモード。
上記のOSS版SONiCより多くのコマンドが実装されている事が分かる。
admin@sonic:~$ sonic-cli sonic# sonic# ? clear Clear commands configure Enter configuration mode copy Perform file copy operations exit Exit from the CLI fast-reboot fast-reboot [options] (-h shows help) image Image related commands logger Enter messages into the system log no No commands under Exec mode ping Send ICMP ECHO_REQUEST to network hosts ping6 Send ICMPv6 ECHO_REQUEST to network hosts reboot reboot [options] (-h shows help) renew Renew commands show Show running system information terminal Set terminal settings tpcm SONiC image installation manager traceroute Print the route packets take to the host traceroute6 Print the route packets take to the IPv6 host warm-reboot warm-reboot [options] (-h shows help) write Save config sonic# sonic# configure terminal sonic(config)# sonic(config)# ? aaa AAA configuration authentication Configure authentication modes bfd Configure BFD peers bgp Configure BGP instances class-map Configures class-map copp-action Configures a CoPP action group core Configure coredump crm Configure critical resource monitoring default Apply default configuration end Exit to EXEC mode errdisable Error disable configuration exit Exit from current mode factory Modify factory default configuration hardware Configure ASIC parameters hostname Configure the system hostname interface Configure interfaces interface-naming Interface naming ip Configure Internet Protocol (IP) ipv6 Configure Internet Protocol v6 (IPv6) kdump kdump command ldap-server Configures LDAP server line Session configuration link Create link state tracking group lldp LLDP configuration subcommands logging Configures syslog mac Configure Media Access Control (MAC) mclag Configures MCLAG mirror-session Mirror session configuration nat Enter NAT configuration no Remove current configuration ntp Configure NTP servers policy-map Configures policy-map port-group Port group configurations portchannel Configure PortChannel parameters priority-flow-control PFC configuration ptp Configures precision time protocol settings qos QoS Configuration radius-server Configures RADIUS client route-map Configure routing policies router Enter router mode service-policy Apply ingress or egress policy sflow Configure sFlow snmp-server SNMP server configuration spanning-tree Spanning tree configuration ssh-server Configures SSH server switch-resource Switch Resource Configuration swsslog SONiC logging severity level setting tacacs-server Configure TACACS servers tam Telemetry and monitoring configuration threshold Configure threshold for buffer pool. udld UDLD configuration username Add new user warm-restart Warm restart configuration watermark Configure watermark ztp Configure ZTP sonic(config)#
参照先など
開発者および先達の皆さまに感謝。
https://azure.github.io/SONiC/ SONiC
https://github.com/Azure/SONiC/wiki SONiC Wiki
https://github.com/Azure/SONiC/wiki/Quick-Start Quick Start
https://github.com/Azure/SONiC/wiki/Configuration 設定例
https://github.com/Azure/sonic-utilities/blob/master/doc/Command-Reference.md コマンドリファレンス
https://github.com/Azure/SONiC/wiki/Sonic-Roadmap-Planning 開発ロードマップ
https://www.broadcom.com/products/ethernet-connectivity/software/enterprise-sonic Broadcom版SONiC
https://github.com/Broadcom/sonic-VirtualSwitch/releases Broadcom版SONiCのダウンロードサイト
https://qiita.com/advent-calendar/2020/sonic 設定例(QiitaのSONiC Advent Calendar 2020)
https://qiita.com/advent-calendar/2019/sonic 設定例(QiitaのSONiC Advent Calendar 2019)
https://debslink.hatenadiary.jp/entry/20210131/1612091391 VirtualBoxへの導入例
https://qiita.com/masru0714/items/1ef92db005a372ae5ea5 GNS3への導入例
https://debslink.hatenadiary.jp/entry/20210131/1612091391 SONiCを少しかじってみた
https://debslink.hatenadiary.jp/entry/20210214/1613279732 SONiCのWarm Bootの動作確認
https://debslink.hatenadiary.jp/entry/20210320/1616230057 Cumulus LinuxとSONiCの設定ファイル
https://debslink.hatenadiary.jp/entry/20240421/1713678733 DELL版のSONiCをVMware Fusionで動かす - 導入編