① H3C浜ゆ崲鏈洪厤緗鏂囦歡澶囦喚鏂規硶
H3C浜ゆ崲鏈閰嶇疆鏂囦歡澶囦喚鏂規硶
銆銆鍗庝負浜ゆ崲鏈烘湁闈炲父澶氱殑鍨嬪彿錛岄偅浣滀負鍗庝負璁よ瘉瀛︿範鑰咃紝浣犱簡瑙e崕涓轟氦鎹㈡満閰嶇疆鏂囦歡澶囦喚鏂規硶鍚?涓嬮潰璺熸垜涓璧鋒潵鐪嬬湅鍚!
銆銆1銆侀栧厛鍦ㄤ竴鍙拌$畻鏈轟笂榪愯孴FTP Server杞浠訛紝榪欓噷浣跨敤鐨勬槸SolarWinds TFTP Server 8.0錛屽湪璁劇疆涓閰嶇疆濂絉oot 鐩褰;鍦ㄥ畨鍏ㄤ腑閰嶇疆濂芥枃浠剁殑浼犻佹柟鍚(鎺ユ敹銆佸彂閫併佸彂閫\鎺ユ敹);楂樼駭涓鍙浠ラ厤緗鍏佽擱氳繃鐨処P鍦板潃孌碉紝榪欓噷涓嶅仛閰嶅崠紼跨疆;涔嬪悗灝卞彲浠ョ櫥褰曚氦鎹㈡満榪涜岄厤緗鏂囦歡鐨刞浼犻佷簡銆
銆銆2銆侀氳繃Telnet鐧誨綍鍒癝MC浜ゆ崲鏈猴紝灞卞惈鏌ヨ浜ゆ崲鏈虹殑閰嶇疆鏂囦歡 display startup
銆銆鏄劇ず浜ゆ崲鏈虹殑閰嶇疆鏂囦歡 display startup
銆銆display startup
銆銆MainBoard:
銆銆Configed startup system software: flash:/S2300-V100R003C00SPC301.cc
銆銆Startup system software: flash:/S2300-V100R003C00SPC301.cc
銆銆Next startup system software: flash:/S2300-V100R003C00SPC301.cc
銆銆Startup saved-configuration file: flash:/vrpcfg.zip
銆銆Next startup saved-configuration file: flash:/vrpcfg.zip
銆銆Startup license file: NULL
銆銆Next startup license file: NULL
銆銆Startup patch package: flash:/s23_33_53-v100r003sph005.pat
銆銆Next startup patch package: flash:/s23_33_53-v100r003sph005.pat
銆銆3銆佸囦喚浜ゆ崲鏈洪厤緗鏂囦歡錛屽湪鐗規潈妯″紡涓嬭緭鍏ュ備笅鍛戒護錛
銆銆tftp 192.168.1.2 put vrpcfg.zip vrpcfg.zip
銆銆\\榪欐潯鍛戒護鐨勬剰鎬濇槸灝嗚ヤ氦鎹㈡満鐨剉rpcfg.zip閰嶇疆鏂囦歡閫氳繃TFTP涓婁紶鍒癟FTPserver 192.168.1.2涓婏紝鏂囦歡鍚嶄負S2300-vrpcfg.zip
銆銆File will be transferred in binary mode.
銆銆Copying file to remote tftp server. Please wait... |
銆銆TFTP: 2881 bytes sent in 0 second(s).
銆銆File uploaded successfully. \\鐪嬪埌涓婇潰鐨4琛岋紝琛ㄧず鏂囦歡涓婁紶鎴愬姛銆
銆銆4銆佹枃浠朵繚瀛樺湪絎1姝ヨ劇疆鐨凴oot鐩褰曚腑銆
銆銆5銆佸綋瑕佸皢澶囦喚鐨勯厤緗鏂囦歡涓嬮楅厤絎戣澆鍒頒氦鎹㈡満涓婃椂鍒欎嬌鐢ㄤ笅闈㈢殑鍛戒護錛
銆銆tftp 192.168.1.2 get vrpcfg.zip vrpcfg.zip
② 鎬庝箞鐢3CD TFTP宸ュ叿瀵笻3C浜ゆ崲鏈洪厤緗鏂囦歡榪涜屽囦喚鍜屾仮澶嶅晩錛
1銆侀栧厛鍦絎旇版湰鐢佃剳鏈轟笂榪愯岀粓絝浠跨湡紼嬪簭錛屽備笅鍥炬墍紺恆
③ 鎬庝箞澶囦喚鍜屾仮澶岺3C浜ゆ崲鏈洪厤緗
灞鍩熺綉緇存姢涓錛屾湁鏃跺欐垜浠闇瑕佸圭綉緇滆懼囩殑閰嶇疆榪涜屽囦喚涓庤繕鍘熴
鐩鎬俊鏈夊緢澶氱綉綆″憳澶囦喚閰嶇疆閮芥槸閲囩敤display current鍛戒護鏌ヨ㈠綋鍓嶈懼囪繍琛岄厤緗淇℃伅錛岀劧鍚庨噰鐢╟trl+c錛宑trl+v鐨勬柟寮忓皢淇℃伅淇濆瓨鍒皌xt鏂囨。涓;鎴栬呯洿鎺ョ敤鎹曟崏灞忓箷杈撳嚭鐨勬柟娉曚繚瀛樹俊鎮銆
榪樺師鐨勬椂鍊欏啀澶嶅埗鍛戒護鍒頒氦鎹㈡満涓浠庢柊榪愯屻傝繖縐嶆柟娉曞綋鐒朵篃鏄鍙琛岀殑錛屼絾鏄褰撲氦鎹㈡満鐨勯厤緗鐗瑰埆澶氾紝鍙堟瘮杈冨嶆潅鐨勬儏鍐典笅錛岃繖縐嶆柟娉曞氨涓嶅お鍚堥備簡銆
涓嬮潰鎴戜粙緇嶄竴縐嶆暣浣撳煎叆鍜屽煎嚭H3C浜ゆ崲鏈洪厤緗鐨勬柟娉曘
鏈嬈″疄楠岄噰鐢ㄧ殑璁懼囧拰杞浠舵湁錛欻3C S5500 Series銆丆isco TFTP Server
瀹為獙涔嬪墠鍏堜簡瑙e嚑涓鍚嶈瘝鐨勫叿浣撴剰涔夈
saved-configuration 浜ゆ崲鏈篺lash涓淇濆瓨鐨勪笅嬈″惎鍔ㄧ殑閰嶇疆
current-configuration浜ゆ崲鏈哄綋鍓嶇敓鏁堢殑閰嶇疆
default-configuration 浜ゆ崲鏈虹殑鍑哄巶閰嶇疆
startup-configuration 浜ゆ崲鏈轟笅嬈″惎鍔ㄩ厤緗鏂囦歡
閲囩敤TFTP鏈嶅姟鍣ㄥ囦喚閰嶇疆鏈変袱縐嶆柟娉曪細
絎涓縐嶏細鍦╳eb鐣岄潰涓婅繘琛屽囦喚
渚濇″崟鍑葷$悊鈥旇懼囧囦喚錛屽嚭鏉ヨ懼囧囦喚鐣岄潰錛岀劧鍚庡湪IP鍦板潃鏍忎腑杈撳叆tftp鏈嶅姟鍣ㄧ殑IP鍦板潃錛岄厤緗鏂囦歡鍚嶄腑杈撳叆浣犺佷繚瀛樼殑鏂囦歡鐨勫悕縐幫紝鐒跺悗鍗曞嚮搴旂敤錛岀瓑寰呬竴孌墊椂闂達紝浼氬嚭鐜板囦喚鎴愬姛鐣岄潰錛屽備笅鍥撅細
榪欐椂鍊欏湪浣犵殑tftp杞浠剁殑鏍圭洰褰曚笅灝辨湁涓涓猦3c.cfg鏂囦歡錛屽備笅鍥炬墍紺猴細
閰嶇疆鐨勬仮澶嶆ラよ窡澶囦喚綾諱技錛屽彧闇閫夋嫨綆$悊鈥旇劇疆鎮㈠嶏紝鐒跺悗杈撳叆鐩稿簲鐨則ftp鏈嶅姟鍣ㄧ殑ip鍦板潃鍜岄渶瑕佹仮澶嶇殑閰嶇疆鏂囦歡鍚嶇О錛屽崟鍑誨簲鐢ㄣ
絳夊緟涓孌墊椂闂村悗錛屽嚭鐜版仮澶嶆垚鍔熺晫闈錛屽備笅鍥撅細
閲囩敤榪欑嶆柟寮忔仮澶嶇殑閰嶇疆涓嶉渶瑕佷慨鏀硅懼囧惎鍔ㄩ」錛屼粠鍚浜ゆ崲鏈猴紝鍗充互鏂扮殑閰嶇疆榪愯屻
絎浜岀嶏細鍛戒護琛屽艦寮
閰嶇疆澶囦喚
絎涓姝ワ細浣跨敤dir /all鍛戒護鏌ョ湅璁懼囩殑閰嶇疆鏂囦歡銆
姝ゅ勭殑閰嶇疆鏂囦歡鍚嶄負h3c.cfg銆
絎浜屾ワ細浣跨敤backup startup-configuration to 192.168.125.149 aaa.cfg鎴杢ftp 192.168.125.149 put h3c.cfg aaa.cfg 澶囦喚閰嶇疆鏂囦歡(h3c.cfg涓哄師閰嶇疆鏂囦歡鍚嶏紝aaa.cfg涓哄囦喚鍚庣殑鏂囦歡鍚嶏紝鑻ヤ笉鎸囧畾鎸囦笌鍘熸枃浠跺悓鍚)銆
TFTP鏈嶅姟鍣ㄤ笂涔熸湁浼氭樉紺轟紶杈撴垚鍔燂紝濡備笅:
閰嶇疆鎮㈠
絎涓姝ワ細浣跨敤restore startup-configuration from 192.168.125.149 aaa.cfg鎴杢ftp 192.168.125.149 get aaa.cfg
鍛戒護浠巘ftp鏈嶅姟鍣ㄤ笂涓嬭澆閰嶇疆鍛戒護錛屽備笅鍥撅細
絎浜屾ワ細浣跨敤dis startup鍛戒護錛屾煡鐪嬩笅涓嬈″惎鍔ㄦ墍浣跨敤鐨勯厤緗鍛戒護錛屽備笅鍥撅細
鍙戠幇姝f槸鎴戜滑瀵煎叆鐨刟aa.cfg閰嶇疆鏂囦歡錛屼粠鍚浜ゆ崲鏈哄悗錛屾仮澶嶄箣鍓嶉厤緗鐨勮繍琛岀姸鎬併
灝忕煡璇嗭細閲囩敤delete鍒犻櫎鐨勯厤緗娌℃湁鐩存帴鍒犻櫎錛岃屾槸瀛樻斁鍦ㄤ氦鎹㈡満鐨勫洖鏀剁珯鍐咃紝浣垮簡涓懼瓩鐢╠ir /all鍛戒護鍙浠ユ煡鐪嬪埌錛
甯︽柟鎷鍙風殑鏂囦歡鏄閲囩敤delete鍛戒護鍒犻櫎鐨勬枃浠躲
瑕佹兂鐪熸e垹闄startup.cfg鏂囦歡錛屽彲浠ヤ嬌鐢╮eset recycle-bin鍛戒護娓呯┖鍥炴敹絝欙紝鎴栬呭湪浣跨敤delete鍛戒護鏄甯︿笂unreserved鍙傛暟錛屽嵆錛歞elete /unreserved flash:/startup.cfg銆傞噰鐢╮eset save-configuration鍛戒護浼氬交搴曞垹闄よ懼囦繚瀛樼殑鍚鍔ㄩ厤緗銆
瑕佸湪web妯″紡涓嬬瓟孌佃繘琛屽囦喚棣栧厛蹇呴』寮鍚浜ゆ崲鏈虹殑http鏈嶅姟(榛樿ゆ槸寮鍚鐨)錛屽壋寤簑eb鐧誨綍鐨勭敤鎴峰悕鍜屽瘑鐮(鏉冮檺蹇呴』鍦╨evel 3浠ヤ笂錛屽寘鎷琹evel 3)錛岀劧鍚庨渶瑕佺粰浜ゆ崲鏈鴻劇疆涓涓綆$悊IP錛岃╀氦鎹㈡満鑳藉熶笌tftp鏈嶅姟鍣ㄦe父閫氳銆
寮鍚痶ftp鏈嶅姟鍣錛屽湪嫻忚堝櫒涓杈撹獕閾懼叆浜ゆ崲鏈虹殑綆$悊IP錛屾ゆ′負192.168.125.141錛屾墦寮web鐧誨綍鐣岄潰銆
杈撳叆鐢ㄦ埛鍚嶅拰瀵嗙爜錛岃繘鍏web綆$悊鐣岄潰錛屽備笅鍥撅細
④ 鎬濈戜笁灞備氦鎹㈡満閰嶇疆鍚庯紝淇℃伅濡備綍澶囦喚鍒皌ftp涓婂憿錛
鍏堝湪鐗規潈妯″紡涓嬩嬌鐢ㄦ瘉鐑傝呭懡浠わ細鍘嗗摢
Router# running-config tftp:
鐒跺緦鏍規嵁鎻愮ず杈撳叆TFTP鏈嶅姟鍣↖P銆佺洰褰曞悕綰よ柉銆佺瓑絳変俊鎮銆
⑤ 鍗曚綅鎯充拱涓涓夊眰浜ゆ崲鏈虹敤鏉ュ仛澶囩敤 鍜屼互鍓嶇敤鐨勫瀷鍙蜂竴鏍 鎴戞兂鎶婁互鍓嶇殑閰嶇疆澶囦喚涓嬫潵鎷瘋礉鍒扮幇鍦ㄧ殑浜ゆ崲鏈轟笂
浣犺繖涓鏈哄櫒鏄鍟ュ瀷鍙風殑鍟婏紝瑕佹槸cisco鐨勪笅涓狢isco TFTP Server錛屽畬浜嗙敤 startup-config tftp 灝卞彲浠ヤ簡鎷瘋礉涓嬫潵浜嗭紝鑰冧笂鍘繪槸 tftp running-config
瑕佹槸鍗庝負鐨勬垨鑰卙3c鐨勶紝鏈夌殑鍨嬪彿鍙浠web鐣岄潰鐧婚檰鐩存帴涓嬭澆閰嶇疆鏂囦歡銆傛垨鑰呯敤ftp浠庝氦鎹㈡満涓婁笅杞姐
灝嗙瑪璁版湰鐨処P璁句負10.200.0.111錛屽湪榪欏彴絎旇版湰涓婂畨瑁呮湁Serv-U杞浠訛紙鍗沖皢榪欏彴絎旇版湰浣滀負涓鍙癋TP鏈嶅姟鍣錛夛紝鐢ㄧ綉綰垮皢絎旇版湰榪炴帴鑷蟲棫浜ゆ崲鏈虹殑絝鍙7錛屼互涓婃搷浣滃畬姣曞悗錛屽湪鏃т氦鎹㈡満涓婃墽琛屽崕涓轟氦鎹㈡満閰嶇疆閾炬嬁澶囦喚鎿嶄綔錛
<ZXJF_3552>ftp 10.200.0.111
Trying ...
Press CTRL+K to abort
Connected.
220 Serv-U FTP Server v5.2 for WinSock ready...
User(none):lrx
331 User name okay, need password.
Password:
230 User logged in, proceed.
[ftp]bin
[ftp]put vrpcfg.txt
200 PORT Command successful.
150 Opening BINARY mode data connection for vrpcfg.txt.
226 Transfer complete.
FTP: 6561 byte(s) sent in 0.220 second(s) 29.00Kbyte(s)/sec.
[ftp]bye
221 Goodbye!
鍏跺疄鍗庝負浜ゆ崲鏈洪厤緗澶囦喚鎿嶄綔寰堢畝鍗曪紝灝辨槸灝嗚繖鍙板崕涓3552浜ゆ崲鏈轟綔涓轟竴涓狥TP瀹㈡埛絝錛屽皢閰嶇疆鏂囦歡vrpcfg.txt涓婁紶鍒頒簡涓鍙癋TP鏈嶅姟鍣ㄤ笂闈錛堝嵆淇濆瓨鍦ㄤ竴鍙癋TP鏈嶅姟鍣ㄤ笂闈錛夛紝涓轟簡灝嗚繖涓閰嶇疆鏂囦歡鍐嶄笂浼犺嚦閭e彴鏂頒氦鎹㈡満涓婂幓錛屾垜浠瑕佽繘琛岀浜屾ユ搷浣溿
錛堜簩錛変負鏂頒氦鎹㈡満閰嶇疆IP鍦板潃
瑕佹兂閫氳繃FTP鐨勬柟寮忚幏鍙栭厤緗鏂囦歡錛屽繀欏婚栧厛涓鴻繖鍙頒氦鎹㈡満閰嶇疆IP鍦版氬崌鎼鍧錛屽湪絎旇版湰涓婇氳繃閰嶇疆綰挎帴鑷充氦鎹㈡満鐨勯厤緗鍙o紝榪涜屽崕涓轟氦鎹㈢瑧鍞鏈洪厤緗澶囦喚鎿嶄綔
<Quidway>sys
Enter system view, return to user view with Ctrl+Z.
[Quidway]inter vlan 100
[Quidway-Vlan-interface100]ip addr 10.200.0.1 255.255.255.0
[Quidway-Vlan-interface100]inter fa0/7
[Quidway-Ethernet0/7]port access VLAN 100
浠ヤ笂鎿嶄綔灝變負榪欏彴鏂頒氦鎹㈡満鏂板緩VLAN100錛岃劇疆VLAN鐨剗p鍦板潃涓10.200.0.1錛屽苟涓斿皢絝鍙7鍒掑綊灞炰簬VLAN100.
錛堜笁錛夋柊浜ゆ崲鏈轟粠FTP鏈嶅姟鍣ㄤ笂涓嬭澆閰嶇疆鏂囦歡
榪涜屽備笅鎿嶄綔錛
<Quidway>ftp 10.200.0.111
Trying ...
Press CTRL+K to abort
Connected.
220 Serv-U FTP Server v5.2 for WinSock ready...
User(none):lrx
331 User name okay, need password.
Password:
230 User logged in, proceed.
[ftp]bin
200 Type set to I.
[ftp]get vrpcfg.txt
227 Entering Passive Mode (10,200,0,111,4,3)
150 Opening BINARY mode data connection for vrpcfg.txt (6561 Bytes).
226 Transfer complete.
FTP: 6561 byte(s) received in 0.528 second(s) 6.00Kbyte(s)/sec.
[ftp]bye
221 Goodbye!
錛堝洓錛夐噸鍚浜ゆ崲鏈猴紝浠ヤ嬌閰嶇疆鏂囦歡鐢熸晥
<Quidway>reboot
This will reboot Switch. Continue? [Y/N] y
閲嶅惎瀹屽啀閫氳繃dis cu鍛戒護閱掔湅閰嶇疆淇℃伅錛屽彂鐜板凡緇忓畬鍏ㄤ笌閭e彴鏃х殑浜ゆ崲鏈轟竴鏍蜂簡銆傞氳繃浠ヤ笂鐨勬搷浣滄垜浠鍙浠ョ湅鍒幫紝鍒╃敤鍗庝負浜ゆ崲鏈虹殑FTP鍔熻兘錛屾垜浠鍙浠ュ緢蹇瀹炵幇涓ゅ彴浜ゆ崲鏈洪棿閰嶇疆
⑥ h3c 三層交換機數據備份
1、首先在一台計算機上運行TFTP Server軟體,最方便的TFTP Server軟體就是是3CDaemon
2、通過Telnet登錄到你要備份的路由器上,在特權模式下輸入如下命令:<H3C1409FS24-01>tftp 172.20.34.2 put config.cfg config.cfg
\\這條命令的意思是將該交換機的config.cfg配置文件通過TFTP上傳到TFTPserver 172.20.34.2上,文件名為config.cfg
File will be transferred in binary mode.
Copying file to remote tftp server. Please wait... |
TFTP: 2881 bytes sent in 0 second(s).
File uploaded successfully.
\\看到上面的4行,表示文件上傳成功。
3、文件保存在第1步設置的Root目錄中。
4、當要將備份的配置文件下載到交換機上時則使用下面的命令:<H3C1409FS24-01>tftp 172.20.34.2 get config.cfg config.cfg