




版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡介
1、ACL簡單的配置ACL(Access Control List,訪問控制列表),簡單說就是包過濾,根據(jù)數(shù)據(jù)包的報(bào)頭中的ip地址、協(xié)議端口號等信息進(jìn)行過濾。利用ACL可以實(shí)現(xiàn)安全控制。編號:1-99 or 1300-1999(standard IP),100-199 or 2000-2699(Extended IP)。ACL并不復(fù)雜,但在實(shí)際應(yīng)用中的,要想恰當(dāng)?shù)貞?yīng)用ACL,必需要制定合理的策略。 一、實(shí)驗(yàn)配置拓?fù)鋱D圖一二、三個(gè)路由器的基本配置LuoShan#sh startup-configUsing 699 bytes!version 12.4n
2、o service password-encryption!hostname LuoShan!enable password cisco!username senya password 0 cisco!ip ssh version 1no ip domain-lookup!interface FastEthernet0/0no ip addressduplex autospeed autoshutdown!interface FastEthernet0/1ip address duplex autospeed auto!interface Se
3、rial0/3/0ip address clock rate 56000!interface Serial0/3/1ip address !interface Vlan1no ip addressshutdown!router eigrp 100network network network auto-summary!ip classless!line con 0line vty 0 4password ciscologin!endHua
4、ngChuang#sh startup-configUsing 669 bytes!version 12.4no service password-encryption!hostname HuangChuang!enable password cisco!ip ssh version 1no ip domain-lookup!interface FastEthernet0/0no ip addressduplex autospeed autoshutdown!interface FastEthernet0/1ip address duplex
5、autospeed auto!interface Serial0/3/0ip address !interface Serial0/3/1ip address clock rate 56000!interface Vlan1no ip addressshutdown!router eigrp 100network network network auto-summary!ip classless!line con 0line vty 0
6、4password ciscologin!endxixian#sh startup-configUsing 679 bytes!version 12.4service password-encryption!hostname xixian!enable password 7 0822455D0A16!ip ssh version 1no ip domain-lookup!interface FastEthernet0/0no ip addressduplex autospeed autoshutdown!interface FastEthernet0/1ip address 192.168.1
7、.1 duplex autospeed auto!interface Serial0/3/0ip address clock rate 56000!interface Serial0/3/1ip address !interface Vlan1no ip addressshutdown!router eigrp 100network network network auto-summary!ip classles
8、s!line con 0line vty 0 4password 7 0822455D0A16login!end三、配置簡單的ACL、配置ACL限制遠(yuǎn)程登錄到路由器的主機(jī)HuangChuang#conf tEnter configuration commands, one per line. End with CNTL/Z.HuangChuang(config)#access-list 1 permit host 路由器HuangChuang只允許遠(yuǎn)程登錄(telnet)HuangChuang(config)#line vty 0 4HuangChu
9、ang(config-line)#access-class 1 inHuangChuang(config-line)#其它兩個(gè)路由器配置相似。、配置ACL禁止/24網(wǎng)段的icmp協(xié)議數(shù)據(jù)包通向與/24網(wǎng)段xixian(config)#access-list 101 deny icmp 55 55xixian(config)#access-list 101 permit ip any anyxixian(config)#int fa0/1xixian(config-if)#ip
10、 access-group 101 outxixian(config-if)#、配置ACL禁止特點(diǎn)的協(xié)議端口通訊HuangChuang#conf tEnter configuration commands, one per line. End with CNTL/Z.HuangChuang(config)#ip access-list extended ACL1創(chuàng)建基于名稱的擴(kuò)展ACLHuangChuang(config-ext-nacl)#deny tcp host 55 eq 80HuangChuang(config-ext-n
11、acl)#deny udp host 55 eq 53HuangChuang(config-ext-nacl)#permit ip any anyHuangChuang(config-ext-nacl)#exitHuangChuang(config)#int fa0/1HuangChuang(config-if)#ip access-group ACL1 inHuangChuang(config-if)#圖四驗(yàn)證ACL。檢驗(yàn)、查看ACLHuangChuang#sh access-listStandard IP access list
12、 1 permit host (4 match(es)Extended IP access list ACL1 deny udp host 55 eq domain deny tcp host 55 eq www permit ip any anyHuangChuang#show access-listSt
13、andard IP access list 1 permit host (4 match(es)Extended IP access list ACL1 deny udp host 55 eq domain (15 match(es) deny tcp host 55 eq www (60 match(es)
14、; permit ip any any (34 match(es)HuangChuang#show access-list ACL1Extended IP access list ACL1 deny udp host 55 eq domain (15 match(es) deny tcp host 55 eq www (60 match(es) permit ip
15、any any (34 match(es)HuangChuang#show access-list 1Standard IP access list 1 permit host (4 match(es)四、配置ACL的路由器配置內(nèi)容HuangChuang#sh startup-configUsing 914 bytes!version 12.4no service password-encryption!hostname HuangChuang!enable password cisco!ip ssh version 1no ip d
16、omain-lookup!interface FastEthernet0/0no ip addressduplex autospeed autoshutdown!interface FastEthernet0/1ip address ip access-group ACL1 induplex autospeed auto!interface Serial0/3/0ip address !interface Serial0/3/1ip address
17、clock rate 56000!interface Vlan1no ip addressshutdown!router eigrp 100network network network auto-summary!ip classless!access-list 1 permit host ip access-list extended ACL1deny udp host 55 eq domaindeny tcp host 1
18、 55 eq wwwpermit ip any any!line con 0line vty 0 4access-class 1 inpassword ciscologin!endLuoShan#sh startup-configUsing 756 bytes!version 12.4no service password-encryption!hostname LuoShan!enable password cisco!username senya password 0 cisco!ip ssh version 1no ip domain-lookup!in
19、terface FastEthernet0/0no ip addressduplex autospeed autoshutdown!interface FastEthernet0/1ip address duplex autospeed auto!interface Serial0/3/0ip address clock rate 56000!interface Serial0/3/1ip address !interface Vlan1no ip
20、addressshutdown!router eigrp 100network network network auto-summary!ip classless!access-list 2 permit host !line con 0line vty 0 4access-class 2 inpassword ciscologin!endxixian#show startup-configUsing 808 bytes!version 12.4service password-encryption!hostname xi
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 出血的護(hù)理措施
- 超市員工保密協(xié)議書
- 驛站轉(zhuǎn)讓違約協(xié)議書
- 餐廳經(jīng)營股東協(xié)議書
- 鐵路應(yīng)聘就業(yè)協(xié)議書
- 兄弟倆共同分家協(xié)議書
- 餐飲項(xiàng)目外包協(xié)議書
- 道路合作施工協(xié)議書
- 餐廳物業(yè)轉(zhuǎn)讓協(xié)議書
- 裁員賠償保密協(xié)議書
- 蘇州昆山鹿城村鎮(zhèn)銀行2023年招聘人員筆試歷年難、易錯(cuò)考點(diǎn)試題含答案附詳解
- 山西煤炭運(yùn)銷集團(tuán)錦瑞煤業(yè)有限公司煤炭資源開發(fā)利用、地質(zhì)環(huán)境保護(hù)與土地復(fù)墾方案
- 《國家中藥飲片炮制規(guī)范》全文
- 教育公共基礎(chǔ)知識整理版
- Q-SY 06351-2020 輸氣管道計(jì)量導(dǎo)則
- 鐵路工程定額電子版(Excel版)
- 如何預(yù)防與處理勞動爭議培訓(xùn)課件
- JJG 1148-2022電動汽車交流充電樁(試行)
- GB/T 31586.2-2015防護(hù)涂料體系對鋼結(jié)構(gòu)的防腐蝕保護(hù)涂層附著力/內(nèi)聚力(破壞強(qiáng)度)的評定和驗(yàn)收準(zhǔn)則第2部分:劃格試驗(yàn)和劃叉試驗(yàn)
- GB/T 24917-2010眼鏡閥
評論
0/150
提交評論