【正文】
ACL,使用語法格式如下: Router ( config ) no accesslist accesslistnumber 例如: Router ( config ) no accesslist 10 配置擴(kuò)展訪問控制列表 擴(kuò)展 ACL的工作過程 圖 431 擴(kuò)展 ACL的工作過程 配置擴(kuò)展 ACL Router(config) accesslist accesslistnumber {deny | permit} protocol source [sourcewildcard destination destinationwildcard] [operator operand] [established] Router(config) no accesslist accesslistnumber 如圖 84所示,某企業(yè)銷售部、市場(chǎng)部的網(wǎng)絡(luò)和財(cái)務(wù)部的網(wǎng)絡(luò)通過路由器 RTA和 RTB相連,整個(gè)網(wǎng)絡(luò)配置 RIPv2路由協(xié)議,保證網(wǎng)絡(luò)正常通信。下一步,路由器檢查目的接口是否應(yīng)用了 ACL。 ( 2)限制網(wǎng)絡(luò)流量,提高網(wǎng)絡(luò)性能。配置路由器的訪問控制列表是網(wǎng)絡(luò)管理員一件經(jīng)常性的工作。如果有 ACL,就將該數(shù)據(jù)包與 ACL中的條件語句相比較。從本節(jié)開始分別介紹各種 ACL的配置方法。 RTB show ip interface Serial 0/0/0 is up,line protocol is up Inter address is Broadcast address is Address determined by setup mand MTU is 1500 bytes Helper address is not set Directed broadcast forwarding is disabled Outgoing access list is not set Inbound access list is 1 擴(kuò)展訪問控制列表在路由接口應(yīng) 用 ACL的實(shí)例 下面以一個(gè)實(shí)例來說明擴(kuò)展 ACL的配置和驗(yàn)證過程 。要求只允許 PC2所在網(wǎng)段的主機(jī)訪問路由器 RTB的 WWW和 Tel服務(wù),并拒絕 PC3所在的網(wǎng)段 ping路由器 RTB。 思考與練習(xí) 1. 如何理解 ACL的工作過程 ? 2. 標(biāo)準(zhǔn) ACL和擴(kuò)展 ACL的有何區(qū)別和聯(lián)系 ?