R1(config-std-nacl)#permit 58.1.1.1 se R1(config-std-nacl)#permit 58.1.1.1 de R1(config-std-nacl)#permit 58.1.1.1 pro R1(config-std-nacl)#permit 58.1.1.1 pro R1(config-std-nacl)#permit 58.1.1.1 pro R1(config-std-nacl)#permit ho R1(config-std-nacl)#permit host ? A.B.C.D Host address
R1(config-std-nacl)#permit host 58.1.1.1 ? R1(config-std-nacl)#permit host 58.1.1.1 pr R1(config-std-nacl)#permit host 58.1.1.1 pro R1(config-std-nacl)#permit host 58.1.1.1 sou R1(config-std-nacl)#permit host 58.1.1.1 des R1(config-std-nacl)#exit R1(config)#acc R1(config)#access-list 10 prt R1(config)#access-list 10 per R1(config)#ip acc R1(config)#ip access-list st R1(config)#ip access-list standard 2 R1(config-std-nacl)#de R1(config-std-nacl)#den R1(config-std-nacl)#deny 192.168.1.1 R1(config-std-nacl)#per R1(config-std-nacl)#permit any R1(config-std-nacl)#int s0/3/0 R1(config-if)#ip acc R1(config-if)#ip access-group 2 out R1(config-if)#q ^ % Invalid input detected at '^' marker. R1(config-if)#^Z R1# %SYS-5-CONFIG_I: Configured from console by console R1# R1#en conf ^ % Invalid input detected at '^' marker. R1#conf t Enter configuration commands, one per line. End with CNTL/Z. R1(config)#ip acc R1(config)#ip access-list ex R1(config)#ip access-list extended 101 R1(config-ext-nacl)#den R1(config-ext-nacl)#deny tcp hos R1(config-ext-nacl)#deny tcp host 192.168.1.1 192.168.2.250 255.255.255.0 eq www R1(config-ext-nacl)#per R1(config-ext-nacl)#permit ip any % Incomplete command. R1(config-ext-nacl)#int f0/0 R1(config-if)#ip ac R1(config-if)#ip access-group 101 in R1(config-if)# R1(config-if)# R1(config-if)# R1(config-if)#ex R1(config)# R1(config)# R1(config)# R1(config)#ex R1# %SYS-5-CONFIG_I: Configured from console by console R1#show run Building configuration... Current configuration : 941 bytes ! version 12.4 no service timestamps log datetime msec no service timestamps debug datetime msec no service password-encryption ! hostname R1 ! ! ! ! ! ! ! ! ! ! ! ! ! ! spanning-tree mode pvst ! ! ! ! interface FastEthernet0/0 ip address 192.168.1.254 255.255.255.0 ip access-group 101 in duplex auto speed auto ! interface FastEthernet0/1 no ip address duplex auto speed auto shutdown ! interface Serial0/3/0 ip address 58.1.1.1 255.255.255.252 ip access-group 2 out clock rate 64000 ! interface Vlan1 no ip address shutdown ! router rip version 2 network 58.0.0.0 network 192.168.1.0 network 192.168.2.0 network 210.28.144.0 no auto-summary ! ip classless ! ! ip access-list standard klose ip access-list standard acl access-list 2 deny host 192.168.1.1 access-list 2 permit any access-list 101 deny tcp host 192.168.1.1 0.0.0.250 255.255.255.0 eq www ! ! ! ! ! line con 0 ! line aux 0 ! line vty 0 4 login ! ! ! end R1# R1# R1#show acc Standard IP access list klose Standard IP access list acl Standard IP access list 2 deny host 192.168.1.1 permit any Extended IP access list 101 deny tcp host 192.168.1.1 0.0.0.250 255.255.255.0 eq www (178 match(es)) R1#conf t Enter configuration commands, one per line. End with CNTL/Z. R1(config)#no accc R1(config)#no acc R1(config)#no access-list klose ^ % Invalid input detected at '^' marker. R1(config)#no ip acc R1(config)#no ip access-list k R1(config)#no ip access-list sta R1(config)#no ip access-list standard klose R1(config)#no ip access-list standard acl R1(config)# R1(config)#do show ac Standard IP access list 2 deny host 192.168.1.1 permit any Extended IP access list 101 deny tcp host 192.168.1.1 0.0.0.250 255.255.255.0 eq www (178 match(es)) R1(config)#ip acc R1(config)#ip access-list ex R1(config)#ip access-list extended 101 R1(config-ext-nacl)#per R1(config-ext-nacl)#permit ip any an R1(config-ext-nacl)#permit ip any any R1(config-ext-nacl)# R1(config-ext-nacl)#ex R1(config)# R1(config)#do show acc Standard IP access list 2 deny host 192.168.1.1 permit any Extended IP access list 101 deny tcp host 192.168.1.1 0.0.0.250 255.255.255.0 eq www (178 match(es)) permit ip any any R1(config)# 因篇幅问题不能全部显示,请点此查看更多更全内容