背景:服務器10.65.156.24接到fa0/1端口,只容許10.65.156.175訪問fa0/1口的服務器,其餘電腦不容許訪問該服務器。
interfaceFastEthernet0/1(進入端口1)
ip access-group 101in (將ACL101宣告出去)
access-list 101 permit ip host 10.65.156.24host10.65.156.175(容許10.65.156.175訪問10.65.156.24)
access-list 101 deny ip anyany(拒絕全部IP訪問)