在此介紹是Cisco ACL相關基本設定。此工具就像是Cisco小型的防火牆,利用將存取規則寫在清單上,再藉由此清單比對封包來達到安全目的。
R2#ping 192.168.1.254 source 192.168.2.254 Packet sent with a source address of 192.168.2.254 !!!!! R1#ping 192.168.22.254 source 192.168.1.254 Packet sent with a source address of 192.168.1.254 !!!!!
R1#conf t R1(config)#ip access-list extended test R1(config-ext-nacl)#deny icmp host 192.168.22.254 any R1(config-ext-nacl)#do sh ip access Extended IP access list test 10 deny icmp host 192.168.2.254 any
R1(config)#int s0/0 R1(config-if)#ip access-group test in
R2#ping 192.168.1.254 source 192.168.22.254 Packet sent with a source address of 192.168.22.254 U.U R2#ping 192.168.1.254 source 192.168.2.254 Packet sent with a source address of 192.168.2.254 ..
R1(config-ext-nacl)#permit ip host any any
再測試看看R2 192.168.2.254不可被阻擋
R2#ping 192.168.1.254 source 192.168.2.254 Packet sent with a source address of 192.168.2.254 !!!!!