配置和查看IPX路由和SAP服务( 三 )


R2(config)#ipx sap 4 FILE_SVR BB .0000.0000.0001 ?
Socket number
R2(config)#ipx sap 4 FILE_SVR BB.0000.0000.0001 150 ?
Hop count
R2(config)#ipx sap 4 FILE_SVR BB.0000.0000.0001 150 1
R2(config)#ipx sap 7 PRINT_SVR BB.0000.0000.0002 151 1
R2(config)#^Z
R2#sh ipx servers
Codes: S - Static, P - Periodic, E - EIGRP, N - NLSP, H - Hoiddown,= detail
U - Per-user static
2 Total IPX Servers
Table ordering is based on routing and server info
 Type NameNet AddressPortRoute Hops ltf
S4FILE_SVR BB.0000.0000.0001:0150 conn 1Lo0
S7PRINT_SVRBB.0000.0000.0002:0150 conn 1Lo0
R2#
Term_Server#1
[Resuming connection 1 to R1 ... ]
R1#sh ipx servers
Codes: S - Static, P - Periodic, E - EIGRP, N - NLSP, H - Hoiddown,= detail
U - Per-user static
2 Total IPX Servers
Table ordering is based on routing and server info
Type Name NetAddressPortRoute Hops Itf
P 4FILE_SVRBB.0000.0000.0001:0150 2/012Et0
P 7PRINT_SVR BB.0000.0000.0002:0150 2/012 Et0
R1#
R1#debug ipx sap ?
 activity IPX Service Advertisement packets
 eventsIPX Service: Advartisement events
R1#debug ipx sap act
IPX service debugging is on
R1#cle ipx sap *
R1#IPXSAP:General Query src=https://www.rkxy.com.cn/dnjc/12.0000.0c76.f736,dst=12.ffff.ffff.ffff,packet sent(via Ethernst0)
R1#IPXSAP:General Query src=https://www.rkxy.com.cn/dnjc/AA.0000.0c76.f736,dst=AA.ffff.ffff.ffff,packet sent(via Loopback0)
06:55:28: IPXSAP;
06:55:28: IPXSAP: positing update to 12.ffff.ffff.ffff via Ethernet0 (broadcast) (flash)
06:55:28: IPXSAP: positing update to AA.ffff.ffff.ffff via Loopback0 (broadcast) (flash)
06:55:28: IPXSAP: Response (in) type 0x2 len 160 src:12.0000.0c8e.cdd2 dest:12.0000.0c76.f736(452)
06:55:28: type 0x7,"PRINT_SVR",BB.0000.0000.0002(151),2 hops
06:55;28: type 0x4,"FILE_SVR",BB.0000.0000.0001(150),2 hops
R1#
06:55:28: IPXSAP:type 0x7 server"PRINT_SVR"distance lowered;new entry accepted[2/1/2]
06:55:28: IPXSAP:type 0x4 server"FILE_SVR"distance lowered;new entry accepted[2/1/2]
06:55:28: IPXSAP: positing update to 12.ffff.ffff.ffffvia Ethernet0 (broadcast) (flash)
06:55:28: IPXSAP: positing update to AA.ffff.ffff.ffffvia Loopback0 (broadcast) (flash)
06:55:28: IPXSAP: suppressing null update to 12.ffff.ffff.ffff
06:55:28: IPXSAP: Update type 0x2 len 160 src:AA.0000.0c76.f736 dest:AA.ffff.ffff.ffff(452)
06:55:28: type 0x4,"FILE_SVR",BB.0000.0000.0001(150),3 hops
06:55:28: type 0x7,"PRINT_SVR",BB.0000.0000.0002(151),3 hops
R1#
06:55:29: IPXSAP: suppressing null update to 12.ffff.ffff.ffff
06:55:29: IPXSAP: suppressing null update to AA.ffff.ffff.ffff
R1#
06:55:47: IPXSAP: positing update to 12.ffff.ffff.ffff via Ethernet0 (broadcast) (full)
06:55:47: IPXSAP: suppressing null update to 12.ffff.ffff.ffff
R1#
(1)为了测试的目的,我们定义了2个静态的SAP服务,一个是类型为4的文件服务器FILE_SVR,另一个是类型为7的打印服务器PRINT_SVR,并分别给出了它们的IPX地址 。套接字号和跳数 。
(2)在R2上的sh ipx servers命令查到了刚刚定义的2个服务器,其状态是S,即静态,跳数为1 。
(3)在R1上使用sh ipx servers命令看到了类似的结果,跳数值在此处变成了2 。
(4)监测SAP协议的工作的同时,我们使用了clear ipx sap*命令,这迫使SAP进行更新 。
监测结果记录了SAP协议查询和更新的全部信息 。

推荐阅读