{"id":1650,"date":"2016-02-11T18:07:29","date_gmt":"2016-02-11T16:07:29","guid":{"rendered":"http:\/\/sheki.zlatograd.com\/blog\/?p=1650"},"modified":"2022-02-23T14:34:44","modified_gmt":"2022-02-23T12:34:44","slug":"cisco-%d0%be%d1%82%d0%bc%d0%b5%d1%82%d0%ba%d0%b8","status":"publish","type":"post","link":"https:\/\/sheki.zlatograd.com\/blog\/cisco-%d0%be%d1%82%d0%bc%d0%b5%d1%82%d0%ba%d0%b8\/","title":{"rendered":"Cisco \u043e\u0442\u043c\u0435\u0442\u043a\u0438"},"content":{"rendered":"<p>\u041d\u0435\u0449\u043e \u043a\u043e\u0435\u0442\u043e\u00a0 \u0437\u0430\u0431\u0440\u0430\u0432\u044f\u043c \ud83d\ude42 &#8230; \u0434\u0430 \u0441\u0435 \u043f\u0440\u0430\u0432\u0438 \u043f\u0440\u0438 \u043f\u044a\u0440\u0432\u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438\u00a0 &#8230;<\/p>\n<ol>\n<li>service password-encryption &#8211; \u0434\u0430 \u0441\u0438 \u0441\u043a\u0440\u0438\u0435\u043c \u043f\u0430\u0440\u043e\u043b\u0438\u0442\u0435<\/li>\n<li>ip default-gateway .. \u0434\u0430 \u0441\u0438 \u0441\u043b\u043e\u0436\u0438\u043c \u0433\u0435\u0439\u0442<\/li>\n<li><em>\u0430\u043a\u043e \u0438\u0437\u043f\u043e\u043b\u0437\u0432\u0430\u043c\u0435 dhcp \u0441\u044a\u0440\u0432\u044a\u0440 \u0435 \u0434\u043e\u0431\u0440\u0435 \u0434\u0430 \u043d\u0430\u043f\u0440\u0430\u0432\u0438\u043c \u043c\u0430\u043b\u043a\u043e \u0440\u0435\u0441\u0442\u0440\u0438\u043a\u0446\u0438\u0438<br \/>\n<\/em><em>(config)#ip dhcp snooping<\/em><br \/>\n<em>(config)#ip dhcp snooping vlan 1<\/em> &#8211; \u0438\u0437\u0431\u0438\u0440\u0430\u043c\u0435 \u0432\u043b\u0430\u043d\u0430 \u0437\u0430 \u043a\u043e\u0439\u0442\u043e \u0434\u0430 \u0435 \u0432\u043a\u043b \u0441\u043d\u0443\u043f\u0438\u043d\u0433\u0430<br \/>\n<em>(config)#interface FastEthernet 0\/1\u00a0 &#8211; \u0438\u0437\u0431\u0438\u0440\u0430\u043c\u0435 \u043f\u043e\u0440\u0442\u0430 \u043a\u043e\u0439\u0442\u043e \u0442\u0440\u044f\u0431\u0432\u0430 \u0434\u0430 \u0440\u0430\u0431\u043e\u0442\u0438 \u0441 dhcp \u0434\u0430 \u043c\u043e\u0436\u0435 \u0434\u0430 \u0432\u0440\u044a\u0448\u0430 \u0437\u0430\u044f\u0432\u043a\u0438<\/em><br \/>\n<em>(config-if)#ip dhcp snooping trust<\/em><br \/>\n\u043f\u043e \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e \u0442\u0443\u043a http:\/\/blog.router-switch.com\/2012\/08\/how-to-configure-dhcp-snooping\/<\/li>\n<li><em>(config-if)#<\/em>logging 192.168.x.x &#8211; \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0438\u0440\u0430\u043c\u0435 \u0445\u043e\u0441\u0442 \u0437\u0430 \u043b\u043e\u0433\u043e\u0432\u0435\u0442\u0435, \u043c\u043e\u0436\u0435 \u0434\u0430 \u0441\u0435 \u043d\u0430\u043b\u043e\u0436\u0438 \u0438 \u043e\u043f\u0438\u0441\u0432\u0430\u043d\u0435 \u0432 rsyslog.conf \u043d\u0430 \u0440\u0435\u043c\u043e\u0442\u0435 \u043c\u0430\u0448\u0438\u043d\u0430\u0442\u0430<\/li>\n<li><em>(config-if)#<\/em>mac-address-table static 7844.7682.9988 vlan 1 drop\u00a0 &#8211; \u043f\u0440\u0438\u043c\u0435\u0440 \u043a\u0430\u043a \u0434\u0430 \u043d\u0430\u0439-\u043b\u0435\u0441\u043d\u043e \u0434\u0430 \u0441\u0438 \u043e\u0442\u0440\u0435\u0436\u0435\u043c \u0434\u043e\u0441\u0442\u044a\u043f\u0430 \u043d\u0430 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d \u043c\u0430\u043a \u0430\u0434\u0440\u0435\u0441<\/li>\n<li>\u0430\u043a\u043e \u0435 \u0441\u0442\u0430\u043a\u0432\u0430\u043d \u043c\u043e\u0436\u0435 \u0434\u0430 \u0438\u0441\u043a\u0430\u043c\u0435 \u0434\u0430 \u0441\u043c\u0435\u043d\u0438\u043c \u043d\u043e\u043c\u0435\u0440\u0430 \u043d\u0430 \u0441\u0438\u0443\u0447\u0430 : switch ( config) # switch 3 renumber 1<\/li>\n<\/ol>\n<p><a href=\"https:\/\/fatmin.com\/2014\/12\/02\/how-to-reset-cisco-catalyst-3750-back-to-factory-defaults\/\">reset 3750 &#8211;\u00a0<\/a><\/p>\n<p>switch: flash_init<br \/>\nInitializing Flash\u2026<br \/>\nflashfs[0]: 547 files, 19 directories<br \/>\nflashfs[0]: 0 orphaned files, 0 orphaned directories<br \/>\nflashfs[0]: Total bytes: 32514048<br \/>\nflashfs[0]: Bytes used: 15487488<br \/>\nflashfs[0]: Bytes available: 17026560<br \/>\nflashfs[0]: flashfs fsck took 11 seconds.<br \/>\n\u2026done Initializing Flash.<\/p>\n<blockquote><p>switch: dir flash:<br \/>\nDirectory of flash:\/<\/p>\n<p>2\u00a0 -rwx\u00a0 564\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &lt;date&gt;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 vlan.dat<br \/>\n3\u00a0 -rwx\u00a0 1914\u00a0\u00a0\u00a0\u00a0\u00a0 &lt;date&gt;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 private-config.text<br \/>\n5\u00a0 drwx\u00a0 192\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &lt;date&gt;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 c2960-lanbasek9-mz.122-58.SE2<br \/>\n6\u00a0 -rwx\u00a0 3096\u00a0\u00a0\u00a0\u00a0\u00a0 &lt;date&gt;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 multiple-fs<br \/>\n7\u00a0 -rwx\u00a0 2289\u00a0\u00a0\u00a0\u00a0\u00a0 &lt;date&gt;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 config.text<\/p><\/blockquote>\n<blockquote><p>switch: del flash:config.text<br \/>\nAre you sure you want to delete \u201cflash:config.text\u201d (y\/n)?y<br \/>\nFile \u201cflash:config.text\u201d deleted<\/p>\n<p>switch: del flash:vlan.dat<br \/>\nAre you sure you want to delete \u201cflash:vlan.dat\u201d (y\/n)?y<br \/>\nFile \u201cflash:vlan.dat\u201d deleted<\/p>\n<p>switch: rename flash:config.text flash:config.old<\/p><\/blockquote>\n<p><a href=\"http:\/\/www.cisco.com\/c\/en\/us\/support\/docs\/switches\/catalyst-2900-xl-series-switches\/24328-156.html\">\u043f\u0440\u0435\u043f\u0440\u0430\u0442\u043a\u0430 \u0441\u0442\u0430\u0442\u0438\u044f<\/a><\/p>\n<blockquote>\n<h3><a name=\"reset_switch\"><\/a>Reset Switch Configuration<\/h3>\n<p>To reset the switch to factory default, issue the <a href=\"http:\/\/www.cisco.com\/en\/US\/docs\/ios\/12_3t\/fun\/command\/reference\/cfrgt_02.html#wp1129707\"> <b>erase startup-config<\/b> <\/a> or <a href=\"http:\/\/www.cisco.com\/en\/US\/docs\/ios\/12_3t\/fun\/command\/reference\/cfrgt_13.html#wp1070152\"> <b>write erase<\/b> <\/a> command. This command does not clear the boot variables, such as config-register and boot system settings. You can alter the boot system parameters with the <b>boot<\/b> command. In Catalyst 4500\/4000 and 6500\/6000 series switches running Cisco IOS Software, you can change the configuration register value with the <a href=\"http:\/\/www.cisco.com\/en\/US\/docs\/ios\/12_3t\/fun\/command\/reference\/cfrgt_02.html#wp1124455\"> <b>config-register<\/b> <\/a> command.<\/p>\n<p>This example shows how to reset a switch running Cisco IOS Software to factory defaults with the <b>write erase<\/b> command:<\/p>\n<pre>Cat2950# <b>write erase<\/b>\nErasing the nvram filesystem will remove all files! Continue? [confirm]<b>y<\/b>[OK]\nErase of nvram: complete\nCat2950#\nCat2950# <b>reload<\/b>\n\nSystem configuration has been modified. Save? [yes\/no]: <b>n<\/b><\/pre>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>\u041d\u0435\u0449\u043e \u043a\u043e\u0435\u0442\u043e\u00a0 \u0437\u0430\u0431\u0440\u0430\u0432\u044f\u043c \ud83d\ude42 &#8230; \u0434\u0430 \u0441\u0435 \u043f\u0440\u0430\u0432\u0438 \u043f\u0440\u0438 \u043f\u044a\u0440\u0432\u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438\u00a0 &#8230; service password-encryption &#8211; \u0434\u0430 \u0441\u0438 \u0441\u043a\u0440\u0438\u0435\u043c \u043f\u0430\u0440\u043e\u043b\u0438\u0442\u0435 ip default-gateway .. \u0434\u0430 \u0441\u0438 \u0441\u043b\u043e\u0436\u0438\u043c \u0433\u0435\u0439\u0442 \u0430\u043a\u043e \u0438\u0437\u043f\u043e\u043b\u0437\u0432\u0430\u043c\u0435 dhcp \u0441\u044a\u0440\u0432\u044a\u0440 \u0435 \u0434\u043e\u0431\u0440\u0435 \u0434\u0430 \u043d\u0430\u043f\u0440\u0430\u0432\u0438\u043c \u043c\u0430\u043b\u043a\u043e \u0440\u0435\u0441\u0442\u0440\u0438\u043a\u0446\u0438\u0438 (config)#ip dhcp snooping (config)#ip dhcp snooping vlan 1 &#8211; \u0438\u0437\u0431\u0438\u0440\u0430\u043c\u0435 \u0432\u043b\u0430\u043d\u0430 \u0437\u0430 \u043a\u043e\u0439\u0442\u043e \u0434\u0430 \u0435 \u0432\u043a\u043b \u0441\u043d\u0443\u043f\u0438\u043d\u0433\u0430 (config)#interface FastEthernet [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[67],"tags":[123],"class_list":["post-1650","post","type-post","status-publish","format-standard","hentry","category-cisco","tag-cisco"],"_links":{"self":[{"href":"https:\/\/sheki.zlatograd.com\/blog\/wp-json\/wp\/v2\/posts\/1650","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sheki.zlatograd.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sheki.zlatograd.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sheki.zlatograd.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sheki.zlatograd.com\/blog\/wp-json\/wp\/v2\/comments?post=1650"}],"version-history":[{"count":9,"href":"https:\/\/sheki.zlatograd.com\/blog\/wp-json\/wp\/v2\/posts\/1650\/revisions"}],"predecessor-version":[{"id":2070,"href":"https:\/\/sheki.zlatograd.com\/blog\/wp-json\/wp\/v2\/posts\/1650\/revisions\/2070"}],"wp:attachment":[{"href":"https:\/\/sheki.zlatograd.com\/blog\/wp-json\/wp\/v2\/media?parent=1650"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sheki.zlatograd.com\/blog\/wp-json\/wp\/v2\/categories?post=1650"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sheki.zlatograd.com\/blog\/wp-json\/wp\/v2\/tags?post=1650"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}