【正文】
? 字符串名稱必須唯一 Router(config) ip accesslist { standard | extended } name Router(config {std | ext}nacl) { permit | deny } { ip access list test conditions } { permit | deny } { ip access list test conditions } no { permit | deny } { ip access list test conditions } Router(configif) ip accessgroup name { in | out } ? 在特定接口上啟用命名 ACL 命名( Named) ACL的配置 ? Cisco IOS Release ? 字符串名稱必須唯一 ? 配置 permit和 deny語(yǔ)句的時(shí)候不需在前面指定 ACL號(hào)碼 ? “no”命令刪除指定的命名 ACL測(cè)試語(yǔ)句 交換機(jī)端口訪問控制列表 ? 1僅可以在交換機(jī)第二層接口上應(yīng)用端口訪問控制列表 . ? 2只能把它們應(yīng)用在接口的入口列表上 ,并且只能用命名的列表 . ? 3支持的訪問列表 ? 標(biāo)準(zhǔn)訪問列表 ? 擴(kuò)展訪問列表 ? MAC擴(kuò)展訪問列表 交換端口訪問控制列表命令 ? S1(config)mac accesslist extended 名子 ? S1(configextmac1)deny ?或 permit? ? S1(configextmac1)permit any any ? S1(configextmac1)interface fa0/1 ? S1(configif)mac accessgroup 名子 in – 在靠近源地址的網(wǎng)絡(luò)接口上設(shè)置擴(kuò)展 ACL – 在靠近目的地址的網(wǎng)絡(luò)接口上設(shè)置標(biāo)準(zhǔn) ACL E0 E0 E1 S0 To0 S1 S0 S1 E0 E0 TokenRingB A C 設(shè)置 ACL的位置 建議: D wg_ro_ashow ip int e0 Ether0 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 Proxy ARP is enabled Security level is default Split horizon is enabled ICMP redirects are always sent ICMP unreachables are always sent ICMP mask replies are never sent IP fast switching is enabled IP fast switching on the same interface is disabled IP Feature Fast switching turbo vector IP multicast fast switching is enabled IP multicast distributed fast switching is disabled text ommitted 查看特定接口啟用的 ACL配置 查看 ACL測(cè)試語(yǔ)句 wg_ro_ashow accesslists Standard IP access list 1 permit permit permit permit Extended IP access list 101 permit tcp host any eq tel permit tcp host any eq ftp permit tcp host any eq ftpdata wg_ro_ashow {protocol} accesslist {accesslist number} wg_ro_ashow accesslists {accesslist number} 使用 ACL控制 VTY的訪問 5個(gè)虛擬終端接口( vty0到 vty4) 對(duì)訪問路由器 vty的地址進(jìn)行控制 對(duì)路由器發(fā)起的向外 vty訪問進(jìn)行控制 0 1 2 3 4 虛擬終端接口 ( vty0到 vty4) 物理接口 e0 (Tel) 控制臺(tái)接口(直接連接) console e0 如何控制 VTY訪問 0 1 2 3 4 ( 1) 建立一個(gè)針對(duì) IP地址過濾的標(biāo)準(zhǔn) ACL; ( 2) 在 IOS的子線路配置模式下,使用 accessclass命令對(duì)所有的 vty綁定上述