Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#access-list ?
<1-99> IP standard access list
<100-199> IP extended access list
Router(config)#access-list 150 ?
deny Specify packets to reject
permit Specify packets to forward
remark Access list entry comment
Router(config)#access-list 150 permit ?
eigrp Cisco's EIGRP routing protocol
icmp Internet Control Message Protocol
ip Any Internet Protocol
ospf OSPF routing protocol
tcp Transmission Control Protocol
udp User Datagram Protocol
Router(config)#access-list 150 permit ip ?
A.B.C.D Source address
any Any source host
host A single source host
Router(config)#access-list 150 permit ip 10.8.40.0 ?
A.B.C.D Source wildcard bits
Router(config)#access-list 150 permit ip 10.8.40.0 0.0.0.255 ?
A.B.C.D Destination address
any Any destination host
host A single destination host
Router(config)#access-list 150 permit ip 10.8.40.0 0.0.0.255 10.8.33.1?
A.B.C.D
Router(config)#access-list 150 permit ip 10.8.40.0 0.0.0.255 10.8.33.1 ?
A.B.C.D Destination wildcard bits
Router(config)#access-list 150 permit ip 10.8.40.0 0.0.0.255 10.8.33.1 0.0.0.255?
A.B.C.D
Router(config)#access-list 150 permit ip 10.8.40.0 0.0.0.255 10.8.33.1 0.0.0.255 ?
<cr>
Router(config)#access-list 150 permit ip 10.8.40.0 0.0.0.255 10.8.33.1 0.0.0.255 :定一列表(打完问号后的完整命令行)
Router(config)#interface fastEthernet 0/1 :进入接口
Router(config-if)#ip access-group 150 ?
in inbound packets
out outbound packets
Router(config-if)#ip access-group 150 in :应用访问控制列表