API Guide

ARP type: ARPA, ARP Timeout: 60
Last clearing of "show interface" counters: 3 weeks 1 day 23:12:50
Queuing strategy: fifo
Input statistics:
0 packets, 0 octets
0 64-byte pkts, 0 over 64-byte pkts, 0 over 127-byte pkts
0 over 255-byte pkts, 0 over 511-byte pkts, 0 over 1023-byte pkts
0 Multicasts, 0 Broadcasts, 0 Unicasts
0 runts, 0 giants, 0 throttles
0 CRC, 0 overrun, 0 discarded
Output statistics:
0 packets, 0 octets
0 64-byte pkts, 0 over 64-byte pkts, 0 over 127-byte pkts
0 over 255-byte pkts, 0 over 511-byte pkts, 0 over 1023-byte pkts
0 Multicasts, 0 Broadcasts, 0 Unicasts
0 throttles, 0 discarded, 0 Collisions, 0 wreddrops
Rate Info(interval 299 seconds):
Input 0 Mbits/sec, 0 packets/sec, 0% of line rate
Output 0 Mbits/sec, 0 packets/sec, 0% of line rate
Time since last interface status change: 3 weeks 1 day 20:54:37
Identifier GUID-0CA9007D-4871-4C4E-8046-4D3AA836B991
Version 6
Status Translation approved
配置静态路由
您可以配置开放最短路径优先 (OSPF) 的手动或静态路由。
CONFIGURATION 模式下配置静态路由。
ip route ip-prefix/mask {next-hop | interface interface [route-preference]}
ip-prefix 以点分隔的十进制格式表示 IPv4 地址。
mask 以斜杠前缀长度格式 (/X) 作为掩码。
next-hop 以点分隔的十进制格式表示下一跳 IP 地址。
interface 具有节点/插槽/端口信息的接口类型
route-preference可选路由首选项范围 1 255
配置静态路由
OS10(config)# ip route 200.200.200.0/24 10.1.1.2
查看配置静态路由
OS10# show ip route static
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,
N2 - OSPF NSSA external type 2, E1 - OSPF external type 1,
E2 - OSPF external type 2, > - non-active route
Gateway of last resort is not set
Destination Gateway Dist/Metric Last Change
------------------------------------------------------------------
S 200.200.200.0/24 via 10.1.1.2 ethernet1/1/1 0/0 00:00:03
如果下一跳位于直接连接的子网上OS10 将安装静态路由。不在直接连接的子网中的下一跳将在接口配置的子网上递归解析为下一
也会自动配置。例如如果 interface ethernet 1/1/5 在子网 100.0.0.0/8 上具有 IP 地址并且 10.1.1.0/24 递归解析为
100.1.1.1则系统将安装静态路由
当接口出现故障时OS10 将收回该路由。
当接口亮起时OS10 会重新安装路由。
当递归解析为 broken OS10 将收回路由。
当满足递归解析时OS10 会重新安装路由。
3 609