国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 系統(tǒng) > Linux > 正文

Linux 網(wǎng)管 123 --- 第8章. 備份及回存程序 -3.Cisco 路由器組態(tài)備

2024-07-26 00:30:36
字體:
供稿:網(wǎng)友
在我工作的地方,我們透過廣域網(wǎng)路連接距離很遠(yuǎn)的幾個地點。這些地方利用 Cisco 路由器透過 ISDN 連接,
或在其他例子, Centrex data circuits 提供 Internet 及 WAN 連結(jié)。 Cisco 路由器產(chǎn)品允許網(wǎng)路伺服器透
過 TFTP (“Trivial File Transfer PRotocol”) 讀寫組態(tài)檔。無論何時當(dāng)路由器組態(tài)變更,在 linux 伺服器
上儲存其組態(tài)檔很重要,因為這樣才能維護(hù)備份。 
請注意 Red Hat 預(yù)設(shè)是 disable TFTP 服務(wù),因為如果組態(tài)不正確這可能變成安全上的漏洞。 TFTP daemon 
允許任何人無須進(jìn)行稽核就可以讀寫檔案。我個人的做法是建立一個 ``/tftpboot/'' 目錄,由 root 所擁有,
然後修改位於``/etc/inetd.conf''檔已有的組態(tài)列,指向該檔案位置: 
  tftpd   dgram   udp    wait   root   /usr/sbin/tcpd  in.tftpd  /tftpboot
 


   注意: 在上面那一行末端加上 ``/tftpboot'' 路徑,明確地指出允許 TFTP daemon 存取的檔案位置。雖然您
   也可以略過這一部份,并且允許  TFTP 存取您系統(tǒng)上任何一部份的檔案,既然 TFTP 有安全上的風(fēng)險,這可
   能是很遭的主意。 

一但您 enable TFTP 服務(wù),別忘了鍵入: 
  killall -HUP inetd
 

上面的指令重新啟動 INETD daemon 以辨認(rèn)出您在 inetd.conf 檔中所做的任何變更。 

要建立路由器組態(tài)備份檔牽涉到3個步驟的程序 : 設(shè)定寫入到一個已存在檔(或建立一個新的)的許可,寫入備份
檔,然後重新設(shè)定限制存取該檔案。下面是一個路由器組態(tài)備份的例: 
  mail:~# cd /tftpboot
mail:/tftpboot# chmod a+w xyzrouter-confg
chmod: xyzrouter-confg: No such file or directory
mail:/tftpboot# touch xyzrouter-confg
mail:/tftpboot# chmod a+w loyola-confg
mail:/tftpboot# telnet xyzrouter

Escape character is '^]'.
User access Verification
PassWord: ****
xyzrouter> enable
Password: ****
xyzrouter# write network
Remote host []? 123.12.41.41
Name of configuration file to write [xyzrouter-confg]?  
Write file xyzrouter-confg on host 123.12.41.41? [confirm]  
Building configuration...
Writing xyzrouter-confg !! [OK] 
xyzrouter# exit
Connection closed by foreign host.

mail:/tftpboot# chmod a-wr,u+r xyzrouter-confg
mail:/tftpboot# exit
 


當(dāng)路由器出現(xiàn)失效的情形 (例如因為打雷發(fā)生的突波所導(dǎo)致),這些備份檔可以幫助重新載入路由器組態(tài),
從組態(tài)檔恢復(fù)牽扯到3個步驟的程序 : 設(shè)定既有檔案的許可,載入檔案,然後重新設(shè)定限制存取該檔案。下
面是路由器組態(tài)恢復(fù)的例 
  mail:~# cd /tftpboot
mail:/tftpboot# chmod a+r xyzrouter-confg
mail:/tftpboot# telnet xyzrouter

Escape character is '^]'.
User Access Verification
Password: ****
xyzrouter> enable
Password: ****
xyzrouter# config network
Host or network configuration file [host]?  
Address of remote host [255.255.255.255]? 123.12.41.41
Name of configuration file [xyzrouter-confg]?  
Configure using loyola-confg from 123.12.41.41? [confirm]  
Loading xyzrouter-confg from 123.12.41.41 (via BRI0): !
[OK - 1265/32723 bytes]
xyzrouter# write
xyzrouter# exit
Connection closed by foreign host.

mail:/tftpboot# chmod a-wr,u+r xyzrouter-confg
mail:/tftpboot# exit

發(fā)表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發(fā)表
主站蜘蛛池模板: 通渭县| 兴安盟| 桂东县| 辰溪县| 贵定县| 辽中县| 招远市| 天气| 凤冈县| 华蓥市| 青田县| 闽侯县| 锡林浩特市| 合肥市| 郓城县| 巴塘县| 城步| 石渠县| 昭通市| 刚察县| 东乌| 融水| 麦盖提县| 乌拉特前旗| 巴楚县| 三门县| 嘉荫县| 巫溪县| 怀宁县| 疏勒县| 大余县| 基隆市| 进贤县| 囊谦县| 台山市| 马尔康县| 富源县| 岳阳市| 桃江县| 海门市| 天津市|