3å¹´ç¨åã«ãã¯ã¤ãããã¯ã¹ã¹ã¤ããã®NOS(Network OS)ã§ããSONiCãVirtualBoxã«ãããã¤ããL2 MC-LAGãIP Closæ§æçãçµãã§è²ã
éãã§ãããããã®éã«å°å
¥ããSONiCã¯Microsoft社ãéçºãLinux Foundationã§ç®¡çãã¦ããOSSãªSONiCã§ãããä¸æ¹ãOSSçSONiCãEdgecoreãDELLçã®ITãã³ããç¬èªã«ã«ã¹ã¿ãã¤ãºãåç¨çã®SONiCã¨ãã¦æä¾ãã¦ããã
ä»åã¯åç¨çã®SONiCã«ã触ãã¦ã¿ããã¨ããäºã§ãå½è¨äºã®ä½ææã®æ®µéã§ç¡åã§ä½¿ç¨ãå¯è½ãªDELLçã®SONiCãVMware Fusionã«ãããã¤ãã³ãã³ãã®æä½æçã確èªããã
ã
ãã¯ã¤ãããã¯ã¹ã¹ã¤ããNOSã®ä»
ååã®SONiCé¢é£ã®è¨äºããæ©ããã®ã§ç´3å¹´ãçµã¡...Cumulus Linuxãéçºããã³è²©å£²ãã¦ããCumulus Networks社ãNVIDIA社ã«è²·åããNVIDIA Cumulus Linuxã¨ãªããIP Infusion社ã®OcNOSã¨Pica8社ã®PicOSãåããã3社ãåç¨çã®ãã¯ã¤ãããã¯ã¹ã¹ã¤ããNOSã¨ãã¦ããç¨åº¦ã®å°ä½ã確ä¿ãOSSãªãã¯ã¤ãããã¯ã¹ã¹ã¤ããã®NOSã¯ãFaceBookãèªç¤¾ãµã¼ãã¹ã«ã¦å°å
¥ãã¦ããFBOSSã¨ä»åã®è¨äºã«ã¦æ±ã£ã¦ããSONiCã®éçºãä»ããªãæ´»çºã§ãä»ã¯åæ»ãã¦ããã¨ãã£ãæããã
ç¹ã«ãSONiCã¯å½å
å¤ã®ãã¼ã¿ã»ã³ã¿ã«ã¦ããæ°å¹´ã®éã«æ¥æ¿ã«å°å
¥ãé²ã¿ãOSSãªãã¯ã¤ãããã¯ã¹ã¹ã¤ããNOSã§ã¯ããã¡ã¯ãã¹ã¿ã³ãã¼ãã«ãªãã¤ã¤ãããå¢åå³ã¯ã»ã¼æ±ºã¾ãããã¦ããã ããã
DELLçã®SONiCã¨ã¯
2020å¹´ã«DELL社ã¯EMC社ã¨ã®å
±åã§Enterprise SONiC Distribution by Dell Technologiesï¼Enterprise SONiC OSï¼ãçºè¡¨ã以åå½ããã°ã«ã¦æ±ã£ã¦ããOSSçã®SONiCã¨ã¯ç°ãªãããã³ãã®ãµãã¼ãããã³ãç¬èªã®å®è£
ãæããã¾ããOSSçã®SONiCã¨ã¯ç°ãªã/etc/sonic/config_db.jsonãã¡ã¤ã«ã®ä¸ã«BGPçã®è¨å®ã®è¨è¼ãç¡ãçºãBGPã®è¨å®ãvtyshãsonic-cliã§æåããè¡ãäºãåºæ¥ãã
åç¨çã®SONiCã¯DELLã®Enterprise SONiC OSã®ä»ã«ãEdgecore社ãNvidia社ãBroadcom社çãããããã®ãã³ãæ¯ã«ã«ã¹ã¿ãã¤ãºãããSONiCããªãªã¼ã¹ãã¦ããã
å½è¨äºã§ã¯å
¥æã容æãªDELLçã®SONiCï¼Enterprise SONiC OSï¼ãæ±ãã
Enterprise SONiC OSã®å
¥æããã³ä¸æºå
ä¸è¨ã®ãªã³ã¯å
ãããDELLçã®SONiCã§ããEnterprise SONiC OSã®ã¤ã¡ã¼ã¸ãã¡ã¤ã«ããã¦ã³ãã¼ãããã
å½è¨äºã®ä½æã®æ®µéã§ã¯ã¦ã¼ã¶ç»é²ã¯ä¸è¦ã§ãææ°çã§ã¯ãªããã¼ã¸ã§ã³4.1.1ã®ãã¦ã³ãã¼ããå¯è½ã ã£ãã
VirtualBoxã«ãããã¤ããäºã¯å¯è½ã ãNICãèªèããªãã£ãçºãVMware Fusionã«ã¦ãããã¤ãããe1000ãèªèåºæ¥ãã°è¯ãã®ã§Windowsç°å¢ã§ã¯VMware Workstationã«ãããã¤ããäºã¯å¯è½ã ããã
https://www.dell.com/support/home/en-us/product-support/product/enterprise-sonic-distribution/drivers
ãã¦ãã¼ãããã³ä¸æºåã®æµãã¯ä»¥ä¸ã®ã¨ããã
â ä¸è¨ã®URLã«ã¢ã¯ã»ã¹ããEnterprise SONiC OS 4.1.1ã®gns3ããã¦ã³ãã¼ãã
â¡ãã¦ã³ãã¼ãããDELLçSONiCã®zipãã¡ã¤ã«ãå±éã
â¢ä¸ããåºã¦ããEnterprise_SONiC_OS_4.1.1.imgãã¡ã¤ã«ãEnterprise_SONiC_OS_4.1.1.vmdkã«å¤æã
ãã¦ã³ãã¼ããããã¡ã¤ã«ã¯imgå½¢å¼ã§ããçºãVMware Fusionã«ã¦ãããã¤åºæ¥ãããã«Windowsç°å¢ã«ã¦NHCã¨ãããã¼ã«ã§imgå½¢å¼ããvmdkå½¢å¼ã«å¤æããã
https://euee.web.fc2.com/tool/nhc.html#nhc
å½æ¹ã®ç°å¢
ãã¹ãæ©ï¼macOS 14.4.1 / MacBook Pro 2020 / RAM: 16GB / CPU: Intel Core i5 2.0GHz
Hypervisorï¼VMware Fusion 12.2.5
ã²ã¹ãæ©ï¼Enterprise SONiC OS 4.1.1
Enterprise SONiC OSã®ãããã¤
以ä¸ã¯VMware Fusionç°å¢ã®Enterprise SONiC OSã®ãããã¤ã®æµãã§ããã
VMware Fusionãç«ã¡ä¸ããã¦ã¤ã³ãã¦å
å·¦ä¸ã®ãï¼ããã¯ãªãã¯ããæ°è¦ããé¸æã
å°ã以ä¸ã®ç»åå
ã«ã¦ååæ¬å
ã®ä»®æ³ã¢ãã©ã¤ã¢ã³ã¹ã®ä¸è¦§ã®ä¸ã«æãEnterprise SONiC-OS 4.1.1ã¯ãå½è¨äºä½æåã«ãã¹ãç¨ã«ãããã¤ãããã®ã§ããã
ã
ãã¤ã³ã¹ãã¼ã«æ¹æ³ãé¸æãã®ã¦ã¤ã³ãã¦å
ã«ãSONiCã®vmdkãã¡ã¤ã«ããã©ãã°&ããããã
ã
ããªãã¬ã¼ãã£ã³ã° ã·ã¹ãã ã®é¸æãã®ã¦ã¤ã³ãã¦å
ã«ã¦ãLinux > Debian 10.x (64ããã)ã®é ã«é¸æãããç¶ããããã¯ãªãã¯ã
ã
ããã¡ã¼ã ã¦ã§ã¢ ã¿ã¤ããé¸æãã®ã¦ã¤ã³ãã¦å
ã«ã¦ããã¼ããã¡ã¼ã ã¦ã§ã¢ã®æå®ï¼ãã¯ãã¬ã¬ã·ã¼BIOSããé¸æãããç¶ããããã¯ãªãã¯ã
ã
ãä»®æ³ãã£ã¹ã¯ãé¸æãã®ã¦ã¤ã³ãã¦å
ã«ã¦ããä»®æ³ãã£ã¹ã¯ãªãã·ã§ã³ã®é¸æï¼ãã¯ãæ¢åã®ä»®æ³ãã£ã¹ã¯ã使ç¨ãã«ãã§ãã¯ãå
¥ãããä»®æ³ãã£ã¹ã¯ãé¸æ...ããã¯ãªãã¯ã
ã
Enterprise_SONiC_OS_4.1.1.vmdké¸æããä»®æ³ãã£ã¹ã¯ã®åå¥ã³ãã¼ãä½æãããã«ãã§ãã¯ãå
¥ããé¸æããã¯ãªãã¯ããä»®æ³ãã£ã¹ã¯ãé¸æãã®ã¦ã¤ã³ãã¦ã«æ»ã£ãããç¶ããããã¯ãªãã¯ã
ã
ãã£ã¹ã¯ã®ã³ãã¼ãå®è¡ãããããã£ã¹ã¯ã®ã³ãã¼ã¯æ°ç§ã§å®äºããä»®æ³ãã·ã³ã®è¨å®ã®ã¦ã¤ã³ãã¦ã表示ãããã
ãçµäºãã®ã¦ã¤ã³ãã¦å
ã«ã¦ãè¨å®ã®ã«ã¹ã¿ãã¤ãºããã¯ãªãã¯ã
ã
ãååï¼ãã«ä»»æã®æååï¼èªåã®å ´åãDELL_Enterprise_SONiC_OS_4.1.1ãã«ãããæ¡å¼µåã¯å¤æ´ããªãï¼ãå
¥åããä¿åããã¯ãªãã¯ã
ã
è¨å®é
ç®ã®ä¸è¦§ã表示ãããã
ä¸è¦§ã®ä¸ã«æããããã»ããµã¨ã¡ã¢ãªããã¯ãªãã¯ã
ã
ä»®æ³ãã·ã³ã®ããã»ããµã¨ã¡ã¢ãªã®è¨å®ã®ã¦ã¤ã³ãã¦ã表示ãããã
èªåã®å ´åã以ä¸ã®å
容ã«è¨å®ããã
ã»ããã»ããµï¼1åã®ããã»ããµ ã³ã¢
ã»ã¡ã¢ãªï¼4096MB
ã»ä¸è¨ã®è¨å®å¾ããã¹ã¦ã表示ããã¯ãªãã¯
ã
è¨å®é
ç®ã®ä¸è¦§ã«æ»ã£ãããä¸è¦§ã®ä¸ã«æãããããã¯ã¼ã¯ã¨ã¢ããã¿ããã¯ãªãã¯ã
ãããã¯ã¼ã¯ã¨ã¢ããã¿ã®è¨å®ã®ã¦ã¤ã³ãã¦ã表示ããããããã§ã¯SONiCã®ä»®æ³NICã®è¨å®ãè¡ãã
Wi-Fiã«ãã§ãã¯ãå
¥ãã詳細ãªãã·ã§ã³æ¬å
ã«ã¦ãçæããã¯ãªãã¯ãMACã¢ãã¬ã¹ãçæãããã
å®äºããããããã¤ã¹ã追å ããã¯ãªãã¯ã
ã
ã追å ããããã¤ã¹ã®é¸æï¼ãæ¬ã表示ãããã
ä»ã®ã¨ããSONiCã®ä»®æ³NICã¯1ã¤ãããªãçºãããã§NICã追å ããã
ä¸è¦§ã®ä¸ã®ããããã¯ã¼ã¯ã¢ããã¿ããã¯ãªãã¯ããã
ã
ãããã¯ã¼ã¯ã¨ã¢ããã¿ã®è¨å®ã®ã¦ã¤ã³ãã¦ã表示ãããã
LANæ¹åã®NICãæ³å®ãã¦ããçºãMacããã©ã¤ãã¼ããã«ãã§ãã¯ãå
¥ãã詳細ãªãã·ã§ã³æ¬å
ã«ã¦ãçæããã¯ãªãã¯ãMACã¢ãã¬ã¹ãçæãããã
å®äºããããããã¤ã¹ã追å ããã¯ãªãã¯ã
ä»åã¯ä»®æ³NICã8åä½æããçºãå½æé ã7åç¹°ãè¿ãå®æ½ããã
ã
è¨å®é
ç®ã®ä¸è¦§ã«æ»ãã以ä¸ã®ç»åã¯ãä»®æ³NICã8åä½æãçµããç¶æ
ã
ãã®å¾ã¯ä¸è¦ãªããã¤ã¹ãåé¤ãããSONiCã«Webã«ã¡ã©ã¯ä¸è¦ã§ããçºããã«ã¡ã©ããã¯ãªãã¯ã
ã
ãã«ã¡ã©ãåé¤ããã¯ãªãã¯ã
ãã«ã¡ã©ãåé¤ãã¾ããããã表示ããããã¦ã¤ã³ãã¦å
ã®ãåé¤ããã¯ãªãã¯ã
ã
è¨å®é
ç®ã®ä¸è¦§ã«æ»ããSONiCã«ãµã¦ã³ãã«ã¼ããä¸è¦ã§ããçºãããµã¦ã³ãã«ã¼ãããã¯ãªãã¯ã
ãã«ã¡ã©ãåãé¤ãã¾ããããã表示ããããã¦ã¤ã³ãã¦å
ã®ãåé¤ããã¯ãªãã¯ã
ã
ãããã¤ã®è¨å®ã¯ä¸æ¦å®äºã¨ãªãã
è¨å®ã®ã¦ã¤ã³ãã¦ï¼DELL_Enterprise_SONiC_4.1.1ï¼è¨å®ï¼ãéããVMware Fusionã®ã¦ã¤ã³ãã¦å
å³ä¸ã®ä¸è§ãã¿ã³ãã¯ãªãã¯ããSONiCãèµ·åãããã
ã
SONiCã®èµ·åãå®äºã
ãã°ã¤ã³IDï¼adminããã¹ã¯ã¼ãï¼YourPaSsWoRdãå
¥åãSONiCã«ãã°ã¤ã³ã
ããããã®æ®µéã§ã¯ããã¯ã°ã©ã³ãã§èµ·åã®ããã»ã¹ãåãã¦ããçºã3åç¨ãã®ã¾ã¾æ¾ç½®ããã
ã
sshdå¨ãã®è¨å®ãããããªãã¦ãããã®æ®µéã§SONiCã¸ã®sshãã°ã¤ã³ãåºæ¥ãã
IPã¢ãã¬ã¹ã¯Debian GNU/Linuxã§ãã使ãããip add sã³ãã³ããå©ãã¨è¡¨ç¤ºãããã
ãã°ã¤ã³å¾ã®ç¢ºèª
sshãã°ã¤ã³ã®å®äºå¾ãã¾ãã¯show versionã³ãã³ããå©ãSONiCã®ãã¼ã¸ã§ã³ã確èªããã
SONiCããã«ãããæ¥æãOSã®ãã¼ã¸ã§ã³ããã³SONiCã®å
é¨ã§åä½ãã¦ããåã³ã³ããã®ãã¼ã¸ã§ã³ããµã¤ãºçãåºåãããã
OSSçã®SONiCã¨ã®éã§ãã¼ã¸ã§ã³ã®å¤ã®ãã©ã¼ããããç°ãªã£ã¦ããäºãåããã
admin@sonic:~$ show version SONiC Software Version: SONiC-OS-4.1.1-Enterprise_Base Product: Enterprise SONiC Distribution by Dell Technologies Distribution: Debian 10.13 Kernel: 5.10.0-8-2-amd64 Config DB Version: version_4_1_1 Build commit: 988341d733 Build date: Mon Jul 24 13:40:05 UTC 2023 Built by: sonicbld@bld-lvn-csg-03 Platform: x86_64-kvm_x86_64-r0 HwSKU: DellEMC-S5248f-P-25G-DPB ASIC: vs ASIC Count: 1 Platform: x86_64-kvm_x86_64-r0 Serial Number: 000000 Uptime: 02:08:13 up 8 min, 2 users, load average: 2.02, 2.72, 1.75 Docker images: REPOSITORY TAG IMAGE ID SIZE docker-fpm-frr 4.1.1-Enterprise_Base 65aa7cb44f6a 517MB docker-fpm-frr latest 65aa7cb44f6a 517MB docker-iccpd 4.1.1-Enterprise_Base 4e92b4343089 493MB docker-iccpd latest 4e92b4343089 493MB docker-dhcp-relay 4.1.1-Enterprise_Base 70dbc1fd0a63 493MB docker-dhcp-relay latest 70dbc1fd0a63 493MB docker-nat 4.1.1-Enterprise_Base 54e3e777a688 492MB docker-nat latest 54e3e777a688 492MB docker-sonic-telemetry 4.1.1-Enterprise_Base b55f149a8a23 592MB docker-sonic-telemetry latest b55f149a8a23 592MB docker-lldp 4.1.1-Enterprise_Base 6e36cc7a39fb 495MB docker-lldp latest 6e36cc7a39fb 495MB docker-udld 4.1.1-Enterprise_Base fcfc748112c8 496MB docker-udld latest fcfc748112c8 496MB docker-vrrp 4.1.1-Enterprise_Base ef7712d23bdd 498MB docker-vrrp latest ef7712d23bdd 498MB docker-stp 4.1.1-Enterprise_Base bed5c1c2b5a9 493MB docker-stp latest bed5c1c2b5a9 493MB docker-sflow 4.1.1-Enterprise_Base 7fcc8350a4e9 492MB docker-sflow latest 7fcc8350a4e9 492MB docker-l2mcd 4.1.1-Enterprise_Base cedfae63e418 490MB docker-l2mcd latest cedfae63e418 490MB docker-teamd 4.1.1-Enterprise_Base aef87d7eaebd 490MB docker-teamd latest aef87d7eaebd 490MB docker-sonic-mgmt-framework 4.1.1-Enterprise_Base 8d22882d4351 655MB docker-sonic-mgmt-framework latest 8d22882d4351 655MB docker-orchagent 4.1.1-Enterprise_Base 434a94f997cd 485MB docker-orchagent latest 434a94f997cd 485MB docker-gbsyncd-vs 4.1.1-Enterprise_Base 5acefe23ee27 411MB docker-gbsyncd-vs latest 5acefe23ee27 411MB docker-platform-monitor 4.1.1-Enterprise_Base 6a8dcd157c01 618MB docker-platform-monitor latest 6a8dcd157c01 618MB docker-syncd-vs 4.1.1-Enterprise_Base 5353ab1ab547 418MB docker-syncd-vs latest 5353ab1ab547 418MB docker-router-advertiser 4.1.1-Enterprise_Base 15f0793fad91 411MB docker-router-advertiser latest 15f0793fad91 411MB docker-eventd 4.1.1-Enterprise_Base 9661414c9efb 412MB docker-eventd latest 9661414c9efb 412MB docker-snmp 4.1.1-Enterprise_Base 91976c87c7fb 434MB docker-snmp latest 91976c87c7fb 434MB docker-macsec 4.1.1-Enterprise_Base 7d8627e9e4cb 432MB docker-macsec latest 7d8627e9e4cb 432MB docker-tam 4.1.1-Enterprise_Base dd96443bad94 497MB docker-tam latest dd96443bad94 497MB docker-database 4.1.1-Enterprise_Base 22af43ab3f82 417MB docker-database latest 22af43ab3f82 417MB admin@sonic:~$
ã
ç¶ãã¦/etc/sonic/config_db.jsonãã¡ã¤ã«ãéããSONiCã®è¨å®å
容ã確èªã
OSSçã®SONiCã§ã¯BGPã®è¨å®ãæ¢ã«å
¥ã£ã¦ããããDELLçã®SONiCã§ã¯BGPã®è¨å®ãå
¥ã£ã¦ããªãäºãåããã
OSSçSONiCã§ã¯ãã®ãã¡ã¤ã«ãç·¨éãã¦BGPã®è¨å®ãè¡ã£ã¦ãããããã®ãã¡ã¤ã«ã¯ãªãã¹ã触ããvtyshã§è¨å®ãããã£ãã®ã§å¬ããã
admin@sonic:~$ sudo cat /etc/sonic/config_db.json { "CLASSIFIER_TABLE": { "class-oob-arp": { "DESCRIPTION": "", "ETHER_TYPE": "0x806", "MATCH_TYPE": "FIELDS" }, "class-oob-dhcp-client": { "DESCRIPTION": "", "ETHER_TYPE": "0x800", "IP_PROTOCOL": "17", "L4_DST_PORT": "68", "MATCH_TYPE": "FIELDS" }, "class-oob-dhcp-server": { "DESCRIPTION": "", "ETHER_TYPE": "0x800", "IP_PROTOCOL": "17", "L4_DST_PORT": "67", "MATCH_TYPE": "FIELDS" }, "class-oob-ip-multicast": { "DESCRIPTION": "", "DST_IP": "224.0.0.0/4", "ETHER_TYPE": "0x800", "MATCH_TYPE": "FIELDS" }, "class-oob-ipv6-multicast": { "DESCRIPTION": "", "DST_IPV6": "ff00::/8", "ETHER_TYPE": "0x86DD", "MATCH_TYPE": "FIELDS" } }, "COREDUMP": { "config": { "enabled": "true" } }, "DEVICE_METADATA": { "localhost": { "default_config_profile": "l3", "frr_mgmt_framework_config": "true", "hostname": "sonic", "hwsku": "DellEMC-S5248f-P-25G-DPB", "mac": "08:00:27:34:7e:78", "platform": "x86_64-kvm_x86_64-r0", "type": "LeafRouter" } }, "ECMP_LOADSHARE_TABLE_IPV4": { "ipv4": { "ipv4_dst_ip": "true", "ipv4_l4_dst_port": "true", "ipv4_l4_src_port": "true", "ipv4_protocol": "true", "ipv4_src_ip": "true" } }, "ECMP_LOADSHARE_TABLE_IPV6": { "ipv6": { "ipv6_dst_ip": "true", "ipv6_l4_dst_port": "true", "ipv6_l4_src_port": "true", "ipv6_next_hdr": "true", "ipv6_src_ip": "true" } }, "HARDWARE": { "ACCESS_LIST": { "COUNTER_MODE": "per-rule", "LOOKUP_MODE": "optimized" } }, "KDUMP": { "config": { "enabled": "true", "memory": "0M-2G:256M,2G-4G:256M,4G-8G:384M,8G-:448M", "num_dumps": "3" } }, "NEIGH_GLOBAL": { "Values": { "ipv4_arp_timeout": "1800", "ipv6_nd_cache_expiry": "1800" } }, "POLICY_BINDING_TABLE": { "CtrlPlane": { "INGRESS_QOS_POLICY": "oob-qos-policy" } }, "POLICY_SECTIONS_TABLE": { "oob-qos-policy|class-oob-arp": { "DESCRIPTION": "", "PRIORITY": "1010", "SET_POLICER_CIR": "256000" }, "oob-qos-policy|class-oob-dhcp-client": { "DESCRIPTION": "", "PRIORITY": "1020", "SET_POLICER_CIR": "512000" }, "oob-qos-policy|class-oob-dhcp-server": { "DESCRIPTION": "", "PRIORITY": "1015", "SET_POLICER_CIR": "512000" }, "oob-qos-policy|class-oob-ip-multicast": { "DESCRIPTION": "", "PRIORITY": "1000", "SET_POLICER_CIR": "256000" }, "oob-qos-policy|class-oob-ipv6-multicast": { "DESCRIPTION": "", "PRIORITY": "1005", "SET_POLICER_CIR": "256000" } }, "POLICY_TABLE": { "oob-qos-policy": { "DESCRIPTION": "QoS Ratelimiting policy for OOB port", "TYPE": "QOS" } }, "PORT": { "Ethernet0": { "admin_status": "down", "adv_speeds": "all", "alias": "Eth1/1", "autoneg": "off", "fec": "none", "index": "1", "lanes": "49", "link_training": "off", "mtu": "9100", "speed": "25000", "unreliable_los": "auto" }, "Ethernet1": { "admin_status": "down", "adv_speeds": "all", "alias": "Eth1/2", "autoneg": "off", "fec": "none", "index": "2", "lanes": "50", "link_training": "off", "mtu": "9100", "speed": "25000", "unreliable_los": "auto" }, ï¼ çç¥ ï¼ "Ethernet76": { "admin_status": "down", "adv_speeds": "all", "alias": "Eth1/56", "autoneg": "off", "fec": "none", "index": "56", "lanes": "41,42,43,44", "link_training": "off", "mtu": "9100", "speed": "100000", "unreliable_los": "auto", "valid_speeds": "100000, 40000" } }, "SWITCH": { "switch": { "fdb_aging_time": "600" } }, "VERSIONS": { "DATABASE": { "VERSION": "version_4_1_1" } } } admin@sonic:~$
ã
ç¶ãã¦/etc/sonic/frr/bgpd.confãã¡ã¤ã«ãéããSONiCã®FRRã®è¨å®å
容ã確èªã
BGPã®è¨å®ã¯æå
¥ãã¦ããªãçºãä»ã®æ®µéã§ã¯BGPã®è¨å®ã«é¢ããè¨è¼ã¯ç¡ãã
/etc/sonic/frr/bgpd.confãã¡ã¤ã«ã®ä¸ã«Managed by sonic-cfggen DO NOT edit manually! ã®è¨è¼ãæãã¨ããã管çè
ããã®ãã¡ã¤ã«ãç´æ¥ç·¨éããäºã¯ç¡ãã
admin@sonic:~$ sudo cat /etc/sonic/frr/bgpd.conf ! ! =========== Managed by sonic-cfggen DO NOT edit manually! ==================== ! generated by templates/quagga/bgpd.conf.j2 with config DB data ! file: bgpd.conf ! ! ! template: common/daemons.common.conf.j2 ! hostname sonic password zebra enable password zebra ! log syslog informational log facility local4 !! agentx ! ! end of template: common/daemons.common.conf.j2! ! admin@sonic:~$
ã
vtyshã³ãã³ããå©ããvtyshã¢ã¼ãã«ç§»è¡ããã¨...
GNU Zebraããã³ZebOSã®éçºè
ã§ããOcNOSãéçºã»è²©å£²ãã¦ããIP Infusion社ã®åµç«è
ã§ãããç³é»æ°ã®ååãåºåãããã
admin@sonic:~$ vtysh Hello, this is FRRouting (version 8.2.2). Copyright 1996-2005 Kunihiro Ishiguro, et al. sonic#
ã
ããããæ
£ã親ããã§ãã(?)Cisco IOSã©ã¤ã¯ãªã³ãã³ããå©ãäºãåºæ¥ãã
show versionã³ãã³ããå©ãã¨FRRã®ãã¼ã¸ã§ã³ãåºåãããã
sonic# show version FRRouting 8.2.2 (sonic). Copyright 1996-2005 Kunihiro Ishiguro, et al. configured with: '--build=x86_64-linux-gnu' '--prefix=/usr' '--includedir=${prefix}/include' '--mandir=${prefix}/share/man' '--infodir=${prefix}/share/info' '--sysconfdir=/etc' '--localstatedir=/var' '--disable-option-checking' '--disable-silent-rules' '--libdir=${prefix}/lib/x86_64-linux-gnu' '--libexecdir=${prefix}/lib/x86_64-linux-gnu' '--disable-maintainer-mode' '--localstatedir=/var/run/frr' '--sbindir=/usr/lib/frr' '--sysconfdir=/etc/frr' '--with-vtysh-pager=/usr/bin/pager' '--libdir=/usr/lib/x86_64-linux-gnu/frr' '--with-moduledir=/usr/lib/x86_64-linux-gnu/frr/modules' '--disable-dependency-tracking' '--disable-rpki' '--disable-scripting' '--with-libpam' '--enable-doc' '--enable-doc-html' '--enable-snmp' '--enable-fpm' '--enable-iptrackd' '--disable-protobuf' '--disable-zeromq' '--disable-isisd' '--disable-eigrpd' '--disable-ldpd' '--disable-ripd' '--disable-ripngd' '--disable-ospf6d' '--disable-babeld' '--disable-vrrpd' '--disable-fabricd' '--enable-ospfapi' '--disable-ospfclient' '--disable-bgp-vnc' '--disable-pbrd' '--disable-nhrpd' '--disable-watchfrr' '--enable-multipath=256' '--enable-user=frr' '--enable-group=frr' '--enable-vty-group=frrvty' '--enable-configfile-mask=0640' '--enable-logfile-mask=0640' 'build_alias=x86_64-linux-gnu' 'PYTHON=python3' sonic#
ã
ç¶ãã¦show running-configã³ãã³ããå©ãã
Ciscoã«ã¼ã¿ã®running-configã®ãããªå½¢ã§FRRã®è¨å®å
容ãåºåãããã
sonic# show run Building configuration... Current configuration: ! frr version 8.2.2 frr defaults traditional hostname sonic log syslog informational log facility local4 agentx no service integrated-vtysh-config ! password zebra enable password zebra ! end sonic#
ã
ç¶ãã¦show ip routeã³ãã³ããå©ãã
èªæ©ã«ç´æ¥æ¥ç¶ãã¦ãããããã¯ã¼ã¯ã¨ãSONiCã®ã«ã¼ãã«ã§ä¿æãã¦ããã«ã¼ãæ
å ±ãåºåãããã
sonic# show ip route Codes: K - kernel route, C - connected, S - static, O - OSPF, B - BGP, T - Table, > - selected route, * - FIB route, q - queued route, r - rejected route, b - backup t - trapped, o - offload failure K>* 0.0.0.0/0 [0/202] via 192.168.3.1, eth0, 00:06:03 C>* 192.168.3.0/24 is directly connected, eth0, 00:06:03 sonic# sonic# exit admin@sonic:~$
ã
æå¾ã«ãsonic-cliã³ãã³ããå©ãklishã¢ã¼ãã«å
¥ãã
ä¸è¨ã®vtyshã¨åæ§ã«Cisco IOSã©ã¤ã¯ãªã³ãã³ãã®å®è¡ãå¯è½ã§ããã
å½è¨äºã®ä½æã®ãã£ããã¨ãªã£ãã®ã¯ãOSSçã®SONiCã§sonic-cliãå©ãããå®è¡å¯è½ãªã³ãã³ããå°ãªãã£ãããåç¨çã®SONiCã ã£ãããã£ã¨å¤ãã®ã³ãã³ããæã¦ãã®ã確èªãããã£ãçºã
admin@sonic:~$ sonic-cli sonic# sonic# show version Software Version : 4.1.1-Enterprise_Base Product : Enterprise SONiC Distribution by Dell Technologies Distribution : Debian 10.13 Kernel : 5.10.0-8-2-amd64 Config DB Version : version_4_1_1 Build Commit : 988341d733 Build Date : Mon Jul 24 13:40:05 UTC 2023 Built By : sonicbld@bld-lvn-csg-03 Platform : x86_64-kvm_x86_64-r0 HwSKU : DellEMC-S5248f-P-25G-DPB ASIC : vs Serial Number : Uptime : 04:45:35 up 2 min, 2 users, load average: 8.03, 4.49, 1.75 REPOSITORY TAG IMAGE ID SIZE docker-database 4.1.1-Enterprise_Base 22af43ab3f82 417MB docker-database latest 22af43ab3f82 417MB docker-dhcp-relay 4.1.1-Enterprise_Base 70dbc1fd0a63 493MB docker-dhcp-relay latest 70dbc1fd0a63 493MB docker-eventd 4.1.1-Enterprise_Base 9661414c9efb 412MB docker-eventd latest 9661414c9efb 412MB docker-fpm-frr 4.1.1-Enterprise_Base 65aa7cb44f6a 517MB docker-fpm-frr latest 65aa7cb44f6a 517MB ï¼ çç¥ ï¼ docker-vrrp 4.1.1-Enterprise_Base ef7712d23bdd 498MB docker-vrrp latest ef7712d23bdd 498MB sonic#
ã
sonic-cliã¢ã¼ãã«ç§»è¡å¾ï¼ãã¼ãå©ãã¨å¤ãã®ã³ãã³ããåºåãããã
OSSçSONiCã¨ã¯ç°ãªããDELLçã®SONiCã§ã¯ããå¤ãã®ã³ãã³ããå®è¡åºæ¥ãäºããããã
admin@sonic:~$ sonic-cli sonic# sonic# ? clear Clear commands configure Enter configuration mode consistency-check Performs consistency check copy Perform file operations crypto Configure PKI debug Enter debugsh mode delete Delete the file from local filesystem dir Show folder contents exit Exit from the CLI fast-reboot fast-reboot image Image related commands interface interfaces Utility locator-led Locator Chassis LED Utility logger Enter messages into the system log ls Show folder contents no No commands under Exec mode ping Send ICMP ECHO_REQUEST to network hosts ping6 Send ICMPv6 ECHO_REQUEST to network hosts poe Reset PoE Port(s) reboot reboot renew Renew commands show Display running system information terminal Set terminal settings test Run diagnostics test program tpcm SONiC image installation manager traceroute Print the route packets take to the host traceroute6 Print the route packets take to the IPv6 host usb Mount or un-mount usb partitions warm-reboot warm-reboot write Save config sonic#
ã
Configã¢ã¼ãã«ç§»è¡ãï¼ãã¼ãå©ãã¨ãOSSçSONiCããå¤ãã®è¨å®ã³ãã³ããç¨æããã¦ããäºãåããã
sonic# sonic# configure terminal sonic(config)# ? aaa AAA configuration authentication Configure authentication modes bfd Configure BFD peers bgp Configure BGP instances class-map Configures class-map clock Configure clock copp-action Configure a CoPP action group core Configure coredump counters counters config crm Configure critical resource monitoring crypto Configure PKI default Apply default configuration dot1x Configure dot1x parameters. dropcounters Configure dropcounters 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 Configure kdump parameters key Configure primary encryption key ldap-server Configure LDAP server line Session configuration link Create link state tracking group lldp LLDP configuration subcommands logging Configure syslog mab Configure MAB properties. mac Configure Media Access Control (MAC) mclag Configure MCLAG mirror-session Mirror session configuration nat Enter NAT configuration network-policy Network-policy configuration mode no Remove current configuration ntp Configure NTP servers pbf Policy based forwarding poe PoE configuration policy-map Configures policy-map port-group Port group configurations portchannel Configure PortChannel parameters priority-flow-control PFC configuration ptp Configure precision time protocol settings qos QoS Configuration radius-server Configure RADIUS client radv Enable Sonic Router Advertisement redirect Configure parameters for redirect roce Enable RoCEv2 default buffer configuration route-map Configure routing policies router Enter router mode service-policy Apply policy-map to interface sflow Configure sFlow snmp-server SNMP server configuration spanning-tree Spanning tree configuration ssh-server Configure SSH server suppress-fib-pending Suppresses newly learned BGP routes advertisement until programmed in hardware switch-resource Switch Resource Configuration swsslog SONiC logging severity level setting system System level configuration tacacs-server Configure TACACS servers tam Telemetry and monitoring configuration techsupport-export Configure techsupport export threshold Configure threshold for buffer pool. udld UDLD configuration usb Configure usb parameters username Add new user watermark Configure watermark ztp Configure ZTP sonic(config)# end sonic#
ä»åã¯ããã¾ã§ã
製åçã®SONiCã試ç¨ããçºã«DELLçã®SONiCã§ããEnterprise SONiC OSãVMware Fusionã«ãããã¤ããè¨å®ãã¡ã¤ã«ã®ãã©è¦ãã¢ã¼ãã®ç§»è¡ã試ãã¦ã¿ãã
ãããã¤ç´å¾ã®ç¶æ
ã§ã¯OSSçã®SONiCã¨ã¯ç°ãªãBGPã®è¨å®ã¯å
¥ã£ã¦ããªãçºãæ¢åã®BGPã®è¨å®ã®ä½¿ãåããåé¤çãå®æ½ããå¿
è¦ã¯ç¡ãã®ã§å人çã«ã¯ãã£ã¡ã®æ¹ã好ã¿ã§ã¯ããã
ä»åã¯ãããã¤ã¨vtyshããã³sonic-cliã¢ã¼ãã¸ã®ç§»è¡ã¾ã§ã®å®æ½ã¨ãããã次åã¯OcNOSã¨ã®éã§BGPã®ãã¢ãå¼µãçåä½ç¢ºèªãè¡ãããã
åç
§ãµã¤ã
https://sonicfoundation.dev/ãSONiC Foundation
https://infohub.delltechnologies.com/en-us/p/enterprise-sonic-distribution-by-dell-technologies/ãEnterprise SONiC Distribution by Dell Technologies
https://www.dell.com/support/home/ja-jp/product-support/product/enterprise-sonic-distribution/driversãDELL Enterprise NOS
https://infohub.delltechnologies.com/en-us/l/enterprise-sonic-distribution-by-dell-technologies-lifecycle-management/sonic-documentation-1/ãSONiC Documentation â»SONiCæ¬å®¶ã®ããã¥ã¡ã³ããµã¤ãã¸ã®ãªã³ã¯
https://support.edge-core.com/hc/en-us/categories/360002134713-Enterprise-SONiC-Distribution-by-EdgecoreãEdgecoreçSONiC
https://www.nvidia.com/ja-jp/networking/ethernet-switching/sonic/ãNVIDIAçSONiC
https://jp.broadcom.com/products/ethernet-connectivity/software/enterprise-sonicãBroadcomçSONiC
ã
SONiCã®é¢é£è¨äº
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/20210627/1624789102 SONiCã®è§£èª¬åç»ãâ»åç¨çåã?
https://debslink.hatenadiary.jp/entry/20210822/1629600666 SONiCã¨Cumulus Linuxã§BGP unnumbered
https://debslink.hatenadiary.jp/entry/20210902/1630584311 SONiCã¨Cumulus Linuxã§BGP/EVPN/VXLAN
https://debslink.hatenadiary.jp/entry/20210912/1631418907 SONiCã¨Cumulus Linuxã§4byte ASãªBGP + IP Closæ§æ
https://debslink.hatenadiary.jp/entry/20220122/1642852049 SONiCã§L2 MC-LAGãçµãã§ã¿ã
ã
ã