API Guide

--------------------------------------------------------------------
192.168.2.2 90:b1:1c:f4:a6:e6 ethernet1/1/49:1 ethernet1/1/49:1
示例静态
OS10# show ip arp summary
Total Entries Static Entries Dynamic Entries
-------------------------------------------------------
3994 0 3994
OS10# show ip arp 192.168.2.2
Address Hardware address Interface Egress Interface
--------------------------------------------------------------------
192.168.2.2 90:b1:1c:f4:a6:e6 ethernet1/1/49:1 ethernet1/1/49:1
OS10# show ip arp
Address Hardware address Interface Egress Interface
---------------------------------------------------------------------------
192.168.2.2 90:b1:1c:f4:a6:e6 ethernet1/1/49:1 ethernet1/1/49:1
193.168.2.3 54:bf:64:e6:d4:c5 vlan4000 port-channel1000
示例动态
OS10# show ip arp dynamic
Address Hardware address Interface Egress Interface
---------------------------------------------------------------------------------
192.168.2.2 90:b1:1c:f4:a6:e6 ethernet1/1/49:1 ethernet1/1/49:1
193.168.2.3 54:bf:64:e6:d4:c5 vlan4000 port-channel1000
支持的版本
10.2.0E or later
Identifier GUID-64339971-B742-44B4-93C5-45C19B58BD40
Version 7
Status Translation approved
show ip route
显示 IP 路由信息。
语法
show ip route [vrf vrf-name] [all | bgp | connected | ospf process-id | static | ip-prefix/mask|
summary] load-balancing {ingress-port enable | [tcp-udp-selection l4–destination-port | l4–source-
port] | [ip-selection destination-ip | source-ip | protocol | vlan-id | l4–destination-port | l4–
source-port] | [ipv6–selection destination-ip | source-ip | protocol | vlan-id | l4–destination-port |
l4–source-port] | [mac-selection destination-mac | source-mac | ethertype | vlan-id]}
参数
vrf vrf-name 可选输入 vrf然后选择 VRF 名称以列出特定 VRF 的路由表中的路由。
all 可选显示活动和非活动 IP 路由。
bgp 可选显示 BGP 路由信息。
connected 可选仅显示直接连接的路由。
ospf process-id 可选显示 OSPF 进程的路由信息 1 65535
static 可选显示静态路由信息。
ip-prefix/mask 可选显示目标前缀列表的路由。
: 此选项仅适用于准确的前缀和掩码长度。
summary 可选显示 IP 路由摘要。
默认 未配置
命令模式
EXEC
使用情况信息
示例
OS10# show ip route
Codes: C - connected
S - static
B - BGP, IN - internal BGP, EX - external BGP
O - OSPF, IA - OSPF inter area, N1 - OSPF NSSA external type 1,
614 3