R2#conft Enter configuration commands, one per line. End with CNTL/Z. R2(config)#access-1 801 deny 12 R2(config)#access-S 801 permit -1 R2(config)#int s0 R2(config-if)#ipx access-group 801 out R2(config-if)#^Z R2# R2#sh ipx access-S IPX standard access list 801 deay 12 permit FFFFFFFF R2#sh ipx int s0 Serial0 is up, line date interval is 60 seconds IPX type 20 propagation packet forwarding is disabled Outgoing access list is 801 IPX helper access list is not set ... (输出省略) R2# Term_Server#1 [Resuming connection 1 to r1...] R1#ping ipx AA.0000.0c31.a81b
Type escape sequence to abort. Sending 5,100-byte IPX Novell Echoes to AA.0000.0c31,a81b,timeout is 2 seconds: ..... Success rate is 0 percent(0/5) R1#conft Enter configuration commands, one per line. End with CNTL/Z. R1(config)#int e0 R1(config-if)#ipx netw 102 R1(config-if)# Term_Server#2 [Resuming connection 2 to r2 ... ]
R2#conft Enter configuration commands, one per line. End with CNTL/Z. R2(config)#int e0 R2(config-if)#ipx netw 102 R2(config-if)#^Z R2# Term_Server#1 [Resuming connection 1 to r1 ... ] R1# 11:42:23: %SYS-5-CONFIG_I: Configured from console by console Ripping ipx AA.0000.0c31.a81b Type escape sequence to abort. Sending 5,100-byte IPX Novell Echoes to AA.0000.0c31.a81b,timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max =32/33/40 ms R1# (1)与IP协议一样,路由器不对由自身产生的IPX包进行过滤,在实验时应由其他的设备发包进行测试。 (2)access-1801 deny 12和access-1801 permit-1两个语句定义了编号为801的标准IPX访问控制列表,它允许除12网段之外的所有IPX地址。 标准IPX访问控制列表的编号范围是:800~899。 第2句中的"-1"与"FFFFFFFF"作用相同,表示所有的网络。 (3)在R2路由器S0接口的间外方向引用了IPX访问控制列表801。目的是过滤来自12网段的数据包,同时允许其他所有网段的数据包通过。 (4)show ipx access-list命令列出了所定义的IPX访问控制列表的情况。 (5)show ipx int s0命令列出的信息中加阴影的2行是关于IPX访问控制列表引用情况的信息,表明在离开路由器的方向引用了访问控制列表801。 (6)从R1路由器上,使用ping ipx AA.0000.0c31.a81b测试以12网段的源地址向AA网段的目的地址的通信,测试结果是不通。 (7)为测试的目的,更改R1和R2路由器的E0接口IPX网络号为102。 (8)再次从R1路由器上使用ping ipx AA.0000.0c31.a8lb测试以102网段的源地址向AA网段的目的地址的通信,测试成功。
R2#conft Enter configuration commands, one per line. End with CNTL/Z. R2(config)#access-1 901 permit any 102 AA R2(config)#access-1 901 deny any any R2(config)#int s0 R2(config-if)#ipx access-1 901 out R2(config-if)#^Z R2#sh ipx access-1 IPX standard access list 801 deny 12 permit FFFFFFFF IPX extended access list 901 permit any 102 AA deny any any R2#sh ipx int s0 Serial0 is up, line protocol is up IPX address is 23.0000.0c8e.cdd2 [up] Delay of this IPX network, in ticks is 6 throughput 0 link delay 0 IPXWAN processing not enabled on this interface. IPX SAP update interval is 60 seconds IPX type 20 propagation packet forwarding is disabled Incoming access list not set Outgoing access list is 901 IPX helper access list is not set SAP GGS output filter list is not set (1)扩展IPX访问控制列表的编号范围是:900-999。 定义IPX访问控制列表901时,第1个语句表示允许所有IPX系列协议从102网段到AA网段的通信;第2个语句表示禁止从所有其他网段的IPX协议的通信。 (2)在R2路由器S0接口的离开路由器的方向上引用扩展IPX访问控制列表901。 (3)show ipx access-list命令列出了刚刚定义的访问控制列表,即扩展IPX访问控制列表901。 (4)show ipx int s0命令列出的信息中加阴影的两行显示了S0接口对IPX访问控制列表的引用情况。可以看到在向外的方向引用了扩展EPX访问控制列表901。
R2#conft Enter configuration commands, one per line. End with CNTL/Z. R2(config)#ipx access-list standard Test3 R2(config"ipx-std-nacl)#deny 12 R2(config-ipx-std-nacl)#permit -1 R2(config-ipx-std-nacl)#exit R2(config)#ipx access-list extended Test4 R2(config-ipx-ext-nacl)#permit any 102 AA R2(config-ipx-ext-nacl)#deny any any R2(config-ipx-ext-nacl)#^Z R2# R2#sh ipx access-1 IPX standard ajccess list 801 deny 12 permit FFFFFFFF IPX extended access l