Cisco Cisco ASA 5580 Adaptive Security Appliance Leaflet

Page of 1214
 
11-53
思科 ASA 系列命令参考,命令
 
 11       show pager  show route 命令
  show route
show route 命令列出可用于新连接的 “ 最佳 ” 路由。如果您将允许的
 TCP SYN 发送到备用接
口,
ASA 只能使用同一个接口作出响应。如果该接口上的 RIB 中没有默认路由,ASA 将会由于
没有相邻关系而丢弃数据包。
show running-config route
 命令中所示的所有配置将保留在系统的
某些数据结构中。
使用
 show asp table routing 命令可查看特定于后端接口的路由表。这一设计类似于 OSPF 或 
EIGRP,其中的协议特定路由数据库不同于全局路由表,后者仅显示 “ 最佳 ” 路由。此行为是
有意设计的行为。
注意
在思科
 IOS 中使用 show ip route 命令时,longer-prefix 关键字可用。如果在思科 IOS 中使用此关
键字,仅在指定网络和掩码对相匹配的情况下才会显示路由。
 ASA 上,longer-prefix 关键字是 show route 命令的默认行为;也就是说,CLI 中不需要其他关
键字。因此,键入
 ip 不能看到路由。要获取超级网络路由,必须与 IP 地址一起传递掩码值。
示例
以下是
 show route 命令的输出示例:
ciscoasa# show route
Codes: L - Local, C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
       D - EIGRP, E - EGP, EX - EIGRP external, O - OSPF, I - IGRP, IA - OSPF inter area 
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
       i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
       * - candidate default, su - IS-IS summary, U - per-user static route, o - ODR
       P - periodic downloaded static route, + - replicated route
Gateway of last resort is 10.86.194.1 to network 0.0.0.0
C    10.86.194.0 255.255.255.0 is directly connected, outside
C    10.40.10.0 255.255.255.0 is directly connected, inside
C    192.168.2.0 255.255.255.0 is directly connected, faillink
C    192.168.3.0 255.255.255.0 is directly connected, statelink
以下是
 show route 命令在 ASA 5555 的管理情景中的输出示例: 以下输出显示内部环回地址
VPN 硬件客户端使用该地址进行个人用户身份验证)。
ciscoasa/admin(config)# show route
Codes: L - Local, C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
       D - EIGRP, E - EGP, EX - EIGRP external, O - OSPF, I - IGRP, IA - OSPF inter area 
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
       i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
       * - candidate default, su - IS-IS summary, U - per-user static route, o - ODR
       P - periodic downloaded static route, + - replicated route
Gateway of last resort is 10.86.194.1 to network 0.0.0.0
C    127.1.0.0 255.255.0.0 is directly connected, _internal_loopback
C    10.86.194.0 255.255.254.0 is directly connected, outside
S*   0.0.0.0 0.0.0.0 [1/0] via 10.86.194.1, outside