Router# ping www.techrepublic.com Translating "www.techrepublic.com"...domain server (1.1.1.1) [OK]
Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 216.239.113.101, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/4 ms Router#
Translating "www.techrepublic.com"...domain server (255.255.255.255) % Unrecognized host or address, or protocol not running. (不认识的主机或地址,或可能协议未运行)
步骤2:建立ACL 想真正阻止访问某个网站,我们必须建立一个存取控制列表(access control list,简称ACL)来具体定义我们想阻止什么。下面是个例子:
Router(config)# access-list 101 deny tcp any host www.badsite.com eq www Translating "www.badsite.com"...domain server (1.1.1.1) [OK] Router(config)# access-list 101 permit tcp any any eq www ! to allow all other web traffic