{"id":9982,"date":"2022-10-09T00:43:53","date_gmt":"2022-10-09T07:43:53","guid":{"rendered":"https:\/\/www.xh86.me\/?p=9982"},"modified":"2022-10-09T00:43:53","modified_gmt":"2022-10-09T07:43:53","slug":"cisco-vss%e7%ae%80%e6%98%93%e9%85%8d%e7%bd%ae%e5%90%91%e5%af%bc","status":"publish","type":"post","link":"https:\/\/www.xh86.me\/?p=9982","title":{"rendered":"Cisco VSS\u7b80\u6613\u914d\u7f6e\u5411\u5bfc"},"content":{"rendered":"<p>VSS\u662f\u601d\u79d1\u7684\u4e00\u79cd\u4ea4\u6362\u673a\u96c6\u7fa4\u6280\u672f\uff0c\u53ef\u5c06\u4e24\u53f0\u7269\u7406\u4ea4\u6362\u673a\u865a\u62df\u6210\u4e00\u53f0\u903b\u8f91\u4ea4\u6362\u673a\u3002\u4e24\u53f0\u7269\u7406\u4ea4\u6362\u673a\u901a\u8fc7VSL\u94fe\u8def\u8fde\u63a5\uff0c\u7528\u4e8e\u627f\u8f7d\u63a7\u5236\u5e73\u9762\u548c\u8f6c\u53d1\u5e73\u9762\u6d41\u91cf\u3002\u672c\u6587\u4ee5\u4e24\u53f0Catalyst 4500\u4e3a\u4f8b\uff0c\u5c55\u793a\u5982\u4f55\u914d\u7f6eVSS\u3002<\/p>\n<p><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/www.eflytop.com\/post-images\/1631004932961.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  decoding=\"async\" data-original=\"https:\/\/www.eflytop.com\/post-images\/1631004932961.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"\" \/><\/div><br \/>\n\u540d\u8bcd\uff1a<br \/>\nVSS &#8211; Virtual Switching System<br \/>\nVSL &#8211; Virtual Switch Link<\/p>\n<p>\u914d\u7f6e\u6b65\u9aa4\uff1a<\/p>\n<h5 id=\"1-\u914d\u7f6evirtual-switch-domain\u548cswitch-numbers\">1. \u914d\u7f6eVirtual Switch Domain\u548cSwitch Numbers<\/h5>\n<p>\u9996\u5148\uff0c\u60a8\u987b\u5728 VSS \u7684\u4e24\u53f0\u4ea4\u6362\u673a\u4e0a\u914d\u7f6e\u76f8\u540c\u7684Virtual Switch Domain\u3002Virtual Switch Domain\u662f1\u5230255\u4e4b\u95f4\u7684\u6570\u5b57\u3002\u7136\u540e\u60a8\u987b\u5c06\u4e00\u53f0\u4ea4\u6362\u673a\u914d\u7f6e\u4e3aSwitch Number 1\uff0c\u53e6\u4e00\u53f0\u4ea4\u6362\u673a\u914d\u7f6e\u4e3aSwitch Number 2\u3002<\/p>\n<pre><code class=\"hljs language-python\">SW1<span class=\"hljs-comment\">#conf t<\/span>\r\nEnter configuration commands, one per line. End <span class=\"hljs-keyword\">with<\/span> CNTL\/Z.\r\nSW1(config)<span class=\"hljs-comment\">#switch virtual domain 10<\/span>\r\nDomain ID <span class=\"hljs-number\">10<\/span> config will take effect only\r\nafter the <span class=\"hljs-built_in\">exec<\/span> command <span class=\"hljs-string\">'switch convert mode virtual'<\/span> <span class=\"hljs-keyword\">is<\/span> issued\r\nSW1(config-vs-domain)<span class=\"hljs-comment\">#switch 1<\/span>\r\nSW1(config-vs-domain)<span class=\"hljs-comment\">#exit<\/span>\r\nSW1(config)<span class=\"hljs-comment\">#<\/span>\r\n<\/code><\/pre>\n<pre><code class=\"hljs language-python\">SW2<span class=\"hljs-comment\">#conf t<\/span>\r\nEnter configuration commands, one per line. End <span class=\"hljs-keyword\">with<\/span> CNTL\/Z.\r\nSW2(config)<span class=\"hljs-comment\">#switch virtual domain 10<\/span>\r\nDomain ID <span class=\"hljs-number\">10<\/span> config will take effect only\r\nafter the <span class=\"hljs-built_in\">exec<\/span> command <span class=\"hljs-string\">'switch convert mode virtual'<\/span> <span class=\"hljs-keyword\">is<\/span> issued\r\nSW2(config-vs-domain)<span class=\"hljs-comment\">#switch 2<\/span>\r\nSW2(config-vs-domain)<span class=\"hljs-comment\">#exit<\/span>\r\nSW2(config)<span class=\"hljs-comment\">#<\/span>\r\n<\/code><\/pre>\n<h5 id=\"2-\u914d\u7f6evsl-portchannel\">2. \u914d\u7f6eVSL PortChannel<\/h5>\n<p>\u60a8\u9700\u8981\u5728\u6bcf\u53f0\u4ea4\u6362\u673a\u4e0a\u4f7f\u7528PortChannel\u914d\u7f6e VSL\u3002PortChannel\u53f7\u9700\u8981\u4e0d\u4e00\u6837\uff0c\u5426\u5219VSS\u4e0d\u80fd\u6b63\u5e38\u5efa\u7acb\u5c06\u8fdb\u5165 RPR \u6a21\u5f0f\u3002\u4e3a\u907f\u514d\u8fd9\u79cd\u60c5\u51b5\uff0c\u8bf7\u4e3a\u4e24\u4e2a\u4ea4\u6362\u673a\u4e0a\u7684\u4e24\u4e2aPortChannel\u5206\u914d\u4e0d\u540c\u7f16\u53f7\u3002<\/p>\n<pre><code class=\"hljs language-scss\"><span class=\"hljs-built_in\">SW1<\/span>(config)<span class=\"hljs-selector-id\">#int<\/span> port-channel <span class=\"hljs-number\">5<\/span>\r\n<span class=\"hljs-built_in\">SW1<\/span>(config-if)<span class=\"hljs-selector-id\">#switchport<\/span>\r\n<span class=\"hljs-built_in\">SW1<\/span>(config-if)<span class=\"hljs-selector-id\">#switch<\/span> virtual link <span class=\"hljs-number\">1<\/span>\r\n<span class=\"hljs-built_in\">SW1<\/span>(config-if)<span class=\"hljs-selector-id\">#no<\/span> shut\r\n<span class=\"hljs-built_in\">SW1<\/span>(config-if)<span class=\"hljs-selector-id\">#exit<\/span>\r\n*Jan <span class=\"hljs-number\">24<\/span> <span class=\"hljs-number\">05<\/span>:<span class=\"hljs-number\">19<\/span>:<span class=\"hljs-number\">57.092<\/span>: %SPANTREE-<span class=\"hljs-number\">6<\/span>-PORTDEL_ALL_VLANS: Port-channel5 deleted from all Vlans\r\n<\/code><\/pre>\n<pre><code class=\"hljs language-scss\"><span class=\"hljs-built_in\">SW2<\/span>(config)<span class=\"hljs-selector-id\">#int<\/span> port-channel <span class=\"hljs-number\">10<\/span>\r\n<span class=\"hljs-built_in\">SW2<\/span>(config-if)<span class=\"hljs-selector-id\">#switchport<\/span>\r\n<span class=\"hljs-built_in\">SW2<\/span>(config-if)<span class=\"hljs-selector-id\">#switch<\/span> virtual link <span class=\"hljs-number\">2<\/span>\r\n<span class=\"hljs-built_in\">SW2<\/span>(config-if)<span class=\"hljs-selector-id\">#no<\/span> shut\r\n<span class=\"hljs-built_in\">SW2<\/span>(config-if)<span class=\"hljs-selector-id\">#exit<\/span>\r\n<span class=\"hljs-built_in\">SW2<\/span>(config)#\r\n*Jan <span class=\"hljs-number\">24<\/span> <span class=\"hljs-number\">05<\/span>:<span class=\"hljs-number\">14<\/span>:<span class=\"hljs-number\">17.273<\/span>: %SPANTREE-<span class=\"hljs-number\">6<\/span>-PORTDEL_ALL_VLANS: Port-channel10 deleted from all Vlans\r\n<\/code><\/pre>\n<h5 id=\"3-\u914d\u7f6evsl\u7aef\u53e3\">3. \u914d\u7f6eVSL\u7aef\u53e3<\/h5>\n<p>\u5c06 VSL \u7269\u7406\u7aef\u53e3\u6dfb\u52a0\u5230PortChannel\u3002\u5728\u4ee5\u4e0b\u793a\u4f8b\u4e2d\uff0cSwitch 1\u4e0a\u7684Gi7\/3\u548cGi7\/4\u63a5\u53e3\u8fde\u63a5\u5230Switch 2\u4e0a\u7684Gi4\/45\u548cGi4\/46\u63a5\u53e3\u3002<\/p>\n<pre><code class=\"hljs language-sql\">SW1(config)#<span class=\"hljs-type\">int<\/span> <span class=\"hljs-keyword\">range<\/span> gig7<span class=\"hljs-operator\">\/<\/span><span class=\"hljs-number\">3<\/span> <span class=\"hljs-operator\">-<\/span> <span class=\"hljs-number\">4<\/span>\r\nSW1(config<span class=\"hljs-operator\">-<\/span>if<span class=\"hljs-operator\">-<\/span><span class=\"hljs-keyword\">range<\/span>)#switchport mode trunk\r\nSW1(config<span class=\"hljs-operator\">-<\/span>if<span class=\"hljs-operator\">-<\/span><span class=\"hljs-keyword\">range<\/span>)#channel<span class=\"hljs-operator\">-<\/span><span class=\"hljs-keyword\">group<\/span> <span class=\"hljs-number\">5<\/span> mode <span class=\"hljs-keyword\">on<\/span>\r\nWARNING: Interface GigabitEthernet7<span class=\"hljs-operator\">\/<\/span><span class=\"hljs-number\">3<\/span> placed <span class=\"hljs-keyword\">in<\/span> restricted config mode. <span class=\"hljs-keyword\">All<\/span> extraneous configs removed<span class=\"hljs-operator\">!<\/span>\r\nWARNING: Interface GigabitEthernet7<span class=\"hljs-operator\">\/<\/span><span class=\"hljs-number\">4<\/span> placed <span class=\"hljs-keyword\">in<\/span> restricted config mode. <span class=\"hljs-keyword\">All<\/span> extraneous configs removed<span class=\"hljs-operator\">!<\/span>\r\nSW1(config<span class=\"hljs-operator\">-<\/span>if<span class=\"hljs-operator\">-<\/span><span class=\"hljs-keyword\">range<\/span>)#exit\r\n<\/code><\/pre>\n<pre><code class=\"hljs language-sql\">SW2(config)#<span class=\"hljs-type\">int<\/span> <span class=\"hljs-keyword\">range<\/span> gig4<span class=\"hljs-operator\">\/<\/span><span class=\"hljs-number\">45<\/span> <span class=\"hljs-operator\">-<\/span> <span class=\"hljs-number\">46<\/span>\r\nSW2(config<span class=\"hljs-operator\">-<\/span>if<span class=\"hljs-operator\">-<\/span><span class=\"hljs-keyword\">range<\/span>)#switchport mode trunk\r\nSW2(config<span class=\"hljs-operator\">-<\/span>if<span class=\"hljs-operator\">-<\/span><span class=\"hljs-keyword\">range<\/span>)#channel<span class=\"hljs-operator\">-<\/span><span class=\"hljs-keyword\">group<\/span> <span class=\"hljs-number\">10<\/span> mode <span class=\"hljs-keyword\">on<\/span>\r\nWARNING: Interface GigabitEthernet4<span class=\"hljs-operator\">\/<\/span><span class=\"hljs-number\">45<\/span> placed <span class=\"hljs-keyword\">in<\/span> restricted config mode. <span class=\"hljs-keyword\">All<\/span> extraneous configs removed<span class=\"hljs-operator\">!<\/span>\r\nWARNING: Interface GigabitEthernet4<span class=\"hljs-operator\">\/<\/span><span class=\"hljs-number\">46<\/span> placed <span class=\"hljs-keyword\">in<\/span> restricted config mode. <span class=\"hljs-keyword\">All<\/span> extraneous configs removed<span class=\"hljs-operator\">!<\/span>\r\nSW2(config<span class=\"hljs-operator\">-<\/span>if<span class=\"hljs-operator\">-<\/span><span class=\"hljs-keyword\">range<\/span>)#exit\r\n<\/code><\/pre>\n<p>\u6ce8\u610f\uff1a\u4e00\u65e6\u4f7f\u7528\u201cchannel-group\u201d\u547d\u4ee4\u5c06\u63a5\u53e3\u653e\u5165VSL\u7aef\u53e3\u901a\u9053\uff0c\u5219\u63a5\u53e3\u8fdb\u5165\u201cnotconnect\u201d\u72b6\u6001\u3002Interface status\u663e\u793a\u4e3aUP\uff0c\u4f46line protocol\u5c06down\u3002\u63a5\u53e3\u5c06\u5904\u4e8eup\/down\u72b6\u6001\uff0c\u76f4\u5230\u4ea4\u6362\u673a\u5728\u6b65\u9aa4 4 \u4e2d\u91cd\u65b0\u542f\u52a8\u3002<\/p>\n<h5 id=\"4-\u5207\u6362\u4ea4\u6362\u673a\u81f3virtual-switch\u6a21\u5f0f\">4. \u5207\u6362\u4ea4\u6362\u673a\u81f3Virtual Switch\u6a21\u5f0f<\/h5>\n<p>\u5728switch 1\u4e0a\u8f93\u5165<code>switch convert mode virtual<\/code>\u547d\u4ee4\u5c06\u4ea4\u6362\u673a\u8f6c\u6362\u4e3a Virtual Switch\u6a21\u5f0f\u3002\u7cfb\u7edf\u521b\u5efa\u4e00\u4e2a\u8f6c\u6362\u540e\u7684\u914d\u7f6e\u6587\u4ef6\uff0c\u5e76\u5c06\u914d\u7f6e\u6587\u4ef6\u4fdd\u5b58\u5230bootflash\uff0c\u5e76\u81ea\u52a8\u91cd\u542f\u3002<\/p>\n<pre><code class=\"hljs language-vbnet\">SW1#switch convert mode virtual \r\n\r\nThis command will convert all <span class=\"hljs-keyword\">interface<\/span> names\r\n<span class=\"hljs-keyword\">to<\/span> naming convention <span class=\"hljs-string\">\"interface-type switch-number\/slot\/port\"<\/span>,\r\nsave the running config <span class=\"hljs-keyword\">to<\/span> startup-config <span class=\"hljs-built_in\">and<\/span>\r\nreload the switch.\r\n<span class=\"hljs-keyword\">Do<\/span> you want <span class=\"hljs-keyword\">to<\/span> proceed? [yes\/no]: yes\r\nConverting <span class=\"hljs-keyword\">interface<\/span> names\r\nBuilding configuration...\r\nCompressed configuration <span class=\"hljs-keyword\">from<\/span> <span class=\"hljs-number\">6551<\/span> bytes <span class=\"hljs-keyword\">to<\/span> <span class=\"hljs-number\">2893<\/span> bytes[OK]\r\nSaving converted configuration <span class=\"hljs-keyword\">to<\/span> bootflash: ...\r\nDestination filename [startup-config.converted_vs-<span class=\"hljs-number\">20130124<\/span>-<span class=\"hljs-number\">062921<\/span>]?\r\nPlease stand <span class=\"hljs-keyword\">by<\/span> <span class=\"hljs-keyword\">while<\/span> rebooting the system...\r\nRestarting system. \r\n\r\nRommon (G) Signature verification PASSED  \r\nRommon (P) Signature verification PASSED  \r\nFPGA   (P) Signature verification PASSED\r\n<\/code><\/pre>\n<p>\u540c\u6837\u7684\u64cd\u4f5c\u547d\u4ee4\u5c06switch 2\u8f6c\u6362\u4e3aVirtual Switch\u6a21\u5f0f\uff1a<\/p>\n<pre><code class=\"hljs language-vbnet\">SW2#switch convert mode virtual\u200b \r\n\r\nThis command will convert all <span class=\"hljs-keyword\">interface<\/span> names\r\n<span class=\"hljs-keyword\">to<\/span> naming convention <span class=\"hljs-string\">\"interface-type switch-number\/slot\/port\"<\/span>,\r\nsave the running config <span class=\"hljs-keyword\">to<\/span> startup-config <span class=\"hljs-built_in\">and<\/span>\r\nreload the switch.\r\n<span class=\"hljs-keyword\">Do<\/span> you want <span class=\"hljs-keyword\">to<\/span> proceed? [yes\/no]: yes\r\nConverting <span class=\"hljs-keyword\">interface<\/span> names\r\nBuilding configuration...\r\nCompressed configuration <span class=\"hljs-keyword\">from<\/span> <span class=\"hljs-number\">6027<\/span> bytes <span class=\"hljs-keyword\">to<\/span> <span class=\"hljs-number\">2774<\/span> bytes[OK]\r\nSaving converted configuration <span class=\"hljs-keyword\">to<\/span> bootflash: ...\r\nDestination filename [startup-config.converted_vs-<span class=\"hljs-number\">20130124<\/span>-<span class=\"hljs-number\">052526<\/span>]?\r\nPlease stand <span class=\"hljs-keyword\">by<\/span> <span class=\"hljs-keyword\">while<\/span> rebooting the system...\r\nRestarting system. \r\n\r\nRommon (G) Signature verification PASSED  \r\nRommon (P) Signature verification PASSED  \r\nFPGA   (P) Signature verification PASSED \r\n<\/code><\/pre>\n<p>\u91cd\u542f\u5b8c\u6bd5\u540e\u4ea4\u6362\u673a\u5c06\u5904\u4e8eVirtual Switch\u6a21\u5f0f\uff0c\u53ef\u4ee5\u901a\u8fc7\u5982\u4e0b\u547d\u4ee4\u9a8c\u8bc1\u3002<\/p>\n<ul>\n<li><code>show switch virtual<\/code>\u00a0\u67e5\u8be2virtual switch domain number\u548cswitch number\u53ca\u89d2\u8272\uff08Active or Standby\uff09\u3002<\/li>\n<\/ul>\n<pre><code class=\"hljs language-typescript\"><span class=\"hljs-title class_\">SW1<\/span>#sh <span class=\"hljs-keyword\">switch<\/span> virtual \r\n\r\n<span class=\"hljs-title class_\">Executing<\/span> the command on <span class=\"hljs-variable constant_\">VSS<\/span> member <span class=\"hljs-keyword\">switch<\/span> role = <span class=\"hljs-variable constant_\">VSS<\/span> <span class=\"hljs-title class_\">Active<\/span>, id = <span class=\"hljs-number\">1<\/span> \r\n\r\n<span class=\"hljs-title class_\">Switch<\/span> mode                  : <span class=\"hljs-title class_\">Virtual<\/span> <span class=\"hljs-title class_\">Switch<\/span>\r\n<span class=\"hljs-title class_\">Virtual<\/span> <span class=\"hljs-keyword\">switch<\/span> domain <span class=\"hljs-built_in\">number<\/span> : <span class=\"hljs-number\">10<\/span>\r\n<span class=\"hljs-title class_\">Local<\/span> <span class=\"hljs-keyword\">switch<\/span> <span class=\"hljs-built_in\">number<\/span>          : <span class=\"hljs-number\">1<\/span>\r\n<span class=\"hljs-title class_\">Local<\/span> <span class=\"hljs-keyword\">switch<\/span> operational <span class=\"hljs-attr\">role<\/span>: <span class=\"hljs-title class_\">Virtual<\/span> <span class=\"hljs-title class_\">Switch<\/span> <span class=\"hljs-title class_\">Active<\/span>\r\n<span class=\"hljs-title class_\">Peer<\/span> <span class=\"hljs-keyword\">switch<\/span> <span class=\"hljs-built_in\">number<\/span>           : <span class=\"hljs-number\">2<\/span>\r\n<span class=\"hljs-title class_\">Peer<\/span> <span class=\"hljs-keyword\">switch<\/span> operational role : <span class=\"hljs-title class_\">Virtual<\/span> <span class=\"hljs-title class_\">Switch<\/span> <span class=\"hljs-title class_\">Standby<\/span> \r\n\r\n<span class=\"hljs-title class_\">Executing<\/span> the command on <span class=\"hljs-variable constant_\">VSS<\/span> member <span class=\"hljs-keyword\">switch<\/span> role = <span class=\"hljs-variable constant_\">VSS<\/span> <span class=\"hljs-title class_\">Standby<\/span>, id = <span class=\"hljs-number\">2<\/span>  \r\n\r\n<span class=\"hljs-title class_\">Switch<\/span> mode                  : <span class=\"hljs-title class_\">Virtual<\/span> <span class=\"hljs-title class_\">Switch<\/span>\r\n<span class=\"hljs-title class_\">Virtual<\/span> <span class=\"hljs-keyword\">switch<\/span> domain <span class=\"hljs-built_in\">number<\/span> : <span class=\"hljs-number\">10<\/span>\r\n<span class=\"hljs-title class_\">Local<\/span> <span class=\"hljs-keyword\">switch<\/span> <span class=\"hljs-built_in\">number<\/span>          : <span class=\"hljs-number\">2<\/span>\r\n<span class=\"hljs-title class_\">Local<\/span> <span class=\"hljs-keyword\">switch<\/span> operational <span class=\"hljs-attr\">role<\/span>: <span class=\"hljs-title class_\">Virtual<\/span> <span class=\"hljs-title class_\">Switch<\/span> <span class=\"hljs-title class_\">Standby<\/span>\r\n<span class=\"hljs-title class_\">Peer<\/span> <span class=\"hljs-keyword\">switch<\/span> <span class=\"hljs-built_in\">number<\/span>           : <span class=\"hljs-number\">1<\/span>\r\n<span class=\"hljs-title class_\">Peer<\/span> <span class=\"hljs-keyword\">switch<\/span> operational role : <span class=\"hljs-title class_\">Virtual<\/span> <span class=\"hljs-title class_\">Switch<\/span> <span class=\"hljs-title class_\">Active<\/span>\r\n<\/code><\/pre>\n<ul>\n<li>Standby Switch\u7528console\u767b\u5f55\u540e\u65e0\u6cd5\u67e5\u770b\u548c\u4fee\u6539\u914d\u7f6e\uff0c\u4ec5\u80fd\u770b\u5230\u5982\u4e0b\u63d0\u793a\uff1a<\/li>\n<\/ul>\n<pre><code class=\"hljs language-javascript\"><span class=\"hljs-title class_\">SW2<\/span>-standby&gt; \r\n<span class=\"hljs-title class_\">Standby<\/span> <span class=\"hljs-variable language_\">console<\/span> disabled\r\n<\/code><\/pre>\n<ul>\n<li><code>show switch virtual role'<\/code>\u67e5\u770b\u4ea4\u6362\u673a\u8be6\u7ec6\u89d2\u8272\u4fe1\u606f\uff1a<\/li>\n<\/ul>\n<pre><code class=\"hljs language-sql\">SW1#sh switch virtual role \r\n\r\nExecuting the command <span class=\"hljs-keyword\">on<\/span> VSS <span class=\"hljs-keyword\">member<\/span> switch role <span class=\"hljs-operator\">=<\/span> VSS Active, id <span class=\"hljs-operator\">=<\/span> <span class=\"hljs-number\">1<\/span> \r\n\r\nRRP information <span class=\"hljs-keyword\">for<\/span> Instance <span class=\"hljs-number\">1<\/span> \r\n\r\n<span class=\"hljs-comment\">--------------------------------------------------------------------<\/span>\r\nValid Flags   Peer     Preferred Reserved\r\n               Count     Peer       Peer  \r\n\r\n<span class=\"hljs-comment\">--------------------------------------------------------------------<\/span>\r\n<span class=\"hljs-literal\">TRUE<\/span>   V       <span class=\"hljs-number\">1<\/span>           <span class=\"hljs-number\">1<\/span>         <span class=\"hljs-number\">1<\/span>  \r\n\r\nSwitch Switch Status Preempt       Priority Role     <span class=\"hljs-keyword\">Local<\/span>   Remote\r\n       Number         Oper(Conf)   Oper(Conf)         SID     SID\r\n<span class=\"hljs-comment\">--------------------------------------------------------------------<\/span>\r\n<span class=\"hljs-keyword\">LOCAL<\/span>   <span class=\"hljs-number\">1<\/span>     UP     <span class=\"hljs-literal\">FALSE<\/span>(N )     <span class=\"hljs-number\">100<\/span>(<span class=\"hljs-number\">100<\/span>) ACTIVE   <span class=\"hljs-number\">0<\/span>       <span class=\"hljs-number\">0<\/span>\r\nREMOTE  <span class=\"hljs-number\">2<\/span>     UP     <span class=\"hljs-literal\">FALSE<\/span>(N )     <span class=\"hljs-number\">100<\/span>(<span class=\"hljs-number\">100<\/span>) STANDBY <span class=\"hljs-number\">6834<\/span>   <span class=\"hljs-number\">6152<\/span>  \r\n\r\nPeer <span class=\"hljs-number\">0<\/span> represents the <span class=\"hljs-keyword\">local<\/span> switch  \r\n\r\nFlags : V <span class=\"hljs-operator\">-<\/span> Valid\r\n<span class=\"hljs-keyword\">In<\/span> dual<span class=\"hljs-operator\">-<\/span>active recovery mode: <span class=\"hljs-keyword\">No<\/span>  \r\n\r\nExecuting the command <span class=\"hljs-keyword\">on<\/span> VSS <span class=\"hljs-keyword\">member<\/span> switch role <span class=\"hljs-operator\">=<\/span> VSS Standby, id <span class=\"hljs-operator\">=<\/span> <span class=\"hljs-number\">2<\/span> \r\n\r\nRRP information <span class=\"hljs-keyword\">for<\/span> Instance <span class=\"hljs-number\">2<\/span>  \r\n\r\n<span class=\"hljs-comment\">--------------------------------------------------------------------<\/span>\r\nValid Flags   Peer     Preferred Reserved\r\n               Count     Peer       Peer  \r\n\r\n<span class=\"hljs-comment\">--------------------------------------------------------------------<\/span>\r\n<span class=\"hljs-literal\">TRUE<\/span>    V       <span class=\"hljs-number\">1<\/span>           <span class=\"hljs-number\">1<\/span>         <span class=\"hljs-number\">1<\/span>  \r\n\r\nSwitch Switch Status Preempt       Priority Role     <span class=\"hljs-keyword\">Local<\/span>   Remote\r\n       Number         Oper(Conf)   Oper(Conf)         SID     SID\r\n<span class=\"hljs-comment\">--------------------------------------------------------------------<\/span>\r\n<span class=\"hljs-keyword\">LOCAL<\/span>   <span class=\"hljs-number\">2<\/span>     UP     <span class=\"hljs-literal\">FALSE<\/span>(N )     <span class=\"hljs-number\">100<\/span>(<span class=\"hljs-number\">100<\/span>) STANDBY  <span class=\"hljs-number\">0<\/span>       <span class=\"hljs-number\">0<\/span>\r\nREMOTE  <span class=\"hljs-number\">1<\/span>     UP     <span class=\"hljs-literal\">FALSE<\/span>(N )     <span class=\"hljs-number\">100<\/span>(<span class=\"hljs-number\">100<\/span>) ACTIVE   <span class=\"hljs-number\">6152<\/span>   <span class=\"hljs-number\">6834<\/span> \r\n\r\nPeer <span class=\"hljs-number\">0<\/span> represents the <span class=\"hljs-keyword\">local<\/span> switch\r\n\r\nFlags : V <span class=\"hljs-operator\">-<\/span> Valid\r\n<span class=\"hljs-keyword\">In<\/span> dual<span class=\"hljs-operator\">-<\/span>active recovery mode: <span class=\"hljs-keyword\">No<\/span>\r\n<\/code><\/pre>\n<ul>\n<li><code>show switch virtual link<\/code>\u67e5\u770bVSL\u94fe\u8def\u72b6\u6001\uff1a<\/li>\n<\/ul>\n<pre><code class=\"hljs language-bash\">SW1<span class=\"hljs-comment\">#sh switch virtual link  <\/span>\r\n\r\nExecuting the <span class=\"hljs-built_in\">command<\/span> on VSS member switch role = VSS Active, <span class=\"hljs-built_in\">id<\/span> = 1 \r\n\r\nVSL Status : UP\r\nVSL Uptime : 3 minutes\r\nVSL Control Link : Gi1\/7\/4  \r\n\r\nExecuting the <span class=\"hljs-built_in\">command<\/span> on VSS member switch role = VSS Standby, <span class=\"hljs-built_in\">id<\/span> = 2 \r\n\r\nVSL Status : UP\r\nVSL Uptime : 3 minutes\r\nVSL Control Link : Gi2\/4\/45\r\n<\/code><\/pre>\n<ul>\n<li><code>show switch virtual link port-channel<\/code>\u67e5\u770bPortChannel\u4fe1\u606f\uff1a<\/li>\n<\/ul>\n<pre><code class=\"hljs language-vbnet\">SW1#sh switch virtual link port-channel \r\n\r\nExecuting the command <span class=\"hljs-keyword\">on<\/span> VSS member switch role = VSS Active, id = <span class=\"hljs-number\">1<\/span> \r\n\r\n<span class=\"hljs-symbol\">Flags:<\/span> D - down       P - bundled <span class=\"hljs-keyword\">in<\/span> port-channel\r\n       I - stand-alone s - suspended\r\n       H - Hot-standby (LACP only)\r\n       R - Layer3     S - Layer2\r\n       U - <span class=\"hljs-keyword\">in<\/span> use     N - <span class=\"hljs-built_in\">not<\/span> <span class=\"hljs-keyword\">in<\/span> use, no aggregation\r\n       f - failed <span class=\"hljs-keyword\">to<\/span> allocate aggregator         \r\n\r\n       M - <span class=\"hljs-built_in\">not<\/span> <span class=\"hljs-keyword\">in<\/span> use, no aggregation due <span class=\"hljs-keyword\">to<\/span> minimum links <span class=\"hljs-built_in\">not<\/span> met\r\n       m - <span class=\"hljs-built_in\">not<\/span> <span class=\"hljs-keyword\">in<\/span> use, port <span class=\"hljs-built_in\">not<\/span> aggregated due <span class=\"hljs-keyword\">to<\/span> minimum links <span class=\"hljs-built_in\">not<\/span> met\r\n       u - unsuitable <span class=\"hljs-keyword\">for<\/span> bundling\r\n       d - <span class=\"hljs-keyword\">default<\/span> port  \r\n       \r\n       w - waiting <span class=\"hljs-keyword\">to<\/span> be aggregated  \r\n\r\n<span class=\"hljs-keyword\">Group<\/span> Port-channel Protocol   Ports\r\n------+-------------+-----------+-------------------\r\n<span class=\"hljs-number\">5<\/span>     Po5(SU)          -       Gi1\/<span class=\"hljs-number\">7<\/span>\/<span class=\"hljs-number\">3<\/span>(P) Gi1\/<span class=\"hljs-number\">7<\/span>\/<span class=\"hljs-number\">4<\/span>(P)\r\n<span class=\"hljs-number\">10<\/span>    Po10(SU)         -       Gi2\/<span class=\"hljs-number\">4<\/span>\/<span class=\"hljs-number\">45<\/span>(P) Gi2\/<span class=\"hljs-number\">4<\/span>\/<span class=\"hljs-number\">46<\/span>(P)  \r\n\r\nExecuting the command <span class=\"hljs-keyword\">on<\/span> VSS member switch role = VSS Standby, id = <span class=\"hljs-number\">2<\/span>  \r\n\r\n<span class=\"hljs-symbol\">Flags:<\/span> D - down       P - bundled <span class=\"hljs-keyword\">in<\/span> port-channel\r\n       I - stand-alone s - suspended\r\n       H - Hot-standby (LACP only)\r\n       R - Layer3     S - Layer2\r\n       U - <span class=\"hljs-keyword\">in<\/span> use     N - <span class=\"hljs-built_in\">not<\/span> <span class=\"hljs-keyword\">in<\/span> use, no aggregation\r\n       f - failed <span class=\"hljs-keyword\">to<\/span> allocate aggregator         \r\n       \r\n       M - <span class=\"hljs-built_in\">not<\/span> <span class=\"hljs-keyword\">in<\/span> use, no aggregation due <span class=\"hljs-keyword\">to<\/span> minimum links <span class=\"hljs-built_in\">not<\/span> met\r\n       m - <span class=\"hljs-built_in\">not<\/span> <span class=\"hljs-keyword\">in<\/span> use, port <span class=\"hljs-built_in\">not<\/span> aggregated due <span class=\"hljs-keyword\">to<\/span> minimum links <span class=\"hljs-built_in\">not<\/span> met\r\n       u - unsuitable <span class=\"hljs-keyword\">for<\/span> bundling\r\n       d - <span class=\"hljs-keyword\">default<\/span> port  \r\n       \r\n       w - waiting <span class=\"hljs-keyword\">to<\/span> be aggregated \r\n\r\n<span class=\"hljs-keyword\">Group<\/span> Port-channel Protocol   Ports\r\n------+-------------+-----------+-------------------\r\n<span class=\"hljs-number\">5<\/span>     Po5(SU)          -       Gi1\/<span class=\"hljs-number\">7<\/span>\/<span class=\"hljs-number\">3<\/span>(P) Gi1\/<span class=\"hljs-number\">7<\/span>\/<span class=\"hljs-number\">4<\/span>(P)\r\n<span class=\"hljs-number\">10<\/span>    Po10(SU)         -       Gi2\/<span class=\"hljs-number\">4<\/span>\/<span class=\"hljs-number\">45<\/span>(P) Gi2\/<span class=\"hljs-number\">4<\/span>\/<span class=\"hljs-number\">46<\/span>(P) \r\n<\/code><\/pre>\n<p>VSS\u6b63\u5e38\u8fd0\u4f5c\u540e\uff0c\u4ea4\u6362\u673a\u7aef\u53e3\u53f7\u7531\u539f\u6765\u7684Gi x\/x\u81ea\u52a8\u8f6c\u6362\u6210\u4e86Gi 1\/x\/x\u6216Gi 2\/x\/x\u30021\u548c2\u4e3a\u4e24\u53f0\u786c\u4ef6\u4ea4\u6362\u673a\u7f16\u53f7\uff0c\u4ece\u903b\u8f91\u4e0a\u4f60\u53ef\u4ee5\u628a\u8fd9\u4e24\u53f0\u4ea4\u6362\u673a\u5f53\u4f5c\u4e00\u53f0\u4ea4\u6362\u673a\u4e86\u3002\u4f60\u53ef\u4ee5\u5206\u522b\u5728\u8fd9\u4e24\u53f0\u4ea4\u6362\u673a\u4e0a\u9009\u4e00\u4e2a\u7aef\u53e3\u6bd4\u5982Gi1\/0\/8\u548cGi2\/0\/8\u4e0e\u5176\u5b83\u4ea4\u6362\u673a\u5efa\u7acbPortChannel\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>VSS\u662f\u601d\u79d1\u7684\u4e00\u79cd\u4ea4\u6362\u673a\u96c6\u7fa4\u6280\u672f\uff0c\u53ef\u5c06\u4e24\u53f0\u7269\u7406\u4ea4\u6362\u673a\u865a\u62df\u6210\u4e00\u53f0\u903b\u8f91\u4ea4\u6362\u673a\u3002\u4e24\u53f0\u7269\u7406\u4ea4\u6362\u673a\u901a\u8fc7VSL\u94fe\u8def\u8fde\u63a5\uff0c\u7528 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8,2],"tags":[],"class_list":["post-9982","post","type-post","status-publish","format-standard","hentry","category-cisco","category-network"],"_links":{"self":[{"href":"https:\/\/www.xh86.me\/index.php?rest_route=\/wp\/v2\/posts\/9982","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.xh86.me\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xh86.me\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xh86.me\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xh86.me\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=9982"}],"version-history":[{"count":1,"href":"https:\/\/www.xh86.me\/index.php?rest_route=\/wp\/v2\/posts\/9982\/revisions"}],"predecessor-version":[{"id":9983,"href":"https:\/\/www.xh86.me\/index.php?rest_route=\/wp\/v2\/posts\/9982\/revisions\/9983"}],"wp:attachment":[{"href":"https:\/\/www.xh86.me\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=9982"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xh86.me\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=9982"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xh86.me\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=9982"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}