





{"id":1706,"date":"2011-01-25T23:13:14","date_gmt":"2011-01-26T03:13:14","guid":{"rendered":"http:\/\/www.killtest.hk\/?p=1706"},"modified":"2011-01-25T23:13:14","modified_gmt":"2011-01-26T03:13:14","slug":"cisco-tftp-2","status":"publish","type":"post","link":"https:\/\/www.killtest.hk\/index.php\/cisco\/cisco-tftp-2\/","title":{"rendered":"Cisco\u5b78\u7fd2-\u8def\u7531\u5668TFTP\u914d\u7f6e\u7684\u56db\u500b\u6b65\u9a5f"},"content":{"rendered":"<p>TFTP\u670d\u52d9\u5668\u7684\u4f7f\u7528\u4e5f\u662f\u975e\u5e38\u5ee3\u6cdb\u7684\uff0c\u90a3\u9ebd\u5c0d\u65bc\u8def\u7531\u5668TFTP\u914d\u7f6e\u7684\u5177\u9ad4\u64cd\u4f5c\uff0c\u6211\u5011\u5728\u6587\u4e2d\u9032\u884c\u58f9\u4e0b\u5177\u9ad4\u8b1b\u89e3\u3002\u5728\u5c40\u57df\u7db2\u74b0\u5883\u4e2d\uff0c\u5982\u679c\u6709Cisco \u8def\u7531\u5668\u548cLinux\u670d\u52d9\u5668\u3002\u4e5f\u8a31\u59b3\u9700\u8981\u5229\u7528Linux\u7684TFTP\u670d\u52d9\u53bb\u4e0b\u8f09Cisco router\u914d\u7f6e\u6587\u4ef6 startup-config,\u5728\u670d\u52d9\u5668\u4e0a\u7de8\u8f2f\u5f8c\u518d\u4e0a\u8f09\u5230\u8def\u7531\u5668\uff0c\u5728\u5be6\u73fe\u4e2d\u6709\u58f9\u4e9b\u7279\u5225\u8a3b\u610f\u7684\u5730\u65b9\u3002<\/p>\n<p>\u3000\u3000\u6240\u7528\u8edf\u786c\u4ef6\uff1aRedhat Linux 5.2 \uff0cCisco 2501 \u8def\u7531\u5668<\/p>\n<p>\u3000\u3000\u8def\u7531\u5668TFTP\u914d\u7f6e1. \u958b\u555f Redhat Linux \u670d\u52d9\u5668\u4e0a\u7684tftp\u670d\u52d9\uff0c\u4e26\u6307\u660e\u4e0b\u8f09\u76ee\u9304\/tmp\u3002<\/p>\n<p>\u3000\u30001.[jephe@sh89 \/etc]$ more inetd.conf | grep tftp<\/p>\n<p>\u3000\u30002.tftp dgram udp wait root \/usr\/sbin\/tcpd in.tftpd \/tmp<\/p>\n<p>\u3000\u3000\u7136\u5f8c\u7528\u547d\u4ee4killall -HUP inetd\u555f\u52d5\u5b83\u3002<\/p>\n<p>\u3000\u3000\u8def\u7531\u5668TFTP\u914d\u7f6e2. \u8a2d\u5b9a\/tmp\u6b0a\u9650\uff0c\u8b93\u5176\u4ed6\u4eba\u6709\u5beb\u6b0a\u9650\uff08chmod 777 \/tmp)\u3002<\/p>\n<p>\u3000\u30001.[jephe@sh89 \/]$ ls -l | grep tmp<\/p>\n<p>\u3000\u30002.drwxrwxrwx 5 root root 2048 Jun 16 07:44 tmp<\/p>\n<p>\u3000\u3000\u8def\u7531\u5668TFTP\u914d\u7f6e3. \u5728\/tmp\u76ee\u9304\u5efa\u7acb\u58f9\u500b\u7a7a\u6587\u4ef6(\u5982isdn)\uff0c\u4e26\u8a2d\u5b9a\u6b0a\u9650\uff08chmod 777 \/tmp\/isdn\uff09<\/p>\n<p>\u3000\u30001.[root@shopu \/tmp]# touch isdn<\/p>\n<p>\u3000\u30002.[root@shopu \/tmp]# chmod 777 isdn<\/p>\n<p>\u3000\u30003.[root@shopu \/tmp]# ls -l isdn<\/p>\n<p>\u3000\u30004.-rwxrwxrwx 1 root root 0 Jun 16 11:24 isdn<\/p>\n<p>\u3000\u3000\u8def\u7531\u5668TFTP\u914d\u7f6e4. \u9032\u5165\u8def\u7531\u5668\uff0c\u4e0b\u8f09\u914d\u7f6e\u6587\u4ef6\u3002<\/p>\n<p>\u3000\u30001.Shanghai-ISDN#copy run tftp<\/p>\n<p>\u3000\u30002.Remote host [192.168.13.2]?<\/p>\n<p>\u3000\u30003.Name of configuration file to write [shanghai-isdn-confg]? isdn<\/p>\n<p>\u3000\u30004.Write file isdn on host 192.168.13.2? [confirm]<\/p>\n<p>\u3000\u30005.Building configuration&#8230;<\/p>\n<p>\u3000\u30006.Writing isdn !! [OK]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>TFTP\u670d\u52d9\u5668\u7684\u4f7f\u7528\u4e5f\u662f\u975e\u5e38\u5ee3\u6cdb\u7684\uff0c\u90a3\u9ebd\u5c0d\u65bc\u8def\u7531\u5668TFTP\u914d\u7f6e\u7684\u5177\u9ad4\u64cd\u4f5c\uff0c\u6211\u5011\u5728\u6587\u4e2d\u9032\u884c\u58f9\u4e0b\u5177\u9ad4\u8b1b\u89e3\u3002\u5728\u5c40\u57df\u7db2 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[2747,671,434],"class_list":["post-1706","post","type-post","status-publish","format-standard","hentry","category-cisco","tag-cisco","tag-tftp","tag-434"],"_links":{"self":[{"href":"https:\/\/www.killtest.hk\/index.php\/wp-json\/wp\/v2\/posts\/1706","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.killtest.hk\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.killtest.hk\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.killtest.hk\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.killtest.hk\/index.php\/wp-json\/wp\/v2\/comments?post=1706"}],"version-history":[{"count":0,"href":"https:\/\/www.killtest.hk\/index.php\/wp-json\/wp\/v2\/posts\/1706\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.killtest.hk\/index.php\/wp-json\/wp\/v2\/media?parent=1706"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.killtest.hk\/index.php\/wp-json\/wp\/v2\/categories?post=1706"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.killtest.hk\/index.php\/wp-json\/wp\/v2\/tags?post=1706"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}