{"id":376,"date":"2021-01-04T09:06:55","date_gmt":"2021-01-04T01:06:55","guid":{"rendered":"http:\/\/b.yesiyu.top\/?p=376"},"modified":"2021-01-04T09:06:55","modified_gmt":"2021-01-04T01:06:55","slug":"rj%e5%88%9b%e5%bb%ba%e7%ae%a1%e7%90%86ip","status":"publish","type":"post","link":"https:\/\/b.yesiyu.top\/?p=376","title":{"rendered":"RJ\u521b\u5efa\u7ba1\u7406IP"},"content":{"rendered":"\n<p><strong>\u521b\u5efa\u7ba1\u7406IP<\/strong><strong><\/strong><\/p>\n\n\n\n<p>\u4e8c\u5c42\u4ea4\u6362\u673a\u7531\u4e8e\u4e0d\u652f\u6301\u8def\u7531\u53e3\uff0c\u53ea\u80fd\u4f7f\u7528SVI\u8fdb\u884c\u7ba1\u7406\uff0c\u4e09\u5c42\u4ea4\u6362\u673a\u7684\u8bbe\u5907\u7ba1\u7406\u5730\u5740\u53ef\u4ee5\u91c7\u7528SVI\u6216\u8def\u7531\u53e3\u8fdb\u884c\u7ba1\u7406\u3002<\/p>\n\n\n\n<p><strong>\u4e8c\u5c42\u4ea4\u6362\u673a\uff1a<\/strong><\/p>\n\n\n\n<p>\u4e8c\u5c42\u4ea4\u6362\u673a\u914d\u7f6eIP\u5730\u5740\u662f\u7528\u4e8e\u7ba1\u7406\u8bbe\u5907\u4f7f\u7528\uff0c\u6bd4\u5982\u4f7f\u7528Telnet\u3001SNMP\u7b49\u7b49\u3002<\/p>\n\n\n\n<p>\u914d\u7f6e\u547d\u4ee4\uff1a<\/p>\n\n\n\n<p>Ruijie&gt;enable&nbsp;<\/p>\n\n\n\n<p>Ruijie#configure terminal<\/p>\n\n\n\n<p>Ruijie(config)#interface <em>vlan 1&nbsp;&nbsp;&nbsp;&nbsp; <\/em>&#8212;&#8212;&gt;\u8fdb\u5165vlan\u63a5\u53e3\uff0c\u5b9e\u9645\u4f7f\u7528\u4e2d\u5efa\u8bae\u4f7f\u7528\u975eVLAN 1<\/p>\n\n\n\n<p>Ruijie(config-if-VLAN 1)#ip address <em>192.168.1.1 255.255.255.0<\/em><\/p>\n\n\n\n<p>Ruijie(config-if-VLAN 1)#end<\/p>\n\n\n\n<p>Ruijie#write&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#8212;&#8212;&gt;\u786e\u8ba4\u914d\u7f6e\u6b63\u786e\uff0c\u4fdd\u5b58\u914d\u7f6e<\/p>\n\n\n\n<p><strong>\u8bf4\u660e\uff1a<\/strong><\/p>\n\n\n\n<p>1\u3001\u5982\u679c\u4e0d\u662fvlan 1\uff0c\u662f\u5176\u4ed6vlan\uff0c\u5728\u8fdb\u5165vlan\u63a5\u53e3\u914d\u7f6e\u65f6\uff0c\u9700\u8981\u5148\u521b\u5efa\u76f8\u5e94\u7684vlan\uff0c\u5426\u5219\u4f1a\u63d0\u793a\u5931\u8d25\u3002\u4f8b\u5982\u521b\u5efavlan 100\u7684ip\u5730\u5740\u4e3a192.168.100.1\/24\uff0c\u547d\u4ee4\u5982\u4e0b\uff1a<\/p>\n\n\n\n<p>Ruijie(config)#vlan 100<\/p>\n\n\n\n<p>Ruijie(config-vlan)#exit<\/p>\n\n\n\n<p>Ruijie(config)#interface vlan 100<\/p>\n\n\n\n<p>Ruijie(config-if-VLAN 100)#ip address 192.168.100.1 255.255.255.0<\/p>\n\n\n\n<p>Ruijie(config-if-VLAN 100)#end<\/p>\n\n\n\n<p>Ruijie#<\/p>\n\n\n\n<p>\u6ce8\u610f\uff1a\u4e8c\u5c42\u4ea4\u6362\u673a\u5982\u679c\u914d\u7f6e\u591a\u4e2aSVI\uff0c\u5e76\u914d\u7f6e\u5730\u5740\uff0c\u5219\u539f\u6709\u5df2\u7ecfUP\u5e76\u751f\u6548\u7684SVI\u5c06\u4f1a\u88abshutdown<strong>\u3002<\/strong><\/p>\n\n\n\n<p>2\u3001\u5982\u679c\u8981\u521b\u5efaSVI\u7684Secondary\u5730\u5740\uff0c\u5728\u914d\u7f6e\u7b2c\u4e8c\u4e2a\u5730\u5740\u7684\u65f6\u5019\uff0c\u540e\u9762\u518d\u52a0\u4e00\u4e2asecondary\uff0c\u5426\u5219\u4f1a\u8986\u76d6\u539f\u6709\u5730\u5740\u3002<\/p>\n\n\n\n<p>\u4f8b\u5982\u521b\u5efaSVI 100\u7684secondary\u5730\u5740\u4e3a192.168.10.1\/24\u53ef\u4ee5\u901a\u8fc7\u5982\u4e0b\u547d\u4ee4\u5b9e\u73b0:<\/p>\n\n\n\n<p>Ruijie(config)#vlan 100<\/p>\n\n\n\n<p>Ruijie(config-vlan)#exit<\/p>\n\n\n\n<p>Ruijie(config)#interface vlan 100<\/p>\n\n\n\n<p>Ruijie(config-if-VLAN 100)#ip address 192.168.100.1 255.255.255.0<\/p>\n\n\n\n<p>Ruijie(config-if-VLAN 100)#ip address 192.168.10.1 255.255.255.0 secondary<\/p>\n\n\n\n<p>Ruijie(config-if-VLAN 100)#end<\/p>\n\n\n\n<p>Ruijie#<\/p>\n\n\n\n<p><strong>\u4e09\u5c42\u4ea4\u6362\u673a\uff1a<\/strong><strong><\/strong><\/p>\n\n\n\n<p>\u4e09\u5c42\u4ea4\u6362\u673a\u914d\u7f6e\u5730\u5740\u53ef\u7528\u4e8e\u7ba1\u7406\uff0c\u4e5f\u53ef\u4ee5\u7528\u4e8e\u901a\u4fe1\uff0c\u6bd4\u5982\u4f5c\u4e3a\u7528\u6237\u7684\u7f51\u5173\u3002<\/p>\n\n\n\n<p>\u914d\u7f6e\u65b9\u6cd51\uff1a<\/p>\n\n\n\n<p>Ruijie&gt;enable&nbsp;<\/p>\n\n\n\n<p>Ruijie#configure terminal<\/p>\n\n\n\n<p>Ruijie(config)#interface <em>vlan 10<\/em><\/p>\n\n\n\n<p>Ruijie(config-if-VLAN 10)#ip address <em>192.168.1.1 255.255.255.0<\/em><\/p>\n\n\n\n<p>Ruijie(config-if-VLAN 10)#end<\/p>\n\n\n\n<p>Ruijie#write&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#8212;&#8212;&gt;\u786e\u8ba4\u914d\u7f6e\u6b63\u786e\uff0c\u4fdd\u5b58\u914d\u7f6e<\/p>\n\n\n\n<p><strong>\u8bf4\u660e\uff1a<\/strong>\u5982\u679c\u4e0d\u662fvlan 1\uff0c\u662f\u5176\u4ed6vlan\uff0c\u5728\u8fdb\u5165vlan\u63a5\u53e3\u914d\u7f6e\u65f6\uff0c\u9700\u8981\u5148\u521b\u5efa\u76f8\u5e94\u7684vlan\uff0c\u5426\u5219\u4f1a\u63d0\u793a\u5931\u8d25\u3002<\/p>\n\n\n\n<p>\u914d\u7f6e\u65b9\u6cd52\uff08\u9700\u786e\u4fdd\u4ea4\u6362\u673a\u662f\u4e09\u5c42\u4ea4\u6362\u673a\uff09\uff1a<\/p>\n\n\n\n<p>Ruijie&gt;enable&nbsp;<\/p>\n\n\n\n<p>Ruijie#configure terminal<\/p>\n\n\n\n<p>Ruijie(config)#int FastEthernet 0\/1<\/p>\n\n\n\n<p>Ruijie(config-if-FastEthernet 0\/1)#no switchport&nbsp;&nbsp;&nbsp;&nbsp; &#8212;&#8212;&gt;\u5c06\u7aef\u53e3\u8bbe\u7f6e\u4e3a\u4e09\u5c42\u53e3\uff0c\u914d\u7f6eIP\u5730\u5740\u4e4b\u524d\u5fc5\u987b\u8981\u5148\u53d8\u4e3a\u4e09\u5c42\u53e3\uff0c\u5426\u5219\u65e0\u6cd5\u914d\u7f6eIP\u5730\u5740<\/p>\n\n\n\n<p>Ruijie(config-if-FastEthernet 0\/1)#ip add <em>192.168.16.1 255.255.255.0<\/em><\/p>\n\n\n\n<p>Ruijie(config-if-FastEthernet 0\/1)#end<\/p>\n\n\n\n<p>Ruijie#write&nbsp;&nbsp;&nb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bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 192.168.1.1\/24&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; no address&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; up&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; up&nbsp;&nbsp;&nbsp;<\/p>\n\n\n\n<p>VLAN 100&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;192.168.100.1\/24&nbsp;&nbsp;&nbsp;&nbsp; 192.168.10.1\/24&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; up&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; up&nbsp;&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u521b\u5efa\u7ba1\u7406IP \u4e8c\u5c42\u4ea4\u6362\u673a\u7531\u4e8e\u4e0d\u652f\u6301\u8def\u7531\u53e3\uff0c\u53ea\u80fd\u4f7f\u7528SVI\u8fdb\u884c\u7ba1\u7406\uff0c\u4e09\u5c42\u4ea4\u6362\u673a\u7684\u8bbe\u5907\u7ba1\u7406\u5730\u5740\u53ef\u4ee5\u91c7\u7528SVI\u6216\u8def\u7531 &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/b.yesiyu.top\/?p=376\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">\u201cRJ\u521b\u5efa\u7ba1\u7406IP\u201d<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-376","post","type-post","status-publish","format-standard","hentry","category-1"],"_links":{"self":[{"href":"https:\/\/b.yesiyu.top\/index.php?rest_route=\/wp\/v2\/posts\/376","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/b.yesiyu.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/b.yesiyu.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/b.yesiyu.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/b.yesiyu.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=376"}],"version-history":[{"count":1,"href":"https:\/\/b.yesiyu.top\/index.php?rest_route=\/wp\/v2\/posts\/376\/revisions"}],"predecessor-version":[{"id":377,"href":"https:\/\/b.yesiyu.top\/index.php?rest_route=\/wp\/v2\/posts\/376\/revisions\/377"}],"wp:attachment":[{"href":"https:\/\/b.yesiyu.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=376"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/b.yesiyu.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=376"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/b.yesiyu.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=376"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}